gqlparser
gqlparser copied to clipboard
A port of the parser from graphql-js into golang
``` package main import ( "testing" "github.com/stretchr/testify/assert" "github.com/vektah/gqlparser/v2/ast" "github.com/vektah/gqlparser/v2/parser" ) func TestTypePosition(t *testing.T) { t.Run("type line number with no bang", func(t *testing.T) { schema, parseErr := ParseSchema(&ast.Source{ Input: `type query...
From versions 2.4.0 and later fail to parse the [Braintree schema](https://github.com/braintree/graphql-api/blob/master/schema.graphql). Error: invalid schema: Undefined type String.
I would like to integrate the DGraph fork changes, but I would prefer to do them individually, unfortunately both forks have diverged. Help wanted! Especially from the original authors like...
Hello! I have an input that contains a declared field called number, with an int value. sending a variable with the numerical value triggers the error trigger: validator.VariableValues gqlparser version:...
As titled. GraphQL has a great API for that https://graphql.org/graphql-js/language/#visit This is in accordance with the principles of this library. > close to reference: Where it doesn't impact on the...
https://github.com/dgraph-io/gqlparser has been maintaining their own fork of the parser, and they have made a number of improvements. I would like to upstream these. I have pushed their current commits...
# The Problem # Given a schema like this: ``` type Post { id: ID! raw: String! } ``` Here's a way to break a mutation: ``` mutation MyMutation {...
Hi. have found endless recursion in case of incorrect graphql request. is there a way to prohibit that? request: ``` query Streams { Streams { ...StreamFragment } } fragment StreamFragment...
`graphql-js` has some utilities specified here: https://graphql.org/graphql-js/utilities/ It would be very nice for `gqlparser` also to support those utilities. For example: something like [`buildClientSchema`](https://graphql.org/graphql-js/utilities/#buildclientschema) is very useful if you want...