How to use subscriptions? #113
Unanswered
christiaanwesterbeek
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I want to start using postgraphile's simple subscriptions, so that I can have my frontend by notified about events in the database. That means that I must able to submit from my frontend a graphql subscription like the following for example.
I have found noticed that subscriptions seem kind of disabled here:
ra-postgraphile/src/__test_utils/GraphileLink.ts
Lines 27 to 33 in 1f76548
I have been using react-admin for a long time, and I just noticed the following remark in its documentation.
That got me thinking, that even though ra-postgraphile is not supporting subscriptions right now, we may still be able to customize it. There are a few "ingredients" I'm thinking of. One is using a decorator (like I sometime do for altering params)...
The other that I may be able to use the apollo client directly, but I haven't done that before.
Can you help me out thinking of a way how?
All reactions