gqlify icon indicating copy to clipboard operation
gqlify copied to clipboard

Subscriptions?

Open jthegedus opened this issue 7 years ago • 1 comments

Just wondering how this lib would work with graphql subscriptions?

I haven't tried it myself yet, but it seems from https://github.com/Canner/gqlify/issues/13 that it may not given that issue seems to mention whitelisting server middlewares.

If you could shine some light on this that would be great

jthegedus avatar Dec 23 '18 08:12 jthegedus

@jthegedus At this stage, we haven't discussed much how GraphQL subscription API should be.

There are many things we need to think through before implementing subscription, such as:

  • What methods should we add on DataSource interface to expose subscription api?
  • How do we design subscription api? If we design subscription api to be able to listen to CREATE, UPDATE, DELETE event, what filter do we provide in the arguments?

Right now, we're actually more focused on making overall architecture stable, enrich graphQL API and authentication.

Nevertheless, starting discussion earlier is always a good thing. Let us know what you think how subscription API should be.

wwwy3y3 avatar Dec 24 '18 03:12 wwwy3y3