Method: GraphQL::Client::Errors#initialize
- Defined in:
- lib/graphql/client/errors.rb
#initialize(errors = [], path = [], all = false) ⇒ Errors
Internal: Initalize from collection of errors.
errors - Array of GraphQL Hash error objects path - Array of String|Integer fields to data all - Boolean flag if all nested errors should be available
39 40 41 42 43 |
# File 'lib/graphql/client/errors.rb', line 39 def initialize(errors = [], path = [], all = false) @ast_path = path @all = all @raw_errors = errors end |