Releases: arangodb/arangojs
Releases · arangodb/arangojs
v4.0.2
v4.0.1
v4.0.0
This is a major release that contains a lot of breaking API changes.
Changes:
- if a node-style callback is provided to an asynchronous function it will no longer also return a promise
db.collection
,db.edgeCollection
,db.graph
,graph.vertexCollection
andgraph.edgeCollection
no longer make calls to the HTTP API and return Collection/Graph instances synchronously- Database, Collection and Graph instances now have a
get
method to fetch metadata or check for existence db.createCollection
,db.createEdgeCollection
anddb.createGraph
have been removed, instead you should call thecreate
method of an existing Collection/Graph instancedb.createDatabase
no longer returns a new Database instance (only the server response)db.database
has been removed, instead you should calluseDatabase
on an existing Database instance to change which database it representsdb.databases
has been removed, instead you can usedb.listDatabases
anddb.listUserDatabases
to fetch metadata about the available databasesdb.truncateAll
has been removed, instead you should passfalse
todb.truncate
to also truncate system collectionsdb.allCollections
has been removed, instead you should passfalse
todb.collections
to also return Collection instances for system collectionsdb.listCollections
can be used to fetch metadata about the available collections without creating Collection instances- Collection methods for fetching metadata about the collection no longer alter the Collection instance
- Collection methods for performing geo queries have been removed as they have been deprecated since ArangoDB 2.6
- Collection methods for various missing simple queries have been added
- Cursor instances can no longer be rewound, if you need iterate over the cursor multiple times you need to use
cursor.all
to convert the Cursor instance to an array