graphql-mesh icon indicating copy to clipboard operation
graphql-mesh copied to clipboard

Documentation for custom PubSub

Open ardatan opened this issue 1 year ago • 2 comments

https://github.com/Urigo/graphql-mesh/discussions/5172#discussioncomment-6161519

ardatan avatar Jun 13 '23 09:06 ardatan

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

ThePatriczek avatar Aug 15 '23 12:08 ThePatriczek

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

ardatan avatar Aug 15 '23 13:08 ardatan