We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hi all,
I am trying to parse a graphql schema string but get an error:
# Some german Letters: ÄÖÜ enum UserType { USER ADMIN }
"Syntax Error schema (2:6) Expected {, found Name \"UserType\"\n\n1: # Some german Letters: ÄÖÜ\n2: enum UserType {\n ^\n3: USER\n"
it looks like the parser can not handle UTF-8 characters. I wonder why ?
you can test it yourself with the following test:
func TestParsesUTF8(t *testing.T) { doc := ` # Some german Letters: ÄÖÜ enum UserType { USER ADMIN } ` astDoc, err := Parse(ParseParams{ Source: doc, Options: ParseOptions{ NoLocation: false, NoSource: true, }, }) if err != nil { t.Fatalf("Parse failed: %v", err) } if astDoc == nil { t.Fatalf("unexpected nil document") } }
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
hi all,
I am trying to parse a graphql schema string but get an error:
it looks like the parser can not handle UTF-8 characters. I wonder why ?
you can test it yourself with the following test:
The text was updated successfully, but these errors were encountered: