Skip to content

Instantly share code, notes, and snippets.

View arangodb-arrayindex-test.js
console.log(db._version());
db._create('test');
db.test.save({ _key: "1", value: "foo" });
db.test.save({ _key: "2", value: [ "foo", "bar" ] });
function test(r) {
const query = r[0];
const expect = r[1];
const actual = db._query(query).toArray().sort().join(',');
You can’t perform that action at this time.