get-schema does not send "operationName: IntrospectionQuery"
FabHof opened this issue · comments
Describe the bug
graphql get-schema
does not include "operationName": "IntrospectionQuery"
in in the request. This results in unauthenticated error. The apollo backend does allow introspection without authentication, but it only works if "operationName": "IntrospectionQuery"
is part of the request.
GraphQL Playground does include this in the request automatically, when doing an introspection query.
To Reproduce
Steps to reproduce the behavior:
graphql get-schema
- Observe unatuhenticated result
Expected behavior
graphql get-schema
should include "operationName": "IntrospectionQuery"
Versions (please complete the following information):
- OS:
Windows 10
graphql-cli
:3.0.12
I'm happy to help fixing this, but I need someone to point me in the right direction on where in the code I should look.