graphql-go / graphql-go/graphql

Parsing Schema vs. Using Structs to define schema

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

Description

Let's say that I have an existing schema:

`const Schema = '
type Gamer {
id: String!
}
type Query {
gamers: [Gamer]
}'`

If I want to use graphql-go to handle this schema, would it be best (in terms of efficiency and extensibility) to use `graphql.MustParseSchema(Schema, &Resolver{})` or to recreate the schema using the graphql-go structs to create new graphql objects?

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.