Registry / http-client / khan-genqlient

khan-genqlient

JSON →
library0.8.1gogounverified

genqlient is a GraphQL client generator for Go.

go get github.com/Khan/genqlient
INSTALL
IMPORT
SIG · KHAN-GENQLIENT
K
khan-genqlient
http-clientgov0.8.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

genqlient
github.com/Khan/genqlient

Uses genqlient-generated code to make a GraphQL query.

package main import ( "context" "fmt" "github.com/Khan/genqlient/graphql" ) func main() { client := graphql.NewClient("https://api.example.com/graphql", nil) resp, _ := MyQuery(context.Background(), client) fmt.Println(resp) }
Debug
Known issues
gotchaRequires code generation step before use
fix
Run `go generate` or use genqlient CLI to generate client code from GraphQL schema and queries.
affects: all
Upgrade
Version history
0.8.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
Amazon
1
OpenAI (training)
1
Resources
khan-genqlient — go get khan-genqlient · libregistry