Version 1.0 fails to run introspection query
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.
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.