graphqlhub icon indicating copy to clipboard operation
graphqlhub copied to clipboard

Graphql dependency is out of date

Open sedubois opened this issue 8 years ago • 2 comments

Hi! I've been trying to experiment with a public GraphQL API to learn Relay. I cloned the relay-101 tutorial, and could run it fine, thanks 😊 But obviously I now wish to update the out-of-date dependencies, including graphql to 0.7.1. However I get a babel-relay-plugin error Invalid introspection data supplied to getBabelRelayPlugin(). The resulting schema is not an object with a __schema property. If I console.log the response within babelRelayPlugin.js, I see the response is Cannot query field \"locations\" on type \"__Directive.

Is that because graphqlhub still runs an old graphql version (0.4.17)? Is there a workaround? Is this GraphQLHub still maintained? Have you got plans to update it soon?

sedubois avatar Sep 30 '16 12:09 sedubois

It's because of this graphql PR which was merged in 0.5.0 (published 2016-04-08), breaks the API. So basically graphqlhub is not compatible with any graphql client version 0.5.0 onwards.

sedubois avatar Sep 30 '16 13:09 sedubois

@sedubois could you send a PR to fix this?

sibelius avatar Mar 14 '17 17:03 sibelius