graphcraft icon indicating copy to clipboard operation
graphcraft copied to clipboard

Subscriptions - example.

Open mrfy opened this issue 4 years ago • 6 comments

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!

mrfy avatar Mar 11 '21 16:03 mrfy

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.

alirizwan avatar Mar 16 '21 00:03 alirizwan

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.

mrfy avatar Mar 17 '21 08:03 mrfy

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.

alirizwan avatar Mar 17 '21 09:03 alirizwan

Then could you please make an example lin version 0.x? We will update the package.

mrfy avatar Mar 19 '21 07:03 mrfy

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?

alirizwan avatar Mar 24 '21 22:03 alirizwan

Hi, i am interested in subscriptions. do you have an example with the actual version or when do you plan the next?

szsolutions avatar May 19 '22 19:05 szsolutions