class Mongo::Operation::Distinct::OpMsg

A MongoDB distinct operation sent as an op message.

@api private

@since 2.5.2

Private Instance Methods

selector(connection) click to toggle source
# File lib/mongo/operation/distinct/op_msg.rb, line 32
def selector(connection)
  # Collation is always supported on 3.6+ servers that would use OP_MSG.
  spec[:selector].merge(
    collation: spec[:collation],
    comment: spec[:comment],
  ).compact
end