The first alpha of the official JavaScript driver arangojs‘ upcoming major release is now available on npm.

Version 4 streamlines the driver’s API by removing unnecessary server roundtrips to obtain references to collections and graphs that already exist:

Before:

After:


Additionally support has been added for more simple queries, e.g. byExample:

And finally arangojs 4 will provide the aqlQuery template string handler that will also be available in ArangoDB 2.7, to allow you to write AQL queries more easily in ES2015 environments or when using Babel:

The arangojs 4 alpha is available on npm using the alpha dist-tag: