graphql-go / graphql-go/graphql

Parsing a schema

Open
#177 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
10.1k
Forks
845
PR merge metrics
No merged PRs in 30d

Description

I can figure out how to parse a schema to a `[]ast.Node`, as well as converting each node to a `*ast.ObjectDefinition`. I'm now struggling to figure out how to convert those object definitions to types.

It seems I just need to implement the `Description()` method on the ObjectDefinition to convert to a `graphql.Type` - but this feels super wrong. There should be an easy way to convert between the ast and a schema.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.