1
0
Fork 0
arangodb/Documentation/Books/Drivers/java-reference-database-col...

994 B

layout description
default These functions implement theHTTP API for accessing collections

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();