-
-
Notifications
You must be signed in to change notification settings - Fork 127
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
PostGraphiQL supports 'Subscriptions'? #139
Comments
The documentation of our real-time features can be found here: https://www.graphile.org/postgraphile/realtime/ It sounds like you’re referring to live queries, so you need to configure your database to support them. |
Ah, thank you, you're right, I was using 'live' option rather than 'subscriptions'.
Now I'm trying to do the live queries in frontend through apollo-client, but I'm not getting any updates either.
I guess I should be using some listener function? Sorry for bothering you |
Live queries require you to add a live adapter plugin and configure your database as said here: https://www.graphile.org/postgraphile/live-queries/#graphilesubscriptions-lds |
Moved this issue to the documentation site since clearly we need to improve the documentation 👍 |
Hi,
Not sure if I'm doing something wrong, but I'm testing Postgraphile with subscriptions and visualise through PostGraphiQL.
My query
executes correctly and I see correct data response. But when I create/update/delete a row, the changes do not get reflected in the PostGraphiQL response window.
The page says that the websocket connection is on:
Apologies, but I'm having hard time finding information on how to actually consume this subscription through postgraphile -> node(express) -> frontend (ie Axios, fetch etc). What chain of events (stack) would you use to deliver updated field value in database to user's browser html page?
Thanks in advance!
The text was updated successfully, but these errors were encountered: