timqian/gql-generator

Cannot use unicode emojies

オープン

#12 opened on 2019/01/30

 (1 件のコメント) (1 件のリアクション) (0 人の担当者)JavaScript (94 件のフォーク)github user discovery
help wanted

Repository metrics

Stars
 (388 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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.

コントリビューターガイド