Method: Mongo::Database#collection_names
- Defined in:
- lib/mongo/database.rb
#collection_names(options = {}) ⇒ Array<String>
Note:
The set of returned collection names depends on the version of MongoDB server that fulfills the request.
Get all the names of the non-system collections in the database.
See https://mongodb.com/docs/manual/reference/command/listCollections/
for more information and usage.
143 144 145 |
# File 'lib/mongo/database.rb', line 143 def collection_names( = {}) View.new(self, ).collection_names() end |