class Mongo::Operation::Explain::Command

A MongoDB explain command operation sent as a command message.

@api private

@since 2.0.0

Private Instance Methods

message(connection) click to toggle source
# File lib/mongo/operation/explain/command.rb, line 37
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/explain/command.rb, line 33
def selector(connection)
  super.merge(spec[:explain])
end