genqlient
genqlient copied to clipboard
a truly type-safe Go GraphQL client
**Is your feature request related to a problem? Please describe.** We now have support for mapping GraphQL optional types to generics (see #251). In many schemas, though, you don't want...
It seems like one day, maybe soon, we'll find value in a plugin API, so users can hook into codegen in ways that we can't anticipate. This issue is to...
**Added [support for graphQL subscriptions](https://github.com/Khan/genqlient/issues/199).** - Using `graphql.NewClientUsingWebSocket()`, the returned `graphql.WebSocketClient` will be able to subscribe to graphQL endpoints. - Implementation does not depend on a specific websocket package, but...
This introduces the ability to include `operationName` as a query parameter for the default client. There are a few patterns for options that are described [here](https://golang.cafe/blog/golang-functional-options-pattern.html). The existing `NewClientUsingGet` follows...
**Describe the bug** Seems like turning on `use_struct_references` and setting `pointer: optional` breaks the ability to read from inline fragments. **To Reproduce** Problem happens at runtime. Setting `use_struct_references: true` and...
**Describe the bug** I am encountering "conflicting definition" errors when using specific GraphQL field and type names with genqlient. The error message is as follows: > ...../schema.graphql:13: conflicting definition for...
**Describe the bug** Hey all 👋 We are having a use-case where we want to apply `omitempty` on all fields except a mandatory graphql field. We've tried the below code...
I am using **Hasura** scheme. the generated code is using a redeclared variable which is causing `'data' redeclared in this block` error. I have to mutually edit `UpsertDeviceResponse` from `data`...
We seem to have a lot of users using genqlient to query a [Hasura](https://hasura.io/docs/latest/index/)-generated schema, and they aren't having a great time of it; a lot of bugs and feature...
**Is your feature request related to a problem? Please describe.** Currently I'm using the Go default values for a response in a lot of fields. But currently I need to...