/graphql-codegen

Code Generator for Initializing GraphQL GO server

Primary LanguageGoMIT LicenseMIT

graphql-codegen

Code Generator for Initializing graphql-go server

Install

go get -u github.com/abihf/graphql-codegen

Usage

graphql-codegen -dir out/dir -package resolve "source/schema.gql"

It will generate resolvers inside out/dir.

Tips

Use goimports or goreturns to automatically remove unnecessary import and format the generated codes.

License

MIT