lib/mongo/operation/result.rb
# Get the count of documents returned by the server.
#
# @example Get the number returned.
#   result.returned_count
#
# @return [ Integer ] The number of documents returned.
#
# @since 2.0.0
# @api public
Get the count of documents returned by the server.
Get the count of documents returned by the server .
def returned_count
        if acknowledged?
          reply.number_returned
        else
          0
        end
      end
def returned_count if acknowledged? reply . number_returned else 0 end end
Get the count of documents returned by the server.
Get the count of documents returned by the server .
The number of documents returned.
The number of documents returned .
 Integer 
example
Get the number returned. result.returned_count
Get the number returned . result . returned_count
since
None
api
None