timqian/gql-generator

Cannot use unicode emojies

Open

#12 opened on Jan 30, 2019

 (1 comment) (1 reaction) (0 assignees)JavaScript (94 forks)github user discovery
help wanted

Repository metrics

Stars
 (388 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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.

Contributor guide