Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"operationName" should not be part of "variables" #81

Closed
FabioGimmillaro opened this issue Mar 12, 2020 · 0 comments
Closed

"operationName" should not be part of "variables" #81

FabioGimmillaro opened this issue Mar 12, 2020 · 0 comments

Comments

@FabioGimmillaro
Copy link

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

@jeggy jeggy closed this as completed in 3591a17 Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant