class Mongo::Operation::WriteCommand::OpMsg

A MongoDB write command operation sent as an op message.

@api private

Private Instance Methods

selector(connection) click to toggle source
Calls superclass method Mongo::Operation::Specifiable#selector
# File lib/mongo/operation/write_command/op_msg.rb, line 30
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