timqian/gql-generator

Cannot use unicode emojies

开放

#12 创建于 2019年1月30日

 (1 条评论) (1 个反应) (0 位负责人)JavaScript (94 个派生)github user discovery
help wanted

仓库指标

星标
 (388 个星标)
PR 合并指标
 (30 天内没有已合并 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.

贡献者指南