arangosh> result = db.users.all().toArray(); [ { "_key" : "18368", "_id" : "users/18368", "_rev" : "_WgE9bVa--_", "name" : "Gerhard" }, { "_key" : "18375", "_id" : "users/18375", "_rev" : "_WgE9bVi--_", "name" : "Angela" }, { "_key" : "18372", "_id" : "users/18372", "_rev" : "_WgE9bVe--_", "name" : "Helmut" } ] arangosh> var q = db._query("FOR x IN users RETURN x"); ........> result = [ ]; ........> while (q.hasNext()) { ........> result.push(q.next()); ........> }