class Mongo::Operation::CreateIndex::Command

A MongoDB createindex 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/create_index/command.rb, line 36
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/create_index/command.rb, line 32
def selector(connection)
  { :createIndexes => coll_name, :indexes => indexes }
end