class Mongo::Operation::WriteCommand::Command
A MongoDB write command operation sent as a command message.
@api private
Private Instance Methods
message(connection)
click to toggle source
# File lib/mongo/operation/write_command/command.rb, line 45 def message(connection) Protocol::Query.new(db_name, Database::COMMAND, command(connection), options(connection)) end
selector(connection)
click to toggle source
Calls superclass method
Mongo::Operation::Specifiable#selector
# File lib/mongo/operation/write_command/command.rb, line 34 def selector(connection) super.tap do |selector| if selector.key?(:findAndModify) validate_find_options(connection, selector) end if wc = spec[:write_concern] selector[:writeConcern] = wc.options end end end