graphql-erlang icon indicating copy to clipboard operation
graphql-erlang copied to clipboard

GraphQL parsing fails on 'subscription' field

Open thomas9911 opened this issue 4 years ago • 0 comments

We ran into an issue, while using a field called 'subscription' in our GraphQL query. I thought this was related that 'subscription' is a keyword in GraphQL, but if I use other keywords they will just work.

For example: Works:

iex> :graphql.parse("{id query mutation fragment}")
{:ok, _}
iex> :graphql.parse("{id query mutation subscription}")
{:error,
 {:parser_error,
  {1, :graphql_parser, ['syntax error before: ', 'subscription']}}}

Version: 0.15.0 Elixir version: 1.10.4 Erlang version: 22.3

thomas9911 avatar Dec 11 '20 13:12 thomas9911