class Mongo::Operation::ListCollections::OpMsg

A MongoDB listcollections 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/list_collections/op_msg.rb, line 33
def selector(connection)
  (spec[SELECTOR] || {}).merge({
    listCollections: 1,
    comment: spec[:comment]
  }).compact
end