You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, we are using Prisma with typegraphql and we want to know if it's possible to use your stack ? any POC or repo with nestjs examples ?
Thanks you.
have nice day.
The text was updated successfully, but these errors were encountered:
Thanks for the inquiry. As we actually generate the Prisma schema file, you are supposed to use ZenStack in any place where Prisma is used.
However, for this particular template, since we haven’t supported generating GraphQL API, you still need to implement the resolver by yourself. Nonetheless, you can benefit from the enhanced Prima client with auto-generated access policies and validations defined in the schema. Here is an example project that uses ZenStack with a GraphQL server: https://github.com/jiashengguo/graphql-server-example
BTW, we are aware that typegraphql-prisma employed the triple comments way to do some annotation for itself like:
The straightforward way is that you can use the exact same annotation in ZModel file. We preserve all the triple comments as it is when generating schema.prisma
The other way is to define the attribute yourself in ZModel like this:
Hello, we are using Prisma with typegraphql and we want to know if it's possible to use your stack ? any POC or repo with nestjs examples ?
Thanks you.
have nice day.
The text was updated successfully, but these errors were encountered: