Method: GraphQL::Schema.parse_error

Defined in:
lib/graphql/schema.rb

.parse_error(parse_err, ctx) ⇒ Object

A function to call when execute receives an invalid query string

The default is to add the error to context.errors



1330
1331
1332
# File 'lib/graphql/schema.rb', line 1330

def parse_error(parse_err, ctx)
  ctx.errors.push(parse_err)
end