Hi Prisma team, I managed to make a simple POC <ht...
# orm-help
s
Hi Prisma team, 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 🙂. Design question, once I have something nice, should I fork prisma/prisma-client-lib-go with an interface let's say like this
Copy code
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 ?