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
Hi Marc,
I'm looking to setup some custom queries and mutations in addition to the default ones of the graffiti schema,
For example, I would like to create a mutation "createUser" which update 2 different collections when invoked, Graffiti looks nice, but there few documentation, do you have any advice?
Thank you very much for your help!
Thibaut
The text was updated successfully, but these errors were encountered:
Nowadays graffitti-mongoose doesn't have any methodology for extend the generated schema or include customs queries/mutations. But, even so, the official graffiti repo has RisingStack/graffiti-mongoose#64 open issue with how-to extend schemas. However, they are only tips. This isn't a final solution and could be difficult to maintain the code in a short term.
In my case, I switched to other ways to develop the GraphQL Server:
Creating the schema from the scratch. I reccomend this tutorial: https://learngraphql.com/ or learning from official docs.
Hi Marc,
I'm looking to setup some custom queries and mutations in addition to the default ones of the graffiti schema,
For example, I would like to create a mutation "createUser" which update 2 different collections when invoked, Graffiti looks nice, but there few documentation, do you have any advice?
Thank you very much for your help!
Thibaut
The text was updated successfully, but these errors were encountered: