seaography icon indicating copy to clipboard operation
seaography copied to clipboard

Add Subscriptions

Open AbhijithGanesh opened this issue 2 years ago • 6 comments

Motivation

GraphQL has support for event subscriptions, We need a Rust based ORM support that extends GraphQL which extends support for something like a continuous steam of data.

To quote Apollo GraphQL docs:

Like queries, subscriptions enable you to fetch data. Unlike queries, subscriptions are long-lasting operations that can change their result over time. They can maintain an active connection to your GraphQL server (most commonly via WebSocket), enabling the server to push updates to the subscription's result.

Blocked

  • #10
  • #9
  • #11

Proposed Solutions

  • [ ] Implement a solution for Subscriptions based on the following: <Exploring options as this issue has been written>

Additional Information

Reference:

AbhijithGanesh avatar Jan 04 '23 05:01 AbhijithGanesh

@billy1624 I would love to work on this

AbhijithGanesh avatar Jan 04 '23 05:01 AbhijithGanesh

Hey @AbhijithGanesh, thanks for the write up!!

async-graphql already has subscription utility where we can use it out of the box

  • https://async-graphql.github.io/async-graphql/en/subscription.html

However, as you said, we still need SeaORM to stream the updates or events to be exact.

  • https://github.com/SeaQL/sea-orm/issues/1123

billy1624 avatar Jan 04 '23 16:01 billy1624

So, this issue is blocked. We need to wait SeaORM to implement the event stream first.

Maybe we can work on GraphQL mutation APIs at the meantime?

billy1624 avatar Jan 04 '23 16:01 billy1624

@billy1624 Can you maintain a project board for reference, it will be very useful for our developers to keep track of what blocks what ?

AbhijithGanesh avatar Jan 04 '23 17:01 AbhijithGanesh

I personally think, we should do the Mutation APIs first, then come to subscriptions

AbhijithGanesh avatar Jan 11 '23 02:01 AbhijithGanesh

Do you need any help with that?

iho avatar Jan 22 '24 01:01 iho