Prisma1: Go client - subscription support

Created on 11 Sep 2018  路  5Comments  路  Source: prisma/prisma1

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

kinfeature rf0-needs-spec arecliengo

Most helpful comment

Hey, is there any update on this...

All 5 comments

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?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jannone picture jannone  路  3Comments

akoenig picture akoenig  路  3Comments

marktani picture marktani  路  3Comments

sorenbs picture sorenbs  路  3Comments

sedubois picture sedubois  路  3Comments