seaography
seaography copied to clipboard
Add Subscriptions
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:
@billy1624 I would love to work on this
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
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 Can you maintain a project board for reference, it will be very useful for our developers to keep track of what blocks what ?
I personally think, we should do the Mutation APIs first, then come to subscriptions
Do you need any help with that?