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
I just tried to test my graphQL-API with GraphiQL and everything worked fine.
But when I tried to define multiple queries/mutation in one body I got a GraphQLError "Must provide an operation name from: [op1, op2]"
I soon realized that you actually read the operationName out of the variables string I provide for the schema execution.
Wouldn't it be better to add a new argument "operationName" to the execute-function of the schema?
Otherwise I have to inject the operationName into the variables before calling the function.
Greetings,
Fabio
The text was updated successfully, but these errors were encountered:
Hi guys,
I just tried to test my graphQL-API with GraphiQL and everything worked fine.
But when I tried to define multiple queries/mutation in one body I got a GraphQLError "Must provide an operation name from: [op1, op2]"
I soon realized that you actually read the operationName out of the variables string I provide for the schema execution.
Wouldn't it be better to add a new argument "operationName" to the execute-function of the schema?
Otherwise I have to inject the operationName into the variables before calling the function.
Greetings,
Fabio
The text was updated successfully, but these errors were encountered: