timqian/gql-generator

Cannot use unicode emojies

Aperta

#12 aperta il 30 gen 2019

 (1 commento) (1 reazione) (0 assegnatari)JavaScript (94 fork)github user discovery
help wanted

Metriche repository

Star
 (388 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor