Ahh... Why is it so challenging to understand how ...
# orm-help
l
Ahh... Why is it so challenging to understand how Prisma works? It's either me or the documentation
a
Is there something specific you’re trying to wrap your head around?
l
So I am using Prisma with GraphQL. I have a resolvers folder with a mutation file and a query file within it. I want to delete an item. I've managed to get creating data to work, just unsure of how to remove it.
If there are any good resources on how everything works under the hood, that'd be helpful. I'm struggling to grasp the concepts of Prisma and how it interfaces with MongoDB.
a
l
Thank you 🙂
a
the first image grasps what prisma does. It takes your Data Model and converts it into pre-defined CRUD operations for Queries, Mutations and Subscriptions.
you then can use the prisma client on your gateway to invoke those queries/mutations/subscriptions through actual code. All the client does is to use the GraphQL endpoint that prisma generated
ultimately you don’t even care what prisma does with your database and eventually you might not even care what database it is
💯 1
l
Many thanks for your help. I am getting the hang of it now (slowly but surely!)
🙌 2
a
you’re welcome