Method: GraphQL::Client::Errors#empty?
- Defined in:
- lib/graphql/client/errors.rb
#empty? ⇒ Boolean Also known as: blank?
Public: Check if there are no errors on object.
data.errors. # => {"node"=>["couldn't find node by id"]}
data.errors.empty? # => false
Returns true if no errors are found, otherwise false.
168 169 170 |
# File 'lib/graphql/client/errors.rb', line 168 def empty? size.zero? end |