Generated mutation hooks #7300
Unanswered
adammartiska
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In my React application I am using graphQL code generator for generating query and mutation React hooks (I am using Apollo client). Generated queries work just fine, but when it comes to mutation I am getting this error :
message: "Error trying to resolve field 'createSuborder'.", locations: [{line: 2, column: 3
Here is my important part of graphQL schema :


Weird thing is that when I try to run this mutation in graphQL playground it works.

Here is my generated code from codegen, and hook used in my React component :

Beta Was this translation helpful? Give feedback.
All reactions