Skip to content
New issue

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

Documentation for custom PubSub #5556

Open
ardatan opened this issue Jun 13, 2023 · 2 comments
Open

Documentation for custom PubSub #5556

ardatan opened this issue Jun 13, 2023 · 2 comments

Comments

@ardatan
Copy link
Owner

ardatan commented Jun 13, 2023

#5172 (comment)

@ThePatriczek
Copy link

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

@ardatan
Copy link
Owner Author

ardatan commented Aug 15, 2023

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

This was referenced Apr 30, 2024
This was referenced May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants