DEV Community

Cover image for Nested Mutations in GraphQL Nexus
Ahmedammarr
Ahmedammarr

Posted on Edited on

Nested Mutations in GraphQL Nexus

I've struggled with creating an array of mutation with GraphQL Nexus
, I tried so many solutions but I wasn't satisfied with it because it causes bad performance in some cases, but today I tried a solution that I think it's the better way to create an array of mutations in Nexus, I've used graphql-auth example from Prisma examples repo to explain my point. I created the nested mutation option to deletePost mutation in the example.
Please check it and tell me what do you think about it and of course, I want to know your suggestions for solutions better than this.

Top comments (0)