Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Update graphql lib version #28

Open
Oxyaction opened this issue Jun 7, 2022 · 2 comments
Open

Update graphql lib version #28

Oxyaction opened this issue Jun 7, 2022 · 2 comments

Comments

@Oxyaction
Copy link

Starting from ^2.0.0 version ApolloGateway uses graphql ^16.0.0 version as a dependency.
It produces a version conflict error since federation-subscription-tools still using graphql version 15.

Error: Cannot use GraphQLInputObjectType "{ ...schema }" from another module or realm.

Ensure that there is only one instance of "graphql" in the node_modules
directory. If different versions of "graphql" are the dependencies of other
relied on modules, use "resolutions" to ensure only one version is installed.

Can you update the dependency?

@paulbijancoch
Copy link

or could we do it by ourselves?

@alexandra-c
Copy link

Hello,
You can check out my implementation here https://www.npmjs.com/package/@totalsoft/federation-subscription-tools
I forked @Oxyaction 's also forked repo (😁), upgraded almost everything that needed upgrade to make it work with GraphQL v16 and Apollo Federation v2.
Enjoy!

PS: I'm still waiting and hoping Apollo guys will soon integrate subscription into Apollo Federation 2 and support them natively 🙏.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants