graphcraft
graphcraft copied to clipboard
Subscriptions - example.
Hi Mr Ali Rizwan,
Could you please create some example of how to use Subscription?
{mySubs: { output: '[myType]', resolver: customResolver, subscriber: customSubscriber }}
Especially how to build a subscriber from the documentation example above. Many other examples are in the tests in the repo, unfortunately I could not find subscription examples.
Thank you!
Hi, Subscriptions are being re-done in the newer version. If you want to keep using the current version I can prepare an example of that and share with you.
Hi, thank you for answer. Will it be a complete change of approach in the new version? We still use v.0.1.71 in our project.
It most probably would be different because I’m trying to build a tool agnostic subscription model so you can use redis or any other tool in front of it to achieve this. Current implementation in 0.x is a bit tightly coupled.
Sent from my iPhone
On Mar 17, 2021, at 9:12 AM, mrfy @.***> wrote:
Hi, thank you for answer. Will it be a complete change of approach in the new version? We still use v.0.1.71 in our project.
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/almost-full-stack/graphcraft/issues/45#issuecomment-800886262, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADAUKBSDNNOEJ6SANK6HW4DTEBP6NANCNFSM4ZAR44EA.
Then could you please make an example lin version 0.x? We will update the package.
unfortunately 0.x also don't support subscriptions out of the box however it's in progress for the next version. However if you want some help in this regard it would be better if we can schedule a quick zoom/gmeet/discord call?
Hi, i am interested in subscriptions. do you have an example with the actual version or when do you plan the next?