Method: GraphQL::Schema#parse_error

Defined in:
lib/graphql/schema.rb

#parse_error(err, ctx) ⇒ Object

A function to call when #execute receives an invalid query string

Parameters:

  • The error encountered during parsing

  • The context for the query where the error occurred

Returns:

  • void

See Also:

  • is the default behavior.


474
475
476
# File 'lib/graphql/schema.rb', line 474

def parse_error(err, ctx)
  @parse_error_proc.call(err, ctx)
end