This package is work in progress.
- Generate types
- Generate queries and mutations
- Generate subscriptions with gorilla websocket
- Add more configuration options
- Avoid collisions ?
- Write tests
This package generates Golang types and requests which use:
The package is published to graphql-codegen-golang.
npm install -D graphql-codegen-golang
yarn install -D graphql-codegen-golang
schema: pkg/graphql/schema.graphql
documents: pkg/graphql/!(schema).graphql
generates:
pkg/graphql/graphql.go:
hooks:
afterOneFileWrite: go fmt
plugins:
- graphql-codegen-golang:
packageName: graphql # default
Configuration source is at src/config.ts
Name | Default | Description |
---|---|---|
packageName | graphql | Name of the generated Golang package. |
MIT