class Mongo::Operation::Count::Command

A MongoDB count operation sent as a command message.

@api private

@since 2.5.2

Private Instance Methods

message(connection) click to toggle source
# File lib/mongo/operation/count/command.rb, line 41
def message(connection)
  Protocol::Query.new(db_name, Database::COMMAND, command(connection), options(connection))
end
selector(connection) click to toggle source
# File lib/mongo/operation/count/command.rb, line 35
def selector(connection)
  selector = spec[:selector]
  selector = apply_collation(selector, connection, spec[:collation])
  selector
end