Is there a strategy for taking the generated .grap...
# orm-help
r
Is there a strategy for taking the generated .graphql file and appending resolvers to it? My process atm is manually adding all the resolvers back in then adding the tiny changes I need: https://gist.github.com/remy/fe875861ccb7b9724291050d5550da1c (the start of that process)
n
Do I understand correctly that you basically want to expose all the CRUD operations from your Prisma API in your own GraphQL (Yoga?) server?
Also not quite sure what exactly you mean with appending resolvers to a
.graphql
-file. GraphQL files only contain schema definitions, the resolvers are the actual implementations and live in your JavaScript files 🙂
This article might help understanding the difference between schema definitions and resolvers better: https://www.prisma.io/blog/graphql-server-basics-the-schema-ac5e2950214e/ 🙌
r
Cheers, I'll take a read. It's highly likely that I'm just confusing what I want to do!
n
Happy to help, let me know if you have any questions 🙌
(also quick side-note, that article is completely independent from Prisma - it's only about the core GraphQL concepts)