conn, err := dgo.DialSlashEndpoint("", "")
if err != nil {
log.Fatal(err)
}
defer conn.Close()
q := `query{
queryUser{
userName
}
}`
dgraphClient := dgo.NewDgraphClient(api.NewDgraphClient(conn))
resp, err := dgraphClient.NewReadOnlyTxn().Query(context.Background(), q)
Can GRPC client be used for graphQL queries as well or this is limited only to DQL?
If not, then, is there any way to pool connection for graphQL queries?