Hacker News new | ask | show | jobs
by zifeo 1049 days ago
There is a whole section with use cases and code examples on the website (crud, backend for frontend, function-as-a-service, iam provider and more): https://metatype.dev/use-cases/automatic-crud-validation
1 comments

In the example provided, the code uses Prisma. Am I missing something?
Prisma is one of the runtime currently supported [1]. Metatype enables you to compose multiple runtimes together. Let's say you have model/struct product (id, name, similarProducts), the two first attributes may be stored in Prisma (like you would do it normally), the third one can come from another runtime such as an HTTP api and the engine will take care of resolving the data together. You can also add an authorization policy on any of the fields.

[^1] https://metatype.dev/docs/reference/runtimes