class Mongo::Operation::Find::OpMsg
A MongoDB find operation sent as an op message.
@api private
@since 2.5.2
Private Instance Methods
selector(connection)
click to toggle source
# File lib/mongo/operation/find/op_msg.rb, line 33 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, Protocol::Msg::DATABASE_IDENTIFIER => db_name, }.update(Find::Builder::Command.selector(spec, connection)) end