Method: Mongo::BulkWrite::ResultCombiner#count

Defined in:
lib/mongo/bulk_write/result_combiner.rb

#countInteger (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns count The number of documents in the entire batch.

Returns:

  • (Integer)

    count The number of documents in the entire batch.

Since:

  • 2.1.0



29
30
31
# File 'lib/mongo/bulk_write/result_combiner.rb', line 29

def count
  @count
end