graphql-mesh
graphql-mesh copied to clipboard
Documentation for custom PubSub
https://github.com/Urigo/graphql-mesh/discussions/5172#discussioncomment-6161519
It would be great! I'm trying to make Mesh as my mocking gateway that extending our schemas and I have no idea how to configure custom mocked subscriptions. @ardatan
Until this, you can check the code;
pubSub
accepts a path to a code file that exports a PubSub implementation based on this interface;
https://github.com/Urigo/graphql-mesh/blob/master/packages/types/src/index.ts#L75
The default PubSub implementation can be found here;
https://github.com/Urigo/graphql-mesh/blob/master/packages/utils/src/pubsub.ts