Accessing collections

These functions implement the HTTP API for accessing collections.

ArangoDatabase.collection

ArangoDatabase.collection(String name) : ArangoCollection

Returns a ArangoCollection instance for the given collection name.

Arguments

  • name: String

    Name of the collection

Examples

ArangoDB arango = new ArangoDB.Builder().build();
ArangoDatabase db = arango.db("myDB");
ArangoCollection collection = db.collection("myCollection");

ArangoDatabase.getCollections

ArangoDatabase.getCollections() : Collection<CollectionEntity>

Fetches all collections from the database and returns an list of collection descriptions.

Examples

ArangoDB arango = new ArangoDB.Builder().build();
ArangoDatabase db = arango.db("myDB");
Collection<CollectionEntity> infos = db.getCollections();