ChromeiQL icon indicating copy to clipboard operation
ChromeiQL copied to clipboard

Version 1.0 fails to run introspection query

Open voroshkov opened this issue 8 years ago • 1 comments

When trying to run ChromiQL against local GQL server, getting the following error in UI:

{
  "errors": [
    {
      "message": "Cannot query field \"locations\" on type \"__Directive\"."
    }
  ],
  "data": null
}

Although it was working fine with 0.1 version.

voroshkov avatar Aug 27 '17 11:08 voroshkov

This is expected as the new Graphiql (not Chromeiql) assumes newer Graphql server that is compatible with newer Graphql.js server reference implementation.

These new introspection fields + others have been a part of standard spec for a while now. See this issue on graphql-js which is similar: https://github.com/graphql/graphql-js/issues/369

As such, it's hard for chromeiql, which is just a simple wrapper around graphiql, to keep backward compatibility while the underlying tool will not.

Solution is to use a newer version of the graphql server implementation in the platform of your chosing.

ermanc avatar Aug 28 '17 15:08 ermanc