Is anyone successfully using the CRUD generated resolvers in a production environment? #412
Unanswered
eduardolundgren
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I don't have anything in production but you could look at how Strapi or Directus, both opensource, handle authorization. They both generate graphql apis from a definition of sort. I personally plan to utilize CASL for mine. CASL will allow you to create abilities based on object structures that can define field level access. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been exploring the CRUD generated resolvers provided by typegraphql-prisma and found them immensely powerful, especially when it comes to handling complex use-cases involving nested relations, connect, and connectOrCreate during updates.
However, I'm facing significant challenges when it comes to implementing a robust authorization layer on top of these generated methods. While Authorized and Middlewares are useful tools in TypeGraphQL, their application seems tricky in the context of our generated resolvers, particularly when our schema involves real-world relations like a User, Organizations, and an intermediary Memberships table for associating users to orgs.
I wanted to reach out to the community and inquire:
Any insights or shared experiences would be greatly appreciated. I believe that understanding this better can potentially benefit many others looking to utilize typegraphql-prisma to its full potential.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions