class Mongo::Operation::Update::OpMsg

A MongoDB update operation sent as an op message.

@api private

@since 2.5.2

Private Instance Methods

message(connection) click to toggle source
# File lib/mongo/operation/update/op_msg.rb, line 43
def message(connection)
  updates = validate_updates(connection, send(IDENTIFIER))
  section = Protocol::Msg::Section1.new(IDENTIFIER, updates)
  Protocol::Msg.new(flags, {}, command(connection), section)
end
selector(connection) click to toggle source
# File lib/mongo/operation/update/op_msg.rb, line 36
def selector(connection)
  {
    update: coll_name,
    ordered: ordered?,
  }
end