lib/mongo/operation/result.rb
# Get the number of documents written by the server.
#
# @example Get the number of documents written.
#   result.written_count
#
# @return [ Integer ] The number of documents written.
#
# @since 2.0.0
# @api public
Get the number of documents written by the server.
Get the number of documents written by the server .
def written_count
        if acknowledged?
          first_document[N] || 0
        else
          0
        end
      end
def written_count if acknowledged? first_document [ N ] || 0 else 0 end end
Get the number of documents written by the server.
Get the number of documents written by the server .
The number of documents written.
The number of documents written .
 Integer 
example
Get the number of documents written. result.written_count
Get the number of documents written . result . written_count
since
None
api
None