timqian/gql-generator

Cannot use unicode emojies

Aberta

#12 aberto em 30 de jan. de 2019

 (1 comentário) (1 reação) (0 responsável)JavaScript (94 forks)github user discovery
help wanted

Métricas do repositório

Stars
 (388 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 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.

Guia do colaborador