Skip to content

v4.0.0

Choose a tag to compare

@pluma pluma released this 01 Dec 12:07
· 1570 commits to main since this release

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 and graph.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 and db.createGraph have been removed, instead you should call the create method of an existing Collection/Graph instance
  • db.createDatabase no longer returns a new Database instance (only the server response)
  • db.database has been removed, instead you should call useDatabase on an existing Database instance to change which database it represents
  • db.databases has been removed, instead you can use db.listDatabases and db.listUserDatabases to fetch metadata about the available databases
  • db.truncateAll has been removed, instead you should pass false to db.truncate to also truncate system collections
  • db.allCollections has been removed, instead you should pass false to db.collections to also return Collection instances for system collections
  • db.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