Closed JuMaLeCu closed 5 years ago
Im sorry. I did not read correctly the graphql documentation and I resolve for myself this issue. I thought I had to invoke extendsWithMutations for each mutation object I had create before. Reading graphql´s doc I saw that all mutations I want is writing all of them in the same object. I thought that I had to invoke it in there object by object.
My bad, sorry, I´m already learning how to use this powerful tool named graphql 😅
Hello there! I am trying to create multiple mutations but the function of extendWithMutations only takes the last mutation that I enter as a parameter.
This is my SchemaBuilder
extendAllMutations is a personal function that I created for all mutations to be added to the variable schemaBuilder.
This is the extendAllMutations function:
getMutations is a function that reads the mutations from a folder that I have all the files that contain the different mutations that I want to implement on the server
I have tried introducing the models one by one and using twice the function spreadWithMutations on that same model and exactly the same thing happens. I think I should let you add all the mutations instead of replacing them.
I have not seen in the documentation anything about it, so I better ask around here. Thank you for your attention and forgive the inconvenience that may cause.