Method: Arango::DocumentCollection::ClassMethods#list_all
- Defined in:
- lib/arango/document_collection/class_methods.rb
#list_all(exclude_system: true, database: Arango.current_database) ⇒ Array<String>
Retrieves a list of all collections.
82 83 84 85 86 |
# File 'lib/arango/document_collection/class_methods.rb', line 82 def list_all (exclude_system: true, database: Arango.current_database) args = { excludeSystem: exclude_system } result = Arango::Requests::Collection::ListAll.execute(server: database.server, args: args) result.result.map { |c| c[:name] } end |