lib/mongo/operation/result.rb
def documents
        if acknowledged?
          replies.flat_map(&:documents)
        else
          []
        end
      end
# Get the documents in the result.
#
# @example Get the documents.
#   result.documents
#
# @return [ Array<BSON::Document> ] The documents.
#
# @since 2.0.0
# @api public
Get the documents in the result.
Get the documents in the result .
def documents
        if acknowledged?
          replies.flat_map(&:documents)
        else
          []
        end
      end
def documents if acknowledged? replies . flat_map ( & :documents ) else [ ] end end
Get the documents in the result.
Get the documents in the result .
None
 Array<BSON::Document> 
example
Get the documents. result.documents
Get the documents . result . documents
since
None
api
None