-
Notifications
You must be signed in to change notification settings - Fork 846
Closed
Description
Hello!
When i use the special international symbols (like chinese or russian) in the argument string,
query Q1{ viewer{ cities(first:10, nameContains:"фы世界"){ edges{ node{ name } } } }}
i get the error:
{ "data": null, "errors": [ { "message": "Syntax Error GraphQL request (10:4) Unexpected character \"\u0000\".\n\n 9: }\n10: }}\n ^\n", "locations": [ { "line": 10, "column": 4 } ] } ] }
I think this is because Lexer is counting wrong the length of string. Function len in golang returns the count of symbols, not runes.
bodyLength := len(body)
File: graphql/language/lexer.go