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

Query does not provide a operation name as a property in the request body causing some server configurations to reject the request #5840

Open
cernst11 opened this issue Jan 22, 2024 · 0 comments

Comments

@cernst11
Copy link

The Apollo implementation for fetching the schema does not provide an operation name in the boy of the request like so.

{
   "query":"SCHEMA_QUERY",
   "variables":{
      "id":"options.graph",
      "tag":"options.variant"
   },
   "operationName":"GetSchemaByTag"
}

It is common practice to reject queries without an operation names for a variety of reasons. Apollo Server/Federation implementation only exposes the operationName defined in the request body for plugins not in the query causing any teams enabled or created a plugin to reject queries without OperationNames to reject the introspection query.

@cernst11 cernst11 changed the title Query does not provide a operation name as a key value in request body causing some server configurations to reject the request Query does not provide a operation name as a property in the request body causing some server configurations to reject the request Jan 22, 2024
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