graphql-erlang
graphql-erlang copied to clipboard
GraphQL parsing fails on 'subscription' field
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