Module: Mongo::Operation::OpMsgOrCommand Private

Includes:
PolymorphicLookup
Included in:
Aggregate, Command, Count, Create, CreateIndex, CreateUser, Distinct, Drop, DropDatabase, DropIndex, ListCollections, MapReduce, ParallelScan, RemoveUser, UpdateUser, UsersInfo
Defined in:
lib/mongo/operation/shared/op_msg_or_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 or as a Command 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.



25
26
27
28
# File 'lib/mongo/operation/shared/op_msg_or_command.rb', line 25

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