Apollo-server: support for graphql 0.11.1

Created on 27 Aug 2017  路  12Comments  路  Source: apollographql/apollo-server

It is pretty new... but when I install graphql 0.11.1 and I got this error message:

Schema must be an instance of GraphQLSchema. Also ensure that there are not multiple versions of GraphQL installed in your node_modules directory.

it works all good with 0.10.5.

Thanks

Most helpful comment

I'll be taking a look at it today.

All 12 comments

I fixed this issue myself by also updating graphql-tools to the latest version.

@dobesv I tried graphql-tools@next still no luck..

Also, I switched into [email protected], it seems has the same problem

Oh yes, you are right, that was what fixed it for me with 0.10.5. It looks like apollo has a dependency on 0.10.5 and if you install 0.11.1 the apollo-server gets its own copy of the older version, and instanceof takes the file path into account.

I think we have to wait for a new release of apollo that has the new version of GraphQL as a dependency.

Any chance of a new release with peerDependencies updated to 0.11.x? I see the "@types/graphql": "0.11.1" reflects the latest version.

does it work with 0.11? There was a breaking change, subscribe() now returns a Promise

Can confirm, that apollo-server-express is not compatible with the 0.11.3 of graphql. Look forward to a new version!

Tagging @stubailo @martijnwalraven since they seem to have been the ones who did the last several releases.

Badly needed, or I cannot update anything in my dev environment to [email protected].

I think the point has been made, no need to keep spamming this issue if you're not going to provide solutions.

I'll be taking a look at it today.

I seem to be having the same issue with [email protected] and [email protected]

Was this page helpful?
0 / 5 - 0 ratings

Related issues

veeramarni picture veeramarni  路  3Comments

dbrrt picture dbrrt  路  3Comments

manuelfink picture manuelfink  路  3Comments

hiucimon picture hiucimon  路  3Comments

nevyn-lookback picture nevyn-lookback  路  3Comments