graphql-go / graphql-go/graphql
Parsing Schema vs. Using Structs to define schema
Open
- 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
Assessment
This issue has not been assessed yet.