Could we please get a guide for using GraphQL subscriptions on the client side? https://nhost.io/blog/how-to-use-graphql-code-generator-with-react-query This was the most comprehensive guide I could find, and it helped me setup GraphQL with typescript and react-query.
Last active 3 months ago
5 replies
13 views
- PR
Could we please get a guide for using GraphQL subscriptions on the client side?
https://nhost.io/blog/how-to-use-graphql-code-generator-with-react-query
This was the most comprehensive guide I could find, and it helped me setup GraphQL with typescript and react-query. - EL
Subscriptions does not work with React Query. You can use Apollo or URQL instead which have built in support for subscriptions.
- EL
I'm working on an example with URQL (which I recommend) here: https://github.com/nhost/nhost/pull/1228
- EL
Which might help you
- PR
I mentioned that article just as an example. Thanks, I'll check this urql implementation. If you could find some time, please consider creating a blog article on subscriptions (with any library).
Last active 3 months ago
5 replies
13 views