Open luane-aquino opened 2 years ago
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.
Use this command to revert to the previous version of apollo-server:
npm install apollo-server@2.19.0
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