Method: GraphQL::Client::Errors#filter_by_path

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

#filter_by_path(field) ⇒ Object

Internal: Return collection of errors for a given subfield.

data.errors.filter_by_path("node")

Returns Errors collection.

[View source]

64
65
66
# File 'lib/graphql/client/errors.rb', line 64

def filter_by_path(field)
  self.class.new(@raw_errors, @ast_path + [field], @all)
end