How can we handle separate files for resolvers and schema? I would like to have one file per concern. Eg User.graphql and UserResolver.js
Then
Comment.graphql and CommentResolver.js
k
kitze
10/20/2018, 10:14 AM
kitze
10/20/2018, 10:14 AM
Just import all the individual schema.graphql types on the top of the main schema.graphql
a
Anders
10/20/2018, 10:33 AM
Sorry I was unclear, Im talking about graphql-yoga and not prisma. Does that work there? Package? Can mutations also reside in the import?
k
kitze
10/20/2018, 10:52 AM
No idea
kitze
10/20/2018, 10:52 AM
I would love to separate the mutations on line 12-13 and 16-17 to their respective files, but I'm not sure if it's possible