class Mongo::Operation::ListCollections::Command
A MongoDB listcollections operation sent as a command message.
@api private
@since 2.5.2
Private Instance Methods
Source
# File lib/mongo/operation/list_collections/command.rb, line 37 def message(connection) Protocol::Query.new(db_name, Database::COMMAND, command(connection), options(connection)) end
Source
# File lib/mongo/operation/list_collections/command.rb, line 33 def selector(connection) (spec[SELECTOR] || {}).merge(listCollections: 1) end