We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I am getting this error TypeError: PubSub is not a constructor when importing PubSub from apollo-server
TypeError: PubSub is not a constructor
code snippet: const { PubSub} = require('apollo-server');
const pubsub = new PubSub();
I appreciate any help, thank you
The text was updated successfully, but these errors were encountered:
Yes this won't work with apollo-server v3. On their docs it says:
Apollo Server 3 removes built-in support for subscriptions.
Check out their docs on how to setup the subscriptions for v3: https://www.apollographql.com/docs/apollo-server/data/subscriptions/
Else you can use the same package version used in this project.
Sorry, something went wrong.
Use this command to revert to the previous version of apollo-server:
npm install [email protected]
No branches or pull requests
Hi, I am getting this error
TypeError: PubSub is not a constructor
when importing PubSub from apollo-servercode snippet:
const { PubSub} = require('apollo-server');
const pubsub = new PubSub();
I appreciate any help, thank you
The text was updated successfully, but these errors were encountered: