Is it possible to mock graphql subscriptions? #2091
Replies: 3 comments
-
#1952 may be relevant. Could you elaborate on what you have so far and what you need... |
Beta Was this translation helpful? Give feedback.
-
@yaacovCR thank you! I will look into the code deeper. We have FE app which uses Relay as graphql client.
I saw something in the docs which says it is possible to mock schema directly in browser runtime. But I have not seen any explicit examples of this in the docs. Some requirements for solution is:
|
Beta Was this translation helpful? Give feedback.
-
We support mocking subscription. Our docs have an example to create a mocked schema so you can use it any kind of GraphQL Client that takes schema as a source. |
Beta Was this translation helpful? Give feedback.
-
I could not find how to mock graphql subscriptions directly in browser.
Could someone please help with this?
Beta Was this translation helpful? Give feedback.
All reactions