99designs / 99designs/gqlgen

Support for struct first schema, using go tags

Open
#3,195 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
10.8k
Forks
1.3k
Avg merge
2d 36m
Merged PRs (30d)
26

Description

### What happened?
Because go already have structs, that can define schema, a support for code first approach is potentially possible.
### What did you expect?
i expect the schema to be able to made using tags on the structs, which will help on having your schemas on one place, which will make working easier.
Plus it is possible to use both approaches.

### versions
all version

Contributor guide

Open the contributing guide

Research direction

The issue proposes adding struct-tag-based schema generation to gqlgen, a Go GraphQL server library. Start by examining the existing code-first and schema-first approaches in the codebase, likely in the `codegen` and `graphql` packages. Look for how schemas are currently parsed and generated. 'Done' would be a proof-of-concept where a Go struct with specific tags can produce a valid GraphQL schema.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend-api-design
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.