class Mongo::Operation::Aggregate::Command

A MongoDB aggregate 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/aggregate/command.rb, line 49
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/aggregate/command.rb, line 37
def selector(connection)
  super.tap do |selector|
    if selector[:collation] && !connection.features.collation_enabled?
      raise Error::UnsupportedCollation
    end
  end
end
write_concern_supported?(connection) click to toggle source
# File lib/mongo/operation/aggregate/command.rb, line 45
def write_concern_supported?(connection)
  connection.features.collation_enabled?
end