Method: GraphQL::Client::Errors#all

Defined in:
lib/graphql/client/errors.rb

#allObject

Public: Return collection of all nested errors.

data.errors[:node]
data.errors.all[:node]

Returns Errors collection.

[View source]

51
52
53
54
55
56
57
# File 'lib/graphql/client/errors.rb', line 51

def all
  if @all
    self
  else
    self.class.new(@raw_errors, @ast_path, true)
  end
end