Method: GraphQL::Client::Errors#size
- Defined in:
- lib/graphql/client/errors.rb
#size ⇒ Object Also known as: count
Public: Count the number of errors on object.
data.errors. # => {"node"=>["couldn't find node by id", "unauthorized"]}
data.errors.size # => 2
Returns the number of error messages.
157 158 159 |
# File 'lib/graphql/client/errors.rb', line 157 def size values.flatten.size end |