Module: Mongo::Operation::OpMsgOrFindCommand Private

Includes:
PolymorphicLookup
Included in:
Explain, Find, GetMore, KillCursors
Defined in:
lib/mongo/operation/shared/op_msg_or_find_command.rb

Overview

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

Shared behavior of executing the operation as an OpMsg when supported, as a Command when find command is supported by the server, and as Legacy otherwise.

Instance Method Summary collapse

Instance Method Details

#execute(server) ⇒ Object

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.



26
27
28
29
# File 'lib/mongo/operation/shared/op_msg_or_find_command.rb', line 26

def execute(server)
  operation = final_operation(server)
  operation.execute(server)
end