Is your feature request related to a problem? Please describe.
Go client does not support GraphQL subscriptions
Describe the solution you'd like
Go client should support GraphQL subscriptions
I managed to make a simple POC https://github.com/Sach97/prisma-go-subscription-experiments with a subscription query against the prisma ws endpoint with the same datamodel from example repo. My subscribe only takes a query string in argument for the moment and return a go channel. It is a toy program but I hope it can help the team. I'll try to play with the ast of the query now :slightly_smiling_face:. Design question, once I have something nice for a PR, should I fork prisma/prisma-client-lib-go with an interface let's say like this
type Client struct {
Endpoint string
Secret string
Session *Session
GQLClient *graphql.Client
}
type Session struct {
ws *websocket.Conn
errChan chan error
}
Or fork both prisma-client-lib for the channel part and machinebox/graphql for the websocket connection part ?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.
Hey, is there any update on this...
Hi guys, has anyone news on this?
Is it happening soon or was it abandoned?
Most helpful comment
Hey, is there any update on this...