79285242

Date: 2024-12-16 15:47:53
Score: 1.5
Natty:
Report link

Just use an external file with declared instance of PubSub

import { PubSub } from 'graphql-subscriptions';

export const pubsub = new PubSub();
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Rohan Marko