123456789_123456789_123456789_123456789_123456789_

Module: Mongo::Operation::Limited Private

Do not use. This module is for internal use only.
Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: lib/mongo/operation/shared/limited.rb

Overview

Shared behavior of operations that require its documents to each have an id.

Since:

  • 2.5.2

Instance Method Summary

Instance Method Details

#options(connection) ⇒ Hash (private)

Get the options for executing the operation on a particular connection.

Parameters:

  • connection (Server::Connection)

    The connection that the operation will be executed on.

Returns:

  • (Hash)

    The options.

Since:

  • 2.0.0

[ GitHub ]

  
# File 'lib/mongo/operation/shared/limited.rb', line 37

def options(connection)
  super.merge(limit: -1)
end