timqian / gql-generator

Generate queries from graphql schema, used for writing api test.
MIT License
374 stars 93 forks source link

Cannot use unicode emojies #12

Open fungiboletus opened 5 years ago

fungiboletus commented 5 years ago

Hei, unicode emojies in a GraphQL schema such as 🦄 makes the following error :

GraphQLError: Syntax Error: Cannot parse the unexpected character <EOF>.

# Sample schema 🦄
type Query {
  user(id: Int!): User!
}

type User {
  id: Int!
  username: String!
  email: String!
  createdAt: String!
}

Perhaps updating the graphql dependency to its latest version could fix the issue.

hmmhmmhm commented 5 years ago

11

Thanks! I haven't solved the error for a long time, but when I found your article and deleted all the Korean comments, the error was corrected.