class Moped::Database
Public Instance Methods
collection_names()
click to toggle source
# File lib/patches/db_commands.rb, line 12 def collection_names namespaces = command(listCollections: 1, filter: { name: { "$not" => /system\.|\$/ } }) namespaces["cursor"]["firstBatch"].map do |doc| doc["name"] end end