adapted to ArangoDB 1.4