Releases: arangodb/arangojs
Releases · arangodb/arangojs
v4.1.0
Changes:
- GraphEdgeCollection now inherits from EdgeCollection, allowing easy access to EdgeCollection methods like
traverseandedges - Graph methods now only return the graph property of the server response instead of the full response body
- Graph method argument "dropCollection" now correctly defaults to
falsenotnull
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.vertexCollectionandgraph.edgeCollectionno longer make calls to the HTTP API and return Collection/Graph instances synchronously- Database, Collection and Graph instances now have a
getmethod to fetch metadata or check for existence db.createCollection,db.createEdgeCollectionanddb.createGraphhave been removed, instead you should call thecreatemethod of an existing Collection/Graph instancedb.createDatabaseno longer returns a new Database instance (only the server response)db.databasehas been removed, instead you should calluseDatabaseon an existing Database instance to change which database it representsdb.databaseshas been removed, instead you can usedb.listDatabasesanddb.listUserDatabasesto fetch metadata about the available databasesdb.truncateAllhas been removed, instead you should passfalsetodb.truncateto also truncate system collectionsdb.allCollectionshas been removed, instead you should passfalsetodb.collectionsto also return Collection instances for system collectionsdb.listCollectionscan 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.allto convert the Cursor instance to an array