v8.6.0
Added
-
Added
db.createJob
method to convert arbitrary requests into async jobs (DE-610)This method can be used to set the
x-arango-async: store
header on any
request, which will cause the server to store the request in an async job:const collectionsJob = await db.createJob(() => db.collections()); // once loaded, collectionsJob.result will be an array of Collection instances const numbersJob = await db.createJob(() => db.query(aql`FOR i IN 1..1000 RETURN i`) ); // once loaded, numbersJob.result will be an ArrayCursor of numbers