GQLSchemaGen v1.0.0: Generate GraphQL Schemas from Go Code
pablor21.github.io·1d
Flag this post

v1.0.0 Now Available

Type-safe GraphQL

from your Go models.

Stop writing schemas by hand. Annotate your standard Go structs and generate production-ready GraphQL schemas instantly.

Declarative

Define schema using simple Go struct tags.

Zero Boilerplate

No need to maintain separate .graphql files.

Go Native

Works seamlessly with your existing domain entities.

Get started in seconds

Three simple steps to automate your schema workflow.

1

Install

Get the latest version of the CLI tool directly from standard Go modules.

$ go install github.com/pablor21/gqlschemagen@latest

2

Annotate

Add the @gqlType directive to your Go structs to expose them to the schema.

internal/domain/user.go

user.go(GraphQL Type Definition)

3

Ge…

Similar Posts

Loading similar posts...