Urigo / graphql-cli

📟 Command line tool for common GraphQL development workflows

Home Page:https://graphql-cli.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

  1. graphql get-schema
  2. 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.