class Mongo::Operation::Find::Command
A MongoDB find 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/find/command.rb, line 45 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/find/command.rb, line 36 def selector(connection) # The mappings are BSON::Documents and as such store keys as # strings, the spec here has symbol keys spec = BSON::Document.new(self.spec) { find: coll_name, }.update(Find::Builder::Command.selector(spec, connection)) end