diff --git a/CHANGELOG b/CHANGELOG index cadcc7bd0a..e16b1f8aaa 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,8 @@ -v2.8.5 (2016-03-XX) +v2.8.5 (2016-03-11) ------------------- +* Add OpenSSL handler for TLS V1.2 as sugested by kurtkincaid in #1771 + * fixed issue #1765 (The webinterface should display the correct query time) and #1770 (Display ACTUAL query time in aardvark's AQL editor) diff --git a/Documentation/Examples/001_collectionAll.generated b/Documentation/Examples/001_collectionAll.generated index 1c0eb360eb..2a595e6af4 100644 --- a/Documentation/Examples/001_collectionAll.generated +++ b/Documentation/Examples/001_collectionAll.generated @@ -1,63 +1,63 @@ arangosh> db.five.save({ name : "one" }); { - "_id" : "five/21735854", - "_rev" : "21735854", - "_key" : "21735854" + "_id" : "five/18527793", + "_rev" : "18527793", + "_key" : "18527793" } arangosh> db.five.save({ name : "two" }); { - "_id" : "five/21932462", - "_rev" : "21932462", - "_key" : "21932462" + "_id" : "five/18724401", + "_rev" : "18724401", + "_key" : "18724401" } arangosh> db.five.save({ name : "three" }); { - "_id" : "five/22129070", - "_rev" : "22129070", - "_key" : "22129070" + "_id" : "five/18921009", + "_rev" : "18921009", + "_key" : "18921009" } arangosh> db.five.save({ name : "four" }); { - "_id" : "five/22325678", - "_rev" : "22325678", - "_key" : "22325678" + "_id" : "five/19117617", + "_rev" : "19117617", + "_key" : "19117617" } arangosh> db.five.save({ name : "five" }); { - "_id" : "five/22522286", - "_rev" : "22522286", - "_key" : "22522286" + "_id" : "five/19314225", + "_rev" : "19314225", + "_key" : "19314225" } arangosh> db.five.all().toArray(); [ { - "name" : "five", - "_id" : "five/22522286", - "_rev" : "22522286", - "_key" : "22522286" - }, - { - "name" : "one", - "_id" : "five/21735854", - "_rev" : "21735854", - "_key" : "21735854" - }, - { - "name" : "two", - "_id" : "five/21932462", - "_rev" : "21932462", - "_key" : "21932462" + "name" : "four", + "_id" : "five/19117617", + "_rev" : "19117617", + "_key" : "19117617" }, { "name" : "three", - "_id" : "five/22129070", - "_rev" : "22129070", - "_key" : "22129070" + "_id" : "five/18921009", + "_rev" : "18921009", + "_key" : "18921009" }, { - "name" : "four", - "_id" : "five/22325678", - "_rev" : "22325678", - "_key" : "22325678" + "name" : "one", + "_id" : "five/18527793", + "_rev" : "18527793", + "_key" : "18527793" + }, + { + "name" : "five", + "_id" : "five/19314225", + "_rev" : "19314225", + "_key" : "19314225" + }, + { + "name" : "two", + "_id" : "five/18724401", + "_rev" : "18724401", + "_key" : "18724401" } ] diff --git a/Documentation/Examples/002_collectionAllNext.generated b/Documentation/Examples/002_collectionAllNext.generated index ddbfc9b82f..8909f1f1b9 100644 --- a/Documentation/Examples/002_collectionAllNext.generated +++ b/Documentation/Examples/002_collectionAllNext.generated @@ -1,45 +1,45 @@ arangosh> db.five.save({ name : "one" }); { - "_id" : "five/23112110", - "_rev" : "23112110", - "_key" : "23112110" + "_id" : "five/19904049", + "_rev" : "19904049", + "_key" : "19904049" } arangosh> db.five.save({ name : "two" }); { - "_id" : "five/23308718", - "_rev" : "23308718", - "_key" : "23308718" + "_id" : "five/20100657", + "_rev" : "20100657", + "_key" : "20100657" } arangosh> db.five.save({ name : "three" }); { - "_id" : "five/23505326", - "_rev" : "23505326", - "_key" : "23505326" + "_id" : "five/20297265", + "_rev" : "20297265", + "_key" : "20297265" } arangosh> db.five.save({ name : "four" }); { - "_id" : "five/23701934", - "_rev" : "23701934", - "_key" : "23701934" + "_id" : "five/20493873", + "_rev" : "20493873", + "_key" : "20493873" } arangosh> db.five.save({ name : "five" }); { - "_id" : "five/23898542", - "_rev" : "23898542", - "_key" : "23898542" + "_id" : "five/20690481", + "_rev" : "20690481", + "_key" : "20690481" } arangosh> db.five.all().limit(2).toArray(); [ { - "name" : "four", - "_id" : "five/23701934", - "_rev" : "23701934", - "_key" : "23701934" + "name" : "one", + "_id" : "five/19904049", + "_rev" : "19904049", + "_key" : "19904049" }, { "name" : "three", - "_id" : "five/23505326", - "_rev" : "23505326", - "_key" : "23505326" + "_id" : "five/20297265", + "_rev" : "20297265", + "_key" : "20297265" } ] diff --git a/Documentation/Examples/003_collectionByExample.generated b/Documentation/Examples/003_collectionByExample.generated index 3b5efea47c..0757369070 100644 --- a/Documentation/Examples/003_collectionByExample.generated +++ b/Documentation/Examples/003_collectionByExample.generated @@ -1,40 +1,40 @@ arangosh> db.users.save({ name: "Gerhard" }); { - "_id" : "users/24488366", - "_rev" : "24488366", - "_key" : "24488366" + "_id" : "users/21280305", + "_rev" : "21280305", + "_key" : "21280305" } arangosh> db.users.save({ name: "Helmut" }); { - "_id" : "users/24750510", - "_rev" : "24750510", - "_key" : "24750510" + "_id" : "users/21542449", + "_rev" : "21542449", + "_key" : "21542449" } arangosh> db.users.save({ name: "Angela" }); { - "_id" : "users/24947118", - "_rev" : "24947118", - "_key" : "24947118" + "_id" : "users/21739057", + "_rev" : "21739057", + "_key" : "21739057" } arangosh> db.users.all().toArray(); [ { - "name" : "Helmut", - "_id" : "users/24750510", - "_rev" : "24750510", - "_key" : "24750510" + "name" : "Angela", + "_id" : "users/21739057", + "_rev" : "21739057", + "_key" : "21739057" }, { "name" : "Gerhard", - "_id" : "users/24488366", - "_rev" : "24488366", - "_key" : "24488366" + "_id" : "users/21280305", + "_rev" : "21280305", + "_key" : "21280305" }, { - "name" : "Angela", - "_id" : "users/24947118", - "_rev" : "24947118", - "_key" : "24947118" + "name" : "Helmut", + "_id" : "users/21542449", + "_rev" : "21542449", + "_key" : "21542449" } ] arangosh> db.users.byExample({ "_id" : "users/20" }).toArray(); @@ -42,9 +42,9 @@ arangosh> db.users.byExample({ "_id" : "name" : "Gerhard" }).toArray(); [ { - "_id" : "users/24488366", - "_key" : "24488366", - "_rev" : "24488366", + "_id" : "users/21280305", + "_key" : "21280305", + "_rev" : "21280305", "name" : "Gerhard" } ] diff --git a/Documentation/Examples/004_collectionByExampleNext.generated b/Documentation/Examples/004_collectionByExampleNext.generated index f91e118e5d..6df2f03da8 100644 --- a/Documentation/Examples/004_collectionByExampleNext.generated +++ b/Documentation/Examples/004_collectionByExampleNext.generated @@ -1,26 +1,26 @@ arangosh> db.users.save({ name: "Gerhard" }); { - "_id" : "users/26192302", - "_rev" : "26192302", - "_key" : "26192302" + "_id" : "users/22984241", + "_rev" : "22984241", + "_key" : "22984241" } arangosh> db.users.save({ name: "Helmut" }); { - "_id" : "users/26454446", - "_rev" : "26454446", - "_key" : "26454446" + "_id" : "users/23246385", + "_rev" : "23246385", + "_key" : "23246385" } arangosh> db.users.save({ name: "Angela" }); { - "_id" : "users/26651054", - "_rev" : "26651054", - "_key" : "26651054" + "_id" : "users/23442993", + "_rev" : "23442993", + "_key" : "23442993" } arangosh> var a = db.users.byExample( {"name" : "Angela" } ); arangosh> while (a.hasNext()) print(a.next()); { - "_id" : "users/26651054", - "_key" : "26651054", - "_rev" : "26651054", + "_id" : "users/23442993", + "_key" : "23442993", + "_rev" : "23442993", "name" : "Angela" } diff --git a/Documentation/Examples/005_collectionRange.generated b/Documentation/Examples/005_collectionRange.generated index 43cfc3ebd5..b0bbc833a6 100644 --- a/Documentation/Examples/005_collectionRange.generated +++ b/Documentation/Examples/005_collectionRange.generated @@ -1,6 +1,6 @@ arangosh> db.old.ensureIndex({ type: "skiplist", fields: [ "age" ] }); { - "id" : "old/27503022", + "id" : "old/24294961", "type" : "skiplist", "fields" : [ "age" @@ -12,34 +12,34 @@ arangosh> db.old.ensureIndex({ type: "skiplist"15 }); { - "_id" : "old/27765166", - "_rev" : "27765166", - "_key" : "27765166" + "_id" : "old/24557105", + "_rev" : "24557105", + "_key" : "24557105" } arangosh> db.old.save({ age: 25 }); { - "_id" : "old/27961774", - "_rev" : "27961774", - "_key" : "27961774" + "_id" : "old/24753713", + "_rev" : "24753713", + "_key" : "24753713" } arangosh> db.old.save({ age: 30 }); { - "_id" : "old/28158382", - "_rev" : "28158382", - "_key" : "28158382" + "_id" : "old/24950321", + "_rev" : "24950321", + "_key" : "24950321" } arangosh> db.old.range("age", 10, 30).toArray(); [ { - "_id" : "old/27765166", - "_key" : "27765166", - "_rev" : "27765166", + "_id" : "old/24557105", + "_key" : "24557105", + "_rev" : "24557105", "age" : 15 }, { - "_id" : "old/27961774", - "_key" : "27961774", - "_rev" : "27961774", + "_id" : "old/24753713", + "_key" : "24753713", + "_rev" : "24753713", "age" : 25 } ] diff --git a/Documentation/Examples/006_collectionClosedRange.generated b/Documentation/Examples/006_collectionClosedRange.generated index a34c99a580..774c47114b 100644 --- a/Documentation/Examples/006_collectionClosedRange.generated +++ b/Documentation/Examples/006_collectionClosedRange.generated @@ -1,6 +1,6 @@ arangosh> db.old.ensureIndex({ type: "skiplist", fields: [ "age" ] }); { - "id" : "old/28879278", + "id" : "old/25671217", "type" : "skiplist", "fields" : [ "age" @@ -12,40 +12,40 @@ arangosh> db.old.ensureIndex({ type: "skiplist"15 }); { - "_id" : "old/29141422", - "_rev" : "29141422", - "_key" : "29141422" + "_id" : "old/25933361", + "_rev" : "25933361", + "_key" : "25933361" } arangosh> db.old.save({ age: 25 }); { - "_id" : "old/29338030", - "_rev" : "29338030", - "_key" : "29338030" + "_id" : "old/26129969", + "_rev" : "26129969", + "_key" : "26129969" } arangosh> db.old.save({ age: 30 }); { - "_id" : "old/29534638", - "_rev" : "29534638", - "_key" : "29534638" + "_id" : "old/26326577", + "_rev" : "26326577", + "_key" : "26326577" } arangosh> db.old.closedRange("age", 10, 30).toArray(); [ { - "_id" : "old/29141422", - "_key" : "29141422", - "_rev" : "29141422", + "_id" : "old/25933361", + "_key" : "25933361", + "_rev" : "25933361", "age" : 15 }, { - "_id" : "old/29338030", - "_key" : "29338030", - "_rev" : "29338030", + "_id" : "old/26129969", + "_key" : "26129969", + "_rev" : "26129969", "age" : 25 }, { - "_id" : "old/29534638", - "_key" : "29534638", - "_rev" : "29534638", + "_id" : "old/26326577", + "_key" : "26326577", + "_rev" : "26326577", "age" : 30 } ] diff --git a/Documentation/Examples/007_collectionNear.generated b/Documentation/Examples/007_collectionNear.generated index 6f0f85da91..1cf06ede21 100644 --- a/Documentation/Examples/007_collectionNear.generated +++ b/Documentation/Examples/007_collectionNear.generated @@ -1,6 +1,6 @@ arangosh> db.geo.ensureIndex({ type: "geo", fields: [ "loc" ] }); { - "id" : "geo/30255534", + "id" : "geo/27047473", "type" : "geo1", "fields" : [ "loc" @@ -22,9 +22,9 @@ arangosh> for (v arangosh> db.geo.near(0, 0).limit(2).toArray(); [ { - "_id" : "geo/99658158", - "_key" : "99658158", - "_rev" : "99658158", + "_id" : "geo/96450097", + "_key" : "96450097", + "_rev" : "96450097", "name" : "Name/0/0", "loc" : [ 0, @@ -32,9 +32,9 @@ arangosh> db.geo.near(0, "_id" : "geo/92383662", - "_key" : "92383662", - "_rev" : "92383662", + "_id" : "geo/89175601", + "_key" : "89175601", + "_rev" : "89175601", "name" : "Name/-10/0", "loc" : [ -10, diff --git a/Documentation/Examples/008_collectionNearDistance.generated b/Documentation/Examples/008_collectionNearDistance.generated index 91aa22913f..e5872f40ff 100644 --- a/Documentation/Examples/008_collectionNearDistance.generated +++ b/Documentation/Examples/008_collectionNearDistance.generated @@ -1,6 +1,6 @@ arangosh> db.geo.ensureIndex({ type: "geo", fields: [ "loc" ] }); { - "id" : "geo/169388462", + "id" : "geo/166180401", "type" : "geo1", "fields" : [ "loc" @@ -22,9 +22,9 @@ arangosh> for (v arangosh> db.geo.near(0, 0).distance().limit(2).toArray(); [ { - "_id" : "geo/238791086", - "_key" : "238791086", - "_rev" : "238791086", + "_id" : "geo/235583025", + "_key" : "235583025", + "_rev" : "235583025", "name" : "Name/0/0", "loc" : [ 0, @@ -33,9 +33,9 @@ arangosh> db.geo.near(0, "distance" : 0 }, { - "_id" : "geo/231516590", - "_key" : "231516590", - "_rev" : "231516590", + "_id" : "geo/228308529", + "_key" : "228308529", + "_rev" : "228308529", "name" : "Name/-10/0", "loc" : [ -10, diff --git a/Documentation/Examples/009_collectionWithin.generated b/Documentation/Examples/009_collectionWithin.generated index 6ffbb82604..6ca85cca72 100644 --- a/Documentation/Examples/009_collectionWithin.generated +++ b/Documentation/Examples/009_collectionWithin.generated @@ -4,9 +4,9 @@ arangosh> for (v arangosh> db.geo.within(0, 0, 2000 * 1000).distance().toArray(); [ { - "_id" : "geo/377924014", - "_key" : "377924014", - "_rev" : "377924014", + "_id" : "geo/374715953", + "_key" : "374715953", + "_rev" : "374715953", "name" : "Name/0/0", "loc" : [ 0, @@ -15,9 +15,9 @@ arangosh> db.geo.within(0, "distance" : 0 }, { - "_id" : "geo/370649518", - "_key" : "370649518", - "_rev" : "370649518", + "_id" : "geo/367441457", + "_key" : "367441457", + "_rev" : "367441457", "name" : "Name/-10/0", "loc" : [ -10, @@ -26,9 +26,9 @@ arangosh> db.geo.within(0, "distance" : 1111949.2664455874 }, { - "_id" : "geo/378120622", - "_key" : "378120622", - "_rev" : "378120622", + "_id" : "geo/374912561", + "_key" : "374912561", + "_rev" : "374912561", "name" : "Name/0/10", "loc" : [ 0, @@ -37,9 +37,9 @@ arangosh> db.geo.within(0, "distance" : 1111949.2664455874 }, { - "_id" : "geo/385198510", - "_key" : "385198510", - "_rev" : "385198510", + "_id" : "geo/381990449", + "_key" : "381990449", + "_rev" : "381990449", "name" : "Name/10/0", "loc" : [ 10, @@ -48,9 +48,9 @@ arangosh> db.geo.within(0, "distance" : 1111949.2664455874 }, { - "_id" : "geo/377727406", - "_key" : "377727406", - "_rev" : "377727406", + "_id" : "geo/374519345", + "_key" : "374519345", + "_rev" : "374519345", "name" : "Name/0/-10", "loc" : [ 0, @@ -59,9 +59,9 @@ arangosh> db.geo.within(0, "distance" : 1111949.2664455874 }, { - "_id" : "geo/370846126", - "_key" : "370846126", - "_rev" : "370846126", + "_id" : "geo/367638065", + "_key" : "367638065", + "_rev" : "367638065", "name" : "Name/-10/10", "loc" : [ -10, @@ -70,9 +70,9 @@ arangosh> db.geo.within(0, "distance" : 1568520.5567985761 }, { - "_id" : "geo/385395118", - "_key" : "385395118", - "_rev" : "385395118", + "_id" : "geo/382187057", + "_key" : "382187057", + "_rev" : "382187057", "name" : "Name/10/10", "loc" : [ 10, @@ -81,9 +81,9 @@ arangosh> db.geo.within(0, "distance" : 1568520.5567985761 }, { - "_id" : "geo/370452910", - "_key" : "370452910", - "_rev" : "370452910", + "_id" : "geo/367244849", + "_key" : "367244849", + "_rev" : "367244849", "name" : "Name/-10/-10", "loc" : [ -10, @@ -92,9 +92,9 @@ arangosh> db.geo.within(0, "distance" : 1568520.5567985761 }, { - "_id" : "geo/385001902", - "_key" : "385001902", - "_rev" : "385001902", + "_id" : "geo/381793841", + "_key" : "381793841", + "_rev" : "381793841", "name" : "Name/10/-10", "loc" : [ 10, diff --git a/Documentation/Examples/011_documentsCollectionReplaceByExample.generated b/Documentation/Examples/011_documentsCollectionReplaceByExample.generated index 3ab6dd97eb..df91d38da9 100644 --- a/Documentation/Examples/011_documentsCollectionReplaceByExample.generated +++ b/Documentation/Examples/011_documentsCollectionReplaceByExample.generated @@ -1,8 +1,8 @@ arangosh> db.example.save({ Hello : "world" }); { - "_id" : "example/448571822", - "_rev" : "448571822", - "_key" : "448571822" + "_id" : "example/445363761", + "_rev" : "445363761", + "_key" : "445363761" } arangosh> db.example.replaceByExample({ Hello: "world" }, {Hello: "mars"}, false, 5); 1 diff --git a/Documentation/Examples/012_documentsCollectionUpdateByExample.generated b/Documentation/Examples/012_documentsCollectionUpdateByExample.generated index 2d7fa6fb0b..7b7861481e 100644 --- a/Documentation/Examples/012_documentsCollectionUpdateByExample.generated +++ b/Documentation/Examples/012_documentsCollectionUpdateByExample.generated @@ -1,17 +1,17 @@ arangosh> db.example.save({ Hello : "world", foo : "bar" }); { - "_id" : "example/449489326", - "_rev" : "449489326", - "_key" : "449489326" + "_id" : "example/446281265", + "_rev" : "446281265", + "_key" : "446281265" } arangosh> db.example.updateByExample({ Hello: "world" }, { Hello: "foo", World: "bar" }, false); 1 arangosh> db.example.byExample({ Hello: "foo" }).toArray() [ { - "_id" : "example/449489326", - "_key" : "449489326", - "_rev" : "449817006", + "_id" : "example/446281265", + "_key" : "446281265", + "_rev" : "446608945", "Hello" : "foo", "foo" : "bar", "World" : "bar" diff --git a/Documentation/Examples/01_workWithAQL_all.generated b/Documentation/Examples/01_workWithAQL_all.generated index 9ed376feff..1bafbd4372 100644 --- a/Documentation/Examples/01_workWithAQL_all.generated +++ b/Documentation/Examples/01_workWithAQL_all.generated @@ -1,9 +1,9 @@ arangosh> db._create("mycollection") -[ArangoCollection 450537902, "mycollection" (type document, status loaded)] +[ArangoCollection 447329841, "mycollection" (type document, status loaded)] arangosh> db.mycollection.save({ _key: "testKey", Hello : "World" }) { "_id" : "mycollection/testKey", - "_rev" : "450865582", + "_rev" : "447657521", "_key" : "testKey" } arangosh> db._query('FOR my IN mycollection RETURN my._key').toArray() diff --git a/Documentation/Examples/01_workWithColl_create.generated b/Documentation/Examples/01_workWithColl_create.generated index 39720ef97f..090e1a4782 100644 --- a/Documentation/Examples/01_workWithColl_create.generated +++ b/Documentation/Examples/01_workWithColl_create.generated @@ -1,2 +1,2 @@ arangosh> db._create("example"); -[ArangoCollection 451062190, "example" (type document, status loaded)] +[ArangoCollection 447854129, "example" (type document, status loaded)] diff --git a/Documentation/Examples/02_workWithAQL_aqlCollectionQuery.generated b/Documentation/Examples/02_workWithAQL_aqlCollectionQuery.generated index da7b80ff09..ef428208fc 100644 --- a/Documentation/Examples/02_workWithAQL_aqlCollectionQuery.generated +++ b/Documentation/Examples/02_workWithAQL_aqlCollectionQuery.generated @@ -5,7 +5,7 @@ arangosh> db._query(aqlQuery`FOR doc IN "Hello" : "World", "_id" : "mycollection/testKey", - "_rev" : "450865582", + "_rev" : "447657521", "_key" : "testKey" } ] diff --git a/Documentation/Examples/02_workWithColl_unload.generated b/Documentation/Examples/02_workWithColl_unload.generated index fa90e3fc2f..eb744a1bfa 100644 --- a/Documentation/Examples/02_workWithColl_unload.generated +++ b/Documentation/Examples/02_workWithColl_unload.generated @@ -1,3 +1,3 @@ arangosh> db.example.unload(); arangosh> db.example; -[ArangoCollection 451062190, "example" (type document, status unloaded)] +[ArangoCollection 447854129, "example" (type document, status unloaded)] diff --git a/Documentation/Examples/03_workWithAQL_getExtra.generated b/Documentation/Examples/03_workWithAQL_getExtra.generated index b297a02b1c..20587848e5 100644 --- a/Documentation/Examples/03_workWithAQL_getExtra.generated +++ b/Documentation/Examples/03_workWithAQL_getExtra.generated @@ -8,7 +8,8 @@ arangosh> db._query(`FOR i IN 1..100 "writesIgnored" : 0, "scannedFull" : 0, "scannedIndex" : 0, - "filtered" : 0 + "filtered" : 0, + "executionTime" : 0.0006959438323974609 }, "warnings" : [ ] } diff --git a/Documentation/Examples/03_workWithColl_save.generated b/Documentation/Examples/03_workWithColl_save.generated index 00f7b02931..d2e0261829 100644 --- a/Documentation/Examples/03_workWithColl_save.generated +++ b/Documentation/Examples/03_workWithColl_save.generated @@ -1,18 +1,18 @@ arangosh> db.example.save({ Hello : "World" }); { - "_id" : "example/464955822", - "_rev" : "464955822", - "_key" : "464955822" + "_id" : "example/461747761", + "_rev" : "461747761", + "_key" : "461747761" } arangosh> db.example.save({ "name" : "John Doe", "age" : 29 }); { - "_id" : "example/465349038", - "_rev" : "465349038", - "_key" : "465349038" + "_id" : "example/462140977", + "_rev" : "462140977", + "_key" : "462140977" } arangosh> db.example.save({ "name" : "Jane Smith", "age" : 31 }); { - "_id" : "example/465545646", - "_rev" : "465545646", - "_key" : "465545646" + "_id" : "example/462337585", + "_rev" : "462337585", + "_key" : "462337585" } diff --git a/Documentation/Examples/04_workWithColl_directAcess.generated b/Documentation/Examples/04_workWithColl_directAcess.generated index 428040713a..9ddd64a5e7 100644 --- a/Documentation/Examples/04_workWithColl_directAcess.generated +++ b/Documentation/Examples/04_workWithColl_directAcess.generated @@ -1,23 +1,23 @@ arangosh> db.example.toArray() [ - { - "age" : 29, - "name" : "John Doe", - "_id" : "example/465349038", - "_rev" : "465349038", - "_key" : "465349038" - }, { "age" : 31, "name" : "Jane Smith", - "_id" : "example/465545646", - "_rev" : "465545646", - "_key" : "465545646" + "_id" : "example/462337585", + "_rev" : "462337585", + "_key" : "462337585" + }, + { + "age" : 29, + "name" : "John Doe", + "_id" : "example/462140977", + "_rev" : "462140977", + "_key" : "462140977" }, { "Hello" : "World", - "_id" : "example/464955822", - "_rev" : "464955822", - "_key" : "464955822" + "_id" : "example/461747761", + "_rev" : "461747761", + "_key" : "461747761" } ] diff --git a/Documentation/Examples/05_workWithColl_AQL_STR.generated b/Documentation/Examples/05_workWithColl_AQL_STR.generated index 8b23067dcf..696cc7046b 100644 --- a/Documentation/Examples/05_workWithColl_AQL_STR.generated +++ b/Documentation/Examples/05_workWithColl_AQL_STR.generated @@ -3,8 +3,8 @@ arangosh> db._query('FOR user IN example FILTER use { "age" : 31, "name" : "Jane Smith", - "_id" : "example/465545646", - "_rev" : "465545646", - "_key" : "465545646" + "_id" : "example/462337585", + "_rev" : "462337585", + "_key" : "462337585" } ] diff --git a/Documentation/Examples/05_workWithColl_byExample.generated b/Documentation/Examples/05_workWithColl_byExample.generated index e8b25ec79c..5ec45800b3 100644 --- a/Documentation/Examples/05_workWithColl_byExample.generated +++ b/Documentation/Examples/05_workWithColl_byExample.generated @@ -1,9 +1,9 @@ arangosh> db.example.byExample({ name: "Jane Smith" }).toArray() [ { - "_id" : "example/465545646", - "_key" : "465545646", - "_rev" : "465545646", + "_id" : "example/462337585", + "_key" : "462337585", + "_rev" : "462337585", "age" : 31, "name" : "Jane Smith" } diff --git a/Documentation/Examples/06_workWithAQL_statementsExtra.generated b/Documentation/Examples/06_workWithAQL_statementsExtra.generated index b5117017e3..8da8fc2322 100644 --- a/Documentation/Examples/06_workWithAQL_statementsExtra.generated +++ b/Documentation/Examples/06_workWithAQL_statementsExtra.generated @@ -12,7 +12,8 @@ arangosh> db._query(` "writesIgnored" : 0, "scannedFull" : 0, "scannedIndex" : 0, - "filtered" : 0 + "filtered" : 0, + "executionTime" : 0.0010209083557128906 }, "warnings" : [ ] } @@ -29,7 +30,8 @@ arangosh> db._query({ "writesIgnored" : 0, "scannedFull" : 0, "scannedIndex" : 0, - "filtered" : 0 + "filtered" : 0, + "executionTime" : 0.002073049545288086 }, "warnings" : [ ] } diff --git a/Documentation/Examples/06_workWithColl_AOQL_INT.generated b/Documentation/Examples/06_workWithColl_AOQL_INT.generated index 4753bd5d68..69f66dfdf3 100644 --- a/Documentation/Examples/06_workWithColl_AOQL_INT.generated +++ b/Documentation/Examples/06_workWithColl_AOQL_INT.generated @@ -3,8 +3,8 @@ arangosh> db._query('FOR user IN example FILTER use { "age" : 31, "name" : "Jane Smith", - "_id" : "example/465545646", - "_rev" : "465545646", - "_key" : "465545646" + "_id" : "example/462337585", + "_rev" : "462337585", + "_key" : "462337585" } ] diff --git a/Documentation/Examples/07_workWithColl_remove.generated b/Documentation/Examples/07_workWithColl_remove.generated index 9b0f9539e2..4530bc2f73 100644 --- a/Documentation/Examples/07_workWithColl_remove.generated +++ b/Documentation/Examples/07_workWithColl_remove.generated @@ -5,14 +5,14 @@ arangosh> db.example.toArray() { "age" : 31, "name" : "Jane Smith", - "_id" : "example/465545646", - "_rev" : "465545646", - "_key" : "465545646" + "_id" : "example/462337585", + "_rev" : "462337585", + "_key" : "462337585" }, { "Hello" : "World", - "_id" : "example/464955822", - "_rev" : "464955822", - "_key" : "464955822" + "_id" : "example/461747761", + "_rev" : "461747761", + "_key" : "461747761" } ] diff --git a/Documentation/Examples/09_workWithAQL_statementsPlansBind.generated b/Documentation/Examples/09_workWithAQL_statementsPlansBind.generated index f0a5eb48a9..c8cd46022f 100644 --- a/Documentation/Examples/09_workWithAQL_statementsPlansBind.generated +++ b/Documentation/Examples/09_workWithAQL_statementsPlansBind.generated @@ -30,7 +30,7 @@ arangosh> stmt.explain(); "indexes" : [ { "type" : "hash", - "id" : "567726", + "id" : "570929", "unique" : true, "sparse" : true, "selectivityEstimate" : 1, diff --git a/Documentation/Examples/AQLEXP_01_axplainer.generated b/Documentation/Examples/AQLEXP_01_axplainer.generated index 76f89f3928..d9fded29fb 100644 --- a/Documentation/Examples/AQLEXP_01_axplainer.generated +++ b/Documentation/Examples/AQLEXP_01_axplainer.generated @@ -1,9 +1,9 @@ arangosh> db._create("test"); -[ArangoCollection 494709166, "test" (type document, status loaded)] +[ArangoCollection 491501105, "test" (type document, status loaded)] arangosh> for (i = 0; i < 100; ++i) { db.test.save({ value: i }); } arangosh> db.test.ensureIndex({ type: "skiplist", fields: [ "value" ] }); { - "id" : "test/514697646", + "id" : "test/511489585", "type" : "skiplist", "fields" : [ "value" diff --git a/Documentation/Examples/AQLEXP_01_explainCreate.generated b/Documentation/Examples/AQLEXP_01_explainCreate.generated index da8fd5f3f7..833be677bb 100644 --- a/Documentation/Examples/AQLEXP_01_explainCreate.generated +++ b/Documentation/Examples/AQLEXP_01_explainCreate.generated @@ -28,7 +28,7 @@ arangosh> stmt.explain(); "indexes" : [ { "type" : "skiplist", - "id" : "514697646", + "id" : "511489585", "unique" : false, "sparse" : false, "fields" : [ diff --git a/Documentation/Examples/AQLEXP_05_explainAllPlans.generated b/Documentation/Examples/AQLEXP_05_explainAllPlans.generated index 4967ed0b80..d1ee22b80a 100644 --- a/Documentation/Examples/AQLEXP_05_explainAllPlans.generated +++ b/Documentation/Examples/AQLEXP_05_explainAllPlans.generated @@ -27,7 +27,7 @@ arangosh> stmt.explain({ allPlans: true }); "indexes" : [ { "type" : "skiplist", - "id" : "514697646", + "id" : "511489585", "unique" : false, "sparse" : false, "fields" : [ diff --git a/Documentation/Examples/AQLEXP_08_explainDisableSingleRulePlans.generated b/Documentation/Examples/AQLEXP_08_explainDisableSingleRulePlans.generated index 97703fce46..c63a162175 100644 --- a/Documentation/Examples/AQLEXP_08_explainDisableSingleRulePlans.generated +++ b/Documentation/Examples/AQLEXP_08_explainDisableSingleRulePlans.generated @@ -26,7 +26,7 @@ arangosh> stmt.explain({ optimizer: { rules: [ "-us "indexes" : [ { "type" : "skiplist", - "id" : "514697646", + "id" : "511489585", "unique" : false, "sparse" : false, "fields" : [ diff --git a/Documentation/Examples/COMBINING_GRAPH_01_create_graph.generated b/Documentation/Examples/COMBINING_GRAPH_01_create_graph.generated index de56f95621..0533519ede 100644 --- a/Documentation/Examples/COMBINING_GRAPH_01_create_graph.generated +++ b/Documentation/Examples/COMBINING_GRAPH_01_create_graph.generated @@ -15,7 +15,7 @@ arangosh> db._query(`FOR startCity IN 6.9528 ], "_id" : "germanCity/Cologne", - "_rev" : "517843374", + "_rev" : "514635313", "_key" : "Cologne" }, { @@ -26,7 +26,7 @@ arangosh> db._query(`FOR startCity IN 10.0014 ], "_id" : "germanCity/Hamburg", - "_rev" : "518039982", + "_rev" : "514831921", "_key" : "Hamburg" } ] diff --git a/Documentation/Examples/COMBINING_GRAPH_02_combine.generated b/Documentation/Examples/COMBINING_GRAPH_02_combine.generated index 16450ef767..4e28de0836 100644 --- a/Documentation/Examples/COMBINING_GRAPH_02_combine.generated +++ b/Documentation/Examples/COMBINING_GRAPH_02_combine.generated @@ -19,7 +19,7 @@ arangosh> db._query(`FOR startCity IN 4.84 ], "_id" : "frenchCity/Lyon", - "_rev" : "518564270", + "_rev" : "515356209", "_key" : "Lyon" } }, @@ -33,7 +33,7 @@ arangosh> db._query(`FOR startCity IN 2.3508 ], "_id" : "frenchCity/Paris", - "_rev" : "518760878", + "_rev" : "515552817", "_key" : "Paris" } }, @@ -47,7 +47,7 @@ arangosh> db._query(`FOR startCity IN 6.9528 ], "_id" : "germanCity/Cologne", - "_rev" : "517843374", + "_rev" : "514635313", "_key" : "Cologne" } }, @@ -61,7 +61,7 @@ arangosh> db._query(`FOR startCity IN 2.3508 ], "_id" : "frenchCity/Paris", - "_rev" : "518760878", + "_rev" : "515552817", "_key" : "Paris" } }, @@ -75,7 +75,7 @@ arangosh> db._query(`FOR startCity IN 4.84 ], "_id" : "frenchCity/Lyon", - "_rev" : "518564270", + "_rev" : "515356209", "_key" : "Lyon" } } diff --git a/Documentation/Examples/COMBINING_GRAPH_03_combine_let.generated b/Documentation/Examples/COMBINING_GRAPH_03_combine_let.generated index 45b5b4943d..ef802e17c1 100644 --- a/Documentation/Examples/COMBINING_GRAPH_03_combine_let.generated +++ b/Documentation/Examples/COMBINING_GRAPH_03_combine_let.generated @@ -20,7 +20,7 @@ arangosh> db._query(`FOR startCity IN 4.84 ], "_id" : "frenchCity/Lyon", - "_rev" : "518564270", + "_rev" : "515356209", "_key" : "Lyon" }, { @@ -31,7 +31,7 @@ arangosh> db._query(`FOR startCity IN 2.3508 ], "_id" : "frenchCity/Paris", - "_rev" : "518760878", + "_rev" : "515552817", "_key" : "Paris" } ] @@ -47,7 +47,7 @@ arangosh> db._query(`FOR startCity IN 6.9528 ], "_id" : "germanCity/Cologne", - "_rev" : "517843374", + "_rev" : "514635313", "_key" : "Cologne" }, { @@ -58,7 +58,7 @@ arangosh> db._query(`FOR startCity IN 2.3508 ], "_id" : "frenchCity/Paris", - "_rev" : "518760878", + "_rev" : "515552817", "_key" : "Paris" }, { @@ -69,7 +69,7 @@ arangosh> db._query(`FOR startCity IN 4.84 ], "_id" : "frenchCity/Lyon", - "_rev" : "518564270", + "_rev" : "515356209", "_key" : "Lyon" } ] diff --git a/Documentation/Examples/CollectionUnload.generated b/Documentation/Examples/CollectionUnload.generated index 8e3a7b6419..c1d907f091 100644 --- a/Documentation/Examples/CollectionUnload.generated +++ b/Documentation/Examples/CollectionUnload.generated @@ -1,5 +1,5 @@ arangosh> col = db.example; -[ArangoCollection 522955182, "example" (type document, status loaded)] +[ArangoCollection 519747121, "example" (type document, status loaded)] arangosh> col.unload(); arangosh> col; -[ArangoCollection 522955182, "example" (type document, status unloaded)] +[ArangoCollection 519747121, "example" (type document, status unloaded)] diff --git a/Documentation/Examples/EDGCOL_01_SaveEdgeCol.generated b/Documentation/Examples/EDGCOL_01_SaveEdgeCol.generated index ae440b4617..7d194a845f 100644 --- a/Documentation/Examples/EDGCOL_01_SaveEdgeCol.generated +++ b/Documentation/Examples/EDGCOL_01_SaveEdgeCol.generated @@ -1,31 +1,31 @@ arangosh> db._create("vertex"); -[ArangoCollection 523151790, "vertex" (type document, status loaded)] +[ArangoCollection 519943729, "vertex" (type document, status loaded)] arangosh> db._createEdgeCollection("relation"); -[ArangoCollection 523282862, "relation" (type edge, status loaded)] +[ArangoCollection 520074801, "relation" (type edge, status loaded)] arangosh> v1 = db.vertex.insert({ name : "vertex 1" }); { - "_id" : "vertex/523610542", - "_rev" : "523610542", - "_key" : "523610542" + "_id" : "vertex/520402481", + "_rev" : "520402481", + "_key" : "520402481" } arangosh> v2 = db.vertex.insert({ name : "vertex 2" }); { - "_id" : "vertex/523807150", - "_rev" : "523807150", - "_key" : "523807150" + "_id" : "vertex/520599089", + "_rev" : "520599089", + "_key" : "520599089" } arangosh> e1 = db.relation.insert(v1, v2, { label : "knows" }); { - "_id" : "relation/524134830", - "_rev" : "524134830", - "_key" : "524134830" + "_id" : "relation/520926769", + "_rev" : "520926769", + "_key" : "520926769" } arangosh> db._document(e1); { "label" : "knows", - "_id" : "relation/524134830", - "_rev" : "524134830", - "_key" : "524134830", - "_from" : "vertex/523610542", - "_to" : "vertex/523807150" + "_id" : "relation/520926769", + "_rev" : "520926769", + "_key" : "520926769", + "_from" : "vertex/520402481", + "_to" : "vertex/520599089" } diff --git a/Documentation/Examples/EDGCOL_02_Relation.generated b/Documentation/Examples/EDGCOL_02_Relation.generated index a6fd4797ee..ad4576df46 100644 --- a/Documentation/Examples/EDGCOL_02_Relation.generated +++ b/Documentation/Examples/EDGCOL_02_Relation.generated @@ -1,33 +1,33 @@ arangosh> db._create("vertex"); -[ArangoCollection 524462510, "vertex" (type document, status loaded)] +[ArangoCollection 521254449, "vertex" (type document, status loaded)] arangosh> db._createEdgeCollection("relation"); -[ArangoCollection 524593582, "relation" (type edge, status loaded)] +[ArangoCollection 521385521, "relation" (type edge, status loaded)] arangosh> myGraph.v1 = db.vertex.insert({ name : "vertex 1" }); { - "_id" : "vertex/524921262", - "_rev" : "524921262", - "_key" : "524921262" + "_id" : "vertex/521713201", + "_rev" : "521713201", + "_key" : "521713201" } arangosh> myGraph.v2 = db.vertex.insert({ name : "vertex 2" }); { - "_id" : "vertex/525117870", - "_rev" : "525117870", - "_key" : "525117870" + "_id" : "vertex/521909809", + "_rev" : "521909809", + "_key" : "521909809" } arangosh> myGraph.e1 = db.relation.insert(myGraph.v1, myGraph.v2, { label : "knows" }); { - "_id" : "relation/525445550", - "_rev" : "525445550", - "_key" : "525445550" + "_id" : "relation/522237489", + "_rev" : "522237489", + "_key" : "522237489" } arangosh> db._document(myGraph.e1); { "label" : "knows", - "_id" : "relation/525445550", - "_rev" : "525445550", - "_key" : "525445550", - "_from" : "vertex/524921262", - "_to" : "vertex/525117870" + "_id" : "relation/522237489", + "_rev" : "522237489", + "_key" : "522237489", + "_from" : "vertex/521713201", + "_to" : "vertex/521909809" } arangosh> db.relation.edges(myGraph.e1._id); [ ] diff --git a/Documentation/Examples/EDGCOL_02_inEdges.generated b/Documentation/Examples/EDGCOL_02_inEdges.generated index 86f94b4abe..02b4cdb187 100644 --- a/Documentation/Examples/EDGCOL_02_inEdges.generated +++ b/Documentation/Examples/EDGCOL_02_inEdges.generated @@ -1,33 +1,33 @@ arangosh> db._create("vertex"); -[ArangoCollection 525838766, "vertex" (type document, status loaded)] +[ArangoCollection 522630705, "vertex" (type document, status loaded)] arangosh> db._createEdgeCollection("relation"); -[ArangoCollection 525969838, "relation" (type edge, status loaded)] +[ArangoCollection 522761777, "relation" (type edge, status loaded)] arangosh> myGraph.v1 = db.vertex.insert({ name : "vertex 1" }); { - "_id" : "vertex/526297518", - "_rev" : "526297518", - "_key" : "526297518" + "_id" : "vertex/523089457", + "_rev" : "523089457", + "_key" : "523089457" } arangosh> myGraph.v2 = db.vertex.insert({ name : "vertex 2" }); { - "_id" : "vertex/526494126", - "_rev" : "526494126", - "_key" : "526494126" + "_id" : "vertex/523286065", + "_rev" : "523286065", + "_key" : "523286065" } arangosh> myGraph.e1 = db.relation.insert(myGraph.v1, myGraph.v2, { label : "knows" }); { - "_id" : "relation/526821806", - "_rev" : "526821806", - "_key" : "526821806" + "_id" : "relation/523613745", + "_rev" : "523613745", + "_key" : "523613745" } arangosh> db._document(myGraph.e1); { "label" : "knows", - "_id" : "relation/526821806", - "_rev" : "526821806", - "_key" : "526821806", - "_from" : "vertex/526297518", - "_to" : "vertex/526494126" + "_id" : "relation/523613745", + "_rev" : "523613745", + "_key" : "523613745", + "_from" : "vertex/523089457", + "_to" : "vertex/523286065" } arangosh> db.relation.inEdges(myGraph.v1._id); [ ] @@ -35,10 +35,10 @@ arangosh> db.relation.inEdges(myGraph.v2._id); [ { "label" : "knows", - "_id" : "relation/526821806", - "_rev" : "526821806", - "_key" : "526821806", - "_from" : "vertex/526297518", - "_to" : "vertex/526494126" + "_id" : "relation/523613745", + "_rev" : "523613745", + "_key" : "523613745", + "_from" : "vertex/523089457", + "_to" : "vertex/523286065" } ] diff --git a/Documentation/Examples/EDGCOL_02_outEdges.generated b/Documentation/Examples/EDGCOL_02_outEdges.generated index a004f28cc6..e3cdae913e 100644 --- a/Documentation/Examples/EDGCOL_02_outEdges.generated +++ b/Documentation/Examples/EDGCOL_02_outEdges.generated @@ -1,43 +1,43 @@ arangosh> db._create("vertex"); -[ArangoCollection 527280558, "vertex" (type document, status loaded)] +[ArangoCollection 524072497, "vertex" (type document, status loaded)] arangosh> db._createEdgeCollection("relation"); -[ArangoCollection 527411630, "relation" (type edge, status loaded)] +[ArangoCollection 524203569, "relation" (type edge, status loaded)] arangosh> myGraph.v1 = db.vertex.insert({ name : "vertex 1" }); { - "_id" : "vertex/527739310", - "_rev" : "527739310", - "_key" : "527739310" + "_id" : "vertex/524531249", + "_rev" : "524531249", + "_key" : "524531249" } arangosh> myGraph.v2 = db.vertex.insert({ name : "vertex 2" }); { - "_id" : "vertex/527935918", - "_rev" : "527935918", - "_key" : "527935918" + "_id" : "vertex/524727857", + "_rev" : "524727857", + "_key" : "524727857" } arangosh> myGraph.e1 = db.relation.insert(myGraph.v1, myGraph.v2, { label : "knows" }); { - "_id" : "relation/528263598", - "_rev" : "528263598", - "_key" : "528263598" + "_id" : "relation/525055537", + "_rev" : "525055537", + "_key" : "525055537" } arangosh> db._document(myGraph.e1); { "label" : "knows", - "_id" : "relation/528263598", - "_rev" : "528263598", - "_key" : "528263598", - "_from" : "vertex/527739310", - "_to" : "vertex/527935918" + "_id" : "relation/525055537", + "_rev" : "525055537", + "_key" : "525055537", + "_from" : "vertex/524531249", + "_to" : "vertex/524727857" } arangosh> db.relation.outEdges(myGraph.v1._id); [ { "label" : "knows", - "_id" : "relation/528263598", - "_rev" : "528263598", - "_key" : "528263598", - "_from" : "vertex/527739310", - "_to" : "vertex/527935918" + "_id" : "relation/525055537", + "_rev" : "525055537", + "_key" : "525055537", + "_from" : "vertex/524531249", + "_to" : "vertex/524727857" } ] arangosh> db.relation.outEdges(myGraph.v2._id); diff --git a/Documentation/Examples/GRAPHTRAV_01_create_graph.generated b/Documentation/Examples/GRAPHTRAV_01_create_graph.generated index 72b183bd68..64a4ae2dcf 100644 --- a/Documentation/Examples/GRAPHTRAV_01_create_graph.generated +++ b/Documentation/Examples/GRAPHTRAV_01_create_graph.generated @@ -5,159 +5,149 @@ arangosh> db.circles.toArray(); { "label" : "5", "_id" : "circles/E", - "_rev" : "530622894", + "_rev" : "527414833", "_key" : "E" }, { "label" : "6", "_id" : "circles/F", - "_rev" : "530819502", + "_rev" : "527611441", "_key" : "F" }, { "label" : "3", "_id" : "circles/C", - "_rev" : "530229678", + "_rev" : "527021617", "_key" : "C" }, { "label" : "11", "_id" : "circles/K", - "_rev" : "531802542", + "_rev" : "528594481", "_key" : "K" }, { "label" : "4", "_id" : "circles/D", - "_rev" : "530426286", + "_rev" : "527218225", "_key" : "D" }, { "label" : "9", "_id" : "circles/I", - "_rev" : "531409326", + "_rev" : "528201265", "_key" : "I" }, { "label" : "1", "_id" : "circles/A", - "_rev" : "529836462", + "_rev" : "526628401", "_key" : "A" }, { "label" : "2", "_id" : "circles/B", - "_rev" : "530033070", + "_rev" : "526825009", "_key" : "B" }, { "label" : "10", "_id" : "circles/J", - "_rev" : "531605934", + "_rev" : "528397873", "_key" : "J" }, { "label" : "7", "_id" : "circles/G", - "_rev" : "531016110", + "_rev" : "527808049", "_key" : "G" }, { "label" : "8", "_id" : "circles/H", - "_rev" : "531212718", + "_rev" : "528004657", "_key" : "H" } ] arangosh> db.edges.toArray(); [ - { - "theFalse" : false, - "theTruth" : true, - "label" : "right_blub", - "_id" : "edges/533637550", - "_rev" : "533637550", - "_key" : "533637550", - "_from" : "circles/H", - "_to" : "circles/I" - }, - { - "theFalse" : false, - "theTruth" : true, - "label" : "left_blarg", - "_id" : "edges/532457902", - "_rev" : "532457902", - "_key" : "532457902", - "_from" : "circles/B", - "_to" : "circles/C" - }, - { - "theFalse" : false, - "theTruth" : true, - "label" : "left_schubi", - "_id" : "edges/533047726", - "_rev" : "533047726", - "_key" : "533047726", - "_from" : "circles/E", - "_to" : "circles/F" - }, - { - "theFalse" : false, - "theTruth" : true, - "label" : "right_zip", - "_id" : "edges/533834158", - "_rev" : "533834158", - "_key" : "533834158", - "_from" : "circles/G", - "_to" : "circles/J" - }, - { - "theFalse" : false, - "theTruth" : true, - "label" : "left_blub", - "_id" : "edges/532851118", - "_rev" : "532851118", - "_key" : "532851118", - "_from" : "circles/B", - "_to" : "circles/E" - }, - { - "theFalse" : false, - "theTruth" : true, - "label" : "left_blorg", - "_id" : "edges/532654510", - "_rev" : "532654510", - "_key" : "532654510", - "_from" : "circles/C", - "_to" : "circles/D" - }, { "theFalse" : false, "theTruth" : true, "label" : "right_foo", - "_id" : "edges/533244334", - "_rev" : "533244334", - "_key" : "533244334", + "_id" : "edges/530036273", + "_rev" : "530036273", + "_key" : "530036273", "_from" : "circles/A", "_to" : "circles/G" }, + { + "theFalse" : false, + "theTruth" : true, + "label" : "left_blorg", + "_id" : "edges/529446449", + "_rev" : "529446449", + "_key" : "529446449", + "_from" : "circles/C", + "_to" : "circles/D" + }, { "theFalse" : false, "theTruth" : true, "label" : "right_zup", - "_id" : "edges/534030766", - "_rev" : "534030766", - "_key" : "534030766", + "_id" : "edges/530822705", + "_rev" : "530822705", + "_key" : "530822705", "_from" : "circles/J", "_to" : "circles/K" }, + { + "theFalse" : false, + "theTruth" : true, + "label" : "left_blarg", + "_id" : "edges/529249841", + "_rev" : "529249841", + "_key" : "529249841", + "_from" : "circles/B", + "_to" : "circles/C" + }, + { + "theFalse" : false, + "theTruth" : true, + "label" : "right_blub", + "_id" : "edges/530429489", + "_rev" : "530429489", + "_key" : "530429489", + "_from" : "circles/H", + "_to" : "circles/I" + }, + { + "theFalse" : false, + "theTruth" : true, + "label" : "left_blub", + "_id" : "edges/529643057", + "_rev" : "529643057", + "_key" : "529643057", + "_from" : "circles/B", + "_to" : "circles/E" + }, + { + "theFalse" : false, + "theTruth" : true, + "label" : "right_zip", + "_id" : "edges/530626097", + "_rev" : "530626097", + "_key" : "530626097", + "_from" : "circles/G", + "_to" : "circles/J" + }, { "theFalse" : false, "theTruth" : true, "label" : "right_blob", - "_id" : "edges/533440942", - "_rev" : "533440942", - "_key" : "533440942", + "_id" : "edges/530232881", + "_rev" : "530232881", + "_key" : "530232881", "_from" : "circles/G", "_to" : "circles/H" }, @@ -165,10 +155,20 @@ arangosh> db.edges.toArray(); "theFalse" : false, "theTruth" : true, "label" : "left_bar", - "_id" : "edges/532261294", - "_rev" : "532261294", - "_key" : "532261294", + "_id" : "edges/529053233", + "_rev" : "529053233", + "_key" : "529053233", "_from" : "circles/A", "_to" : "circles/B" + }, + { + "theFalse" : false, + "theTruth" : true, + "label" : "left_schubi", + "_id" : "edges/529839665", + "_rev" : "529839665", + "_key" : "529839665", + "_from" : "circles/E", + "_to" : "circles/F" } ] diff --git a/Documentation/Examples/HTML_01_routingCreateHtml.generated b/Documentation/Examples/HTML_01_routingCreateHtml.generated index fe70a334ec..cf69bf0cb8 100644 --- a/Documentation/Examples/HTML_01_routingCreateHtml.generated +++ b/Documentation/Examples/HTML_01_routingCreateHtml.generated @@ -8,7 +8,7 @@ arangosh> db._routing.save({ ........> } ........> }); { - "_id" : "_routing/537110958", - "_rev" : "537110958", - "_key" : "537110958" + "_id" : "_routing/533902897", + "_rev" : "533902897", + "_key" : "533902897" } diff --git a/Documentation/Examples/HttpGharialAddEdge.generated b/Documentation/Examples/HttpGharialAddEdge.generated index 1dfd449f83..6871e21678 100644 --- a/Documentation/Examples/HttpGharialAddEdge.generated +++ b/Documentation/Examples/HttpGharialAddEdge.generated @@ -8,14 +8,14 @@ EOF HTTP/1.1 202 Accepted content-type: application/json -etag: 540912046 +etag: 537703985 { "error" : false, "code" : 202, "edge" : { - "_id" : "relation/540912046", - "_rev" : "540912046", - "_key" : "540912046" + "_id" : "relation/537703985", + "_rev" : "537703985", + "_key" : "537703985" } } diff --git a/Documentation/Examples/HttpGharialAddEdgeCol.generated b/Documentation/Examples/HttpGharialAddEdgeCol.generated index 88feacd7a5..8b210de404 100644 --- a/Documentation/Examples/HttpGharialAddEdgeCol.generated +++ b/Documentation/Examples/HttpGharialAddEdgeCol.generated @@ -13,7 +13,7 @@ EOF HTTP/1.1 201 Created content-type: application/json -etag: 542419374 +etag: 539211313 { "error" : false, @@ -45,6 +45,6 @@ etag: 542419374 ], "orphanCollections" : [ ], "_id" : "_graphs/social", - "_rev" : "542419374" + "_rev" : "539211313" } } diff --git a/Documentation/Examples/HttpGharialAddVertex.generated b/Documentation/Examples/HttpGharialAddVertex.generated index 3976b5d995..7a0a27bd42 100644 --- a/Documentation/Examples/HttpGharialAddVertex.generated +++ b/Documentation/Examples/HttpGharialAddVertex.generated @@ -6,14 +6,14 @@ EOF HTTP/1.1 202 Accepted content-type: application/json -etag: 549235118 +etag: 546027057 { "error" : false, "code" : 202, "vertex" : { - "_id" : "male/549235118", - "_rev" : "549235118", - "_key" : "549235118" + "_id" : "male/546027057", + "_rev" : "546027057", + "_key" : "546027057" } } diff --git a/Documentation/Examples/HttpGharialAddVertexCol.generated b/Documentation/Examples/HttpGharialAddVertexCol.generated index 2769220444..ed590dd603 100644 --- a/Documentation/Examples/HttpGharialAddVertexCol.generated +++ b/Documentation/Examples/HttpGharialAddVertexCol.generated @@ -6,7 +6,7 @@ EOF HTTP/1.1 201 Created content-type: application/json -etag: 550742446 +etag: 547534385 { "error" : false, @@ -30,6 +30,6 @@ etag: 550742446 "otherVertices" ], "_id" : "_graphs/social", - "_rev" : "550742446" + "_rev" : "547534385" } } diff --git a/Documentation/Examples/HttpGharialCreate.generated b/Documentation/Examples/HttpGharialCreate.generated index 89196e491e..4b56012d48 100644 --- a/Documentation/Examples/HttpGharialCreate.generated +++ b/Documentation/Examples/HttpGharialCreate.generated @@ -17,7 +17,7 @@ EOF HTTP/1.1 201 Created content-type: application/json -etag: 555133358 +etag: 551925297 { "error" : false, @@ -37,6 +37,6 @@ etag: 555133358 ], "orphanCollections" : [ ], "_id" : "_graphs/myGraph", - "_rev" : "555133358" + "_rev" : "551925297" } } diff --git a/Documentation/Examples/HttpGharialEdgeDefinitionRemove.generated b/Documentation/Examples/HttpGharialEdgeDefinitionRemove.generated index 745f68b30f..4cdd695289 100644 --- a/Documentation/Examples/HttpGharialEdgeDefinitionRemove.generated +++ b/Documentation/Examples/HttpGharialEdgeDefinitionRemove.generated @@ -2,7 +2,7 @@ shell> curl -X DELETE --dump - http://localhost:8529/_api/gharial/social/edge/re HTTP/1.1 200 OK content-type: application/json -etag: 568568238 +etag: 565360177 { "error" : false, @@ -15,6 +15,6 @@ etag: 568568238 "male" ], "_id" : "_graphs/social", - "_rev" : "568568238" + "_rev" : "565360177" } } diff --git a/Documentation/Examples/HttpGharialGetEdge.generated b/Documentation/Examples/HttpGharialGetEdge.generated index 5e71e2531a..d0145a6c6f 100644 --- a/Documentation/Examples/HttpGharialGetEdge.generated +++ b/Documentation/Examples/HttpGharialGetEdge.generated @@ -2,7 +2,7 @@ shell> curl --dump - http://localhost:8529/_api/gharial/social/edge/relation/ali HTTP/1.1 200 OK content-type: application/json -etag: 573745582 +etag: 570537521 { "error" : false, @@ -10,7 +10,7 @@ etag: 573745582 "edge" : { "_id" : "relation/aliceAndBob", "_key" : "aliceAndBob", - "_rev" : "573745582", + "_rev" : "570537521", "_from" : "female/alice", "_to" : "male/bob", "type" : "married" diff --git a/Documentation/Examples/HttpGharialGetGraph.generated b/Documentation/Examples/HttpGharialGetGraph.generated index 640250a12e..9b1c5ab3cc 100644 --- a/Documentation/Examples/HttpGharialGetGraph.generated +++ b/Documentation/Examples/HttpGharialGetGraph.generated @@ -2,7 +2,7 @@ shell> curl --dump - http://localhost:8529/_api/gharial/myGraph HTTP/1.1 200 OK content-type: application/json -etag: 576039342 +etag: 572831281 { "error" : false, @@ -22,6 +22,6 @@ etag: 576039342 ], "orphanCollections" : [ ], "_id" : "_graphs/myGraph", - "_rev" : "576039342" + "_rev" : "572831281" } } diff --git a/Documentation/Examples/HttpGharialGetVertex.generated b/Documentation/Examples/HttpGharialGetVertex.generated index a34db53840..5ff993e6d8 100644 --- a/Documentation/Examples/HttpGharialGetVertex.generated +++ b/Documentation/Examples/HttpGharialGetVertex.generated @@ -2,7 +2,7 @@ shell> curl --dump - http://localhost:8529/_api/gharial/social/vertex/female/ali HTTP/1.1 200 OK content-type: application/json -etag: 577874350 +etag: 574797361 { "error" : false, @@ -10,7 +10,7 @@ etag: 577874350 "vertex" : { "_id" : "female/alice", "_key" : "alice", - "_rev" : "577874350", + "_rev" : "574797361", "name" : "Alice" } } diff --git a/Documentation/Examples/HttpGharialList.generated b/Documentation/Examples/HttpGharialList.generated index cd45584714..522be76c05 100644 --- a/Documentation/Examples/HttpGharialList.generated +++ b/Documentation/Examples/HttpGharialList.generated @@ -10,7 +10,7 @@ content-type: application/json { "_id" : "_graphs/social", "_key" : "social", - "_rev" : "581216686", + "_rev" : "578139697", "edgeDefinitions" : [ { "collection" : "relation", @@ -29,7 +29,7 @@ content-type: application/json { "_id" : "_graphs/routeplanner", "_key" : "routeplanner", - "_rev" : "584296878", + "_rev" : "581219889", "orphanCollections" : [ ], "edgeDefinitions" : [ { diff --git a/Documentation/Examples/HttpGharialModifyVertex.generated b/Documentation/Examples/HttpGharialModifyVertex.generated index 1914571543..f2b813d131 100644 --- a/Documentation/Examples/HttpGharialModifyVertex.generated +++ b/Documentation/Examples/HttpGharialModifyVertex.generated @@ -6,15 +6,15 @@ EOF HTTP/1.1 202 Accepted content-type: application/json -etag: 600943022 +etag: 597866033 { "error" : false, "code" : 202, "vertex" : { "_id" : "female/alice", - "_rev" : "600943022", - "_oldRev" : "598780334", + "_rev" : "597866033", + "_oldRev" : "595703345", "_key" : "alice" } } diff --git a/Documentation/Examples/HttpGharialPatchEdge.generated b/Documentation/Examples/HttpGharialPatchEdge.generated index 11342b0563..9c740ca6fa 100644 --- a/Documentation/Examples/HttpGharialPatchEdge.generated +++ b/Documentation/Examples/HttpGharialPatchEdge.generated @@ -6,15 +6,15 @@ EOF HTTP/1.1 202 Accepted content-type: application/json -etag: 604940718 +etag: 601863729 { "error" : false, "code" : 202, "edge" : { "_id" : "relation/aliceAndBob", - "_rev" : "604940718", - "_oldRev" : "603826606", + "_rev" : "601863729", + "_oldRev" : "600749617", "_key" : "aliceAndBob" } } diff --git a/Documentation/Examples/HttpGharialPutEdge.generated b/Documentation/Examples/HttpGharialPutEdge.generated index 804fa8431b..c6e45754fa 100644 --- a/Documentation/Examples/HttpGharialPutEdge.generated +++ b/Documentation/Examples/HttpGharialPutEdge.generated @@ -6,15 +6,15 @@ EOF HTTP/1.1 202 Accepted content-type: application/json -etag: 608807342 +etag: 605730353 { "error" : false, "code" : 202, "edge" : { "_id" : "relation/aliceAndBob", - "_rev" : "608807342", - "_oldRev" : "607824302", + "_rev" : "605730353", + "_oldRev" : "604747313", "_key" : "aliceAndBob" } } diff --git a/Documentation/Examples/HttpGharialRemoveVertexCollection.generated b/Documentation/Examples/HttpGharialRemoveVertexCollection.generated index 053036cf96..21c4ad7fa6 100644 --- a/Documentation/Examples/HttpGharialRemoveVertexCollection.generated +++ b/Documentation/Examples/HttpGharialRemoveVertexCollection.generated @@ -2,7 +2,7 @@ shell> curl -X DELETE --dump - http://localhost:8529/_api/gharial/social/vertex/ HTTP/1.1 200 OK content-type: application/json -etag: 612673966 +etag: 609596977 { "error" : false, @@ -24,6 +24,6 @@ etag: 612673966 ], "orphanCollections" : [ ], "_id" : "_graphs/social", - "_rev" : "612673966" + "_rev" : "609596977" } } diff --git a/Documentation/Examples/HttpGharialReplaceEdgeCol.generated b/Documentation/Examples/HttpGharialReplaceEdgeCol.generated index 649c001d32..ead407e601 100644 --- a/Documentation/Examples/HttpGharialReplaceEdgeCol.generated +++ b/Documentation/Examples/HttpGharialReplaceEdgeCol.generated @@ -16,7 +16,7 @@ EOF HTTP/1.1 200 OK content-type: application/json -etag: 618047918 +etag: 614970929 { "error" : false, @@ -40,6 +40,6 @@ etag: 618047918 ], "orphanCollections" : [ ], "_id" : "_graphs/social", - "_rev" : "618047918" + "_rev" : "614970929" } } diff --git a/Documentation/Examples/HttpGharialReplaceVertex.generated b/Documentation/Examples/HttpGharialReplaceVertex.generated index 62e7668de8..2042e1521d 100644 --- a/Documentation/Examples/HttpGharialReplaceVertex.generated +++ b/Documentation/Examples/HttpGharialReplaceVertex.generated @@ -7,15 +7,15 @@ EOF HTTP/1.1 202 Accepted content-type: application/json -etag: 624798126 +etag: 621721137 { "error" : false, "code" : 202, "vertex" : { "_id" : "female/alice", - "_rev" : "624798126", - "_oldRev" : "622635438", + "_rev" : "621721137", + "_oldRev" : "619558449", "_key" : "alice" } } diff --git a/Documentation/Examples/IndexHandle.generated b/Documentation/Examples/IndexHandle.generated index 68ac2409d5..28e755f9db 100644 --- a/Documentation/Examples/IndexHandle.generated +++ b/Documentation/Examples/IndexHandle.generated @@ -1,6 +1,6 @@ arangosh> db.example.ensureIndex({ type: "skiplist", fields: [ "a", "b" ] }); { - "id" : "example/625977774", + "id" : "example/622900785", "type" : "skiplist", "fields" : [ "a", @@ -15,7 +15,7 @@ arangosh> var indexInfo = db.example.getInd arangosh> indexInfo; [ "example/0", - "example/625977774" + "example/622900785" ] arangosh> db._index(indexInfo[0]) { @@ -31,7 +31,7 @@ arangosh> db._index(indexInfo[0]) } arangosh> db._index(indexInfo[1]) { - "id" : "example/625977774", + "id" : "example/622900785", "type" : "skiplist", "fields" : [ "a", diff --git a/Documentation/Examples/IndexVerify.generated b/Documentation/Examples/IndexVerify.generated index 5ddaf0412f..6af652a124 100644 --- a/Documentation/Examples/IndexVerify.generated +++ b/Documentation/Examples/IndexVerify.generated @@ -1,7 +1,7 @@ arangosh> var explain = require("org/arangodb/aql/explainer").explain; arangosh> db.example.ensureIndex({ type: "skiplist", fields: [ "a", "b" ] }); { - "id" : "example/626698670", + "id" : "example/623621681", "type" : "skiplist", "fields" : [ "a", diff --git a/Documentation/Examples/JSF_job_cancel.generated b/Documentation/Examples/JSF_job_cancel.generated index d165177e21..7d7ddf09bf 100644 --- a/Documentation/Examples/JSF_job_cancel.generated +++ b/Documentation/Examples/JSF_job_cancel.generated @@ -6,7 +6,7 @@ EOF HTTP/1.1 202 Accepted content-type: text/plain; charset=utf-8 -x-arango-async-id: 626960814 +x-arango-async-id: 623883825 shell> curl --dump - http://localhost:8529/_api/job/pending @@ -14,9 +14,9 @@ HTTP/1.1 200 O content-type: application/json; charset=utf-8 [ - "626960814" + "623883825" ] -shell> curl -X PUT --dump - http://localhost:8529/_api/job/626960814/cancel +shell> curl -X PUT --dump - http://localhost:8529/_api/job/623883825/cancel HTTP/1.1 200 OK content-type: application/json; charset=utf-8 @@ -30,5 +30,5 @@ HTTP/1.1 200 O content-type: application/json; charset=utf-8 [ - "626960814" + "623883825" ] diff --git a/Documentation/Examples/JSF_job_delete_01.generated b/Documentation/Examples/JSF_job_delete_01.generated index 79ff971dba..d3e17674ff 100644 --- a/Documentation/Examples/JSF_job_delete_01.generated +++ b/Documentation/Examples/JSF_job_delete_01.generated @@ -2,7 +2,7 @@ shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:85 HTTP/1.1 202 Accepted content-type: text/plain; charset=utf-8 -x-arango-async-id: 627091886 +x-arango-async-id: 624014897 shell> curl -X DELETE --dump - http://localhost:8529/_api/job/all diff --git a/Documentation/Examples/JSF_job_delete_02.generated b/Documentation/Examples/JSF_job_delete_02.generated index 86d6ceff46..5813b8ad5c 100644 --- a/Documentation/Examples/JSF_job_delete_02.generated +++ b/Documentation/Examples/JSF_job_delete_02.generated @@ -2,7 +2,7 @@ shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:85 HTTP/1.1 202 Accepted content-type: text/plain; charset=utf-8 -x-arango-async-id: 627157422 +x-arango-async-id: 624080433 shell> curl --dump - http://localhost:8529/_admin/time @@ -10,11 +10,11 @@ HTTP/1.1 200 O content-type: application/json; charset=utf-8 { - "time" : 1456862635.666542, + "time" : 1457638698.948053, "error" : false, "code" : 200 } -shell> curl -X DELETE --dump - http://localhost:8529/_api/job/expired?stamp=1456862635.666542 +shell> curl -X DELETE --dump - http://localhost:8529/_api/job/expired?stamp=1457638698.948053 HTTP/1.1 200 OK content-type: application/json; charset=utf-8 diff --git a/Documentation/Examples/JSF_job_delete_03.generated b/Documentation/Examples/JSF_job_delete_03.generated index 75213385a4..eaa7568f32 100644 --- a/Documentation/Examples/JSF_job_delete_03.generated +++ b/Documentation/Examples/JSF_job_delete_03.generated @@ -2,9 +2,9 @@ shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:85 HTTP/1.1 202 Accepted content-type: text/plain; charset=utf-8 -x-arango-async-id: 627222958 +x-arango-async-id: 624145969 -shell> curl -X DELETE --dump - http://localhost:8529/_api/job/627222958 +shell> curl -X DELETE --dump - http://localhost:8529/_api/job/624145969 HTTP/1.1 200 OK content-type: application/json; charset=utf-8 diff --git a/Documentation/Examples/JSF_job_fetch_result_03.generated b/Documentation/Examples/JSF_job_fetch_result_03.generated index caf091b370..e6217608f7 100644 --- a/Documentation/Examples/JSF_job_fetch_result_03.generated +++ b/Documentation/Examples/JSF_job_fetch_result_03.generated @@ -2,15 +2,15 @@ shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:85 HTTP/1.1 202 Accepted content-type: text/plain; charset=utf-8 -x-arango-async-id: 627288494 +x-arango-async-id: 624211505 -shell> curl -X PUT --dump - http://localhost:8529/_api/job/627288494 +shell> curl -X PUT --dump - http://localhost:8529/_api/job/624211505 HTTP/1.1 200 OK content-type: application/json; charset=utf-8 -x-arango-async-id: 627288494 +x-arango-async-id: 624211505 { "server" : "arango", - "version" : "2.8.4" + "version" : "2.8.5" } diff --git a/Documentation/Examples/JSF_job_fetch_result_04.generated b/Documentation/Examples/JSF_job_fetch_result_04.generated index 69974a612b..e8b53ff509 100644 --- a/Documentation/Examples/JSF_job_fetch_result_04.generated +++ b/Documentation/Examples/JSF_job_fetch_result_04.generated @@ -6,13 +6,13 @@ EOF HTTP/1.1 202 Accepted content-type: text/plain; charset=utf-8 -x-arango-async-id: 627354030 +x-arango-async-id: 624277041 -shell> curl -X PUT --dump - http://localhost:8529/_api/job/627354030 +shell> curl -X PUT --dump - http://localhost:8529/_api/job/624277041 HTTP/1.1 400 Bad Request content-type: application/json; charset=utf-8 -x-arango-async-id: 627354030 +x-arango-async-id: 624277041 { "error" : true, diff --git a/Documentation/Examples/JSF_job_getByType_01.generated b/Documentation/Examples/JSF_job_getByType_01.generated index 1410e58fb7..149ae234f1 100644 --- a/Documentation/Examples/JSF_job_getByType_01.generated +++ b/Documentation/Examples/JSF_job_getByType_01.generated @@ -2,7 +2,7 @@ shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:85 HTTP/1.1 202 Accepted content-type: text/plain; charset=utf-8 -x-arango-async-id: 627419566 +x-arango-async-id: 624342577 shell> curl --dump - http://localhost:8529/_api/job/done @@ -10,5 +10,5 @@ HTTP/1.1 200 O content-type: application/json; charset=utf-8 [ - "627419566" + "624342577" ] diff --git a/Documentation/Examples/JSF_job_getByType_02.generated b/Documentation/Examples/JSF_job_getByType_02.generated index 07b9f9f807..2d4ac24b48 100644 --- a/Documentation/Examples/JSF_job_getByType_02.generated +++ b/Documentation/Examples/JSF_job_getByType_02.generated @@ -2,7 +2,7 @@ shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:85 HTTP/1.1 202 Accepted content-type: text/plain; charset=utf-8 -x-arango-async-id: 627485102 +x-arango-async-id: 624408113 shell> curl --dump - http://localhost:8529/_api/job/pending diff --git a/Documentation/Examples/JSF_job_getByType_03.generated b/Documentation/Examples/JSF_job_getByType_03.generated index bab06bccd6..c4e6823744 100644 --- a/Documentation/Examples/JSF_job_getByType_03.generated +++ b/Documentation/Examples/JSF_job_getByType_03.generated @@ -2,7 +2,7 @@ shell> curl --header 'x-arango-async: store' --dump - http://localhost:8529/_adm HTTP/1.1 202 Accepted content-type: text/plain; charset=utf-8 -x-arango-async-id: 627550638 +x-arango-async-id: 624473649 shell> curl --dump - http://localhost:8529/_api/job/pending @@ -10,9 +10,9 @@ HTTP/1.1 200 O content-type: application/json; charset=utf-8 [ - "627550638" + "624473649" ] -shell> curl -X DELETE --dump - http://localhost:8529/_api/job/627550638 +shell> curl -X DELETE --dump - http://localhost:8529/_api/job/624473649 HTTP/1.1 200 OK content-type: application/json; charset=utf-8 diff --git a/Documentation/Examples/JSF_job_getStatusById_01.generated b/Documentation/Examples/JSF_job_getStatusById_01.generated index a518d0c982..eee49d3248 100644 --- a/Documentation/Examples/JSF_job_getStatusById_01.generated +++ b/Documentation/Examples/JSF_job_getStatusById_01.generated @@ -2,15 +2,15 @@ shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:85 HTTP/1.1 202 Accepted content-type: text/plain; charset=utf-8 -x-arango-async-id: 627616174 +x-arango-async-id: 624539185 -shell> curl -X PUT --dump - http://localhost:8529/_api/job/627616174 +shell> curl -X PUT --dump - http://localhost:8529/_api/job/624539185 HTTP/1.1 200 OK content-type: application/json; charset=utf-8 -x-arango-async-id: 627616174 +x-arango-async-id: 624539185 { "server" : "arango", - "version" : "2.8.4" + "version" : "2.8.5" } diff --git a/Documentation/Examples/JSF_job_getStatusById_02.generated b/Documentation/Examples/JSF_job_getStatusById_02.generated index 76fe7b5e29..3ac885a923 100644 --- a/Documentation/Examples/JSF_job_getStatusById_02.generated +++ b/Documentation/Examples/JSF_job_getStatusById_02.generated @@ -2,9 +2,9 @@ shell> curl --header 'x-arango-async: store' --dump - http://localhost:8529/_adm HTTP/1.1 202 Accepted content-type: text/plain; charset=utf-8 -x-arango-async-id: 627681710 +x-arango-async-id: 624604721 -shell> curl --dump - http://localhost:8529/_api/job/627681710 +shell> curl --dump - http://localhost:8529/_api/job/624604721 HTTP/1.1 204 No Content content-type: text/plain; charset=utf-8 diff --git a/Documentation/Examples/JSON_01_routingCreateJsonHelloWorld.generated b/Documentation/Examples/JSON_01_routingCreateJsonHelloWorld.generated index 4f896b70ad..39e8761312 100644 --- a/Documentation/Examples/JSON_01_routingCreateJsonHelloWorld.generated +++ b/Documentation/Examples/JSON_01_routingCreateJsonHelloWorld.generated @@ -6,8 +6,8 @@ arangosh> db._routing.save({ ........> } ........> }); { - "_id" : "_routing/627878318", - "_rev" : "627878318", - "_key" : "627878318" + "_id" : "_routing/624801329", + "_rev" : "624801329", + "_key" : "624801329" } arangosh> require("internal").reloadRouting() diff --git a/Documentation/Examples/JSON_05a_routingCreateContentTypeHelloWorld.generated b/Documentation/Examples/JSON_05a_routingCreateContentTypeHelloWorld.generated index 9607bde189..88eb7c4d3b 100644 --- a/Documentation/Examples/JSON_05a_routingCreateContentTypeHelloWorld.generated +++ b/Documentation/Examples/JSON_05a_routingCreateContentTypeHelloWorld.generated @@ -6,8 +6,8 @@ arangosh> db._routing.save({ ........> } ........> }); { - "_id" : "_routing/628533678", - "_rev" : "628533678", - "_key" : "628533678" + "_id" : "_routing/625456689", + "_rev" : "625456689", + "_key" : "625456689" } arangosh> require("internal").reloadRouting() diff --git a/Documentation/Examples/JSON_06_routingCreateHelloEcho.generated b/Documentation/Examples/JSON_06_routingCreateHelloEcho.generated index 83431f4581..61060258e1 100644 --- a/Documentation/Examples/JSON_06_routingCreateHelloEcho.generated +++ b/Documentation/Examples/JSON_06_routingCreateHelloEcho.generated @@ -5,7 +5,7 @@ arangosh> db._routing.save({ ........> } ........> }); { - "_id" : "_routing/629320110", - "_rev" : "629320110", - "_key" : "629320110" + "_id" : "_routing/626243121", + "_rev" : "626243121", + "_key" : "626243121" } diff --git a/Documentation/Examples/JSON_07_fetchroutingCreateHelloEcho.generated b/Documentation/Examples/JSON_07_fetchroutingCreateHelloEcho.generated index a07f477700..e3e5647812 100644 --- a/Documentation/Examples/JSON_07_fetchroutingCreateHelloEcho.generated +++ b/Documentation/Examples/JSON_07_fetchroutingCreateHelloEcho.generated @@ -7,11 +7,11 @@ arangosh> arango.GET("/hello/echo") "protocol" : "http", "server" : { "address" : "127.0.0.1", - "port" : 30199 + "port" : 30518 }, "client" : { "address" : "127.0.0.1", - "port" : 38871, + "port" : 44482, "id" : "11" }, "internals" : { diff --git a/Documentation/Examples/JSON_09_routingCreateEchoController.generated b/Documentation/Examples/JSON_09_routingCreateEchoController.generated index f89af6e813..4be536baba 100644 --- a/Documentation/Examples/JSON_09_routingCreateEchoController.generated +++ b/Documentation/Examples/JSON_09_routingCreateEchoController.generated @@ -5,7 +5,7 @@ arangosh> db._routing.save({ ........> } ........> }); { - "_id" : "_routing/630172078", - "_rev" : "630172078", - "_key" : "630172078" + "_id" : "_routing/627095089", + "_rev" : "627095089", + "_key" : "627095089" } diff --git a/Documentation/Examples/JSON_10_fetchroutingCreateEchoController.generated b/Documentation/Examples/JSON_10_fetchroutingCreateEchoController.generated index a07f477700..e3e5647812 100644 --- a/Documentation/Examples/JSON_10_fetchroutingCreateEchoController.generated +++ b/Documentation/Examples/JSON_10_fetchroutingCreateEchoController.generated @@ -7,11 +7,11 @@ arangosh> arango.GET("/hello/echo") "protocol" : "http", "server" : { "address" : "127.0.0.1", - "port" : 30199 + "port" : 30518 }, "client" : { "address" : "127.0.0.1", - "port" : 38871, + "port" : 44482, "id" : "11" }, "internals" : { diff --git a/Documentation/Examples/JSON_12a_routingCreateEchoFunction.generated b/Documentation/Examples/JSON_12a_routingCreateEchoFunction.generated index 8bb13c5b57..0ddefb76ea 100644 --- a/Documentation/Examples/JSON_12a_routingCreateEchoFunction.generated +++ b/Documentation/Examples/JSON_12a_routingCreateEchoFunction.generated @@ -5,7 +5,7 @@ arangosh> db._routing.save({ ........> } ........> }); { - "_id" : "_routing/631024046", - "_rev" : "631024046", - "_key" : "631024046" + "_id" : "_routing/627947057", + "_rev" : "627947057", + "_key" : "627947057" } diff --git a/Documentation/Examples/JSON_13_routingCreateEchoAction.generated b/Documentation/Examples/JSON_13_routingCreateEchoAction.generated index 98059219a1..6afa6aa993 100644 --- a/Documentation/Examples/JSON_13_routingCreateEchoAction.generated +++ b/Documentation/Examples/JSON_13_routingCreateEchoAction.generated @@ -5,7 +5,7 @@ arangosh> db._routing.save({ ........> } ........> }) { - "_id" : "_routing/631744942", - "_rev" : "631744942", - "_key" : "631744942" + "_id" : "_routing/628667953", + "_rev" : "628667953", + "_key" : "628667953" } diff --git a/Documentation/Examples/JSON_15_routingCreateEchoRequestOptions.generated b/Documentation/Examples/JSON_15_routingCreateEchoRequestOptions.generated index cf49c2cc04..4b5d0c6e49 100644 --- a/Documentation/Examples/JSON_15_routingCreateEchoRequestOptions.generated +++ b/Documentation/Examples/JSON_15_routingCreateEchoRequestOptions.generated @@ -8,7 +8,7 @@ arangosh> db._routing.save({ ........> } ........> }); { - "_id" : "_routing/632400302", - "_rev" : "632400302", - "_key" : "632400302" + "_id" : "_routing/629323313", + "_rev" : "629323313", + "_key" : "629323313" } diff --git a/Documentation/Examples/JSON_16_fetchroutingEchoRequestOptions.generated b/Documentation/Examples/JSON_16_fetchroutingEchoRequestOptions.generated index 2058ededb7..a431046a8c 100644 --- a/Documentation/Examples/JSON_16_fetchroutingEchoRequestOptions.generated +++ b/Documentation/Examples/JSON_16_fetchroutingEchoRequestOptions.generated @@ -7,11 +7,11 @@ arangosh> arango.GET("/echo") "protocol" : "http", "server" : { "address" : "127.0.0.1", - "port" : 30199 + "port" : 30518 }, "client" : { "address" : "127.0.0.1", - "port" : 38871, + "port" : 44482, "id" : "11" }, "internals" : { @@ -34,6 +34,7 @@ arangosh> arango.GET("/echo") } }, "options" : { + "Hello" : "World" } } arangosh> db._query("FOR route IN _routing FILTER route.url == '/echo' REMOVE route in _routing") diff --git a/Documentation/Examples/MOD_01a_routingCreateOwnTest.generated b/Documentation/Examples/MOD_01a_routingCreateOwnTest.generated index b193185ad2..136f7fe8a0 100644 --- a/Documentation/Examples/MOD_01a_routingCreateOwnTest.generated +++ b/Documentation/Examples/MOD_01a_routingCreateOwnTest.generated @@ -8,7 +8,7 @@ arangosh> db._modules.save({ ........> "};" ........> }); { - "_id" : "_modules/633383342", - "_rev" : "633383342", - "_key" : "633383342" + "_id" : "_modules/630306353", + "_rev" : "630306353", + "_key" : "630306353" } diff --git a/Documentation/Examples/MOD_01b_routingEnableOwnTest.generated b/Documentation/Examples/MOD_01b_routingEnableOwnTest.generated index 302372e1f0..4b28858c63 100644 --- a/Documentation/Examples/MOD_01b_routingEnableOwnTest.generated +++ b/Documentation/Examples/MOD_01b_routingEnableOwnTest.generated @@ -5,8 +5,8 @@ arangosh> db._routing.save({ ........> } ........> }); { - "_id" : "_routing/633579950", - "_rev" : "633579950", - "_key" : "633579950" + "_id" : "_routing/630502961", + "_rev" : "630502961", + "_key" : "630502961" } arangosh> require("internal").reloadRouting() diff --git a/Documentation/Examples/MOD_06a_routingRedirect.generated b/Documentation/Examples/MOD_06a_routingRedirect.generated index 10bbb83395..a58622bb30 100644 --- a/Documentation/Examples/MOD_06a_routingRedirect.generated +++ b/Documentation/Examples/MOD_06a_routingRedirect.generated @@ -9,8 +9,8 @@ arangosh> db._routing.save({ ........> } ........> }); { - "_id" : "_routing/635283886", - "_rev" : "635283886", - "_key" : "635283886" + "_id" : "_routing/632206897", + "_rev" : "632206897", + "_key" : "632206897" } arangosh> require("internal").reloadRouting() diff --git a/Documentation/Examples/MOD_07a_routingMulti.generated b/Documentation/Examples/MOD_07a_routingMulti.generated index 05b6f7edd9..f4153dbdbd 100644 --- a/Documentation/Examples/MOD_07a_routingMulti.generated +++ b/Documentation/Examples/MOD_07a_routingMulti.generated @@ -15,8 +15,8 @@ arangosh> db._routing.save({ ........> ] ........> }); { - "_id" : "_routing/636201390", - "_rev" : "636201390", - "_key" : "636201390" + "_id" : "_routing/633124401", + "_rev" : "633124401", + "_key" : "633124401" } arangosh> require("internal").reloadRouting() diff --git a/Documentation/Examples/MOD_07c_routingMulti.generated b/Documentation/Examples/MOD_07c_routingMulti.generated index 2131e6b3b2..e802e347bf 100644 --- a/Documentation/Examples/MOD_07c_routingMulti.generated +++ b/Documentation/Examples/MOD_07c_routingMulti.generated @@ -16,8 +16,8 @@ arangosh> db._routing.save({ ........> ] ........> }); { - "_id" : "_routing/636987822", - "_rev" : "636987822", - "_key" : "636987822" + "_id" : "_routing/633910833", + "_rev" : "633910833", + "_key" : "633910833" } arangosh> require("internal").reloadRouting() diff --git a/Documentation/Examples/MOD_08a_routingCreateOwnConsoleLog.generated b/Documentation/Examples/MOD_08a_routingCreateOwnConsoleLog.generated index 48c3e2cbff..56aef2d20f 100644 --- a/Documentation/Examples/MOD_08a_routingCreateOwnConsoleLog.generated +++ b/Documentation/Examples/MOD_08a_routingCreateOwnConsoleLog.generated @@ -9,7 +9,7 @@ arangosh> db._modules.save({ ........> "};" ........> }); { - "_id" : "_modules/637643182", - "_rev" : "637643182", - "_key" : "637643182" + "_id" : "_modules/634566193", + "_rev" : "634566193", + "_key" : "634566193" } diff --git a/Documentation/Examples/MOD_08b_routingCreateRouteToOwnConsoleLog.generated b/Documentation/Examples/MOD_08b_routingCreateRouteToOwnConsoleLog.generated index a81be411e5..997c49c3c0 100644 --- a/Documentation/Examples/MOD_08b_routingCreateRouteToOwnConsoleLog.generated +++ b/Documentation/Examples/MOD_08b_routingCreateRouteToOwnConsoleLog.generated @@ -11,7 +11,7 @@ arangosh> db._routing.save({ ........> ] ........> }); { - "_id" : "_routing/638101934", - "_rev" : "638101934", - "_key" : "638101934" + "_id" : "_routing/635024945", + "_rev" : "635024945", + "_key" : "635024945" } diff --git a/Documentation/Examples/MOD_08c_routingCreateRouteToOwnConsoleLog.generated b/Documentation/Examples/MOD_08c_routingCreateRouteToOwnConsoleLog.generated index e80dd3e1ad..9fe1973013 100644 --- a/Documentation/Examples/MOD_08c_routingCreateRouteToOwnConsoleLog.generated +++ b/Documentation/Examples/MOD_08c_routingCreateRouteToOwnConsoleLog.generated @@ -5,9 +5,9 @@ arangosh> db._routing.save({ ........> } ........> }); { - "_id" : "_routing/638298542", - "_rev" : "638298542", - "_key" : "638298542" + "_id" : "_routing/635221553", + "_rev" : "635221553", + "_key" : "635221553" } arangosh> db._routing.save({ ........> url: "/subdirectory/ourtest/2", @@ -16,9 +16,9 @@ arangosh> db._routing.save({ ........> } ........> }); { - "_id" : "_routing/638495150", - "_rev" : "638495150", - "_key" : "638495150" + "_id" : "_routing/635418161", + "_rev" : "635418161", + "_key" : "635418161" } arangosh> db._routing.save({ ........> url: "/subdirectory/ourtest/3", @@ -27,8 +27,8 @@ arangosh> db._routing.save({ ........> } ........> }); { - "_id" : "_routing/638691758", - "_rev" : "638691758", - "_key" : "638691758" + "_id" : "_routing/635614769", + "_rev" : "635614769", + "_key" : "635614769" } arangosh> require("internal").reloadRouting() diff --git a/Documentation/Examples/MOD_08d_routingCurlToOwnConsoleLog.generated b/Documentation/Examples/MOD_08d_routingCurlToOwnConsoleLog.generated index 36b4b2f424..98ac0bc733 100644 --- a/Documentation/Examples/MOD_08d_routingCurlToOwnConsoleLog.generated +++ b/Documentation/Examples/MOD_08d_routingCurlToOwnConsoleLog.generated @@ -11,11 +11,11 @@ content-type: application/json; charset=utf-8 "protocol" : "http", "server" : { "address" : "127.0.0.1", - "port" : 30199 + "port" : 30518 }, "client" : { "address" : "127.0.0.1", - "port" : 38871, + "port" : 44482, "id" : "11" }, "internals" : { @@ -53,11 +53,11 @@ content-type: application/json; charset=utf-8 "protocol" : "http", "server" : { "address" : "127.0.0.1", - "port" : 30199 + "port" : 30518 }, "client" : { "address" : "127.0.0.1", - "port" : 38871, + "port" : 44482, "id" : "11" }, "internals" : { @@ -95,11 +95,11 @@ content-type: application/json; charset=utf-8 "protocol" : "http", "server" : { "address" : "127.0.0.1", - "port" : 30199 + "port" : 30518 }, "client" : { "address" : "127.0.0.1", - "port" : 38871, + "port" : 44482, "id" : "11" }, "internals" : { diff --git a/Documentation/Examples/MOD_09a_routingSpecifyMethods.generated b/Documentation/Examples/MOD_09a_routingSpecifyMethods.generated index 1a4b699c58..b50bc833ce 100644 --- a/Documentation/Examples/MOD_09a_routingSpecifyMethods.generated +++ b/Documentation/Examples/MOD_09a_routingSpecifyMethods.generated @@ -8,8 +8,8 @@ arangosh> db._routing.save({ ........> } ........> }); { - "_id" : "_routing/641575342", - "_rev" : "641575342", - "_key" : "641575342" + "_id" : "_routing/638498353", + "_rev" : "638498353", + "_key" : "638498353" } arangosh> require("internal").reloadRouting() diff --git a/Documentation/Examples/MOD_09b_routingCurlSpecifyMethods.generated b/Documentation/Examples/MOD_09b_routingCurlSpecifyMethods.generated index dc18676760..30e588e27d 100644 --- a/Documentation/Examples/MOD_09b_routingCurlSpecifyMethods.generated +++ b/Documentation/Examples/MOD_09b_routingCurlSpecifyMethods.generated @@ -11,11 +11,11 @@ content-type: application/json; charset=utf-8 "protocol" : "http", "server" : { "address" : "127.0.0.1", - "port" : 30199 + "port" : 30518 }, "client" : { "address" : "127.0.0.1", - "port" : 38871, + "port" : 44482, "id" : "11" }, "internals" : { @@ -55,11 +55,11 @@ content-type: application/json; charset=utf-8 "protocol" : "http", "server" : { "address" : "127.0.0.1", - "port" : 30199 + "port" : 30518 }, "client" : { "address" : "127.0.0.1", - "port" : 38871, + "port" : 44482, "id" : "11" }, "internals" : { @@ -100,11 +100,11 @@ content-type: application/json; charset=utf-8 "protocol" : "http", "server" : { "address" : "127.0.0.1", - "port" : 30199 + "port" : 30518 }, "client" : { "address" : "127.0.0.1", - "port" : 38871, + "port" : 44482, "id" : "11" }, "internals" : { diff --git a/Documentation/Examples/QUERY_02_listQueries.generated b/Documentation/Examples/QUERY_02_listQueries.generated index be044680a8..621c86e745 100644 --- a/Documentation/Examples/QUERY_02_listQueries.generated +++ b/Documentation/Examples/QUERY_02_listQueries.generated @@ -10,7 +10,7 @@ arangosh> tasks.register({ "name" : "this is a sample task to spawn a slow aql query", "type" : "timed", "offset" : 0.00001, - "created" : 1456862636.298546, + "created" : 1457638699.505174, "command" : "require('internal').db._query('FOR sleepLoooong IN 1..5 LET sleepLoooonger = SLE...", "database" : "_system", "code" : 200 @@ -18,9 +18,9 @@ arangosh> tasks.register({ arangosh> queries.current(); [ { - "id" : "163", + "id" : "162", "query" : "FOR sleepLoooong IN 1..5 LET sleepLoooonger = SLEEP(1000) RETURN sleepLoooong", - "started" : "2016-03-01T20:03:56Z", - "runTime" : 1.139906883239746 + "started" : "2016-03-10T19:38:19Z", + "runTime" : 1.1322948932647705 } ] diff --git a/Documentation/Examples/RestAdminStatistics1.generated b/Documentation/Examples/RestAdminStatistics1.generated index e66642b808..9a148fd262 100644 --- a/Documentation/Examples/RestAdminStatistics1.generated +++ b/Documentation/Examples/RestAdminStatistics1.generated @@ -4,21 +4,21 @@ HTTP/1.1 200 O content-type: application/json; charset=utf-8 { - "time" : 1456862637.512907, + "time" : 1457638700.72929, "system" : { - "minorPageFaults" : 42921, - "majorPageFaults" : 2955, - "userTime" : 2.435467, - "systemTime" : 1.861656, + "minorPageFaults" : 44060, + "majorPageFaults" : 3007, + "userTime" : 2.732053, + "systemTime" : 1.824541, "numberOfThreads" : 25, - "residentSize" : 117526528, - "residentSizePercent" : 0.006840944290161133, - "virtualSize" : 5014016000 + "residentSize" : 120442880, + "residentSizePercent" : 0.007010698318481445, + "virtualSize" : 5015117824 }, "client" : { "httpConnections" : 1, "connectionTime" : { - "sum" : 0.0003027915954589844, + "sum" : 0.001432180404663086, "count" : 1, "counts" : [ 1, @@ -28,12 +28,12 @@ content-type: application/json; charset=utf-8 ] }, "totalTime" : { - "sum" : 1.8053078651428223, + "sum" : 2.030900001525879, "count" : 3722, "counts" : [ - 3710, - 9, - 3, + 3705, + 13, + 4, 0, 0, 0, @@ -41,12 +41,12 @@ content-type: application/json; charset=utf-8 ] }, "requestTime" : { - "sum" : 1.5350773334503174, + "sum" : 1.7447307109832764, "count" : 3722, "counts" : [ - 3711, - 8, - 3, + 3705, + 13, + 4, 0, 0, 0, @@ -54,7 +54,7 @@ content-type: application/json; charset=utf-8 ] }, "queueTime" : { - "sum" : 0.025108814239501953, + "sum" : 0.029402494430541992, "count" : 3700, "counts" : [ 3700, @@ -67,11 +67,11 @@ content-type: application/json; charset=utf-8 ] }, "ioTime" : { - "sum" : 0.24512171745300293, + "sum" : 0.25676679611206055, "count" : 3722, "counts" : [ - 3721, - 1, + 3722, + 0, 0, 0, 0, @@ -80,7 +80,7 @@ content-type: application/json; charset=utf-8 ] }, "bytesSent" : { - "sum" : 1733926, + "sum" : 1738790, "count" : 3722, "counts" : [ 414, @@ -117,7 +117,7 @@ content-type: application/json; charset=utf-8 "requestsOther" : 1 }, "server" : { - "uptime" : 11.211220979690552, + "uptime" : 9.2930428981781, "physicalMemory" : 17179869184 }, "error" : false, diff --git a/Documentation/Examples/RestBatchMultipartHeader.generated b/Documentation/Examples/RestBatchMultipartHeader.generated index 264f3a2266..6e3a74adfd 100644 --- a/Documentation/Examples/RestBatchMultipartHeader.generated +++ b/Documentation/Examples/RestBatchMultipartHeader.generated @@ -38,4 +38,4 @@ HTTP/1.1 200 OK content-type: multipart/form-data; boundary=SomeBoundaryValue x-arango-errors: 1 -"--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: myId1\r\n\r\nHTTP/1.1 200 OK\r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 37\r\n\r\n{\"server\":\"arango\",\"version\":\"2.8.4\"}\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: myId2\r\n\r\nHTTP/1.1 404 Not Found\r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 88\r\n\r\n{\"error\":true,\"code\":404,\"errorNum\":1203,\"errorMessage\":\"unknown collection 'products'\"}\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: someId\r\n\r\nHTTP/1.1 200 OK\r\nLocation: /_db/_system/_api/collection/products\r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 137\r\n\r\n{\"id\":\"643934638\",\"name\":\"products\",\"waitForSync\":false,\"isVolatile\":false,\"isSystem\":false,\"status\":3,\"type\":2,\"error\":false,\"code\":200}\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: nextId\r\n\r\nHTTP/1.1 200 OK\r\nLocation: /_db/_system/_api/collection/products/figures\r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 765\r\n\r\n{\"id\":\"643934638\",\"name\":\"products\",\"isSystem\":false,\"doCompact\":true,\"isVolatile\":false,\"journalSize\":1048576,\"keyOptions\":{\"type\":\"traditional\",\"allowUserKeys\":true},\"waitForSync\":false,\"indexBuckets\":8,\"count\":0,\"figures\":{\"alive\":{\"count\":0,\"size\":0},\"dead\":{\"count\":0,\"size\":0,\"deletion\":0},\"datafiles\":{\"count\":0,\"fileSize\":0},\"journals\":{\"count\":0,\"fileSize\":0},\"compactors\":{\"count\":0,\"fileSize\":0},\"shapefiles\":{\"count\":0,\"fileSize\":0},\"shapes\":{\"count\":0,\"size\":0},\"attributes\":{\"count\":0,\"size\":0},\"indexes\":{\"count\":1,\"size\":16064},\"lastTick\":\"0\",\"uncollectedLogfileEntries\":0,\"documentReferences\":0,\"waitingFor\":\"-\",\"compactionStatus\":{\"message\":\"compaction not yet started\",\"time\":\"2016-03-01T20:03:57Z\"}},\"status\":3,\"type\":2,\"error\":false,\"code\":200}\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: otherId\r\n\r\nHTTP/1.1 200 OK\r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 43\r\n\r\n{\"id\":\"643934638\",\"error\":false,\"code\":200}\r\n--SomeBoundaryValue--" +"--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: myId1\r\n\r\nHTTP/1.1 200 OK\r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 37\r\n\r\n{\"server\":\"arango\",\"version\":\"2.8.5\"}\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: myId2\r\n\r\nHTTP/1.1 404 Not Found\r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 88\r\n\r\n{\"error\":true,\"code\":404,\"errorNum\":1203,\"errorMessage\":\"unknown collection 'products'\"}\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: someId\r\n\r\nHTTP/1.1 200 OK\r\nLocation: /_db/_system/_api/collection/products\r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 137\r\n\r\n{\"id\":\"640857649\",\"name\":\"products\",\"waitForSync\":false,\"isVolatile\":false,\"isSystem\":false,\"status\":3,\"type\":2,\"error\":false,\"code\":200}\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: nextId\r\n\r\nHTTP/1.1 200 OK\r\nLocation: /_db/_system/_api/collection/products/figures\r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 765\r\n\r\n{\"id\":\"640857649\",\"name\":\"products\",\"isSystem\":false,\"doCompact\":true,\"isVolatile\":false,\"journalSize\":1048576,\"keyOptions\":{\"type\":\"traditional\",\"allowUserKeys\":true},\"waitForSync\":false,\"indexBuckets\":8,\"count\":0,\"figures\":{\"alive\":{\"count\":0,\"size\":0},\"dead\":{\"count\":0,\"size\":0,\"deletion\":0},\"datafiles\":{\"count\":0,\"fileSize\":0},\"journals\":{\"count\":0,\"fileSize\":0},\"compactors\":{\"count\":0,\"fileSize\":0},\"shapefiles\":{\"count\":0,\"fileSize\":0},\"shapes\":{\"count\":0,\"size\":0},\"attributes\":{\"count\":0,\"size\":0},\"indexes\":{\"count\":1,\"size\":16064},\"lastTick\":\"0\",\"uncollectedLogfileEntries\":0,\"documentReferences\":0,\"waitingFor\":\"-\",\"compactionStatus\":{\"message\":\"compaction not yet started\",\"time\":\"2016-03-10T19:38:20Z\"}},\"status\":3,\"type\":2,\"error\":false,\"code\":200}\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: otherId\r\n\r\nHTTP/1.1 200 OK\r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 43\r\n\r\n{\"id\":\"640857649\",\"error\":false,\"code\":200}\r\n--SomeBoundaryValue--" diff --git a/Documentation/Examples/RestCollectionCreateCollection.generated b/Documentation/Examples/RestCollectionCreateCollection.generated index ae8fe183ba..f046515dda 100644 --- a/Documentation/Examples/RestCollectionCreateCollection.generated +++ b/Documentation/Examples/RestCollectionCreateCollection.generated @@ -9,7 +9,7 @@ content-type: application/json; charset=utf-8 location: /_db/_system/_api/collection/testCollectionBasics { - "id" : "644262318", + "id" : "641185329", "name" : "testCollectionBasics", "waitForSync" : false, "isVolatile" : false, @@ -31,7 +31,7 @@ content-type: application/json; charset=utf-8 location: /_db/_system/_api/collection/testCollectionEdges { - "id" : "644393390", + "id" : "641316401", "name" : "testCollectionEdges", "waitForSync" : false, "isVolatile" : false, diff --git a/Documentation/Examples/RestCollectionCreateKeyopt.generated b/Documentation/Examples/RestCollectionCreateKeyopt.generated index 09734da65a..221c31d179 100644 --- a/Documentation/Examples/RestCollectionCreateKeyopt.generated +++ b/Documentation/Examples/RestCollectionCreateKeyopt.generated @@ -14,7 +14,7 @@ content-type: application/json; charset=utf-8 location: /_db/_system/_api/collection/testCollectionUsers { - "id" : "644655534", + "id" : "641578545", "name" : "testCollectionUsers", "waitForSync" : false, "isVolatile" : false, diff --git a/Documentation/Examples/RestCollectionDeleteCollectionIdentifier.generated b/Documentation/Examples/RestCollectionDeleteCollectionIdentifier.generated index ea01f75cab..18c8e8840e 100644 --- a/Documentation/Examples/RestCollectionDeleteCollectionIdentifier.generated +++ b/Documentation/Examples/RestCollectionDeleteCollectionIdentifier.generated @@ -1,10 +1,10 @@ -shell> curl -X DELETE --dump - http://localhost:8529/_api/collection/644852142 +shell> curl -X DELETE --dump - http://localhost:8529/_api/collection/641775153 HTTP/1.1 200 OK content-type: application/json; charset=utf-8 { - "id" : "644852142", + "id" : "641775153", "error" : false, "code" : 200 } diff --git a/Documentation/Examples/RestCollectionDeleteCollectionName.generated b/Documentation/Examples/RestCollectionDeleteCollectionName.generated index 1ccc88c4ac..dc4dfeca3d 100644 --- a/Documentation/Examples/RestCollectionDeleteCollectionName.generated +++ b/Documentation/Examples/RestCollectionDeleteCollectionName.generated @@ -4,7 +4,7 @@ HTTP/1.1 200 O content-type: application/json; charset=utf-8 { - "id" : "645048750", + "id" : "641971761", "error" : false, "code" : 200 } diff --git a/Documentation/Examples/RestCollectionGetAllCollections.generated b/Documentation/Examples/RestCollectionGetAllCollections.generated index d1d0645e5e..368647050f 100644 --- a/Documentation/Examples/RestCollectionGetAllCollections.generated +++ b/Documentation/Examples/RestCollectionGetAllCollections.generated @@ -6,244 +6,244 @@ content-type: application/json; charset=utf-8 { "collections" : [ { - "id" : "2337198", - "name" : "_routing", - "isSystem" : true, - "status" : 3, - "type" : 2 - }, - { - "id" : "4106670", - "name" : "_statisticsRaw", - "isSystem" : true, - "status" : 3, - "type" : 2 - }, - { - "id" : "5417390", - "name" : "_queues", - "isSystem" : true, - "status" : 3, - "type" : 2 - }, - { - "id" : "13412782", - "name" : "_sessions", - "isSystem" : true, - "status" : 3, - "type" : 2 - }, - { - "id" : "4499886", - "name" : "_statistics", - "isSystem" : true, - "status" : 3, - "type" : 2 - }, - { - "id" : "4893102", + "id" : "4896305", "name" : "_statistics15", "isSystem" : true, "status" : 3, "type" : 2 }, { - "id" : "2206126", + "id" : "2209329", "name" : "_modules", "isSystem" : true, "status" : 3, "type" : 2 }, { - "id" : "3975598", + "id" : "3978801", "name" : "_aqlfunctions", "isSystem" : true, "status" : 3, "type" : 2 }, { - "id" : "20425134", - "name" : "demo", - "isSystem" : false, - "status" : 3, - "type" : 2 - }, - { - "id" : "5286318", + "id" : "5289521", "name" : "_configuration", "isSystem" : true, "status" : 3, "type" : 2 }, { - "id" : "21277102", - "name" : "animals", - "isSystem" : false, - "status" : 3, - "type" : 2 - }, - { - "id" : "14133678", + "id" : "14136881", "name" : "_system_users_users", "isSystem" : true, "status" : 3, "type" : 2 }, { - "id" : "5679534", + "id" : "5682737", "name" : "_apps", "isSystem" : true, "status" : 3, "type" : 2 }, { - "id" : "2075054", + "id" : "17217073", + "name" : "demo", + "isSystem" : false, + "status" : 3, + "type" : 2 + }, + { + "id" : "2078257", "name" : "_graphs", "isSystem" : true, "status" : 3, "type" : 2 }, { - "id" : "2468270", + "id" : "18069041", + "name" : "animals", + "isSystem" : false, + "status" : 3, + "type" : 2 + }, + { + "id" : "2471473", "name" : "_cluster_kickstarter_plans", "isSystem" : true, "status" : 3, "type" : 2 }, { - "id" : "240046", + "id" : "243249", "name" : "_users", "isSystem" : true, "status" : 3, "type" : 2 }, { - "id" : "5548462", + "id" : "5551665", "name" : "_jobs", "isSystem" : true, "status" : 3, "type" : 2 + }, + { + "id" : "2340401", + "name" : "_routing", + "isSystem" : true, + "status" : 3, + "type" : 2 + }, + { + "id" : "4109873", + "name" : "_statisticsRaw", + "isSystem" : true, + "status" : 3, + "type" : 2 + }, + { + "id" : "5420593", + "name" : "_queues", + "isSystem" : true, + "status" : 3, + "type" : 2 + }, + { + "id" : "13415985", + "name" : "_sessions", + "isSystem" : true, + "status" : 3, + "type" : 2 + }, + { + "id" : "4503089", + "name" : "_statistics", + "isSystem" : true, + "status" : 3, + "type" : 2 } ], "names" : { - "_routing" : { - "id" : "2337198", - "name" : "_routing", - "isSystem" : true, - "status" : 3, - "type" : 2 - }, - "_statisticsRaw" : { - "id" : "4106670", - "name" : "_statisticsRaw", - "isSystem" : true, - "status" : 3, - "type" : 2 - }, - "_queues" : { - "id" : "5417390", - "name" : "_queues", - "isSystem" : true, - "status" : 3, - "type" : 2 - }, - "_sessions" : { - "id" : "13412782", - "name" : "_sessions", - "isSystem" : true, - "status" : 3, - "type" : 2 - }, - "_statistics" : { - "id" : "4499886", - "name" : "_statistics", - "isSystem" : true, - "status" : 3, - "type" : 2 - }, "_statistics15" : { - "id" : "4893102", + "id" : "4896305", "name" : "_statistics15", "isSystem" : true, "status" : 3, "type" : 2 }, "_modules" : { - "id" : "2206126", + "id" : "2209329", "name" : "_modules", "isSystem" : true, "status" : 3, "type" : 2 }, "_aqlfunctions" : { - "id" : "3975598", + "id" : "3978801", "name" : "_aqlfunctions", "isSystem" : true, "status" : 3, "type" : 2 }, - "demo" : { - "id" : "20425134", - "name" : "demo", - "isSystem" : false, - "status" : 3, - "type" : 2 - }, "_configuration" : { - "id" : "5286318", + "id" : "5289521", "name" : "_configuration", "isSystem" : true, "status" : 3, "type" : 2 }, - "animals" : { - "id" : "21277102", - "name" : "animals", - "isSystem" : false, - "status" : 3, - "type" : 2 - }, "_system_users_users" : { - "id" : "14133678", + "id" : "14136881", "name" : "_system_users_users", "isSystem" : true, "status" : 3, "type" : 2 }, "_apps" : { - "id" : "5679534", + "id" : "5682737", "name" : "_apps", "isSystem" : true, "status" : 3, "type" : 2 }, + "demo" : { + "id" : "17217073", + "name" : "demo", + "isSystem" : false, + "status" : 3, + "type" : 2 + }, "_graphs" : { - "id" : "2075054", + "id" : "2078257", "name" : "_graphs", "isSystem" : true, "status" : 3, "type" : 2 }, + "animals" : { + "id" : "18069041", + "name" : "animals", + "isSystem" : false, + "status" : 3, + "type" : 2 + }, "_cluster_kickstarter_plans" : { - "id" : "2468270", + "id" : "2471473", "name" : "_cluster_kickstarter_plans", "isSystem" : true, "status" : 3, "type" : 2 }, "_users" : { - "id" : "240046", + "id" : "243249", "name" : "_users", "isSystem" : true, "status" : 3, "type" : 2 }, "_jobs" : { - "id" : "5548462", + "id" : "5551665", "name" : "_jobs", "isSystem" : true, "status" : 3, "type" : 2 + }, + "_routing" : { + "id" : "2340401", + "name" : "_routing", + "isSystem" : true, + "status" : 3, + "type" : 2 + }, + "_statisticsRaw" : { + "id" : "4109873", + "name" : "_statisticsRaw", + "isSystem" : true, + "status" : 3, + "type" : 2 + }, + "_queues" : { + "id" : "5420593", + "name" : "_queues", + "isSystem" : true, + "status" : 3, + "type" : 2 + }, + "_sessions" : { + "id" : "13415985", + "name" : "_sessions", + "isSystem" : true, + "status" : 3, + "type" : 2 + }, + "_statistics" : { + "id" : "4503089", + "name" : "_statistics", + "isSystem" : true, + "status" : 3, + "type" : 2 } }, "error" : false, diff --git a/Documentation/Examples/RestCollectionGetCollectionChecksum.generated b/Documentation/Examples/RestCollectionGetCollectionChecksum.generated index 946fbb053f..9a47f9347f 100644 --- a/Documentation/Examples/RestCollectionGetCollectionChecksum.generated +++ b/Documentation/Examples/RestCollectionGetCollectionChecksum.generated @@ -4,13 +4,13 @@ HTTP/1.1 200 O content-type: application/json; charset=utf-8 { - "id" : "645245358", + "id" : "642168369", "name" : "products", "isSystem" : false, "status" : 3, "type" : 2, - "checksum" : 500492157, - "revision" : "645573038", + "checksum" : 2743591508, + "revision" : "642496049", "error" : false, "code" : 200 } diff --git a/Documentation/Examples/RestCollectionGetCollectionChecksumNoRev.generated b/Documentation/Examples/RestCollectionGetCollectionChecksumNoRev.generated index 8bdd29ca5d..8e79f1c4cc 100644 --- a/Documentation/Examples/RestCollectionGetCollectionChecksumNoRev.generated +++ b/Documentation/Examples/RestCollectionGetCollectionChecksumNoRev.generated @@ -4,13 +4,13 @@ HTTP/1.1 200 O content-type: application/json; charset=utf-8 { - "id" : "645835182", + "id" : "642758193", "name" : "products", "isSystem" : false, "status" : 3, "type" : 2, - "checksum" : 1456437626, - "revision" : "646162862", + "checksum" : 695108231, + "revision" : "643085873", "error" : false, "code" : 200 } diff --git a/Documentation/Examples/RestCollectionGetCollectionCount.generated b/Documentation/Examples/RestCollectionGetCollectionCount.generated index ba95c17cde..571d258ceb 100644 --- a/Documentation/Examples/RestCollectionGetCollectionCount.generated +++ b/Documentation/Examples/RestCollectionGetCollectionCount.generated @@ -5,7 +5,7 @@ content-type: application/json; charset=utf-8 location: /_db/_system/_api/collection/products/count { - "id" : "646425006", + "id" : "643348017", "name" : "products", "isSystem" : false, "doCompact" : true, diff --git a/Documentation/Examples/RestCollectionGetCollectionFigures.generated b/Documentation/Examples/RestCollectionGetCollectionFigures.generated index a96a23b827..eb140f7b04 100644 --- a/Documentation/Examples/RestCollectionGetCollectionFigures.generated +++ b/Documentation/Examples/RestCollectionGetCollectionFigures.generated @@ -5,7 +5,7 @@ content-type: application/json; charset=utf-8 location: /_db/_system/_api/collection/products/figures { - "id" : "666479022", + "id" : "666416689", "name" : "products", "isSystem" : false, "doCompact" : true, @@ -56,13 +56,13 @@ location: /_db/_system/_api/collection/products "count" : 1, "size" : 16120 }, - "lastTick" : "666872238", + "lastTick" : "666809905", "uncollectedLogfileEntries" : 0, "documentReferences" : 0, "waitingFor" : "-", "compactionStatus" : { "message" : "skipped compaction because collection has no datafiles", - "time" : "2016-03-01T20:04:00Z" + "time" : "2016-03-10T19:38:23Z" } }, "status" : 3, diff --git a/Documentation/Examples/RestCollectionGetCollectionIdentifier.generated b/Documentation/Examples/RestCollectionGetCollectionIdentifier.generated index 4243e05467..b678b750f3 100644 --- a/Documentation/Examples/RestCollectionGetCollectionIdentifier.generated +++ b/Documentation/Examples/RestCollectionGetCollectionIdentifier.generated @@ -1,11 +1,11 @@ -shell> curl --dump - http://localhost:8529/_api/collection/667396526/properties +shell> curl --dump - http://localhost:8529/_api/collection/667268657/properties HTTP/1.1 200 OK content-type: application/json; charset=utf-8 location: /_db/_system/_api/collection/products/properties { - "id" : "667396526", + "id" : "667268657", "name" : "products", "isSystem" : false, "doCompact" : true, diff --git a/Documentation/Examples/RestCollectionGetCollectionName.generated b/Documentation/Examples/RestCollectionGetCollectionName.generated index 0529a13213..bb820eb871 100644 --- a/Documentation/Examples/RestCollectionGetCollectionName.generated +++ b/Documentation/Examples/RestCollectionGetCollectionName.generated @@ -5,7 +5,7 @@ content-type: application/json; charset=utf-8 location: /_db/_system/_api/collection/products/properties { - "id" : "667593134", + "id" : "667465265", "name" : "products", "isSystem" : false, "doCompact" : true, diff --git a/Documentation/Examples/RestCollectionGetCollectionRevision.generated b/Documentation/Examples/RestCollectionGetCollectionRevision.generated index df1e640857..320c724b56 100644 --- a/Documentation/Examples/RestCollectionGetCollectionRevision.generated +++ b/Documentation/Examples/RestCollectionGetCollectionRevision.generated @@ -4,7 +4,7 @@ HTTP/1.1 200 O content-type: application/json; charset=utf-8 { - "id" : "667789742", + "id" : "667661873", "name" : "products", "isSystem" : false, "status" : 3, diff --git a/Documentation/Examples/RestCollectionIdentifierLoad.generated b/Documentation/Examples/RestCollectionIdentifierLoad.generated index e106b08fb4..cad29485de 100644 --- a/Documentation/Examples/RestCollectionIdentifierLoad.generated +++ b/Documentation/Examples/RestCollectionIdentifierLoad.generated @@ -4,7 +4,7 @@ HTTP/1.1 200 O content-type: application/json; charset=utf-8 { - "id" : "668051886", + "id" : "667924017", "name" : "products", "isSystem" : false, "count" : 0, diff --git a/Documentation/Examples/RestCollectionIdentifierPropertiesSync.generated b/Documentation/Examples/RestCollectionIdentifierPropertiesSync.generated index 3487fb3c94..1a73802f4c 100644 --- a/Documentation/Examples/RestCollectionIdentifierPropertiesSync.generated +++ b/Documentation/Examples/RestCollectionIdentifierPropertiesSync.generated @@ -8,7 +8,7 @@ HTTP/1.1 200 O content-type: application/json; charset=utf-8 { - "id" : "668314030", + "id" : "668186161", "name" : "products", "isSystem" : false, "doCompact" : true, diff --git a/Documentation/Examples/RestCollectionIdentifierRename.generated b/Documentation/Examples/RestCollectionIdentifierRename.generated index f718abc9ea..ca16c0a422 100644 --- a/Documentation/Examples/RestCollectionIdentifierRename.generated +++ b/Documentation/Examples/RestCollectionIdentifierRename.generated @@ -8,7 +8,7 @@ HTTP/1.1 200 O content-type: application/json; charset=utf-8 { - "id" : "668576174", + "id" : "668448305", "name" : "newname", "isSystem" : false, "status" : 3, diff --git a/Documentation/Examples/RestCollectionIdentifierTruncate.generated b/Documentation/Examples/RestCollectionIdentifierTruncate.generated index 1fc4337bd9..2547498715 100644 --- a/Documentation/Examples/RestCollectionIdentifierTruncate.generated +++ b/Documentation/Examples/RestCollectionIdentifierTruncate.generated @@ -4,7 +4,7 @@ HTTP/1.1 200 O content-type: application/json; charset=utf-8 { - "id" : "668903854", + "id" : "668775985", "name" : "products", "isSystem" : false, "status" : 3, diff --git a/Documentation/Examples/RestCollectionIdentifierUnload.generated b/Documentation/Examples/RestCollectionIdentifierUnload.generated index faff492853..d01552f871 100644 --- a/Documentation/Examples/RestCollectionIdentifierUnload.generated +++ b/Documentation/Examples/RestCollectionIdentifierUnload.generated @@ -4,7 +4,7 @@ HTTP/1.1 200 O content-type: application/json; charset=utf-8 { - "id" : "669165998", + "id" : "669038129", "name" : "products", "isSystem" : false, "status" : 4, diff --git a/Documentation/Examples/RestCursorCreateCursorForLimitReturn.generated b/Documentation/Examples/RestCursorCreateCursorForLimitReturn.generated index 03356eafb7..bf3b7f49a3 100644 --- a/Documentation/Examples/RestCursorCreateCursorForLimitReturn.generated +++ b/Documentation/Examples/RestCursorCreateCursorForLimitReturn.generated @@ -12,20 +12,20 @@ content-type: application/json; charset=utf-8 { "result" : [ { - "hello1" : "world1", - "_id" : "products/673819054", - "_rev" : "673819054", - "_key" : "673819054" + "hello2" : "world1", + "_id" : "products/670873137", + "_rev" : "670873137", + "_key" : "670873137" }, { - "hello5" : "world1", - "_id" : "products/675129774", - "_rev" : "675129774", - "_key" : "675129774" + "hello1" : "world1", + "_id" : "products/670545457", + "_rev" : "670545457", + "_key" : "670545457" } ], "hasMore" : true, - "id" : "675326382", + "id" : "672052785", "count" : 5, "extra" : { "stats" : { @@ -33,7 +33,8 @@ content-type: application/json; charset=utf-8 "writesIgnored" : 0, "scannedFull" : 5, "scannedIndex" : 0, - "filtered" : 0 + "filtered" : 0, + "executionTime" : 0.00024509429931640625 }, "warnings" : [ ] }, diff --git a/Documentation/Examples/RestCursorCreateCursorForLimitReturnSingle.generated b/Documentation/Examples/RestCursorCreateCursorForLimitReturnSingle.generated index b2b91ee8b1..47d06d5dfc 100644 --- a/Documentation/Examples/RestCursorCreateCursorForLimitReturnSingle.generated +++ b/Documentation/Examples/RestCursorCreateCursorForLimitReturnSingle.generated @@ -12,16 +12,16 @@ content-type: application/json; charset=utf-8 { "result" : [ { - "hello1" : "world1", - "_id" : "products/675785134", - "_rev" : "675785134", - "_key" : "675785134" + "hello2" : "world1", + "_id" : "products/672839217", + "_rev" : "672839217", + "_key" : "672839217" }, { - "hello2" : "world1", - "_id" : "products/676112814", - "_rev" : "676112814", - "_key" : "676112814" + "hello1" : "world1", + "_id" : "products/672511537", + "_rev" : "672511537", + "_key" : "672511537" } ], "hasMore" : false, @@ -33,7 +33,8 @@ content-type: application/json; charset=utf-8 "writesIgnored" : 0, "scannedFull" : 2, "scannedIndex" : 0, - "filtered" : 0 + "filtered" : 0, + "executionTime" : 0.00016307830810546875 }, "warnings" : [ ] }, diff --git a/Documentation/Examples/RestCursorCreateCursorOption.generated b/Documentation/Examples/RestCursorCreateCursorOption.generated index d497c8baab..3bf5977701 100644 --- a/Documentation/Examples/RestCursorCreateCursorOption.generated +++ b/Documentation/Examples/RestCursorCreateCursorOption.generated @@ -34,7 +34,8 @@ content-type: application/json; charset=utf-8 "scannedFull" : 0, "scannedIndex" : 0, "filtered" : 500, - "fullCount" : 500 + "fullCount" : 500, + "executionTime" : 0.0020470619201660156 }, "warnings" : [ ] }, diff --git a/Documentation/Examples/RestCursorDelete.generated b/Documentation/Examples/RestCursorDelete.generated index bb8cb35c5f..c72a38b490 100644 --- a/Documentation/Examples/RestCursorDelete.generated +++ b/Documentation/Examples/RestCursorDelete.generated @@ -13,19 +13,19 @@ content-type: application/json; charset=utf-8 "result" : [ { "hello2" : "world1", - "_id" : "products/677095854", - "_rev" : "677095854", - "_key" : "677095854" + "_id" : "products/673822257", + "_rev" : "673822257", + "_key" : "673822257" }, { - "hello1" : "world1", - "_id" : "products/676768174", - "_rev" : "676768174", - "_key" : "676768174" + "hello5" : "world1", + "_id" : "products/674805297", + "_rev" : "674805297", + "_key" : "674805297" } ], "hasMore" : true, - "id" : "678275502", + "id" : "675001905", "count" : 5, "extra" : { "stats" : { @@ -33,7 +33,8 @@ content-type: application/json; charset=utf-8 "writesIgnored" : 0, "scannedFull" : 5, "scannedIndex" : 0, - "filtered" : 0 + "filtered" : 0, + "executionTime" : 0.0001659393310546875 }, "warnings" : [ ] }, @@ -41,5 +42,5 @@ content-type: application/json; charset=utf-8 "error" : false, "code" : 201 } -shell> curl -X DELETE --dump - http://localhost:8529/_api/cursor/678275502 +shell> curl -X DELETE --dump - http://localhost:8529/_api/cursor/675001905 diff --git a/Documentation/Examples/RestCursorDeleteIgnore.generated b/Documentation/Examples/RestCursorDeleteIgnore.generated index 66c78fdc3b..f8f8b62b0f 100644 --- a/Documentation/Examples/RestCursorDeleteIgnore.generated +++ b/Documentation/Examples/RestCursorDeleteIgnore.generated @@ -17,7 +17,8 @@ content-type: application/json; charset=utf-8 "writesIgnored" : 1, "scannedFull" : 0, "scannedIndex" : 0, - "filtered" : 0 + "filtered" : 0, + "executionTime" : 0.00012493133544921875 }, "warnings" : [ ] }, diff --git a/Documentation/Examples/RestCursorDeleteQuery.generated b/Documentation/Examples/RestCursorDeleteQuery.generated index 81bf93cb2f..2453bdcacf 100644 --- a/Documentation/Examples/RestCursorDeleteQuery.generated +++ b/Documentation/Examples/RestCursorDeleteQuery.generated @@ -17,7 +17,8 @@ content-type: application/json; charset=utf-8 "writesIgnored" : 0, "scannedFull" : 2, "scannedIndex" : 0, - "filtered" : 0 + "filtered" : 0, + "executionTime" : 0.0001468658447265625 }, "warnings" : [ ] }, diff --git a/Documentation/Examples/RestCursorForLimitReturnCont.generated b/Documentation/Examples/RestCursorForLimitReturnCont.generated index 1587535c64..0e2fbddd43 100644 --- a/Documentation/Examples/RestCursorForLimitReturnCont.generated +++ b/Documentation/Examples/RestCursorForLimitReturnCont.generated @@ -6,7 +6,7 @@ shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor } EOF -shell> curl -X PUT --dump - http://localhost:8529/_api/cursor/682731950 +shell> curl -X PUT --dump - http://localhost:8529/_api/cursor/679458353 HTTP/1.1 200 OK content-type: application/json; charset=utf-8 @@ -14,20 +14,20 @@ content-type: application/json; charset=utf-8 { "result" : [ { - "hello3" : "world1", - "_id" : "products/681879982", - "_rev" : "681879982", - "_key" : "681879982" + "hello1" : "world1", + "_id" : "products/677951025", + "_rev" : "677951025", + "_key" : "677951025" }, { - "hello4" : "world1", - "_id" : "products/682207662", - "_rev" : "682207662", - "_key" : "682207662" + "hello5" : "world1", + "_id" : "products/679261745", + "_rev" : "679261745", + "_key" : "679261745" } ], "hasMore" : true, - "id" : "682731950", + "id" : "679458353", "count" : 5, "extra" : { "stats" : { @@ -35,7 +35,8 @@ content-type: application/json; charset=utf-8 "writesIgnored" : 0, "scannedFull" : 5, "scannedIndex" : 0, - "filtered" : 0 + "filtered" : 0, + "executionTime" : 0.00023293495178222656 }, "warnings" : [ ] }, diff --git a/Documentation/Examples/RestCursorOptimizerRules.generated b/Documentation/Examples/RestCursorOptimizerRules.generated index e406deb9fa..79cc470ac2 100644 --- a/Documentation/Examples/RestCursorOptimizerRules.generated +++ b/Documentation/Examples/RestCursorOptimizerRules.generated @@ -39,7 +39,8 @@ content-type: application/json; charset=utf-8 "writesIgnored" : 0, "scannedFull" : 0, "scannedIndex" : 0, - "filtered" : 0 + "filtered" : 0, + "executionTime" : 0.0019600391387939453 }, "warnings" : [ ] }, diff --git a/Documentation/Examples/RestDatabaseGetInfo.generated b/Documentation/Examples/RestDatabaseGetInfo.generated index 580869c7ee..d661258bc7 100644 --- a/Documentation/Examples/RestDatabaseGetInfo.generated +++ b/Documentation/Examples/RestDatabaseGetInfo.generated @@ -6,8 +6,8 @@ content-type: application/json; charset=utf-8 { "result" : { "name" : "_system", - "id" : "108974", - "path" : "/tmp/vocdir.40199/databases/database-108974", + "id" : "112177", + "path" : "/tmp/vocdir.10518/databases/database-112177", "isSystem" : true }, "error" : false, diff --git a/Documentation/Examples/RestDocumentHandlerDeleteDocument.generated b/Documentation/Examples/RestDocumentHandlerDeleteDocument.generated index fc866d7bc6..cfeac33b4f 100644 --- a/Documentation/Examples/RestDocumentHandlerDeleteDocument.generated +++ b/Documentation/Examples/RestDocumentHandlerDeleteDocument.generated @@ -1,11 +1,11 @@ -shell> curl -X DELETE --dump - http://localhost:8529/_api/document/products/724937134 +shell> curl -X DELETE --dump - http://localhost:8529/_api/document/products/721663537 HTTP/1.1 200 OK content-type: application/json; charset=utf-8 { "error" : false, - "_id" : "products/724937134", - "_rev" : "724937134", - "_key" : "724937134" + "_id" : "products/721663537", + "_rev" : "721663537", + "_key" : "721663537" } diff --git a/Documentation/Examples/RestDocumentHandlerDeleteDocumentIfMatchOther.generated b/Documentation/Examples/RestDocumentHandlerDeleteDocumentIfMatchOther.generated index 4dd8ab7c74..58142da18d 100644 --- a/Documentation/Examples/RestDocumentHandlerDeleteDocumentIfMatchOther.generated +++ b/Documentation/Examples/RestDocumentHandlerDeleteDocumentIfMatchOther.generated @@ -1,15 +1,15 @@ -shell> curl -X DELETE --header 'If-Match: "725985710"' --dump - http://localhost:8529/_api/document/products/725658030 +shell> curl -X DELETE --header 'If-Match: "722712113"' --dump - http://localhost:8529/_api/document/products/722384433 HTTP/1.1 412 Precondition Failed content-type: application/json; charset=utf-8 -etag: "725658030" +etag: "722384433" { "error" : true, "code" : 412, "errorNum" : 1200, "errorMessage" : "precondition failed", - "_id" : "products/725658030", - "_rev" : "725658030", - "_key" : "725658030" + "_id" : "products/722384433", + "_rev" : "722384433", + "_key" : "722384433" } diff --git a/Documentation/Examples/RestDocumentHandlerDeleteDocumentUnknownHandle.generated b/Documentation/Examples/RestDocumentHandlerDeleteDocumentUnknownHandle.generated index 5dda0ffd4c..df56c3c227 100644 --- a/Documentation/Examples/RestDocumentHandlerDeleteDocumentUnknownHandle.generated +++ b/Documentation/Examples/RestDocumentHandlerDeleteDocumentUnknownHandle.generated @@ -1,4 +1,4 @@ -shell> curl -X DELETE --dump - http://localhost:8529/_api/document/products/726641070 +shell> curl -X DELETE --dump - http://localhost:8529/_api/document/products/723367473 HTTP/1.1 404 Not Found content-type: application/json; charset=utf-8 diff --git a/Documentation/Examples/RestDocumentHandlerPatchDocument.generated b/Documentation/Examples/RestDocumentHandlerPatchDocument.generated index f02b2f3bcc..9c4ad4ccd2 100644 --- a/Documentation/Examples/RestDocumentHandlerPatchDocument.generated +++ b/Documentation/Examples/RestDocumentHandlerPatchDocument.generated @@ -1,4 +1,4 @@ -shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/727493038 <<EOF +shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/724219441 <<EOF { "hello" : "world" } @@ -6,16 +6,16 @@ EOF HTTP/1.1 202 Accepted content-type: application/json; charset=utf-8 -etag: "727820718" -location: /_db/_system/_api/document/products/727493038 +etag: "724547121" +location: /_db/_system/_api/document/products/724219441 { "error" : false, - "_id" : "products/727493038", - "_rev" : "727820718", - "_key" : "727493038" + "_id" : "products/724219441", + "_rev" : "724547121", + "_key" : "724219441" } -shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/727493038 <<EOF +shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/724219441 <<EOF { "numbers" : { "one" : 1, @@ -28,20 +28,20 @@ EOF HTTP/1.1 202 Accepted content-type: application/json; charset=utf-8 -etag: "728410542" -location: /_db/_system/_api/document/products/727493038 +etag: "725136945" +location: /_db/_system/_api/document/products/724219441 { "error" : false, - "_id" : "products/727493038", - "_rev" : "728410542", - "_key" : "727493038" + "_id" : "products/724219441", + "_rev" : "725136945", + "_key" : "724219441" } -shell> curl --dump - http://localhost:8529/_api/document/products/727493038 +shell> curl --dump - http://localhost:8529/_api/document/products/724219441 HTTP/1.1 200 OK content-type: application/json; charset=utf-8 -etag: "728410542" +etag: "725136945" { "one" : "world", @@ -52,11 +52,11 @@ etag: "728410542" "two" : 2, "three" : 3 }, - "_id" : "products/727493038", - "_rev" : "728410542", - "_key" : "727493038" + "_id" : "products/724219441", + "_rev" : "725136945", + "_key" : "724219441" } -shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/727493038?keepNull=false <<EOF +shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/724219441?keepNull=false <<EOF { "hello" : null, "numbers" : { @@ -67,20 +67,20 @@ EOF HTTP/1.1 202 Accepted content-type: application/json; charset=utf-8 -etag: "728869294" -location: /_db/_system/_api/document/products/727493038 +etag: "725595697" +location: /_db/_system/_api/document/products/724219441 { "error" : false, - "_id" : "products/727493038", - "_rev" : "728869294", - "_key" : "727493038" + "_id" : "products/724219441", + "_rev" : "725595697", + "_key" : "724219441" } -shell> curl --dump - http://localhost:8529/_api/document/products/727493038 +shell> curl --dump - http://localhost:8529/_api/document/products/724219441 HTTP/1.1 200 OK content-type: application/json; charset=utf-8 -etag: "728869294" +etag: "725595697" { "one" : "world", @@ -91,7 +91,7 @@ etag: "728869294" "three" : 3, "four" : 4 }, - "_id" : "products/727493038", - "_rev" : "728869294", - "_key" : "727493038" + "_id" : "products/724219441", + "_rev" : "725595697", + "_key" : "724219441" } diff --git a/Documentation/Examples/RestDocumentHandlerPatchDocumentMerge.generated b/Documentation/Examples/RestDocumentHandlerPatchDocumentMerge.generated index 92e85b10a6..eac77a0766 100644 --- a/Documentation/Examples/RestDocumentHandlerPatchDocumentMerge.generated +++ b/Documentation/Examples/RestDocumentHandlerPatchDocumentMerge.generated @@ -1,8 +1,8 @@ -shell> curl --dump - http://localhost:8529/_api/document/products/729721262 +shell> curl --dump - http://localhost:8529/_api/document/products/726447665 HTTP/1.1 200 OK content-type: application/json; charset=utf-8 -etag: "729721262" +etag: "726447665" { "inhabitants" : { @@ -10,11 +10,11 @@ etag: "729721262" "india" : 1263590000, "usa" : 319220000 }, - "_id" : "products/729721262", - "_rev" : "729721262", - "_key" : "729721262" + "_id" : "products/726447665", + "_rev" : "726447665", + "_key" : "726447665" } -shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/729721262?mergeObjects=true <<EOF +shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/726447665?mergeObjects=true <<EOF { "inhabitants" : { "indonesia" : 252164800, @@ -23,11 +23,11 @@ shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/docume } EOF -shell> curl --dump - http://localhost:8529/_api/document/products/729721262 +shell> curl --dump - http://localhost:8529/_api/document/products/726447665 HTTP/1.1 200 OK content-type: application/json; charset=utf-8 -etag: "730245550" +etag: "726971953" { "inhabitants" : { @@ -37,11 +37,11 @@ etag: "730245550" "indonesia" : 252164800, "brazil" : 203553000 }, - "_id" : "products/729721262", - "_rev" : "730245550", - "_key" : "729721262" + "_id" : "products/726447665", + "_rev" : "726971953", + "_key" : "726447665" } -shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/729721262?mergeObjects=false <<EOF +shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/726447665?mergeObjects=false <<EOF { "inhabitants" : { "pakistan" : 188346000 @@ -51,26 +51,26 @@ EOF HTTP/1.1 202 Accepted content-type: application/json; charset=utf-8 -etag: "730704302" -location: /_db/_system/_api/document/products/729721262 +etag: "727430705" +location: /_db/_system/_api/document/products/726447665 { "error" : false, - "_id" : "products/729721262", - "_rev" : "730704302", - "_key" : "729721262" + "_id" : "products/726447665", + "_rev" : "727430705", + "_key" : "726447665" } -shell> curl --dump - http://localhost:8529/_api/document/products/729721262 +shell> curl --dump - http://localhost:8529/_api/document/products/726447665 HTTP/1.1 200 OK content-type: application/json; charset=utf-8 -etag: "730704302" +etag: "727430705" { "inhabitants" : { "pakistan" : 188346000 }, - "_id" : "products/729721262", - "_rev" : "730704302", - "_key" : "729721262" + "_id" : "products/726447665", + "_rev" : "727430705", + "_key" : "726447665" } diff --git a/Documentation/Examples/RestDocumentHandlerPostAccept1.generated b/Documentation/Examples/RestDocumentHandlerPostAccept1.generated index 937134f2b4..2f9d27ed25 100644 --- a/Documentation/Examples/RestDocumentHandlerPostAccept1.generated +++ b/Documentation/Examples/RestDocumentHandlerPostAccept1.generated @@ -4,12 +4,12 @@ EOF HTTP/1.1 202 Accepted content-type: application/json; charset=utf-8 -etag: "731294126" -location: /_db/_system/_api/document/products/731294126 +etag: "728020529" +location: /_db/_system/_api/document/products/728020529 { "error" : false, - "_id" : "products/731294126", - "_rev" : "731294126", - "_key" : "731294126" + "_id" : "products/728020529", + "_rev" : "728020529", + "_key" : "728020529" } diff --git a/Documentation/Examples/RestDocumentHandlerPostCreate1.generated b/Documentation/Examples/RestDocumentHandlerPostCreate1.generated index 8c29afe544..350eac9971 100644 --- a/Documentation/Examples/RestDocumentHandlerPostCreate1.generated +++ b/Documentation/Examples/RestDocumentHandlerPostCreate1.generated @@ -4,12 +4,12 @@ EOF HTTP/1.1 201 Created content-type: application/json; charset=utf-8 -etag: "731818414" -location: /_db/_system/_api/document/products/731818414 +etag: "728544817" +location: /_db/_system/_api/document/products/728544817 { "error" : false, - "_id" : "products/731818414", - "_rev" : "731818414", - "_key" : "731818414" + "_id" : "products/728544817", + "_rev" : "728544817", + "_key" : "728544817" } diff --git a/Documentation/Examples/RestDocumentHandlerPostCreate2.generated b/Documentation/Examples/RestDocumentHandlerPostCreate2.generated index f10031ca32..8123cd9190 100644 --- a/Documentation/Examples/RestDocumentHandlerPostCreate2.generated +++ b/Documentation/Examples/RestDocumentHandlerPostCreate2.generated @@ -4,12 +4,12 @@ EOF HTTP/1.1 202 Accepted content-type: application/json; charset=utf-8 -etag: "732342702" -location: /_db/_system/_api/document/products/732342702 +etag: "729069105" +location: /_db/_system/_api/document/products/729069105 { "error" : false, - "_id" : "products/732342702", - "_rev" : "732342702", - "_key" : "732342702" + "_id" : "products/729069105", + "_rev" : "729069105", + "_key" : "729069105" } diff --git a/Documentation/Examples/RestDocumentHandlerPostWait1.generated b/Documentation/Examples/RestDocumentHandlerPostWait1.generated index cf55ab00c0..054c97b06d 100644 --- a/Documentation/Examples/RestDocumentHandlerPostWait1.generated +++ b/Documentation/Examples/RestDocumentHandlerPostWait1.generated @@ -4,12 +4,12 @@ EOF HTTP/1.1 201 Created content-type: application/json; charset=utf-8 -etag: "732866990" -location: /_db/_system/_api/document/products/732866990 +etag: "729593393" +location: /_db/_system/_api/document/products/729593393 { "error" : false, - "_id" : "products/732866990", - "_rev" : "732866990", - "_key" : "732866990" + "_id" : "products/729593393", + "_rev" : "729593393", + "_key" : "729593393" } diff --git a/Documentation/Examples/RestDocumentHandlerReadDocument.generated b/Documentation/Examples/RestDocumentHandlerReadDocument.generated index 74c116fe96..0d8b077da5 100644 --- a/Documentation/Examples/RestDocumentHandlerReadDocument.generated +++ b/Documentation/Examples/RestDocumentHandlerReadDocument.generated @@ -1,12 +1,12 @@ -shell> curl --dump - http://localhost:8529/_api/document/products/733391278 +shell> curl --dump - http://localhost:8529/_api/document/products/730117681 HTTP/1.1 200 OK content-type: application/json; charset=utf-8 -etag: "733391278" +etag: "730117681" { "hello" : "world", - "_id" : "products/733391278", - "_rev" : "733391278", - "_key" : "733391278" + "_id" : "products/730117681", + "_rev" : "730117681", + "_key" : "730117681" } diff --git a/Documentation/Examples/RestDocumentHandlerReadDocumentAllKey.generated b/Documentation/Examples/RestDocumentHandlerReadDocumentAllKey.generated index 13a6d18811..60353d29ba 100644 --- a/Documentation/Examples/RestDocumentHandlerReadDocumentAllKey.generated +++ b/Documentation/Examples/RestDocumentHandlerReadDocumentAllKey.generated @@ -5,8 +5,8 @@ content-type: application/json; charset=utf-8 { "documents" : [ - "734636462", - "734308782", - "733981102" + "731362865", + "730707505", + "731035185" ] } diff --git a/Documentation/Examples/RestDocumentHandlerReadDocumentAllPath.generated b/Documentation/Examples/RestDocumentHandlerReadDocumentAllPath.generated index 13c15f1b31..a8e9808156 100644 --- a/Documentation/Examples/RestDocumentHandlerReadDocumentAllPath.generated +++ b/Documentation/Examples/RestDocumentHandlerReadDocumentAllPath.generated @@ -5,8 +5,8 @@ content-type: application/json; charset=utf-8 { "documents" : [ - "/_db/_system/_api/document/products/735553966", - "/_db/_system/_api/document/products/735226286", - "/_db/_system/_api/document/products/735881646" + "/_db/_system/_api/document/products/732608049", + "/_db/_system/_api/document/products/732280369", + "/_db/_system/_api/document/products/731952689" ] } diff --git a/Documentation/Examples/RestDocumentHandlerReadDocumentHead.generated b/Documentation/Examples/RestDocumentHandlerReadDocumentHead.generated index f6a6c00d45..2399a57c68 100644 --- a/Documentation/Examples/RestDocumentHandlerReadDocumentHead.generated +++ b/Documentation/Examples/RestDocumentHandlerReadDocumentHead.generated @@ -1,2 +1,2 @@ -shell> curl -X HEAD --dump - http://localhost:8529/_api/document/products/736471470 +shell> curl -X HEAD --dump - http://localhost:8529/_api/document/products/733197873 diff --git a/Documentation/Examples/RestDocumentHandlerReadDocumentIfNoneMatch.generated b/Documentation/Examples/RestDocumentHandlerReadDocumentIfNoneMatch.generated index 97791b1bbb..7b3e645d78 100644 --- a/Documentation/Examples/RestDocumentHandlerReadDocumentIfNoneMatch.generated +++ b/Documentation/Examples/RestDocumentHandlerReadDocumentIfNoneMatch.generated @@ -1,2 +1,2 @@ -shell> curl --header 'If-None-Match: "737061294"' --dump - http://localhost:8529/_api/document/products/737061294 +shell> curl --header 'If-None-Match: "733787697"' --dump - http://localhost:8529/_api/document/products/733787697 diff --git a/Documentation/Examples/RestDocumentHandlerUpdateDocument.generated b/Documentation/Examples/RestDocumentHandlerUpdateDocument.generated index 29e625897b..74f5da80e3 100644 --- a/Documentation/Examples/RestDocumentHandlerUpdateDocument.generated +++ b/Documentation/Examples/RestDocumentHandlerUpdateDocument.generated @@ -1,15 +1,15 @@ -shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/document/products/737651118 <<EOF +shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/document/products/734377521 <<EOF {"Hello": "you"} EOF HTTP/1.1 202 Accepted content-type: application/json; charset=utf-8 -etag: "737978798" -location: /_db/_system/_api/document/products/737651118 +etag: "734705201" +location: /_db/_system/_api/document/products/734377521 { "error" : false, - "_id" : "products/737651118", - "_rev" : "737978798", - "_key" : "737651118" + "_id" : "products/734377521", + "_rev" : "734705201", + "_key" : "734377521" } diff --git a/Documentation/Examples/RestDocumentHandlerUpdateDocumentIfMatchOther.generated b/Documentation/Examples/RestDocumentHandlerUpdateDocumentIfMatchOther.generated index 2f03230b79..eeb9a7b74e 100644 --- a/Documentation/Examples/RestDocumentHandlerUpdateDocumentIfMatchOther.generated +++ b/Documentation/Examples/RestDocumentHandlerUpdateDocumentIfMatchOther.generated @@ -1,17 +1,17 @@ -shell> curl -X PUT --header 'If-Match: "738830766"' --data-binary @- --dump - http://localhost:8529/_api/document/products/738503086 <<EOF +shell> curl -X PUT --header 'If-Match: "735557169"' --data-binary @- --dump - http://localhost:8529/_api/document/products/735229489 <<EOF {"other":"content"} EOF HTTP/1.1 412 Precondition Failed content-type: application/json; charset=utf-8 -etag: "738503086" +etag: "735229489" { "error" : true, "code" : 412, "errorNum" : 1200, "errorMessage" : "precondition failed", - "_id" : "products/738503086", - "_rev" : "738503086", - "_key" : "738503086" + "_id" : "products/735229489", + "_rev" : "735229489", + "_key" : "735229489" } diff --git a/Documentation/Examples/RestDocumentHandlerUpdateDocumentIfMatchOtherLastWriteWins.generated b/Documentation/Examples/RestDocumentHandlerUpdateDocumentIfMatchOtherLastWriteWins.generated index 5f94ff2f8f..57341ca7a4 100644 --- a/Documentation/Examples/RestDocumentHandlerUpdateDocumentIfMatchOtherLastWriteWins.generated +++ b/Documentation/Examples/RestDocumentHandlerUpdateDocumentIfMatchOtherLastWriteWins.generated @@ -1,15 +1,15 @@ -shell> curl -X PUT --header 'If-Match: "739944878"' --data-binary @- --dump - http://localhost:8529/_api/document/products/739617198?policy=last <<EOF +shell> curl -X PUT --header 'If-Match: "736671281"' --data-binary @- --dump - http://localhost:8529/_api/document/products/736343601?policy=last <<EOF {} EOF HTTP/1.1 202 Accepted content-type: application/json; charset=utf-8 -etag: "740207022" -location: /_db/_system/_api/document/products/739617198 +etag: "736933425" +location: /_db/_system/_api/document/products/736343601 { "error" : false, - "_id" : "products/739617198", - "_rev" : "740207022", - "_key" : "739617198" + "_id" : "products/736343601", + "_rev" : "736933425", + "_key" : "736343601" } diff --git a/Documentation/Examples/RestDocumentHandlerUpdateDocumentRevOther.generated b/Documentation/Examples/RestDocumentHandlerUpdateDocumentRevOther.generated index ba96ae6b99..5abe63b99e 100644 --- a/Documentation/Examples/RestDocumentHandlerUpdateDocumentRevOther.generated +++ b/Documentation/Examples/RestDocumentHandlerUpdateDocumentRevOther.generated @@ -1,17 +1,17 @@ -shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/document/products/740731310?rev=741058990 <<EOF +shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/document/products/737457713?rev=737785393 <<EOF {"other":"content"} EOF HTTP/1.1 412 Precondition Failed content-type: application/json; charset=utf-8 -etag: "740731310" +etag: "737457713" { "error" : true, "code" : 412, "errorNum" : 1200, "errorMessage" : "precondition failed", - "_id" : "products/740731310", - "_rev" : "740731310", - "_key" : "740731310" + "_id" : "products/737457713", + "_rev" : "737457713", + "_key" : "737457713" } diff --git a/Documentation/Examples/RestDocumentHandlerUpdateDocumentUnknownHandle.generated b/Documentation/Examples/RestDocumentHandlerUpdateDocumentUnknownHandle.generated index 215b615ef8..f2ca617dbb 100644 --- a/Documentation/Examples/RestDocumentHandlerUpdateDocumentUnknownHandle.generated +++ b/Documentation/Examples/RestDocumentHandlerUpdateDocumentUnknownHandle.generated @@ -1,4 +1,4 @@ -shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/document/products/741845422 <<EOF +shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/document/products/738571825 <<EOF {} EOF diff --git a/Documentation/Examples/RestEdgeCreateEdge.generated b/Documentation/Examples/RestEdgeCreateEdge.generated index fab5b78326..6bd791c110 100644 --- a/Documentation/Examples/RestEdgeCreateEdge.generated +++ b/Documentation/Examples/RestEdgeCreateEdge.generated @@ -6,26 +6,26 @@ EOF HTTP/1.1 202 Accepted content-type: application/json; charset=utf-8 -etag: "744729006" -location: /_db/_system/_api/edge/edges/744729006 +etag: "741455409" +location: /_db/_system/_api/edge/edges/741455409 { "error" : false, - "_id" : "edges/744729006", - "_rev" : "744729006", - "_key" : "744729006" + "_id" : "edges/741455409", + "_rev" : "741455409", + "_key" : "741455409" } -shell> curl --dump - http://localhost:8529/_api/edge/edges/744729006 +shell> curl --dump - http://localhost:8529/_api/edge/edges/741455409 HTTP/1.1 200 OK content-type: application/json; charset=utf-8 -etag: "744729006" +etag: "741455409" { "name" : "Emil", - "_id" : "edges/744729006", - "_rev" : "744729006", - "_key" : "744729006", + "_id" : "edges/741455409", + "_rev" : "741455409", + "_key" : "741455409", "_from" : "vertices/1", "_to" : "vertices/2" } diff --git a/Documentation/Examples/RestEdgesReadEdgesAny.generated b/Documentation/Examples/RestEdgesReadEdgesAny.generated index 4d62d3f94c..41cfde0ec5 100644 --- a/Documentation/Examples/RestEdgesReadEdgesAny.generated +++ b/Documentation/Examples/RestEdgesReadEdgesAny.generated @@ -8,7 +8,7 @@ content-type: application/json; charset=utf-8 { "$label" : "v2 -> v1", "_id" : "edges/6", - "_rev" : "748857774", + "_rev" : "745584177", "_key" : "6", "_from" : "vertices/2", "_to" : "vertices/1" @@ -16,7 +16,7 @@ content-type: application/json; charset=utf-8 { "$label" : "v4 -> v1", "_id" : "edges/7", - "_rev" : "749382062", + "_rev" : "746108465", "_key" : "7", "_from" : "vertices/4", "_to" : "vertices/1" @@ -24,7 +24,7 @@ content-type: application/json; charset=utf-8 { "$label" : "v1 -> v3", "_id" : "edges/5", - "_rev" : "748333486", + "_rev" : "745059889", "_key" : "5", "_from" : "vertices/1", "_to" : "vertices/3" diff --git a/Documentation/Examples/RestEdgesReadEdgesIn.generated b/Documentation/Examples/RestEdgesReadEdgesIn.generated index ddcefb1f91..d8ddf30d14 100644 --- a/Documentation/Examples/RestEdgesReadEdgesIn.generated +++ b/Documentation/Examples/RestEdgesReadEdgesIn.generated @@ -8,7 +8,7 @@ content-type: application/json; charset=utf-8 { "$label" : "v2 -> v1", "_id" : "edges/6", - "_rev" : "753576366", + "_rev" : "750302769", "_key" : "6", "_from" : "vertices/2", "_to" : "vertices/1" @@ -16,7 +16,7 @@ content-type: application/json; charset=utf-8 { "$label" : "v4 -> v1", "_id" : "edges/7", - "_rev" : "754100654", + "_rev" : "750827057", "_key" : "7", "_from" : "vertices/4", "_to" : "vertices/1" diff --git a/Documentation/Examples/RestEdgesReadEdgesOut.generated b/Documentation/Examples/RestEdgesReadEdgesOut.generated index 6d3e462dc9..ca8a2ef576 100644 --- a/Documentation/Examples/RestEdgesReadEdgesOut.generated +++ b/Documentation/Examples/RestEdgesReadEdgesOut.generated @@ -8,7 +8,7 @@ content-type: application/json; charset=utf-8 { "$label" : "v1 -> v3", "_id" : "edges/5", - "_rev" : "757770670", + "_rev" : "754497073", "_key" : "5", "_from" : "vertices/1", "_to" : "vertices/3" diff --git a/Documentation/Examples/RestEndpointGet.generated b/Documentation/Examples/RestEndpointGet.generated index 5c6ed3dc29..84a178a4ba 100644 --- a/Documentation/Examples/RestEndpointGet.generated +++ b/Documentation/Examples/RestEndpointGet.generated @@ -5,7 +5,7 @@ content-type: application/json; charset=utf-8 [ { - "endpoint" : "tcp://127.0.0.1:30199", + "endpoint" : "tcp://127.0.0.1:30518", "databases" : [ ] } ] diff --git a/Documentation/Examples/RestExplainAllPlans.generated b/Documentation/Examples/RestExplainAllPlans.generated index 86ff399938..64b7fae3c2 100644 --- a/Documentation/Examples/RestExplainAllPlans.generated +++ b/Documentation/Examples/RestExplainAllPlans.generated @@ -38,7 +38,7 @@ content-type: application/json; charset=utf-8 "indexes" : [ { "type" : "hash", - "id" : "759671214", + "id" : "756397617", "unique" : false, "sparse" : false, "selectivityEstimate" : 1, diff --git a/Documentation/Examples/RestExplainOptimizerRules.generated b/Documentation/Examples/RestExplainOptimizerRules.generated index ffebfd3c93..8b3af2e7e2 100644 --- a/Documentation/Examples/RestExplainOptimizerRules.generated +++ b/Documentation/Examples/RestExplainOptimizerRules.generated @@ -34,7 +34,7 @@ content-type: application/json; charset=utf-8 "indexes" : [ { "type" : "skiplist", - "id" : "760654254", + "id" : "757380657", "unique" : false, "sparse" : false, "fields" : [ diff --git a/Documentation/Examples/RestExplainOptions.generated b/Documentation/Examples/RestExplainOptions.generated index 062e201881..660378bfc4 100644 --- a/Documentation/Examples/RestExplainOptions.generated +++ b/Documentation/Examples/RestExplainOptions.generated @@ -46,7 +46,7 @@ content-type: application/json; charset=utf-8 "indexes" : [ { "type" : "skiplist", - "id" : "763210158", + "id" : "759936561", "unique" : false, "sparse" : false, "fields" : [ diff --git a/Documentation/Examples/RestIndexAllIndexes.generated b/Documentation/Examples/RestIndexAllIndexes.generated index 64a7012be6..446f91be3c 100644 --- a/Documentation/Examples/RestIndexAllIndexes.generated +++ b/Documentation/Examples/RestIndexAllIndexes.generated @@ -16,7 +16,7 @@ content-type: application/json; charset=utf-8 "sparse" : false }, { - "id" : "products/782084526", + "id" : "products/778810929", "type" : "hash", "fields" : [ "name" @@ -26,7 +26,7 @@ content-type: application/json; charset=utf-8 "sparse" : false }, { - "id" : "products/782346670", + "id" : "products/779073073", "type" : "skiplist", "fields" : [ "price" @@ -46,8 +46,8 @@ content-type: application/json; charset=utf-8 "unique" : true, "sparse" : false }, - "products/782084526" : { - "id" : "products/782084526", + "products/778810929" : { + "id" : "products/778810929", "type" : "hash", "fields" : [ "name" @@ -56,8 +56,8 @@ content-type: application/json; charset=utf-8 "unique" : false, "sparse" : false }, - "products/782346670" : { - "id" : "products/782346670", + "products/779073073" : { + "id" : "products/779073073", "type" : "skiplist", "fields" : [ "price" diff --git a/Documentation/Examples/RestIndexCreateGeoLatitudeLongitude.generated b/Documentation/Examples/RestIndexCreateGeoLatitudeLongitude.generated index 30d210529f..dbeb4a4db7 100644 --- a/Documentation/Examples/RestIndexCreateGeoLatitudeLongitude.generated +++ b/Documentation/Examples/RestIndexCreateGeoLatitudeLongitude.generated @@ -12,7 +12,7 @@ HTTP/1.1 201 C content-type: application/json; charset=utf-8 { - "id" : "products/782936494", + "id" : "products/779662897", "type" : "geo2", "fields" : [ "e", diff --git a/Documentation/Examples/RestIndexCreateGeoLocation.generated b/Documentation/Examples/RestIndexCreateGeoLocation.generated index 5615e14d0d..b36a843905 100644 --- a/Documentation/Examples/RestIndexCreateGeoLocation.generated +++ b/Documentation/Examples/RestIndexCreateGeoLocation.generated @@ -11,7 +11,7 @@ HTTP/1.1 201 C content-type: application/json; charset=utf-8 { - "id" : "products/783395246", + "id" : "products/780121649", "type" : "geo1", "fields" : [ "b" diff --git a/Documentation/Examples/RestIndexCreateNewCapConstraint.generated b/Documentation/Examples/RestIndexCreateNewCapConstraint.generated index 55030f45b0..ce81afcd1d 100644 --- a/Documentation/Examples/RestIndexCreateNewCapConstraint.generated +++ b/Documentation/Examples/RestIndexCreateNewCapConstraint.generated @@ -9,7 +9,7 @@ HTTP/1.1 201 C content-type: application/json; charset=utf-8 { - "id" : "products/783788462", + "id" : "products/780514865", "type" : "cap", "size" : 10, "byteSize" : 0, diff --git a/Documentation/Examples/RestIndexCreateNewFulltext.generated b/Documentation/Examples/RestIndexCreateNewFulltext.generated index 817d500756..56f1e16dfa 100644 --- a/Documentation/Examples/RestIndexCreateNewFulltext.generated +++ b/Documentation/Examples/RestIndexCreateNewFulltext.generated @@ -11,7 +11,7 @@ HTTP/1.1 201 C content-type: application/json; charset=utf-8 { - "id" : "products/784247214", + "id" : "products/780973617", "type" : "fulltext", "fields" : [ "text" diff --git a/Documentation/Examples/RestIndexCreateNewHashIndex.generated b/Documentation/Examples/RestIndexCreateNewHashIndex.generated index 3e55079914..f4e1410718 100644 --- a/Documentation/Examples/RestIndexCreateNewHashIndex.generated +++ b/Documentation/Examples/RestIndexCreateNewHashIndex.generated @@ -13,7 +13,7 @@ HTTP/1.1 201 C content-type: application/json; charset=utf-8 { - "id" : "products/784837038", + "id" : "products/781563441", "type" : "hash", "fields" : [ "a", diff --git a/Documentation/Examples/RestIndexCreateNewSkiplist.generated b/Documentation/Examples/RestIndexCreateNewSkiplist.generated index 7022f6af0d..5cfa49643e 100644 --- a/Documentation/Examples/RestIndexCreateNewSkiplist.generated +++ b/Documentation/Examples/RestIndexCreateNewSkiplist.generated @@ -13,7 +13,7 @@ HTTP/1.1 201 C content-type: application/json; charset=utf-8 { - "id" : "products/785361326", + "id" : "products/782087729", "type" : "skiplist", "fields" : [ "a", diff --git a/Documentation/Examples/RestIndexCreateNewUniqueConstraint.generated b/Documentation/Examples/RestIndexCreateNewUniqueConstraint.generated index 247c6c0430..0d248065bb 100644 --- a/Documentation/Examples/RestIndexCreateNewUniqueConstraint.generated +++ b/Documentation/Examples/RestIndexCreateNewUniqueConstraint.generated @@ -13,7 +13,7 @@ HTTP/1.1 201 C content-type: application/json; charset=utf-8 { - "id" : "products/785885614", + "id" : "products/782612017", "type" : "hash", "fields" : [ "a", diff --git a/Documentation/Examples/RestIndexCreateSparseHashIndex.generated b/Documentation/Examples/RestIndexCreateSparseHashIndex.generated index 71db90c1fb..4ff223004a 100644 --- a/Documentation/Examples/RestIndexCreateSparseHashIndex.generated +++ b/Documentation/Examples/RestIndexCreateSparseHashIndex.generated @@ -13,7 +13,7 @@ HTTP/1.1 201 C content-type: application/json; charset=utf-8 { - "id" : "products/786344366", + "id" : "products/783070769", "type" : "hash", "fields" : [ "a" diff --git a/Documentation/Examples/RestIndexCreateSparseSkiplist.generated b/Documentation/Examples/RestIndexCreateSparseSkiplist.generated index b9a00c8656..db0bfaca84 100644 --- a/Documentation/Examples/RestIndexCreateSparseSkiplist.generated +++ b/Documentation/Examples/RestIndexCreateSparseSkiplist.generated @@ -13,7 +13,7 @@ HTTP/1.1 201 C content-type: application/json; charset=utf-8 { - "id" : "products/786803118", + "id" : "products/783529521", "type" : "skiplist", "fields" : [ "a" diff --git a/Documentation/Examples/RestIndexDeleteUniqueSkiplist.generated b/Documentation/Examples/RestIndexDeleteUniqueSkiplist.generated index 6dad31a33f..5d7a86372d 100644 --- a/Documentation/Examples/RestIndexDeleteUniqueSkiplist.generated +++ b/Documentation/Examples/RestIndexDeleteUniqueSkiplist.generated @@ -1,10 +1,10 @@ -shell> curl -X DELETE --dump - http://localhost:8529/_api/index/products/787327406 +shell> curl -X DELETE --dump - http://localhost:8529/_api/index/products/784053809 HTTP/1.1 200 OK content-type: application/json; charset=utf-8 { - "id" : "products/787327406", + "id" : "products/784053809", "error" : false, "code" : 200 } diff --git a/Documentation/Examples/RestReplicationApplierStart.generated b/Documentation/Examples/RestReplicationApplierStart.generated index ab33ce7519..5ec8ac7080 100644 --- a/Documentation/Examples/RestReplicationApplierStart.generated +++ b/Documentation/Examples/RestReplicationApplierStart.generated @@ -11,7 +11,7 @@ content-type: application/json; charset=utf-8 "lastAvailableContinuousTick" : null, "safeResumeTick" : null, "progress" : { - "time" : "2016-03-01T20:03:46Z", + "time" : "2016-03-10T19:38:11Z", "message" : "applier initially created", "failedConnects" : 0 }, @@ -22,11 +22,11 @@ content-type: application/json; charset=utf-8 "lastError" : { "errorNum" : 0 }, - "time" : "2016-03-01T20:04:03Z" + "time" : "2016-03-10T19:38:26Z" }, "server" : { - "version" : "2.8.4", - "serverId" : "171376674975149" + "version" : "2.8.5", + "serverId" : "259546553666956" }, "endpoint" : "tcp://127.0.0.1:8529", "database" : "_system" diff --git a/Documentation/Examples/RestReplicationApplierStateNotRunning.generated b/Documentation/Examples/RestReplicationApplierStateNotRunning.generated index c6d51ada57..ceaf732a4e 100644 --- a/Documentation/Examples/RestReplicationApplierStateNotRunning.generated +++ b/Documentation/Examples/RestReplicationApplierStateNotRunning.generated @@ -11,7 +11,7 @@ content-type: application/json; charset=utf-8 "lastAvailableContinuousTick" : null, "safeResumeTick" : null, "progress" : { - "time" : "2016-03-01T20:04:03Z", + "time" : "2016-03-10T19:38:26Z", "message" : "applier shut down", "failedConnects" : 1 }, @@ -20,15 +20,15 @@ content-type: application/json; charset=utf-8 "totalEvents" : 0, "totalOperationsExcluded" : 0, "lastError" : { - "time" : "2016-03-01T20:04:04Z", + "time" : "2016-03-10T19:38:27Z", "errorMessage" : "could not connect to master at tcp://127.0.0.1:8529: Could not connect to 'tcp://127.0.0.1:8529' 'connect() failed with #61 - Connection refused'", "errorNum" : 1412 }, - "time" : "2016-03-01T20:04:04Z" + "time" : "2016-03-10T19:38:27Z" }, "server" : { - "version" : "2.8.4", - "serverId" : "171376674975149" + "version" : "2.8.5", + "serverId" : "259546553666956" }, "endpoint" : "tcp://127.0.0.1:8529", "database" : "_system" diff --git a/Documentation/Examples/RestReplicationApplierStateRunning.generated b/Documentation/Examples/RestReplicationApplierStateRunning.generated index cab77cf067..f41eb9f360 100644 --- a/Documentation/Examples/RestReplicationApplierStateRunning.generated +++ b/Documentation/Examples/RestReplicationApplierStateRunning.generated @@ -11,7 +11,7 @@ content-type: application/json; charset=utf-8 "lastAvailableContinuousTick" : null, "safeResumeTick" : null, "progress" : { - "time" : "2016-03-01T20:04:03Z", + "time" : "2016-03-10T19:38:26Z", "message" : "applier shut down", "failedConnects" : 1 }, @@ -22,11 +22,11 @@ content-type: application/json; charset=utf-8 "lastError" : { "errorNum" : 0 }, - "time" : "2016-03-01T20:04:04Z" + "time" : "2016-03-10T19:38:27Z" }, "server" : { - "version" : "2.8.4", - "serverId" : "171376674975149" + "version" : "2.8.5", + "serverId" : "259546553666956" }, "endpoint" : "tcp://127.0.0.1:8529", "database" : "_system" diff --git a/Documentation/Examples/RestReplicationApplierStop.generated b/Documentation/Examples/RestReplicationApplierStop.generated index 5707ada187..7f089fbbe6 100644 --- a/Documentation/Examples/RestReplicationApplierStop.generated +++ b/Documentation/Examples/RestReplicationApplierStop.generated @@ -11,8 +11,8 @@ content-type: application/json; charset=utf-8 "lastAvailableContinuousTick" : null, "safeResumeTick" : null, "progress" : { - "time" : "2016-03-01T20:04:04Z", - "message" : "fetching master state information", + "time" : "2016-03-10T19:38:27Z", + "message" : "applier shut down", "failedConnects" : 1 }, "totalRequests" : 3, @@ -20,15 +20,15 @@ content-type: application/json; charset=utf-8 "totalEvents" : 0, "totalOperationsExcluded" : 0, "lastError" : { - "time" : "2016-03-01T20:04:05Z", + "time" : "2016-03-10T19:38:28Z", "errorMessage" : "could not connect to master at tcp://127.0.0.1:8529: Could not connect to 'tcp://127.0.0.1:8529' 'connect() failed with #61 - Connection refused'", "errorNum" : 1412 }, - "time" : "2016-03-01T20:04:05Z" + "time" : "2016-03-10T19:38:28Z" }, "server" : { - "version" : "2.8.4", - "serverId" : "171376674975149" + "version" : "2.8.5", + "serverId" : "259546553666956" }, "endpoint" : "tcp://127.0.0.1:8529", "database" : "_system" diff --git a/Documentation/Examples/RestReplicationDump.generated b/Documentation/Examples/RestReplicationDump.generated index d7773b87a3..c41ea368f3 100644 --- a/Documentation/Examples/RestReplicationDump.generated +++ b/Documentation/Examples/RestReplicationDump.generated @@ -3,6 +3,6 @@ shell> curl --dump - http://localhost:8529/_api/replication/dump?collection=test HTTP/1.1 200 OK content-type: application/x-arango-dump; charset=utf-8 x-arango-replication-checkmore: false -x-arango-replication-lastincluded: 789752238 +x-arango-replication-lastincluded: 786478641 -"{\"tick\":\"789096878\",\"type\":2300,\"key\":\"123456\",\"rev\":\"789031342\",\"data\":{\"_key\":\"123456\",\"_rev\":\"789031342\",\"c\":false,\"b\":1,\"d\":\"additional value\"}}\n{\"tick\":\"789555630\",\"type\":2302,\"key\":\"foobar\",\"rev\":\"789490094\"}\n{\"tick\":\"789752238\",\"type\":2302,\"key\":\"abcdef\",\"rev\":\"789686702\"}\n" +"{\"tick\":\"785823281\",\"type\":2300,\"key\":\"123456\",\"rev\":\"785757745\",\"data\":{\"_key\":\"123456\",\"_rev\":\"785757745\",\"c\":false,\"b\":1,\"d\":\"additional value\"}}\n{\"tick\":\"786282033\",\"type\":2302,\"key\":\"foobar\",\"rev\":\"786216497\"}\n{\"tick\":\"786478641\",\"type\":2302,\"key\":\"abcdef\",\"rev\":\"786413105\"}\n" diff --git a/Documentation/Examples/RestReplicationInventory.generated b/Documentation/Examples/RestReplicationInventory.generated index 2d127dbc80..13e79717b1 100644 --- a/Documentation/Examples/RestReplicationInventory.generated +++ b/Documentation/Examples/RestReplicationInventory.generated @@ -9,7 +9,7 @@ content-type: application/json; charset=utf-8 "parameters" : { "version" : 5, "type" : 2, - "cid" : "3975598", + "cid" : "3978801", "indexBuckets" : 8, "deleted" : false, "doCompact" : true, @@ -24,7 +24,7 @@ content-type: application/json; charset=utf-8 "parameters" : { "version" : 5, "type" : 2, - "cid" : "2075054", + "cid" : "2078257", "indexBuckets" : 8, "deleted" : false, "doCompact" : true, @@ -39,7 +39,7 @@ content-type: application/json; charset=utf-8 "parameters" : { "version" : 5, "type" : 2, - "cid" : "2206126", + "cid" : "2209329", "indexBuckets" : 8, "deleted" : false, "doCompact" : true, @@ -54,7 +54,7 @@ content-type: application/json; charset=utf-8 "parameters" : { "version" : 5, "type" : 2, - "cid" : "2337198", + "cid" : "2340401", "indexBuckets" : 8, "deleted" : false, "doCompact" : true, @@ -69,7 +69,7 @@ content-type: application/json; charset=utf-8 "parameters" : { "version" : 5, "type" : 2, - "cid" : "14133678", + "cid" : "14136881", "indexBuckets" : 8, "deleted" : false, "doCompact" : true, @@ -84,7 +84,7 @@ content-type: application/json; charset=utf-8 "parameters" : { "version" : 5, "type" : 2, - "cid" : "240046", + "cid" : "243249", "indexBuckets" : 8, "deleted" : false, "doCompact" : true, @@ -95,7 +95,7 @@ content-type: application/json; charset=utf-8 }, "indexes" : [ { - "id" : "567726", + "id" : "570929", "type" : "hash", "fields" : [ "user" @@ -110,7 +110,7 @@ content-type: application/json; charset=utf-8 "parameters" : { "version" : 5, "type" : 2, - "cid" : "21277102", + "cid" : "18069041", "indexBuckets" : 8, "deleted" : false, "doCompact" : true, @@ -125,7 +125,7 @@ content-type: application/json; charset=utf-8 "parameters" : { "version" : 5, "type" : 2, - "cid" : "20425134", + "cid" : "17217073", "indexBuckets" : 8, "deleted" : false, "doCompact" : true, @@ -139,9 +139,9 @@ content-type: application/json; charset=utf-8 ], "state" : { "running" : true, - "lastLogTick" : "790342062", - "totalEvents" : 4923, - "time" : "2016-03-01T20:04:06Z" + "lastLogTick" : "787068465", + "totalEvents" : 4879, + "time" : "2016-03-10T19:38:29Z" }, - "tick" : "790407598" + "tick" : "787134001" } diff --git a/Documentation/Examples/RestReplicationInventoryIndexes.generated b/Documentation/Examples/RestReplicationInventoryIndexes.generated index 21e62fb980..5c44390501 100644 --- a/Documentation/Examples/RestReplicationInventoryIndexes.generated +++ b/Documentation/Examples/RestReplicationInventoryIndexes.generated @@ -9,7 +9,7 @@ content-type: application/json; charset=utf-8 "parameters" : { "version" : 5, "type" : 2, - "cid" : "3975598", + "cid" : "3978801", "indexBuckets" : 8, "deleted" : false, "doCompact" : true, @@ -24,7 +24,7 @@ content-type: application/json; charset=utf-8 "parameters" : { "version" : 5, "type" : 2, - "cid" : "2075054", + "cid" : "2078257", "indexBuckets" : 8, "deleted" : false, "doCompact" : true, @@ -39,7 +39,7 @@ content-type: application/json; charset=utf-8 "parameters" : { "version" : 5, "type" : 2, - "cid" : "2206126", + "cid" : "2209329", "indexBuckets" : 8, "deleted" : false, "doCompact" : true, @@ -54,7 +54,7 @@ content-type: application/json; charset=utf-8 "parameters" : { "version" : 5, "type" : 2, - "cid" : "2337198", + "cid" : "2340401", "indexBuckets" : 8, "deleted" : false, "doCompact" : true, @@ -69,7 +69,7 @@ content-type: application/json; charset=utf-8 "parameters" : { "version" : 5, "type" : 2, - "cid" : "14133678", + "cid" : "14136881", "indexBuckets" : 8, "deleted" : false, "doCompact" : true, @@ -84,7 +84,7 @@ content-type: application/json; charset=utf-8 "parameters" : { "version" : 5, "type" : 2, - "cid" : "240046", + "cid" : "243249", "indexBuckets" : 8, "deleted" : false, "doCompact" : true, @@ -95,7 +95,7 @@ content-type: application/json; charset=utf-8 }, "indexes" : [ { - "id" : "567726", + "id" : "570929", "type" : "hash", "fields" : [ "user" @@ -110,7 +110,7 @@ content-type: application/json; charset=utf-8 "parameters" : { "version" : 5, "type" : 2, - "cid" : "21277102", + "cid" : "18069041", "indexBuckets" : 8, "deleted" : false, "doCompact" : true, @@ -125,7 +125,7 @@ content-type: application/json; charset=utf-8 "parameters" : { "version" : 5, "type" : 2, - "cid" : "20425134", + "cid" : "17217073", "indexBuckets" : 8, "deleted" : false, "doCompact" : true, @@ -140,7 +140,7 @@ content-type: application/json; charset=utf-8 "parameters" : { "version" : 5, "type" : 2, - "cid" : "790473134", + "cid" : "787199537", "indexBuckets" : 8, "deleted" : false, "doCompact" : true, @@ -151,7 +151,7 @@ content-type: application/json; charset=utf-8 }, "indexes" : [ { - "id" : "790735278", + "id" : "787461681", "type" : "hash", "fields" : [ "name" @@ -161,7 +161,7 @@ content-type: application/json; charset=utf-8 "sparse" : false }, { - "id" : "791062958", + "id" : "787789361", "type" : "skiplist", "fields" : [ "a", @@ -171,7 +171,7 @@ content-type: application/json; charset=utf-8 "sparse" : false }, { - "id" : "791259566", + "id" : "787985969", "type" : "cap", "size" : 500, "byteSize" : 0, @@ -183,7 +183,7 @@ content-type: application/json; charset=utf-8 "parameters" : { "version" : 5, "type" : 2, - "cid" : "791456174", + "cid" : "788182577", "indexBuckets" : 8, "deleted" : false, "doCompact" : true, @@ -194,7 +194,7 @@ content-type: application/json; charset=utf-8 }, "indexes" : [ { - "id" : "791652782", + "id" : "788379185", "type" : "fulltext", "fields" : [ "text" @@ -204,7 +204,7 @@ content-type: application/json; charset=utf-8 "minLength" : 10 }, { - "id" : "791980462", + "id" : "788706865", "type" : "skiplist", "fields" : [ "a" @@ -213,7 +213,7 @@ content-type: application/json; charset=utf-8 "sparse" : false }, { - "id" : "792177070", + "id" : "788903473", "type" : "cap", "size" : 0, "byteSize" : 1048576, @@ -224,9 +224,9 @@ content-type: application/json; charset=utf-8 ], "state" : { "running" : true, - "lastLogTick" : "790407598", - "totalEvents" : 4936, - "time" : "2016-03-01T20:04:06Z" + "lastLogTick" : "787134001", + "totalEvents" : 4892, + "time" : "2016-03-10T19:38:29Z" }, - "tick" : "792308142" + "tick" : "789034545" } diff --git a/Documentation/Examples/RestReplicationLoggerFirstTick.generated b/Documentation/Examples/RestReplicationLoggerFirstTick.generated index db08e2c825..c3aa07248a 100644 --- a/Documentation/Examples/RestReplicationLoggerFirstTick.generated +++ b/Documentation/Examples/RestReplicationLoggerFirstTick.generated @@ -3,4 +3,4 @@ shell> curl --dump - http://localhost:8529/_api/replication/logger-first-tick HTTP/1.1 200 OK content-type: application/json; charset=utf-8 -"{\"firstTick\":\"371118\"}" +"{\"firstTick\":\"374321\"}" diff --git a/Documentation/Examples/RestReplicationLoggerFollowBufferLimit.generated b/Documentation/Examples/RestReplicationLoggerFollowBufferLimit.generated index 275ace2fe8..3e4c5504d5 100644 --- a/Documentation/Examples/RestReplicationLoggerFollowBufferLimit.generated +++ b/Documentation/Examples/RestReplicationLoggerFollowBufferLimit.generated @@ -1,11 +1,11 @@ -shell> curl --dump - http://localhost:8529/_api/replication/logger-follow?from=792439214&chunkSize=400 +shell> curl --dump - http://localhost:8529/_api/replication/logger-follow?from=789100081&chunkSize=400 HTTP/1.1 200 OK content-type: application/x-arango-dump; charset=utf-8 x-arango-replication-active: true x-arango-replication-checkmore: true x-arango-replication-frompresent: true -x-arango-replication-lastincluded: 792897966 -x-arango-replication-lasttick: 793684398 +x-arango-replication-lastincluded: 789624369 +x-arango-replication-lasttick: 793622065 -"{\"tick\":\"792570286\",\"type\":2000,\"database\":\"108974\",\"cid\":\"792504750\",\"collection\":{\"version\":5,\"type\":2,\"cid\":\"792504750\",\"indexBuckets\":8,\"deleted\":false,\"doCompact\":true,\"maximalSize\":1048576,\"name\":\"products\",\"isVolatile\":false,\"waitForSync\":false}}\n{\"tick\":\"792897966\",\"type\":2300,\"database\":\"108974\",\"cid\":\"792504750\",\"tid\":\"0\",\"key\":\"p1\",\"rev\":\"792832430\",\"data\":{\"_key\":\"p1\",\"_rev\":\"792832430\",\"name\":\"flux compensator\"}}\n" +"{\"tick\":\"789165617\",\"type\":2001,\"database\":\"112177\",\"cid\":\"788182577\"}\n{\"tick\":\"789296689\",\"type\":2000,\"database\":\"112177\",\"cid\":\"789231153\",\"collection\":{\"version\":5,\"type\":2,\"cid\":\"789231153\",\"indexBuckets\":8,\"deleted\":false,\"doCompact\":true,\"maximalSize\":1048576,\"name\":\"products\",\"isVolatile\":false,\"waitForSync\":false}}\n{\"tick\":\"789624369\",\"type\":2300,\"database\":\"112177\",\"cid\":\"789231153\",\"tid\":\"0\",\"key\":\"p1\",\"rev\":\"789558833\",\"data\":{\"_key\":\"p1\",\"_rev\":\"789558833\",\"name\":\"flux compensator\"}}\n" diff --git a/Documentation/Examples/RestReplicationLoggerFollowEmpty.generated b/Documentation/Examples/RestReplicationLoggerFollowEmpty.generated index e1ed44e7bf..ea68a3ae16 100644 --- a/Documentation/Examples/RestReplicationLoggerFollowEmpty.generated +++ b/Documentation/Examples/RestReplicationLoggerFollowEmpty.generated @@ -1,4 +1,4 @@ -shell> curl --dump - http://localhost:8529/_api/replication/logger-follow?from=793684398 +shell> curl --dump - http://localhost:8529/_api/replication/logger-follow?from=793622065 HTTP/1.1 204 No Content content-type: application/x-arango-dump; charset=utf-8 @@ -6,5 +6,5 @@ x-arango-replication-active: true x-arango-replication-checkmore: false x-arango-replication-frompresent: true x-arango-replication-lastincluded: 0 -x-arango-replication-lasttick: 793684398 +x-arango-replication-lasttick: 793622065 diff --git a/Documentation/Examples/RestReplicationLoggerFollowSome.generated b/Documentation/Examples/RestReplicationLoggerFollowSome.generated index 9b8891f1b5..ed6bb1cc43 100644 --- a/Documentation/Examples/RestReplicationLoggerFollowSome.generated +++ b/Documentation/Examples/RestReplicationLoggerFollowSome.generated @@ -1,11 +1,11 @@ -shell> curl --dump - http://localhost:8529/_api/replication/logger-follow?from=793684398 +shell> curl --dump - http://localhost:8529/_api/replication/logger-follow?from=793622065 HTTP/1.1 200 OK content-type: application/x-arango-dump; charset=utf-8 x-arango-replication-active: true x-arango-replication-checkmore: false x-arango-replication-frompresent: true -x-arango-replication-lastincluded: 794929582 -x-arango-replication-lasttick: 794929582 +x-arango-replication-lastincluded: 794867249 +x-arango-replication-lasttick: 794867249 -"{\"tick\":\"793815470\",\"type\":2000,\"database\":\"108974\",\"cid\":\"793749934\",\"collection\":{\"version\":5,\"type\":2,\"cid\":\"793749934\",\"indexBuckets\":8,\"deleted\":false,\"doCompact\":true,\"maximalSize\":1048576,\"name\":\"products\",\"isVolatile\":false,\"waitForSync\":false}}\n{\"tick\":\"794143150\",\"type\":2300,\"database\":\"108974\",\"cid\":\"793749934\",\"tid\":\"0\",\"key\":\"p1\",\"rev\":\"794077614\",\"data\":{\"_key\":\"p1\",\"_rev\":\"794077614\",\"name\":\"flux compensator\"}}\n{\"tick\":\"794470830\",\"type\":2300,\"database\":\"108974\",\"cid\":\"793749934\",\"tid\":\"0\",\"key\":\"p2\",\"rev\":\"794405294\",\"data\":{\"_key\":\"p2\",\"_rev\":\"794405294\",\"hp\":5100,\"name\":\"hybrid hovercraft\"}}\n{\"tick\":\"794667438\",\"type\":2302,\"database\":\"108974\",\"cid\":\"793749934\",\"tid\":\"0\",\"key\":\"p1\",\"rev\":\"794601902\"}\n{\"tick\":\"794864046\",\"type\":2300,\"database\":\"108974\",\"cid\":\"793749934\",\"tid\":\"0\",\"key\":\"p2\",\"rev\":\"794798510\",\"data\":{\"_key\":\"p2\",\"_rev\":\"794798510\"}}\n{\"tick\":\"794929582\",\"type\":2001,\"database\":\"108974\",\"cid\":\"793749934\"}\n" +"{\"tick\":\"793753137\",\"type\":2000,\"database\":\"112177\",\"cid\":\"793687601\",\"collection\":{\"version\":5,\"type\":2,\"cid\":\"793687601\",\"indexBuckets\":8,\"deleted\":false,\"doCompact\":true,\"maximalSize\":1048576,\"name\":\"products\",\"isVolatile\":false,\"waitForSync\":false}}\n{\"tick\":\"794080817\",\"type\":2300,\"database\":\"112177\",\"cid\":\"793687601\",\"tid\":\"0\",\"key\":\"p1\",\"rev\":\"794015281\",\"data\":{\"_key\":\"p1\",\"_rev\":\"794015281\",\"name\":\"flux compensator\"}}\n{\"tick\":\"794408497\",\"type\":2300,\"database\":\"112177\",\"cid\":\"793687601\",\"tid\":\"0\",\"key\":\"p2\",\"rev\":\"794342961\",\"data\":{\"_key\":\"p2\",\"_rev\":\"794342961\",\"hp\":5100,\"name\":\"hybrid hovercraft\"}}\n{\"tick\":\"794605105\",\"type\":2302,\"database\":\"112177\",\"cid\":\"793687601\",\"tid\":\"0\",\"key\":\"p1\",\"rev\":\"794539569\"}\n{\"tick\":\"794801713\",\"type\":2300,\"database\":\"112177\",\"cid\":\"793687601\",\"tid\":\"0\",\"key\":\"p2\",\"rev\":\"794736177\",\"data\":{\"_key\":\"p2\",\"_rev\":\"794736177\"}}\n{\"tick\":\"794867249\",\"type\":2001,\"database\":\"112177\",\"cid\":\"793687601\"}\n" diff --git a/Documentation/Examples/RestReplicationLoggerStateActive.generated b/Documentation/Examples/RestReplicationLoggerStateActive.generated index e31aa0143d..9999220ab7 100644 --- a/Documentation/Examples/RestReplicationLoggerStateActive.generated +++ b/Documentation/Examples/RestReplicationLoggerStateActive.generated @@ -6,13 +6,13 @@ content-type: application/json; charset=utf-8 { "state" : { "running" : true, - "lastLogTick" : "794929582", + "lastLogTick" : "794867249", "totalEvents" : 4958, - "time" : "2016-03-01T20:04:09Z" + "time" : "2016-03-10T19:38:32Z" }, "server" : { - "version" : "2.8.4", - "serverId" : "171376674975149" + "version" : "2.8.5", + "serverId" : "259546553666956" }, "clients" : [ ] } diff --git a/Documentation/Examples/RestReplicationLoggerTickRanges.generated b/Documentation/Examples/RestReplicationLoggerTickRanges.generated index 5a1d5f6b63..dd3c0f1d69 100644 --- a/Documentation/Examples/RestReplicationLoggerTickRanges.generated +++ b/Documentation/Examples/RestReplicationLoggerTickRanges.generated @@ -5,33 +5,33 @@ content-type: application/json; charset=utf-8 [ { - "datafile" : "/tmp/vocdir.40199/journals/logfile-174510.db", + "datafile" : "/tmp/vocdir.10518/journals/logfile-177713.db", "status" : "collected", - "tickMin" : "371118", - "tickMax" : "666872238" + "tickMin" : "374321", + "tickMax" : "666809905" }, { - "datafile" : "/tmp/vocdir.40199/journals/logfile-667003310.db", + "datafile" : "/tmp/vocdir.10518/journals/logfile-666940977.db", "status" : "collected", - "tickMin" : "667330990", - "tickMax" : "669755822" + "tickMin" : "667203121", + "tickMax" : "669627953" }, { - "datafile" : "/tmp/vocdir.40199/journals/logfile-669886894.db", + "datafile" : "/tmp/vocdir.10518/journals/logfile-669759025.db", "status" : "collected", - "tickMin" : "670214574", - "tickMax" : "789752238" + "tickMin" : "669955633", + "tickMax" : "786478641" }, { - "datafile" : "/tmp/vocdir.40199/journals/logfile-789883310.db", + "datafile" : "/tmp/vocdir.10518/journals/logfile-786609713.db", "status" : "collected", - "tickMin" : "790014382", - "tickMax" : "790145454" + "tickMin" : "786740785", + "tickMax" : "786871857" }, { - "datafile" : "/tmp/vocdir.40199/journals/logfile-790276526.db", + "datafile" : "/tmp/vocdir.10518/journals/logfile-787002929.db", "status" : "open", - "tickMin" : "790407598", - "tickMax" : "794929582" + "tickMin" : "787134001", + "tickMax" : "794867249" } ] diff --git a/Documentation/Examples/RestReplicationServerId.generated b/Documentation/Examples/RestReplicationServerId.generated index a383a481bb..61b2a3f502 100644 --- a/Documentation/Examples/RestReplicationServerId.generated +++ b/Documentation/Examples/RestReplicationServerId.generated @@ -4,5 +4,5 @@ HTTP/1.1 200 O content-type: application/json; charset=utf-8 { - "serverId" : "171376674975149" + "serverId" : "259546553666956" } diff --git a/Documentation/Examples/RestSimpleAllBatch.generated b/Documentation/Examples/RestSimpleAllBatch.generated index 62d4801e6e..df49819aa2 100644 --- a/Documentation/Examples/RestSimpleAllBatch.generated +++ b/Documentation/Examples/RestSimpleAllBatch.generated @@ -7,27 +7,27 @@ content-type: application/json; charset=utf-8 { "result" : [ + { + "Hello1" : "World1", + "_id" : "products/795260465", + "_rev" : "795260465", + "_key" : "795260465" + }, { "Hello3" : "World3", - "_id" : "products/795978158", - "_rev" : "795978158", - "_key" : "795978158" + "_id" : "products/795915825", + "_rev" : "795915825", + "_key" : "795915825" }, { "Hello5" : "World5", - "_id" : "products/796633518", - "_rev" : "796633518", - "_key" : "796633518" - }, - { - "Hello1" : "World1", - "_id" : "products/795322798", - "_rev" : "795322798", - "_key" : "795322798" + "_id" : "products/796571185", + "_rev" : "796571185", + "_key" : "796571185" } ], "hasMore" : true, - "id" : "796830126", + "id" : "796767793", "count" : 5, "extra" : { "stats" : { @@ -35,7 +35,8 @@ content-type: application/json; charset=utf-8 "writesIgnored" : 0, "scannedFull" : 5, "scannedIndex" : 0, - "filtered" : 0 + "filtered" : 0, + "executionTime" : 0.00010204315185546875 }, "warnings" : [ ] }, diff --git a/Documentation/Examples/RestSimpleAllSkipLimit.generated b/Documentation/Examples/RestSimpleAllSkipLimit.generated index e2828d210d..fc79d531e4 100644 --- a/Documentation/Examples/RestSimpleAllSkipLimit.generated +++ b/Documentation/Examples/RestSimpleAllSkipLimit.generated @@ -8,16 +8,16 @@ content-type: application/json; charset=utf-8 { "result" : [ { - "Hello1" : "World1", - "_id" : "products/797288878", - "_rev" : "797288878", - "_key" : "797288878" + "Hello2" : "World2", + "_id" : "products/797554225", + "_rev" : "797554225", + "_key" : "797554225" }, { - "Hello3" : "World3", - "_id" : "products/797944238", - "_rev" : "797944238", - "_key" : "797944238" + "Hello4" : "World4", + "_id" : "products/798209585", + "_rev" : "798209585", + "_key" : "798209585" } ], "hasMore" : false, @@ -29,7 +29,8 @@ content-type: application/json; charset=utf-8 "writesIgnored" : 0, "scannedFull" : 5, "scannedIndex" : 0, - "filtered" : 0 + "filtered" : 0, + "executionTime" : 0.000640869140625 }, "warnings" : [ ] }, diff --git a/Documentation/Examples/RestSimpleAny.generated b/Documentation/Examples/RestSimpleAny.generated index 32fccfbca9..b2e1a702ab 100644 --- a/Documentation/Examples/RestSimpleAny.generated +++ b/Documentation/Examples/RestSimpleAny.generated @@ -9,9 +9,9 @@ content-type: application/json; charset=utf-8 { "document" : { - "_id" : "products/799517102", - "_key" : "799517102", - "_rev" : "799517102", + "_id" : "products/799454769", + "_key" : "799454769", + "_rev" : "799454769", "Hello2" : "World2" }, "error" : false, diff --git a/Documentation/Examples/RestSimpleByExample.generated b/Documentation/Examples/RestSimpleByExample.generated index 7f421533a8..b6c8428844 100644 --- a/Documentation/Examples/RestSimpleByExample.generated +++ b/Documentation/Examples/RestSimpleByExample.generated @@ -13,24 +13,28 @@ content-type: application/json; charset=utf-8 { "result" : [ { - "_id" : "products/801679790", - "_key" : "801679790", - "_rev" : "801679790", + "_id" : "products/801617457", + "_key" : "801617457", + "_rev" : "801617457", "i" : 1, "a" : { "j" : 1 } }, { - "_id" : "products/801941934", - "_key" : "801941934", - "_rev" : "801941934", - "i" : 1 + "_id" : "products/802076209", + "_key" : "802076209", + "_rev" : "802076209", + "i" : 1, + "a" : { + "k" : 2, + "j" : 2 + } }, { - "_id" : "products/801352110", - "_key" : "801352110", - "_rev" : "801352110", + "_id" : "products/801289777", + "_key" : "801289777", + "_rev" : "801289777", "i" : 1, "a" : { "k" : 1, @@ -38,14 +42,10 @@ content-type: application/json; charset=utf-8 } }, { - "_id" : "products/802138542", - "_key" : "802138542", - "_rev" : "802138542", - "i" : 1, - "a" : { - "k" : 2, - "j" : 2 - } + "_id" : "products/801879601", + "_key" : "801879601", + "_rev" : "801879601", + "i" : 1 } ], "hasMore" : false, diff --git a/Documentation/Examples/RestSimpleByExample2.generated b/Documentation/Examples/RestSimpleByExample2.generated index 83aabf9244..d3e3b50ce0 100644 --- a/Documentation/Examples/RestSimpleByExample2.generated +++ b/Documentation/Examples/RestSimpleByExample2.generated @@ -13,21 +13,21 @@ content-type: application/json; charset=utf-8 { "result" : [ { - "_id" : "products/803318190", - "_key" : "803318190", - "_rev" : "803318190", + "_id" : "products/803583537", + "_key" : "803583537", + "_rev" : "803583537", "i" : 1, "a" : { - "k" : 1, "j" : 1 } }, { - "_id" : "products/803645870", - "_key" : "803645870", - "_rev" : "803645870", + "_id" : "products/803255857", + "_key" : "803255857", + "_rev" : "803255857", "i" : 1, "a" : { + "k" : 1, "j" : 1 } } diff --git a/Documentation/Examples/RestSimpleByExample3.generated b/Documentation/Examples/RestSimpleByExample3.generated index f3b4e944bd..edad693b48 100644 --- a/Documentation/Examples/RestSimpleByExample3.generated +++ b/Documentation/Examples/RestSimpleByExample3.generated @@ -15,9 +15,9 @@ content-type: application/json; charset=utf-8 { "result" : [ { - "_id" : "products/805611950", - "_key" : "805611950", - "_rev" : "805611950", + "_id" : "products/805549617", + "_key" : "805549617", + "_rev" : "805549617", "i" : 1, "a" : { "j" : 1 diff --git a/Documentation/Examples/RestSimpleFirst.generated b/Documentation/Examples/RestSimpleFirst.generated index 907ca797b6..a430905bfd 100644 --- a/Documentation/Examples/RestSimpleFirst.generated +++ b/Documentation/Examples/RestSimpleFirst.generated @@ -11,9 +11,9 @@ content-type: application/json; charset=utf-8 { "result" : [ { - "_id" : "products/807250350", - "_key" : "807250350", - "_rev" : "807250350", + "_id" : "products/807188017", + "_key" : "807188017", + "_rev" : "807188017", "i" : 1, "a" : { "k" : 1, @@ -21,9 +21,9 @@ content-type: application/json; charset=utf-8 } }, { - "_id" : "products/807578030", - "_key" : "807578030", - "_rev" : "807578030", + "_id" : "products/807515697", + "_key" : "807515697", + "_rev" : "807515697", "i" : 1, "a" : { "j" : 1 diff --git a/Documentation/Examples/RestSimpleFirstExample.generated b/Documentation/Examples/RestSimpleFirstExample.generated index 676ed56c0b..4aa7c54e2e 100644 --- a/Documentation/Examples/RestSimpleFirstExample.generated +++ b/Documentation/Examples/RestSimpleFirstExample.generated @@ -12,13 +12,10 @@ content-type: application/json; charset=utf-8 { "document" : { - "_id" : "products/809216430", - "_key" : "809216430", - "_rev" : "809216430", - "i" : 1, - "a" : { - "j" : 1 - } + "_id" : "products/809416241", + "_key" : "809416241", + "_rev" : "809416241", + "i" : 1 }, "error" : false, "code" : 200 diff --git a/Documentation/Examples/RestSimpleFirstSingle.generated b/Documentation/Examples/RestSimpleFirstSingle.generated index 55f6c65b77..30a12cb09f 100644 --- a/Documentation/Examples/RestSimpleFirstSingle.generated +++ b/Documentation/Examples/RestSimpleFirstSingle.generated @@ -9,9 +9,9 @@ content-type: application/json; charset=utf-8 { "result" : { - "_id" : "products/812689838", - "_key" : "812689838", - "_rev" : "812689838", + "_id" : "products/812627505", + "_key" : "812627505", + "_rev" : "812627505", "i" : 1, "a" : { "k" : 1, diff --git a/Documentation/Examples/RestSimpleFulltext.generated b/Documentation/Examples/RestSimpleFulltext.generated index c6e7e23d1d..a80a72d47c 100644 --- a/Documentation/Examples/RestSimpleFulltext.generated +++ b/Documentation/Examples/RestSimpleFulltext.generated @@ -12,16 +12,16 @@ content-type: application/json; charset=utf-8 { "result" : [ { - "_id" : "products/814066094", - "_key" : "814066094", - "_rev" : "814066094", - "text" : "this text contains word" + "_id" : "products/814200369", + "_key" : "814200369", + "_rev" : "814200369", + "text" : "this text also has a word" }, { - "_id" : "products/814262702", - "_key" : "814262702", - "_rev" : "814262702", - "text" : "this text also has a word" + "_id" : "products/814003761", + "_key" : "814003761", + "_rev" : "814003761", + "text" : "this text contains word" } ], "hasMore" : false, diff --git a/Documentation/Examples/RestSimpleLast.generated b/Documentation/Examples/RestSimpleLast.generated index 334e24c2f2..0c05982c46 100644 --- a/Documentation/Examples/RestSimpleLast.generated +++ b/Documentation/Examples/RestSimpleLast.generated @@ -11,9 +11,9 @@ content-type: application/json; charset=utf-8 { "result" : [ { - "_id" : "products/816425390", - "_key" : "816425390", - "_rev" : "816425390", + "_id" : "products/816363057", + "_key" : "816363057", + "_rev" : "816363057", "i" : 1, "a" : { "k" : 2, @@ -21,9 +21,9 @@ content-type: application/json; charset=utf-8 } }, { - "_id" : "products/816228782", - "_key" : "816228782", - "_rev" : "816228782", + "_id" : "products/816166449", + "_key" : "816166449", + "_rev" : "816166449", "i" : 1 } ], diff --git a/Documentation/Examples/RestSimpleLastSingle.generated b/Documentation/Examples/RestSimpleLastSingle.generated index 736a46c62c..706532b808 100644 --- a/Documentation/Examples/RestSimpleLastSingle.generated +++ b/Documentation/Examples/RestSimpleLastSingle.generated @@ -9,9 +9,9 @@ content-type: application/json; charset=utf-8 { "result" : { - "_id" : "products/818063790", - "_key" : "818063790", - "_rev" : "818063790", + "_id" : "products/818001457", + "_key" : "818001457", + "_rev" : "818001457", "i" : 1, "a" : { "k" : 2, diff --git a/Documentation/Examples/RestSimpleLookup.generated b/Documentation/Examples/RestSimpleLookup.generated index 3387cbca6b..22c98bd79c 100644 --- a/Documentation/Examples/RestSimpleLookup.generated +++ b/Documentation/Examples/RestSimpleLookup.generated @@ -24,61 +24,61 @@ content-type: application/json; charset=utf-8 { "value" : 0, "_id" : "test/test0", - "_rev" : "818653614", + "_rev" : "818591281", "_key" : "test0" }, { "value" : 1, "_id" : "test/test1", - "_rev" : "818850222", + "_rev" : "818787889", "_key" : "test1" }, { "value" : 2, "_id" : "test/test2", - "_rev" : "819046830", + "_rev" : "818984497", "_key" : "test2" }, { "value" : 3, "_id" : "test/test3", - "_rev" : "819243438", + "_rev" : "819181105", "_key" : "test3" }, { "value" : 4, "_id" : "test/test4", - "_rev" : "819440046", + "_rev" : "819377713", "_key" : "test4" }, { "value" : 5, "_id" : "test/test5", - "_rev" : "819636654", + "_rev" : "819574321", "_key" : "test5" }, { "value" : 6, "_id" : "test/test6", - "_rev" : "819833262", + "_rev" : "819770929", "_key" : "test6" }, { "value" : 7, "_id" : "test/test7", - "_rev" : "820029870", + "_rev" : "819967537", "_key" : "test7" }, { "value" : 8, "_id" : "test/test8", - "_rev" : "820226478", + "_rev" : "820164145", "_key" : "test8" }, { "value" : 9, "_id" : "test/test9", - "_rev" : "820423086", + "_rev" : "820360753", "_key" : "test9" } ], diff --git a/Documentation/Examples/RestSimpleNear.generated b/Documentation/Examples/RestSimpleNear.generated index aecd32ee92..057d808e9d 100644 --- a/Documentation/Examples/RestSimpleNear.generated +++ b/Documentation/Examples/RestSimpleNear.generated @@ -14,9 +14,9 @@ content-type: application/json; charset=utf-8 { "result" : [ { - "_id" : "products/824879534", - "_key" : "824879534", - "_rev" : "824879534", + "_id" : "products/824817201", + "_key" : "824817201", + "_rev" : "824817201", "name" : "Name/0.002/", "loc" : [ 0.002, @@ -24,9 +24,9 @@ content-type: application/json; charset=utf-8 ] }, { - "_id" : "products/824486318", - "_key" : "824486318", - "_rev" : "824486318", + "_id" : "products/824423985", + "_key" : "824423985", + "_rev" : "824423985", "name" : "Name/-0.002/", "loc" : [ -0.002, diff --git a/Documentation/Examples/RestSimpleNearDistance.generated b/Documentation/Examples/RestSimpleNearDistance.generated index 40d4727087..770371b88c 100644 --- a/Documentation/Examples/RestSimpleNearDistance.generated +++ b/Documentation/Examples/RestSimpleNearDistance.generated @@ -15,9 +15,9 @@ content-type: application/json; charset=utf-8 { "result" : [ { - "_id" : "products/827500974", - "_key" : "827500974", - "_rev" : "827500974", + "_id" : "products/827438641", + "_key" : "827438641", + "_rev" : "827438641", "name" : "Name/-0.002/", "loc" : [ -0.002, @@ -26,9 +26,9 @@ content-type: application/json; charset=utf-8 "distance" : 222.38985328911744 }, { - "_id" : "products/827894190", - "_key" : "827894190", - "_rev" : "827894190", + "_id" : "products/827831857", + "_key" : "827831857", + "_rev" : "827831857", "name" : "Name/0.002/", "loc" : [ 0.002, @@ -37,9 +37,9 @@ content-type: application/json; charset=utf-8 "distance" : 222.38985328911744 }, { - "_id" : "products/827304366", - "_key" : "827304366", - "_rev" : "827304366", + "_id" : "products/827242033", + "_key" : "827242033", + "_rev" : "827242033", "name" : "Name/-0.004/", "loc" : [ -0.004, diff --git a/Documentation/Examples/RestSimpleRange.generated b/Documentation/Examples/RestSimpleRange.generated index 2e183e9831..7f0988c935 100644 --- a/Documentation/Examples/RestSimpleRange.generated +++ b/Documentation/Examples/RestSimpleRange.generated @@ -13,15 +13,15 @@ content-type: application/json; charset=utf-8 { "result" : [ { - "_id" : "products/829794734", - "_key" : "829794734", - "_rev" : "829794734", + "_id" : "products/829732401", + "_key" : "829732401", + "_rev" : "829732401", "i" : 2 }, { - "_id" : "products/829991342", - "_key" : "829991342", - "_rev" : "829991342", + "_id" : "products/829929009", + "_key" : "829929009", + "_rev" : "829929009", "i" : 3 } ], diff --git a/Documentation/Examples/RestSimpleWithin.generated b/Documentation/Examples/RestSimpleWithin.generated index c503acdca0..f3a70f1fcc 100644 --- a/Documentation/Examples/RestSimpleWithin.generated +++ b/Documentation/Examples/RestSimpleWithin.generated @@ -15,9 +15,9 @@ content-type: application/json; charset=utf-8 { "result" : [ { - "_id" : "products/852208046", - "_key" : "852208046", - "_rev" : "852208046", + "_id" : "products/852145713", + "_key" : "852145713", + "_rev" : "852145713", "name" : "Name/0.002/", "loc" : [ 0.002, @@ -25,9 +25,9 @@ content-type: application/json; charset=utf-8 ] }, { - "_id" : "products/851814830", - "_key" : "851814830", - "_rev" : "851814830", + "_id" : "products/851752497", + "_key" : "851752497", + "_rev" : "851752497", "name" : "Name/-0.002/", "loc" : [ -0.002, diff --git a/Documentation/Examples/RestSimpleWithinDistance.generated b/Documentation/Examples/RestSimpleWithinDistance.generated index 37df0c5d68..a99c3ca711 100644 --- a/Documentation/Examples/RestSimpleWithinDistance.generated +++ b/Documentation/Examples/RestSimpleWithinDistance.generated @@ -16,9 +16,9 @@ content-type: application/json; charset=utf-8 { "result" : [ { - "_id" : "products/854829486", - "_key" : "854829486", - "_rev" : "854829486", + "_id" : "products/854767153", + "_key" : "854767153", + "_rev" : "854767153", "name" : "Name/-0.002/", "loc" : [ -0.002, @@ -27,9 +27,9 @@ content-type: application/json; charset=utf-8 "distance" : 222.38985328911744 }, { - "_id" : "products/855222702", - "_key" : "855222702", - "_rev" : "855222702", + "_id" : "products/855160369", + "_key" : "855160369", + "_rev" : "855160369", "name" : "Name/0.002/", "loc" : [ 0.002, @@ -38,9 +38,9 @@ content-type: application/json; charset=utf-8 "distance" : 222.38985328911744 }, { - "_id" : "products/854632878", - "_key" : "854632878", - "_rev" : "854632878", + "_id" : "products/854570545", + "_key" : "854570545", + "_rev" : "854570545", "name" : "Name/-0.004/", "loc" : [ -0.004, diff --git a/Documentation/Examples/RestSimpleWithinRectangle.generated b/Documentation/Examples/RestSimpleWithinRectangle.generated index fb4bcd2563..e1a4627106 100644 --- a/Documentation/Examples/RestSimpleWithinRectangle.generated +++ b/Documentation/Examples/RestSimpleWithinRectangle.generated @@ -16,9 +16,9 @@ content-type: application/json; charset=utf-8 { "result" : [ { - "_id" : "products/858827182", - "_key" : "858827182", - "_rev" : "858827182", + "_id" : "products/858764849", + "_key" : "858764849", + "_rev" : "858764849", "name" : "Name/0.008/", "loc" : [ 0.008, @@ -26,9 +26,9 @@ content-type: application/json; charset=utf-8 ] }, { - "_id" : "products/858630574", - "_key" : "858630574", - "_rev" : "858630574", + "_id" : "products/858568241", + "_key" : "858568241", + "_rev" : "858568241", "name" : "Name/0.006/", "loc" : [ 0.006, diff --git a/Documentation/Examples/RestTasksCreate.generated b/Documentation/Examples/RestTasksCreate.generated index ac3851c44b..f4f0978e3a 100644 --- a/Documentation/Examples/RestTasksCreate.generated +++ b/Documentation/Examples/RestTasksCreate.generated @@ -14,15 +14,15 @@ HTTP/1.1 200 O content-type: application/json; charset=utf-8 { - "id" : "859482542", + "id" : "859420209", "name" : "SampleTask", "type" : "periodic", "period" : 2, - "created" : 1456862649.78425, + "created" : 1457638712.799695, "command" : "(function(params) { require('internal').print(params); })(params)", "database" : "_system", "error" : false, "code" : 200 } -shell> curl -X DELETE --dump - http://localhost:8529/_api/tasks/859482542 +shell> curl -X DELETE --dump - http://localhost:8529/_api/tasks/859420209 diff --git a/Documentation/Examples/RestTasksListAll.generated b/Documentation/Examples/RestTasksListAll.generated index 09b588dfda..0a3ea23c11 100644 --- a/Documentation/Examples/RestTasksListAll.generated +++ b/Documentation/Examples/RestTasksListAll.generated @@ -5,38 +5,38 @@ content-type: application/json; charset=utf-8 [ { - "id" : "16165294", + "id" : "16168497", "name" : "user-defined task", "type" : "periodic", "period" : 1, - "created" : 1456862627.363498, + "created" : 1457638692.671135, "command" : "(function () {\n require('org/arangodb/foxx/queues/manager').manage();\n })(params)", "database" : "_system" }, - { - "id" : "statistics-gc", - "name" : "statistics-gc", - "type" : "periodic", - "period" : 450, - "created" : 1456862627.243386, - "command" : "require('org/arangodb/statistics').garbageCollector();", - "database" : "_system" - }, { "id" : "statistics-average-collector", "name" : "statistics-average-collector", "type" : "periodic", "period" : 900, - "created" : 1456862627.242818, + "created" : 1457638692.545466, "command" : "require('org/arangodb/statistics').historianAverage();", "database" : "_system" }, + { + "id" : "statistics-gc", + "name" : "statistics-gc", + "type" : "periodic", + "period" : 450, + "created" : 1457638692.546552, + "command" : "require('org/arangodb/statistics').garbageCollector();", + "database" : "_system" + }, { "id" : "statistics-collector", "name" : "statistics-collector", "type" : "periodic", "period" : 10, - "created" : 1456862627.242682, + "created" : 1457638692.545289, "command" : "require('org/arangodb/statistics').historian();", "database" : "_system" } diff --git a/Documentation/Examples/RestTasksListOne.generated b/Documentation/Examples/RestTasksListOne.generated index 60428b317c..60e8ddafdf 100644 --- a/Documentation/Examples/RestTasksListOne.generated +++ b/Documentation/Examples/RestTasksListOne.generated @@ -8,7 +8,7 @@ content-type: application/json; charset=utf-8 "name" : "statistics-average-collector", "type" : "periodic", "period" : 900, - "created" : 1456862627.242818, + "created" : 1457638692.545466, "command" : "require('org/arangodb/statistics').historianAverage();", "database" : "_system", "error" : false, diff --git a/Documentation/Examples/RestTasksPutWithId.generated b/Documentation/Examples/RestTasksPutWithId.generated index 4037f89fc2..fa58074b0e 100644 --- a/Documentation/Examples/RestTasksPutWithId.generated +++ b/Documentation/Examples/RestTasksPutWithId.generated @@ -19,7 +19,7 @@ content-type: application/json; charset=utf-8 "name" : "SampleTask", "type" : "periodic", "period" : 2, - "created" : 1456862649.837428, + "created" : 1457638712.851435, "command" : "(function(params) { require('internal').print(params); })(params)", "database" : "_system", "error" : false, diff --git a/Documentation/Examples/RestTraversalAny.generated b/Documentation/Examples/RestTraversalAny.generated index ccdc252405..eef79ba1f6 100644 --- a/Documentation/Examples/RestTraversalAny.generated +++ b/Documentation/Examples/RestTraversalAny.generated @@ -20,37 +20,37 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "863873454", + "_rev" : "863811121", "name" : "Alice" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "864725422", + "_rev" : "864663089", "name" : "Eve" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "864070062", + "_rev" : "864007729", "name" : "Bob" }, { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "863873454", + "_rev" : "863811121", "name" : "Alice" }, { "_id" : "persons/charlie", "_key" : "charlie", - "_rev" : "864332206", + "_rev" : "864269873", "name" : "Charlie" }, { "_id" : "persons/dave", "_key" : "dave", - "_rev" : "864528814", + "_rev" : "864466481", "name" : "Dave" } ], @@ -61,7 +61,7 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "863873454", + "_rev" : "863811121", "name" : "Alice" } ] @@ -69,9 +69,9 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/865577390", - "_key" : "865577390", - "_rev" : "865577390", + "_id" : "knows/865515057", + "_key" : "865515057", + "_rev" : "865515057", "_from" : "persons/eve", "_to" : "persons/alice" } @@ -80,13 +80,13 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "863873454", + "_rev" : "863811121", "name" : "Alice" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "864725422", + "_rev" : "864663089", "name" : "Eve" } ] @@ -94,16 +94,16 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/865577390", - "_key" : "865577390", - "_rev" : "865577390", + "_id" : "knows/865515057", + "_key" : "865515057", + "_rev" : "865515057", "_from" : "persons/eve", "_to" : "persons/alice" }, { - "_id" : "knows/865773998", - "_key" : "865773998", - "_rev" : "865773998", + "_id" : "knows/865711665", + "_key" : "865711665", + "_rev" : "865711665", "_from" : "persons/eve", "_to" : "persons/bob" } @@ -112,19 +112,19 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "863873454", + "_rev" : "863811121", "name" : "Alice" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "864725422", + "_rev" : "864663089", "name" : "Eve" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "864070062", + "_rev" : "864007729", "name" : "Bob" } ] @@ -132,23 +132,23 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/865577390", - "_key" : "865577390", - "_rev" : "865577390", + "_id" : "knows/865515057", + "_key" : "865515057", + "_rev" : "865515057", "_from" : "persons/eve", "_to" : "persons/alice" }, { - "_id" : "knows/865773998", - "_key" : "865773998", - "_rev" : "865773998", + "_id" : "knows/865711665", + "_key" : "865711665", + "_rev" : "865711665", "_from" : "persons/eve", "_to" : "persons/bob" }, { - "_id" : "knows/864987566", - "_key" : "864987566", - "_rev" : "864987566", + "_id" : "knows/864925233", + "_key" : "864925233", + "_rev" : "864925233", "_from" : "persons/alice", "_to" : "persons/bob" } @@ -157,25 +157,25 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "863873454", + "_rev" : "863811121", "name" : "Alice" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "864725422", + "_rev" : "864663089", "name" : "Eve" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "864070062", + "_rev" : "864007729", "name" : "Bob" }, { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "863873454", + "_rev" : "863811121", "name" : "Alice" } ] @@ -183,23 +183,23 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/865577390", - "_key" : "865577390", - "_rev" : "865577390", + "_id" : "knows/865515057", + "_key" : "865515057", + "_rev" : "865515057", "_from" : "persons/eve", "_to" : "persons/alice" }, { - "_id" : "knows/865773998", - "_key" : "865773998", - "_rev" : "865773998", + "_id" : "knows/865711665", + "_key" : "865711665", + "_rev" : "865711665", "_from" : "persons/eve", "_to" : "persons/bob" }, { - "_id" : "knows/865184174", - "_key" : "865184174", - "_rev" : "865184174", + "_id" : "knows/865121841", + "_key" : "865121841", + "_rev" : "865121841", "_from" : "persons/bob", "_to" : "persons/charlie" } @@ -208,25 +208,25 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "863873454", + "_rev" : "863811121", "name" : "Alice" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "864725422", + "_rev" : "864663089", "name" : "Eve" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "864070062", + "_rev" : "864007729", "name" : "Bob" }, { "_id" : "persons/charlie", "_key" : "charlie", - "_rev" : "864332206", + "_rev" : "864269873", "name" : "Charlie" } ] @@ -234,23 +234,23 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/865577390", - "_key" : "865577390", - "_rev" : "865577390", + "_id" : "knows/865515057", + "_key" : "865515057", + "_rev" : "865515057", "_from" : "persons/eve", "_to" : "persons/alice" }, { - "_id" : "knows/865773998", - "_key" : "865773998", - "_rev" : "865773998", + "_id" : "knows/865711665", + "_key" : "865711665", + "_rev" : "865711665", "_from" : "persons/eve", "_to" : "persons/bob" }, { - "_id" : "knows/865380782", - "_key" : "865380782", - "_rev" : "865380782", + "_id" : "knows/865318449", + "_key" : "865318449", + "_rev" : "865318449", "_from" : "persons/bob", "_to" : "persons/dave" } @@ -259,25 +259,25 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "863873454", + "_rev" : "863811121", "name" : "Alice" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "864725422", + "_rev" : "864663089", "name" : "Eve" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "864070062", + "_rev" : "864007729", "name" : "Bob" }, { "_id" : "persons/dave", "_key" : "dave", - "_rev" : "864528814", + "_rev" : "864466481", "name" : "Dave" } ] diff --git a/Documentation/Examples/RestTraversalBackwardItemOrder.generated b/Documentation/Examples/RestTraversalBackwardItemOrder.generated index 6110414b58..72c213163b 100644 --- a/Documentation/Examples/RestTraversalBackwardItemOrder.generated +++ b/Documentation/Examples/RestTraversalBackwardItemOrder.generated @@ -17,67 +17,67 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "868854190", + "_rev" : "868791857", "name" : "Alice" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "869050798", + "_rev" : "868988465", "name" : "Bob" }, { "_id" : "persons/dave", "_key" : "dave", - "_rev" : "869509550", + "_rev" : "869447217", "name" : "Dave" }, { "_id" : "persons/charlie", "_key" : "charlie", - "_rev" : "869312942", + "_rev" : "869250609", "name" : "Charlie" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "869706158", + "_rev" : "869643825", "name" : "Eve" }, { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "868854190", + "_rev" : "868791857", "name" : "Alice" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "869706158", + "_rev" : "869643825", "name" : "Eve" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "869050798", + "_rev" : "868988465", "name" : "Bob" }, { "_id" : "persons/dave", "_key" : "dave", - "_rev" : "869509550", + "_rev" : "869447217", "name" : "Dave" }, { "_id" : "persons/charlie", "_key" : "charlie", - "_rev" : "869312942", + "_rev" : "869250609", "name" : "Charlie" }, { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "868854190", + "_rev" : "868791857", "name" : "Alice" } ], @@ -88,7 +88,7 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "868854190", + "_rev" : "868791857", "name" : "Alice" } ] @@ -96,9 +96,9 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/869968302", - "_key" : "869968302", - "_rev" : "869968302", + "_id" : "knows/869905969", + "_key" : "869905969", + "_rev" : "869905969", "_from" : "persons/alice", "_to" : "persons/bob" } @@ -107,13 +107,13 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "868854190", + "_rev" : "868791857", "name" : "Alice" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "869050798", + "_rev" : "868988465", "name" : "Bob" } ] @@ -121,16 +121,16 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/869968302", - "_key" : "869968302", - "_rev" : "869968302", + "_id" : "knows/869905969", + "_key" : "869905969", + "_rev" : "869905969", "_from" : "persons/alice", "_to" : "persons/bob" }, { - "_id" : "knows/870361518", - "_key" : "870361518", - "_rev" : "870361518", + "_id" : "knows/870299185", + "_key" : "870299185", + "_rev" : "870299185", "_from" : "persons/bob", "_to" : "persons/dave" } @@ -139,19 +139,19 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "868854190", + "_rev" : "868791857", "name" : "Alice" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "869050798", + "_rev" : "868988465", "name" : "Bob" }, { "_id" : "persons/dave", "_key" : "dave", - "_rev" : "869509550", + "_rev" : "869447217", "name" : "Dave" } ] @@ -159,16 +159,16 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/869968302", - "_key" : "869968302", - "_rev" : "869968302", + "_id" : "knows/869905969", + "_key" : "869905969", + "_rev" : "869905969", "_from" : "persons/alice", "_to" : "persons/bob" }, { - "_id" : "knows/870164910", - "_key" : "870164910", - "_rev" : "870164910", + "_id" : "knows/870102577", + "_key" : "870102577", + "_rev" : "870102577", "_from" : "persons/bob", "_to" : "persons/charlie" } @@ -177,19 +177,19 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "868854190", + "_rev" : "868791857", "name" : "Alice" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "869050798", + "_rev" : "868988465", "name" : "Bob" }, { "_id" : "persons/charlie", "_key" : "charlie", - "_rev" : "869312942", + "_rev" : "869250609", "name" : "Charlie" } ] @@ -197,16 +197,16 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/869968302", - "_key" : "869968302", - "_rev" : "869968302", + "_id" : "knows/869905969", + "_key" : "869905969", + "_rev" : "869905969", "_from" : "persons/alice", "_to" : "persons/bob" }, { - "_id" : "knows/870754734", - "_key" : "870754734", - "_rev" : "870754734", + "_id" : "knows/870692401", + "_key" : "870692401", + "_rev" : "870692401", "_from" : "persons/eve", "_to" : "persons/bob" } @@ -215,19 +215,19 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "868854190", + "_rev" : "868791857", "name" : "Alice" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "869050798", + "_rev" : "868988465", "name" : "Bob" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "869706158", + "_rev" : "869643825", "name" : "Eve" } ] @@ -235,23 +235,23 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/869968302", - "_key" : "869968302", - "_rev" : "869968302", + "_id" : "knows/869905969", + "_key" : "869905969", + "_rev" : "869905969", "_from" : "persons/alice", "_to" : "persons/bob" }, { - "_id" : "knows/870754734", - "_key" : "870754734", - "_rev" : "870754734", + "_id" : "knows/870692401", + "_key" : "870692401", + "_rev" : "870692401", "_from" : "persons/eve", "_to" : "persons/bob" }, { - "_id" : "knows/870558126", - "_key" : "870558126", - "_rev" : "870558126", + "_id" : "knows/870495793", + "_key" : "870495793", + "_rev" : "870495793", "_from" : "persons/eve", "_to" : "persons/alice" } @@ -260,25 +260,25 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "868854190", + "_rev" : "868791857", "name" : "Alice" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "869050798", + "_rev" : "868988465", "name" : "Bob" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "869706158", + "_rev" : "869643825", "name" : "Eve" }, { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "868854190", + "_rev" : "868791857", "name" : "Alice" } ] @@ -286,9 +286,9 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/870558126", - "_key" : "870558126", - "_rev" : "870558126", + "_id" : "knows/870495793", + "_key" : "870495793", + "_rev" : "870495793", "_from" : "persons/eve", "_to" : "persons/alice" } @@ -297,13 +297,13 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "868854190", + "_rev" : "868791857", "name" : "Alice" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "869706158", + "_rev" : "869643825", "name" : "Eve" } ] @@ -311,16 +311,16 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/870558126", - "_key" : "870558126", - "_rev" : "870558126", + "_id" : "knows/870495793", + "_key" : "870495793", + "_rev" : "870495793", "_from" : "persons/eve", "_to" : "persons/alice" }, { - "_id" : "knows/870754734", - "_key" : "870754734", - "_rev" : "870754734", + "_id" : "knows/870692401", + "_key" : "870692401", + "_rev" : "870692401", "_from" : "persons/eve", "_to" : "persons/bob" } @@ -329,19 +329,19 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "868854190", + "_rev" : "868791857", "name" : "Alice" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "869706158", + "_rev" : "869643825", "name" : "Eve" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "869050798", + "_rev" : "868988465", "name" : "Bob" } ] @@ -349,23 +349,23 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/870558126", - "_key" : "870558126", - "_rev" : "870558126", + "_id" : "knows/870495793", + "_key" : "870495793", + "_rev" : "870495793", "_from" : "persons/eve", "_to" : "persons/alice" }, { - "_id" : "knows/870754734", - "_key" : "870754734", - "_rev" : "870754734", + "_id" : "knows/870692401", + "_key" : "870692401", + "_rev" : "870692401", "_from" : "persons/eve", "_to" : "persons/bob" }, { - "_id" : "knows/870361518", - "_key" : "870361518", - "_rev" : "870361518", + "_id" : "knows/870299185", + "_key" : "870299185", + "_rev" : "870299185", "_from" : "persons/bob", "_to" : "persons/dave" } @@ -374,25 +374,25 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "868854190", + "_rev" : "868791857", "name" : "Alice" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "869706158", + "_rev" : "869643825", "name" : "Eve" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "869050798", + "_rev" : "868988465", "name" : "Bob" }, { "_id" : "persons/dave", "_key" : "dave", - "_rev" : "869509550", + "_rev" : "869447217", "name" : "Dave" } ] @@ -400,23 +400,23 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/870558126", - "_key" : "870558126", - "_rev" : "870558126", + "_id" : "knows/870495793", + "_key" : "870495793", + "_rev" : "870495793", "_from" : "persons/eve", "_to" : "persons/alice" }, { - "_id" : "knows/870754734", - "_key" : "870754734", - "_rev" : "870754734", + "_id" : "knows/870692401", + "_key" : "870692401", + "_rev" : "870692401", "_from" : "persons/eve", "_to" : "persons/bob" }, { - "_id" : "knows/870164910", - "_key" : "870164910", - "_rev" : "870164910", + "_id" : "knows/870102577", + "_key" : "870102577", + "_rev" : "870102577", "_from" : "persons/bob", "_to" : "persons/charlie" } @@ -425,25 +425,25 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "868854190", + "_rev" : "868791857", "name" : "Alice" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "869706158", + "_rev" : "869643825", "name" : "Eve" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "869050798", + "_rev" : "868988465", "name" : "Bob" }, { "_id" : "persons/charlie", "_key" : "charlie", - "_rev" : "869312942", + "_rev" : "869250609", "name" : "Charlie" } ] @@ -451,23 +451,23 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/870558126", - "_key" : "870558126", - "_rev" : "870558126", + "_id" : "knows/870495793", + "_key" : "870495793", + "_rev" : "870495793", "_from" : "persons/eve", "_to" : "persons/alice" }, { - "_id" : "knows/870754734", - "_key" : "870754734", - "_rev" : "870754734", + "_id" : "knows/870692401", + "_key" : "870692401", + "_rev" : "870692401", "_from" : "persons/eve", "_to" : "persons/bob" }, { - "_id" : "knows/869968302", - "_key" : "869968302", - "_rev" : "869968302", + "_id" : "knows/869905969", + "_key" : "869905969", + "_rev" : "869905969", "_from" : "persons/alice", "_to" : "persons/bob" } @@ -476,25 +476,25 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "868854190", + "_rev" : "868791857", "name" : "Alice" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "869706158", + "_rev" : "869643825", "name" : "Eve" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "869050798", + "_rev" : "868988465", "name" : "Bob" }, { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "868854190", + "_rev" : "868791857", "name" : "Alice" } ] diff --git a/Documentation/Examples/RestTraversalDepthFirst.generated b/Documentation/Examples/RestTraversalDepthFirst.generated index c8316e357b..5a827882cf 100644 --- a/Documentation/Examples/RestTraversalDepthFirst.generated +++ b/Documentation/Examples/RestTraversalDepthFirst.generated @@ -17,67 +17,67 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "874817966", + "_rev" : "874755633", "name" : "Alice" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "875669934", + "_rev" : "875607601", "name" : "Eve" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "875014574", + "_rev" : "874952241", "name" : "Bob" }, { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "874817966", + "_rev" : "874755633", "name" : "Alice" }, { "_id" : "persons/charlie", "_key" : "charlie", - "_rev" : "875276718", + "_rev" : "875214385", "name" : "Charlie" }, { "_id" : "persons/dave", "_key" : "dave", - "_rev" : "875473326", + "_rev" : "875410993", "name" : "Dave" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "875014574", + "_rev" : "874952241", "name" : "Bob" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "875669934", + "_rev" : "875607601", "name" : "Eve" }, { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "874817966", + "_rev" : "874755633", "name" : "Alice" }, { "_id" : "persons/charlie", "_key" : "charlie", - "_rev" : "875276718", + "_rev" : "875214385", "name" : "Charlie" }, { "_id" : "persons/dave", "_key" : "dave", - "_rev" : "875473326", + "_rev" : "875410993", "name" : "Dave" } ], @@ -88,7 +88,7 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "874817966", + "_rev" : "874755633", "name" : "Alice" } ] @@ -96,9 +96,9 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/876521902", - "_key" : "876521902", - "_rev" : "876521902", + "_id" : "knows/876459569", + "_key" : "876459569", + "_rev" : "876459569", "_from" : "persons/eve", "_to" : "persons/alice" } @@ -107,13 +107,13 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "874817966", + "_rev" : "874755633", "name" : "Alice" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "875669934", + "_rev" : "875607601", "name" : "Eve" } ] @@ -121,16 +121,16 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/876521902", - "_key" : "876521902", - "_rev" : "876521902", + "_id" : "knows/876459569", + "_key" : "876459569", + "_rev" : "876459569", "_from" : "persons/eve", "_to" : "persons/alice" }, { - "_id" : "knows/876718510", - "_key" : "876718510", - "_rev" : "876718510", + "_id" : "knows/876656177", + "_key" : "876656177", + "_rev" : "876656177", "_from" : "persons/eve", "_to" : "persons/bob" } @@ -139,19 +139,19 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "874817966", + "_rev" : "874755633", "name" : "Alice" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "875669934", + "_rev" : "875607601", "name" : "Eve" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "875014574", + "_rev" : "874952241", "name" : "Bob" } ] @@ -159,23 +159,23 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/876521902", - "_key" : "876521902", - "_rev" : "876521902", + "_id" : "knows/876459569", + "_key" : "876459569", + "_rev" : "876459569", "_from" : "persons/eve", "_to" : "persons/alice" }, { - "_id" : "knows/876718510", - "_key" : "876718510", - "_rev" : "876718510", + "_id" : "knows/876656177", + "_key" : "876656177", + "_rev" : "876656177", "_from" : "persons/eve", "_to" : "persons/bob" }, { - "_id" : "knows/875932078", - "_key" : "875932078", - "_rev" : "875932078", + "_id" : "knows/875869745", + "_key" : "875869745", + "_rev" : "875869745", "_from" : "persons/alice", "_to" : "persons/bob" } @@ -184,25 +184,25 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "874817966", + "_rev" : "874755633", "name" : "Alice" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "875669934", + "_rev" : "875607601", "name" : "Eve" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "875014574", + "_rev" : "874952241", "name" : "Bob" }, { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "874817966", + "_rev" : "874755633", "name" : "Alice" } ] @@ -210,23 +210,23 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/876521902", - "_key" : "876521902", - "_rev" : "876521902", + "_id" : "knows/876459569", + "_key" : "876459569", + "_rev" : "876459569", "_from" : "persons/eve", "_to" : "persons/alice" }, { - "_id" : "knows/876718510", - "_key" : "876718510", - "_rev" : "876718510", + "_id" : "knows/876656177", + "_key" : "876656177", + "_rev" : "876656177", "_from" : "persons/eve", "_to" : "persons/bob" }, { - "_id" : "knows/876128686", - "_key" : "876128686", - "_rev" : "876128686", + "_id" : "knows/876066353", + "_key" : "876066353", + "_rev" : "876066353", "_from" : "persons/bob", "_to" : "persons/charlie" } @@ -235,25 +235,25 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "874817966", + "_rev" : "874755633", "name" : "Alice" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "875669934", + "_rev" : "875607601", "name" : "Eve" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "875014574", + "_rev" : "874952241", "name" : "Bob" }, { "_id" : "persons/charlie", "_key" : "charlie", - "_rev" : "875276718", + "_rev" : "875214385", "name" : "Charlie" } ] @@ -261,23 +261,23 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/876521902", - "_key" : "876521902", - "_rev" : "876521902", + "_id" : "knows/876459569", + "_key" : "876459569", + "_rev" : "876459569", "_from" : "persons/eve", "_to" : "persons/alice" }, { - "_id" : "knows/876718510", - "_key" : "876718510", - "_rev" : "876718510", + "_id" : "knows/876656177", + "_key" : "876656177", + "_rev" : "876656177", "_from" : "persons/eve", "_to" : "persons/bob" }, { - "_id" : "knows/876325294", - "_key" : "876325294", - "_rev" : "876325294", + "_id" : "knows/876262961", + "_key" : "876262961", + "_rev" : "876262961", "_from" : "persons/bob", "_to" : "persons/dave" } @@ -286,25 +286,25 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "874817966", + "_rev" : "874755633", "name" : "Alice" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "875669934", + "_rev" : "875607601", "name" : "Eve" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "875014574", + "_rev" : "874952241", "name" : "Bob" }, { "_id" : "persons/dave", "_key" : "dave", - "_rev" : "875473326", + "_rev" : "875410993", "name" : "Dave" } ] @@ -312,9 +312,9 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/875932078", - "_key" : "875932078", - "_rev" : "875932078", + "_id" : "knows/875869745", + "_key" : "875869745", + "_rev" : "875869745", "_from" : "persons/alice", "_to" : "persons/bob" } @@ -323,13 +323,13 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "874817966", + "_rev" : "874755633", "name" : "Alice" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "875014574", + "_rev" : "874952241", "name" : "Bob" } ] @@ -337,16 +337,16 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/875932078", - "_key" : "875932078", - "_rev" : "875932078", + "_id" : "knows/875869745", + "_key" : "875869745", + "_rev" : "875869745", "_from" : "persons/alice", "_to" : "persons/bob" }, { - "_id" : "knows/876718510", - "_key" : "876718510", - "_rev" : "876718510", + "_id" : "knows/876656177", + "_key" : "876656177", + "_rev" : "876656177", "_from" : "persons/eve", "_to" : "persons/bob" } @@ -355,19 +355,19 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "874817966", + "_rev" : "874755633", "name" : "Alice" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "875014574", + "_rev" : "874952241", "name" : "Bob" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "875669934", + "_rev" : "875607601", "name" : "Eve" } ] @@ -375,23 +375,23 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/875932078", - "_key" : "875932078", - "_rev" : "875932078", + "_id" : "knows/875869745", + "_key" : "875869745", + "_rev" : "875869745", "_from" : "persons/alice", "_to" : "persons/bob" }, { - "_id" : "knows/876718510", - "_key" : "876718510", - "_rev" : "876718510", + "_id" : "knows/876656177", + "_key" : "876656177", + "_rev" : "876656177", "_from" : "persons/eve", "_to" : "persons/bob" }, { - "_id" : "knows/876521902", - "_key" : "876521902", - "_rev" : "876521902", + "_id" : "knows/876459569", + "_key" : "876459569", + "_rev" : "876459569", "_from" : "persons/eve", "_to" : "persons/alice" } @@ -400,25 +400,25 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "874817966", + "_rev" : "874755633", "name" : "Alice" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "875014574", + "_rev" : "874952241", "name" : "Bob" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "875669934", + "_rev" : "875607601", "name" : "Eve" }, { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "874817966", + "_rev" : "874755633", "name" : "Alice" } ] @@ -426,16 +426,16 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/875932078", - "_key" : "875932078", - "_rev" : "875932078", + "_id" : "knows/875869745", + "_key" : "875869745", + "_rev" : "875869745", "_from" : "persons/alice", "_to" : "persons/bob" }, { - "_id" : "knows/876128686", - "_key" : "876128686", - "_rev" : "876128686", + "_id" : "knows/876066353", + "_key" : "876066353", + "_rev" : "876066353", "_from" : "persons/bob", "_to" : "persons/charlie" } @@ -444,19 +444,19 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "874817966", + "_rev" : "874755633", "name" : "Alice" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "875014574", + "_rev" : "874952241", "name" : "Bob" }, { "_id" : "persons/charlie", "_key" : "charlie", - "_rev" : "875276718", + "_rev" : "875214385", "name" : "Charlie" } ] @@ -464,16 +464,16 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/875932078", - "_key" : "875932078", - "_rev" : "875932078", + "_id" : "knows/875869745", + "_key" : "875869745", + "_rev" : "875869745", "_from" : "persons/alice", "_to" : "persons/bob" }, { - "_id" : "knows/876325294", - "_key" : "876325294", - "_rev" : "876325294", + "_id" : "knows/876262961", + "_key" : "876262961", + "_rev" : "876262961", "_from" : "persons/bob", "_to" : "persons/dave" } @@ -482,19 +482,19 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "874817966", + "_rev" : "874755633", "name" : "Alice" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "875014574", + "_rev" : "874952241", "name" : "Bob" }, { "_id" : "persons/dave", "_key" : "dave", - "_rev" : "875473326", + "_rev" : "875410993", "name" : "Dave" } ] diff --git a/Documentation/Examples/RestTraversalEdgeUniqueness.generated b/Documentation/Examples/RestTraversalEdgeUniqueness.generated index e38b0b5c6c..4c339791f5 100644 --- a/Documentation/Examples/RestTraversalEdgeUniqueness.generated +++ b/Documentation/Examples/RestTraversalEdgeUniqueness.generated @@ -20,37 +20,37 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "880781742", + "_rev" : "880719409", "name" : "Alice" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "881633710", + "_rev" : "881571377", "name" : "Eve" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "880978350", + "_rev" : "880916017", "name" : "Bob" }, { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "880781742", + "_rev" : "880719409", "name" : "Alice" }, { "_id" : "persons/charlie", "_key" : "charlie", - "_rev" : "881240494", + "_rev" : "881178161", "name" : "Charlie" }, { "_id" : "persons/dave", "_key" : "dave", - "_rev" : "881437102", + "_rev" : "881374769", "name" : "Dave" } ], @@ -61,7 +61,7 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "880781742", + "_rev" : "880719409", "name" : "Alice" } ] @@ -69,9 +69,9 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/882485678", - "_key" : "882485678", - "_rev" : "882485678", + "_id" : "knows/882423345", + "_key" : "882423345", + "_rev" : "882423345", "_from" : "persons/eve", "_to" : "persons/alice" } @@ -80,13 +80,13 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "880781742", + "_rev" : "880719409", "name" : "Alice" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "881633710", + "_rev" : "881571377", "name" : "Eve" } ] @@ -94,16 +94,16 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/882485678", - "_key" : "882485678", - "_rev" : "882485678", + "_id" : "knows/882423345", + "_key" : "882423345", + "_rev" : "882423345", "_from" : "persons/eve", "_to" : "persons/alice" }, { - "_id" : "knows/882682286", - "_key" : "882682286", - "_rev" : "882682286", + "_id" : "knows/882619953", + "_key" : "882619953", + "_rev" : "882619953", "_from" : "persons/eve", "_to" : "persons/bob" } @@ -112,19 +112,19 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "880781742", + "_rev" : "880719409", "name" : "Alice" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "881633710", + "_rev" : "881571377", "name" : "Eve" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "880978350", + "_rev" : "880916017", "name" : "Bob" } ] @@ -132,23 +132,23 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/882485678", - "_key" : "882485678", - "_rev" : "882485678", + "_id" : "knows/882423345", + "_key" : "882423345", + "_rev" : "882423345", "_from" : "persons/eve", "_to" : "persons/alice" }, { - "_id" : "knows/882682286", - "_key" : "882682286", - "_rev" : "882682286", + "_id" : "knows/882619953", + "_key" : "882619953", + "_rev" : "882619953", "_from" : "persons/eve", "_to" : "persons/bob" }, { - "_id" : "knows/881895854", - "_key" : "881895854", - "_rev" : "881895854", + "_id" : "knows/881833521", + "_key" : "881833521", + "_rev" : "881833521", "_from" : "persons/alice", "_to" : "persons/bob" } @@ -157,25 +157,25 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "880781742", + "_rev" : "880719409", "name" : "Alice" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "881633710", + "_rev" : "881571377", "name" : "Eve" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "880978350", + "_rev" : "880916017", "name" : "Bob" }, { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "880781742", + "_rev" : "880719409", "name" : "Alice" } ] @@ -183,23 +183,23 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/882485678", - "_key" : "882485678", - "_rev" : "882485678", + "_id" : "knows/882423345", + "_key" : "882423345", + "_rev" : "882423345", "_from" : "persons/eve", "_to" : "persons/alice" }, { - "_id" : "knows/882682286", - "_key" : "882682286", - "_rev" : "882682286", + "_id" : "knows/882619953", + "_key" : "882619953", + "_rev" : "882619953", "_from" : "persons/eve", "_to" : "persons/bob" }, { - "_id" : "knows/882092462", - "_key" : "882092462", - "_rev" : "882092462", + "_id" : "knows/882030129", + "_key" : "882030129", + "_rev" : "882030129", "_from" : "persons/bob", "_to" : "persons/charlie" } @@ -208,25 +208,25 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "880781742", + "_rev" : "880719409", "name" : "Alice" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "881633710", + "_rev" : "881571377", "name" : "Eve" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "880978350", + "_rev" : "880916017", "name" : "Bob" }, { "_id" : "persons/charlie", "_key" : "charlie", - "_rev" : "881240494", + "_rev" : "881178161", "name" : "Charlie" } ] @@ -234,23 +234,23 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/882485678", - "_key" : "882485678", - "_rev" : "882485678", + "_id" : "knows/882423345", + "_key" : "882423345", + "_rev" : "882423345", "_from" : "persons/eve", "_to" : "persons/alice" }, { - "_id" : "knows/882682286", - "_key" : "882682286", - "_rev" : "882682286", + "_id" : "knows/882619953", + "_key" : "882619953", + "_rev" : "882619953", "_from" : "persons/eve", "_to" : "persons/bob" }, { - "_id" : "knows/882289070", - "_key" : "882289070", - "_rev" : "882289070", + "_id" : "knows/882226737", + "_key" : "882226737", + "_rev" : "882226737", "_from" : "persons/bob", "_to" : "persons/dave" } @@ -259,25 +259,25 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "880781742", + "_rev" : "880719409", "name" : "Alice" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "881633710", + "_rev" : "881571377", "name" : "Eve" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "880978350", + "_rev" : "880916017", "name" : "Bob" }, { "_id" : "persons/dave", "_key" : "dave", - "_rev" : "881437102", + "_rev" : "881374769", "name" : "Dave" } ] diff --git a/Documentation/Examples/RestTraversalFilterExclude.generated b/Documentation/Examples/RestTraversalFilterExclude.generated index e2c70cd5b6..04345dbd03 100644 --- a/Documentation/Examples/RestTraversalFilterExclude.generated +++ b/Documentation/Examples/RestTraversalFilterExclude.generated @@ -17,13 +17,13 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "885762478", + "_rev" : "885700145", "name" : "Alice" }, { "_id" : "persons/dave", "_key" : "dave", - "_rev" : "886417838", + "_rev" : "886355505", "name" : "Dave" } ], @@ -34,7 +34,7 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "885762478", + "_rev" : "885700145", "name" : "Alice" } ] @@ -42,16 +42,16 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/886876590", - "_key" : "886876590", - "_rev" : "886876590", + "_id" : "knows/886814257", + "_key" : "886814257", + "_rev" : "886814257", "_from" : "persons/alice", "_to" : "persons/bob" }, { - "_id" : "knows/887269806", - "_key" : "887269806", - "_rev" : "887269806", + "_id" : "knows/887207473", + "_key" : "887207473", + "_rev" : "887207473", "_from" : "persons/bob", "_to" : "persons/dave" } @@ -60,19 +60,19 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "885762478", + "_rev" : "885700145", "name" : "Alice" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "885959086", + "_rev" : "885896753", "name" : "Bob" }, { "_id" : "persons/dave", "_key" : "dave", - "_rev" : "886417838", + "_rev" : "886355505", "name" : "Dave" } ] diff --git a/Documentation/Examples/RestTraversalFilterPrune.generated b/Documentation/Examples/RestTraversalFilterPrune.generated index 27f88c7f57..bce1b7351e 100644 --- a/Documentation/Examples/RestTraversalFilterPrune.generated +++ b/Documentation/Examples/RestTraversalFilterPrune.generated @@ -17,13 +17,13 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "890022318", + "_rev" : "889959985", "name" : "Alice" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "890218926", + "_rev" : "890156593", "name" : "Bob" } ], @@ -34,7 +34,7 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "890022318", + "_rev" : "889959985", "name" : "Alice" } ] @@ -42,9 +42,9 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/891136430", - "_key" : "891136430", - "_rev" : "891136430", + "_id" : "knows/891074097", + "_key" : "891074097", + "_rev" : "891074097", "_from" : "persons/alice", "_to" : "persons/bob" } @@ -53,13 +53,13 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "890022318", + "_rev" : "889959985", "name" : "Alice" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "890218926", + "_rev" : "890156593", "name" : "Bob" } ] diff --git a/Documentation/Examples/RestTraversalInbound.generated b/Documentation/Examples/RestTraversalInbound.generated index 74e685e2d5..d741dd9fed 100644 --- a/Documentation/Examples/RestTraversalInbound.generated +++ b/Documentation/Examples/RestTraversalInbound.generated @@ -16,13 +16,13 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "893954478", + "_rev" : "893892145", "name" : "Alice" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "894806446", + "_rev" : "894744113", "name" : "Eve" } ], @@ -33,7 +33,7 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "893954478", + "_rev" : "893892145", "name" : "Alice" } ] @@ -41,9 +41,9 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/895658414", - "_key" : "895658414", - "_rev" : "895658414", + "_id" : "knows/895596081", + "_key" : "895596081", + "_rev" : "895596081", "_from" : "persons/eve", "_to" : "persons/alice" } @@ -52,13 +52,13 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "893954478", + "_rev" : "893892145", "name" : "Alice" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "894806446", + "_rev" : "894744113", "name" : "Eve" } ] diff --git a/Documentation/Examples/RestTraversalMaxDepth.generated b/Documentation/Examples/RestTraversalMaxDepth.generated index 391ea92142..94bd52d5c2 100644 --- a/Documentation/Examples/RestTraversalMaxDepth.generated +++ b/Documentation/Examples/RestTraversalMaxDepth.generated @@ -17,13 +17,13 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "897952174", + "_rev" : "897889841", "name" : "Alice" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "898148782", + "_rev" : "898086449", "name" : "Bob" } ], @@ -34,7 +34,7 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "897952174", + "_rev" : "897889841", "name" : "Alice" } ] @@ -42,9 +42,9 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/899066286", - "_key" : "899066286", - "_rev" : "899066286", + "_id" : "knows/899003953", + "_key" : "899003953", + "_rev" : "899003953", "_from" : "persons/alice", "_to" : "persons/bob" } @@ -53,13 +53,13 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "897952174", + "_rev" : "897889841", "name" : "Alice" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "898148782", + "_rev" : "898086449", "name" : "Bob" } ] diff --git a/Documentation/Examples/RestTraversalMinDepth.generated b/Documentation/Examples/RestTraversalMinDepth.generated index b0fa86c451..e598e81a76 100644 --- a/Documentation/Examples/RestTraversalMinDepth.generated +++ b/Documentation/Examples/RestTraversalMinDepth.generated @@ -17,13 +17,13 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/charlie", "_key" : "charlie", - "_rev" : "908634542", + "_rev" : "908572209", "name" : "Charlie" }, { "_id" : "persons/dave", "_key" : "dave", - "_rev" : "908831150", + "_rev" : "908768817", "name" : "Dave" } ], @@ -31,16 +31,16 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/909289902", - "_key" : "909289902", - "_rev" : "909289902", + "_id" : "knows/909227569", + "_key" : "909227569", + "_rev" : "909227569", "_from" : "persons/alice", "_to" : "persons/bob" }, { - "_id" : "knows/909486510", - "_key" : "909486510", - "_rev" : "909486510", + "_id" : "knows/909424177", + "_key" : "909424177", + "_rev" : "909424177", "_from" : "persons/bob", "_to" : "persons/charlie" } @@ -49,19 +49,19 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "908175790", + "_rev" : "908113457", "name" : "Alice" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "908372398", + "_rev" : "908310065", "name" : "Bob" }, { "_id" : "persons/charlie", "_key" : "charlie", - "_rev" : "908634542", + "_rev" : "908572209", "name" : "Charlie" } ] @@ -69,16 +69,16 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/909289902", - "_key" : "909289902", - "_rev" : "909289902", + "_id" : "knows/909227569", + "_key" : "909227569", + "_rev" : "909227569", "_from" : "persons/alice", "_to" : "persons/bob" }, { - "_id" : "knows/909683118", - "_key" : "909683118", - "_rev" : "909683118", + "_id" : "knows/909620785", + "_key" : "909620785", + "_rev" : "909620785", "_from" : "persons/bob", "_to" : "persons/dave" } @@ -87,19 +87,19 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "908175790", + "_rev" : "908113457", "name" : "Alice" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "908372398", + "_rev" : "908310065", "name" : "Bob" }, { "_id" : "persons/dave", "_key" : "dave", - "_rev" : "908831150", + "_rev" : "908768817", "name" : "Dave" } ] diff --git a/Documentation/Examples/RestTraversalOutbound.generated b/Documentation/Examples/RestTraversalOutbound.generated index 1947363ce9..92ffb6c06b 100644 --- a/Documentation/Examples/RestTraversalOutbound.generated +++ b/Documentation/Examples/RestTraversalOutbound.generated @@ -16,25 +16,25 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "912435630", + "_rev" : "912373297", "name" : "Alice" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "912632238", + "_rev" : "912569905", "name" : "Bob" }, { "_id" : "persons/charlie", "_key" : "charlie", - "_rev" : "912894382", + "_rev" : "912832049", "name" : "Charlie" }, { "_id" : "persons/dave", "_key" : "dave", - "_rev" : "913090990", + "_rev" : "913028657", "name" : "Dave" } ], @@ -45,7 +45,7 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "912435630", + "_rev" : "912373297", "name" : "Alice" } ] @@ -53,9 +53,9 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/913549742", - "_key" : "913549742", - "_rev" : "913549742", + "_id" : "knows/913487409", + "_key" : "913487409", + "_rev" : "913487409", "_from" : "persons/alice", "_to" : "persons/bob" } @@ -64,13 +64,13 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "912435630", + "_rev" : "912373297", "name" : "Alice" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "912632238", + "_rev" : "912569905", "name" : "Bob" } ] @@ -78,16 +78,16 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/913549742", - "_key" : "913549742", - "_rev" : "913549742", + "_id" : "knows/913487409", + "_key" : "913487409", + "_rev" : "913487409", "_from" : "persons/alice", "_to" : "persons/bob" }, { - "_id" : "knows/913746350", - "_key" : "913746350", - "_rev" : "913746350", + "_id" : "knows/913684017", + "_key" : "913684017", + "_rev" : "913684017", "_from" : "persons/bob", "_to" : "persons/charlie" } @@ -96,19 +96,19 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "912435630", + "_rev" : "912373297", "name" : "Alice" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "912632238", + "_rev" : "912569905", "name" : "Bob" }, { "_id" : "persons/charlie", "_key" : "charlie", - "_rev" : "912894382", + "_rev" : "912832049", "name" : "Charlie" } ] @@ -116,16 +116,16 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/913549742", - "_key" : "913549742", - "_rev" : "913549742", + "_id" : "knows/913487409", + "_key" : "913487409", + "_rev" : "913487409", "_from" : "persons/alice", "_to" : "persons/bob" }, { - "_id" : "knows/913942958", - "_key" : "913942958", - "_rev" : "913942958", + "_id" : "knows/913880625", + "_key" : "913880625", + "_rev" : "913880625", "_from" : "persons/bob", "_to" : "persons/dave" } @@ -134,19 +134,19 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "912435630", + "_rev" : "912373297", "name" : "Alice" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "912632238", + "_rev" : "912569905", "name" : "Bob" }, { "_id" : "persons/dave", "_key" : "dave", - "_rev" : "913090990", + "_rev" : "913028657", "name" : "Dave" } ] diff --git a/Documentation/Examples/RestTraversalPostorder.generated b/Documentation/Examples/RestTraversalPostorder.generated index 68ec9fe7e1..193b47ebb0 100644 --- a/Documentation/Examples/RestTraversalPostorder.generated +++ b/Documentation/Examples/RestTraversalPostorder.generated @@ -17,67 +17,67 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "916695470", + "_rev" : "916633137", "name" : "Alice" }, { "_id" : "persons/charlie", "_key" : "charlie", - "_rev" : "917154222", + "_rev" : "917091889", "name" : "Charlie" }, { "_id" : "persons/dave", "_key" : "dave", - "_rev" : "917350830", + "_rev" : "917288497", "name" : "Dave" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "916892078", + "_rev" : "916829745", "name" : "Bob" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "917547438", + "_rev" : "917485105", "name" : "Eve" }, { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "916695470", + "_rev" : "916633137", "name" : "Alice" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "917547438", + "_rev" : "917485105", "name" : "Eve" }, { "_id" : "persons/charlie", "_key" : "charlie", - "_rev" : "917154222", + "_rev" : "917091889", "name" : "Charlie" }, { "_id" : "persons/dave", "_key" : "dave", - "_rev" : "917350830", + "_rev" : "917288497", "name" : "Dave" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "916892078", + "_rev" : "916829745", "name" : "Bob" }, { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "916695470", + "_rev" : "916633137", "name" : "Alice" } ], @@ -85,23 +85,23 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/918399406", - "_key" : "918399406", - "_rev" : "918399406", + "_id" : "knows/918337073", + "_key" : "918337073", + "_rev" : "918337073", "_from" : "persons/eve", "_to" : "persons/alice" }, { - "_id" : "knows/918596014", - "_key" : "918596014", - "_rev" : "918596014", + "_id" : "knows/918533681", + "_key" : "918533681", + "_rev" : "918533681", "_from" : "persons/eve", "_to" : "persons/bob" }, { - "_id" : "knows/917809582", - "_key" : "917809582", - "_rev" : "917809582", + "_id" : "knows/917747249", + "_key" : "917747249", + "_rev" : "917747249", "_from" : "persons/alice", "_to" : "persons/bob" } @@ -110,25 +110,25 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "916695470", + "_rev" : "916633137", "name" : "Alice" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "917547438", + "_rev" : "917485105", "name" : "Eve" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "916892078", + "_rev" : "916829745", "name" : "Bob" }, { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "916695470", + "_rev" : "916633137", "name" : "Alice" } ] @@ -136,23 +136,23 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/918399406", - "_key" : "918399406", - "_rev" : "918399406", + "_id" : "knows/918337073", + "_key" : "918337073", + "_rev" : "918337073", "_from" : "persons/eve", "_to" : "persons/alice" }, { - "_id" : "knows/918596014", - "_key" : "918596014", - "_rev" : "918596014", + "_id" : "knows/918533681", + "_key" : "918533681", + "_rev" : "918533681", "_from" : "persons/eve", "_to" : "persons/bob" }, { - "_id" : "knows/918006190", - "_key" : "918006190", - "_rev" : "918006190", + "_id" : "knows/917943857", + "_key" : "917943857", + "_rev" : "917943857", "_from" : "persons/bob", "_to" : "persons/charlie" } @@ -161,25 +161,25 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "916695470", + "_rev" : "916633137", "name" : "Alice" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "917547438", + "_rev" : "917485105", "name" : "Eve" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "916892078", + "_rev" : "916829745", "name" : "Bob" }, { "_id" : "persons/charlie", "_key" : "charlie", - "_rev" : "917154222", + "_rev" : "917091889", "name" : "Charlie" } ] @@ -187,23 +187,23 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/918399406", - "_key" : "918399406", - "_rev" : "918399406", + "_id" : "knows/918337073", + "_key" : "918337073", + "_rev" : "918337073", "_from" : "persons/eve", "_to" : "persons/alice" }, { - "_id" : "knows/918596014", - "_key" : "918596014", - "_rev" : "918596014", + "_id" : "knows/918533681", + "_key" : "918533681", + "_rev" : "918533681", "_from" : "persons/eve", "_to" : "persons/bob" }, { - "_id" : "knows/918202798", - "_key" : "918202798", - "_rev" : "918202798", + "_id" : "knows/918140465", + "_key" : "918140465", + "_rev" : "918140465", "_from" : "persons/bob", "_to" : "persons/dave" } @@ -212,25 +212,25 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "916695470", + "_rev" : "916633137", "name" : "Alice" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "917547438", + "_rev" : "917485105", "name" : "Eve" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "916892078", + "_rev" : "916829745", "name" : "Bob" }, { "_id" : "persons/dave", "_key" : "dave", - "_rev" : "917350830", + "_rev" : "917288497", "name" : "Dave" } ] @@ -238,16 +238,16 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/918399406", - "_key" : "918399406", - "_rev" : "918399406", + "_id" : "knows/918337073", + "_key" : "918337073", + "_rev" : "918337073", "_from" : "persons/eve", "_to" : "persons/alice" }, { - "_id" : "knows/918596014", - "_key" : "918596014", - "_rev" : "918596014", + "_id" : "knows/918533681", + "_key" : "918533681", + "_rev" : "918533681", "_from" : "persons/eve", "_to" : "persons/bob" } @@ -256,19 +256,19 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "916695470", + "_rev" : "916633137", "name" : "Alice" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "917547438", + "_rev" : "917485105", "name" : "Eve" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "916892078", + "_rev" : "916829745", "name" : "Bob" } ] @@ -276,9 +276,9 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/918399406", - "_key" : "918399406", - "_rev" : "918399406", + "_id" : "knows/918337073", + "_key" : "918337073", + "_rev" : "918337073", "_from" : "persons/eve", "_to" : "persons/alice" } @@ -287,13 +287,13 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "916695470", + "_rev" : "916633137", "name" : "Alice" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "917547438", + "_rev" : "917485105", "name" : "Eve" } ] @@ -301,23 +301,23 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/917809582", - "_key" : "917809582", - "_rev" : "917809582", + "_id" : "knows/917747249", + "_key" : "917747249", + "_rev" : "917747249", "_from" : "persons/alice", "_to" : "persons/bob" }, { - "_id" : "knows/918596014", - "_key" : "918596014", - "_rev" : "918596014", + "_id" : "knows/918533681", + "_key" : "918533681", + "_rev" : "918533681", "_from" : "persons/eve", "_to" : "persons/bob" }, { - "_id" : "knows/918399406", - "_key" : "918399406", - "_rev" : "918399406", + "_id" : "knows/918337073", + "_key" : "918337073", + "_rev" : "918337073", "_from" : "persons/eve", "_to" : "persons/alice" } @@ -326,25 +326,25 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "916695470", + "_rev" : "916633137", "name" : "Alice" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "916892078", + "_rev" : "916829745", "name" : "Bob" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "917547438", + "_rev" : "917485105", "name" : "Eve" }, { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "916695470", + "_rev" : "916633137", "name" : "Alice" } ] @@ -352,16 +352,16 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/917809582", - "_key" : "917809582", - "_rev" : "917809582", + "_id" : "knows/917747249", + "_key" : "917747249", + "_rev" : "917747249", "_from" : "persons/alice", "_to" : "persons/bob" }, { - "_id" : "knows/918596014", - "_key" : "918596014", - "_rev" : "918596014", + "_id" : "knows/918533681", + "_key" : "918533681", + "_rev" : "918533681", "_from" : "persons/eve", "_to" : "persons/bob" } @@ -370,19 +370,19 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "916695470", + "_rev" : "916633137", "name" : "Alice" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "916892078", + "_rev" : "916829745", "name" : "Bob" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "917547438", + "_rev" : "917485105", "name" : "Eve" } ] @@ -390,16 +390,16 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/917809582", - "_key" : "917809582", - "_rev" : "917809582", + "_id" : "knows/917747249", + "_key" : "917747249", + "_rev" : "917747249", "_from" : "persons/alice", "_to" : "persons/bob" }, { - "_id" : "knows/918006190", - "_key" : "918006190", - "_rev" : "918006190", + "_id" : "knows/917943857", + "_key" : "917943857", + "_rev" : "917943857", "_from" : "persons/bob", "_to" : "persons/charlie" } @@ -408,19 +408,19 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "916695470", + "_rev" : "916633137", "name" : "Alice" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "916892078", + "_rev" : "916829745", "name" : "Bob" }, { "_id" : "persons/charlie", "_key" : "charlie", - "_rev" : "917154222", + "_rev" : "917091889", "name" : "Charlie" } ] @@ -428,16 +428,16 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/917809582", - "_key" : "917809582", - "_rev" : "917809582", + "_id" : "knows/917747249", + "_key" : "917747249", + "_rev" : "917747249", "_from" : "persons/alice", "_to" : "persons/bob" }, { - "_id" : "knows/918202798", - "_key" : "918202798", - "_rev" : "918202798", + "_id" : "knows/918140465", + "_key" : "918140465", + "_rev" : "918140465", "_from" : "persons/bob", "_to" : "persons/dave" } @@ -446,19 +446,19 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "916695470", + "_rev" : "916633137", "name" : "Alice" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "916892078", + "_rev" : "916829745", "name" : "Bob" }, { "_id" : "persons/dave", "_key" : "dave", - "_rev" : "917350830", + "_rev" : "917288497", "name" : "Dave" } ] @@ -466,9 +466,9 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/917809582", - "_key" : "917809582", - "_rev" : "917809582", + "_id" : "knows/917747249", + "_key" : "917747249", + "_rev" : "917747249", "_from" : "persons/alice", "_to" : "persons/bob" } @@ -477,13 +477,13 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "916695470", + "_rev" : "916633137", "name" : "Alice" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "916892078", + "_rev" : "916829745", "name" : "Bob" } ] @@ -494,7 +494,7 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "916695470", + "_rev" : "916633137", "name" : "Alice" } ] diff --git a/Documentation/Examples/RestTraversalVisitorCountAndList.generated b/Documentation/Examples/RestTraversalVisitorCountAndList.generated index f7f032bafc..9b8731e118 100644 --- a/Documentation/Examples/RestTraversalVisitorCountAndList.generated +++ b/Documentation/Examples/RestTraversalVisitorCountAndList.generated @@ -18,25 +18,25 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "922659246", + "_rev" : "922596913", "name" : "Alice" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "922855854", + "_rev" : "922793521", "name" : "Bob" }, { "_id" : "persons/charlie", "_key" : "charlie", - "_rev" : "923117998", + "_rev" : "923055665", "name" : "Charlie" }, { "_id" : "persons/dave", "_key" : "dave", - "_rev" : "923314606", + "_rev" : "923252273", "name" : "Dave" } ] diff --git a/Documentation/Examples/RestTraversalVisitorExpander.generated b/Documentation/Examples/RestTraversalVisitorExpander.generated index 7ed376a279..05d2a41670 100644 --- a/Documentation/Examples/RestTraversalVisitorExpander.generated +++ b/Documentation/Examples/RestTraversalVisitorExpander.generated @@ -16,19 +16,19 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "926919086", + "_rev" : "926856753", "name" : "Alice" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "927771054", + "_rev" : "927708721", "name" : "Eve" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "927115694", + "_rev" : "927053361", "name" : "Bob" } ], @@ -39,7 +39,7 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "926919086", + "_rev" : "926856753", "name" : "Alice" } ] @@ -47,9 +47,9 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/928623022", - "_key" : "928623022", - "_rev" : "928623022", + "_id" : "knows/928560689", + "_key" : "928560689", + "_rev" : "928560689", "_from" : "persons/eve", "_to" : "persons/alice" } @@ -58,13 +58,13 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "926919086", + "_rev" : "926856753", "name" : "Alice" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "927771054", + "_rev" : "927708721", "name" : "Eve" } ] @@ -72,16 +72,16 @@ content-type: application/json; charset=utf-8 { "edges" : [ { - "_id" : "knows/928623022", - "_key" : "928623022", - "_rev" : "928623022", + "_id" : "knows/928560689", + "_key" : "928560689", + "_rev" : "928560689", "_from" : "persons/eve", "_to" : "persons/alice" }, { - "_id" : "knows/928819630", - "_key" : "928819630", - "_rev" : "928819630", + "_id" : "knows/928757297", + "_key" : "928757297", + "_rev" : "928757297", "_from" : "persons/eve", "_to" : "persons/bob" } @@ -90,19 +90,19 @@ content-type: application/json; charset=utf-8 { "_id" : "persons/alice", "_key" : "alice", - "_rev" : "926919086", + "_rev" : "926856753", "name" : "Alice" }, { "_id" : "persons/eve", "_key" : "eve", - "_rev" : "927771054", + "_rev" : "927708721", "name" : "Eve" }, { "_id" : "persons/bob", "_key" : "bob", - "_rev" : "927115694", + "_rev" : "927053361", "name" : "Bob" } ] diff --git a/Documentation/Examples/RestVersion.generated b/Documentation/Examples/RestVersion.generated index 540564fbf3..2af52cee2f 100644 --- a/Documentation/Examples/RestVersion.generated +++ b/Documentation/Examples/RestVersion.generated @@ -5,5 +5,5 @@ content-type: application/json; charset=utf-8 { "server" : "arango", - "version" : "2.8.4" + "version" : "2.8.5" } diff --git a/Documentation/Examples/RestVersionDetails.generated b/Documentation/Examples/RestVersionDetails.generated index a7a324f51e..f080c9b290 100644 --- a/Documentation/Examples/RestVersionDetails.generated +++ b/Documentation/Examples/RestVersionDetails.generated @@ -5,10 +5,10 @@ content-type: application/json; charset=utf-8 { "server" : "arango", - "version" : "2.8.4", + "version" : "2.8.5", "details" : { "architecture" : "64bit", - "build-date" : "2016-03-01 20:56:35", + "build-date" : "2016-03-10 20:29:36", "configure" : "'./configure' '--enable-maintainer-mode' 'CPPFLAGS=-I/usr/local/include -I/usr/local/opt/openssl/include' 'LDFLAGS=-L/usr/local/opt/openssl/lib -L/usr/local/Cellar/boost/1.58.0/lib'", "env" : "CPPFLAGS='-I/usr/local/include -I/usr/local/opt/openssl/include' LDFLAGS='-L/usr/local/opt/openssl/lib -L/usr/local/Cellar/boost/1.58.0/lib'", "fd-client-event-handler" : "poll", @@ -17,8 +17,8 @@ content-type: application/json; charset=utf-8 "libev-version" : "4.11", "maintainer-mode" : "true", "openssl-version" : "OpenSSL 1.0.2f 28 Jan 2016", - "repository-version" : "heads/2.8-0-g8cf8e2618adc33ff34fc04b2e5fb99afb84b9708-dirty", - "server-version" : "2.8.4", + "repository-version" : "heads/2.8-0-g0cdc3aa1f772ec54f03096f5367e92b51e4e2997-dirty", + "server-version" : "2.8.5", "sizeof int" : "4", "sizeof void*" : "8", "tcmalloc" : "false", diff --git a/Documentation/Examples/USER_01_authFetch.generated b/Documentation/Examples/USER_01_authFetch.generated index 764ffeaad3..8a09c90f9a 100644 --- a/Documentation/Examples/USER_01_authFetch.generated +++ b/Documentation/Examples/USER_01_authFetch.generated @@ -9,12 +9,12 @@ arangosh> db._users.toArray() "changePassword" : false, "simple" : { "method" : "sha256", - "hash" : "eccbb286092825676b3d1b6765d1c8a246af6746e450a0aa3fe96c0444e62151", - "salt" : "nfVw5k4mCSaY0nRG" + "hash" : "a22b702eb9a9eefaac9dcf24d1375bcb4e304060f04f240abaa6a7ba705f7ef3", + "salt" : "2Oe82zra0GYAC7IB" } }, - "_id" : "_users/1747374", - "_rev" : "1747374", - "_key" : "1747374" + "_id" : "_users/1750577", + "_rev" : "1750577", + "_key" : "1750577" } ] diff --git a/Documentation/Examples/accessViaGeoIndex.generated b/Documentation/Examples/accessViaGeoIndex.generated index 667d81800b..7270339162 100644 --- a/Documentation/Examples/accessViaGeoIndex.generated +++ b/Documentation/Examples/accessViaGeoIndex.generated @@ -8,7 +8,7 @@ arangosh> for (i = -"geo", fields: [ "home" ] }); { - "id" : "example/1076406702", + "id" : "example/1075885617", "type" : "geo1", "fields" : [ "home" @@ -25,5 +25,5 @@ arangosh> items = db.example.getIndexes().map(1]); [ "example/0", - "example/1076406702" + "example/1075885617" ] diff --git a/Documentation/Examples/col_dropIndex.generated b/Documentation/Examples/col_dropIndex.generated index d7997a6609..da89f7c949 100644 --- a/Documentation/Examples/col_dropIndex.generated +++ b/Documentation/Examples/col_dropIndex.generated @@ -1,6 +1,6 @@ arangosh> db.example.ensureSkiplist("a", "b"); { - "id" : "example/1077062062", + "id" : "example/1076540977", "type" : "skiplist", "fields" : [ "a", @@ -25,7 +25,7 @@ arangosh> indexInfo; "sparse" : false }, { - "id" : "example/1077062062", + "id" : "example/1076540977", "type" : "skiplist", "fields" : [ "a", diff --git a/Documentation/Examples/collectionDatabaseCollectionName.generated b/Documentation/Examples/collectionDatabaseCollectionName.generated index ba6cbdf042..cf03f2077a 100644 --- a/Documentation/Examples/collectionDatabaseCollectionName.generated +++ b/Documentation/Examples/collectionDatabaseCollectionName.generated @@ -1,2 +1,2 @@ arangosh> db.example; -[ArangoCollection 1077848494, "example" (type document, status loaded)] +[ArangoCollection 1077327409, "example" (type document, status loaded)] diff --git a/Documentation/Examples/collectionDatabaseCreate.generated b/Documentation/Examples/collectionDatabaseCreate.generated index 73f6937af6..9dc7f3920e 100644 --- a/Documentation/Examples/collectionDatabaseCreate.generated +++ b/Documentation/Examples/collectionDatabaseCreate.generated @@ -1,5 +1,5 @@ arangosh> c = db._create("users"); -[ArangoCollection 1078045102, "users" (type document, status loaded)] +[ArangoCollection 1077524017, "users" (type document, status loaded)] arangosh> c.properties(); { "doCompact" : true, diff --git a/Documentation/Examples/collectionDatabaseCreateKey.generated b/Documentation/Examples/collectionDatabaseCreateKey.generated index f20625641f..3401aa374d 100644 --- a/Documentation/Examples/collectionDatabaseCreateKey.generated +++ b/Documentation/Examples/collectionDatabaseCreateKey.generated @@ -1,20 +1,20 @@ arangosh> db._create("users", { keyOptions: { type: "autoincrement", offset: 10, increment: 5 } }); -[ArangoCollection 1078241710, "users" (type document, status loaded)] +[ArangoCollection 1077720625, "users" (type document, status loaded)] arangosh> db.users.save({ name: "user 1" }); { "_id" : "users/10", - "_rev" : "1078569390", + "_rev" : "1078048305", "_key" : "10" } arangosh> db.users.save({ name: "user 2" }); { "_id" : "users/15", - "_rev" : "1078765998", + "_rev" : "1078244913", "_key" : "15" } arangosh> db.users.save({ name: "user 3" }); { "_id" : "users/20", - "_rev" : "1078962606", + "_rev" : "1078441521", "_key" : "20" } diff --git a/Documentation/Examples/collectionDatabaseCreateProperties.generated b/Documentation/Examples/collectionDatabaseCreateProperties.generated index 04e5bbe4e4..cef6f8546f 100644 --- a/Documentation/Examples/collectionDatabaseCreateProperties.generated +++ b/Documentation/Examples/collectionDatabaseCreateProperties.generated @@ -1,5 +1,5 @@ arangosh> c = db._create("users", { waitForSync : true, journalSize : 1024 * 1204 }); -[ArangoCollection 1079159214, "users" (type document, status loaded)] +[ArangoCollection 1078638129, "users" (type document, status loaded)] arangosh> c.properties(); { "doCompact" : true, diff --git a/Documentation/Examples/collectionDatabaseCreateSpecialKey.generated b/Documentation/Examples/collectionDatabaseCreateSpecialKey.generated index 78766ed285..07d6da68e5 100644 --- a/Documentation/Examples/collectionDatabaseCreateSpecialKey.generated +++ b/Documentation/Examples/collectionDatabaseCreateSpecialKey.generated @@ -1,16 +1,16 @@ arangosh> db._create("users", { keyOptions: { allowUserKeys: false } }); -[ArangoCollection 1079355822, "users" (type document, status loaded)] +[ArangoCollection 1078834737, "users" (type document, status loaded)] arangosh> db.users.save({ name: "user 1" }); { - "_id" : "users/1079683502", - "_rev" : "1079683502", - "_key" : "1079683502" + "_id" : "users/1079162417", + "_rev" : "1079162417", + "_key" : "1079162417" } arangosh> db.users.save({ name: "user 2", _key: "myuser" }); [ArangoError 1222: collection does not allow using user-defined keys] arangosh> db.users.save({ name: "user 3" }); { - "_id" : "users/1080011182", - "_rev" : "1080011182", - "_key" : "1080011182" + "_id" : "users/1079490097", + "_rev" : "1079490097", + "_key" : "1079490097" } diff --git a/Documentation/Examples/collectionDatabaseDrop.generated b/Documentation/Examples/collectionDatabaseDrop.generated index b622a2fd8b..8a91e458cf 100644 --- a/Documentation/Examples/collectionDatabaseDrop.generated +++ b/Documentation/Examples/collectionDatabaseDrop.generated @@ -1,5 +1,5 @@ arangosh> col = db.example; -[ArangoCollection 1080207790, "example" (type document, status loaded)] +[ArangoCollection 1079686705, "example" (type document, status loaded)] arangosh> db._drop(col); arangosh> col; -[ArangoCollection 1080207790, "example" (type document, status loaded)] +[ArangoCollection 1079686705, "example" (type document, status loaded)] diff --git a/Documentation/Examples/collectionDatabaseDropName.generated b/Documentation/Examples/collectionDatabaseDropName.generated index 055b56a6b5..bb11b2e851 100644 --- a/Documentation/Examples/collectionDatabaseDropName.generated +++ b/Documentation/Examples/collectionDatabaseDropName.generated @@ -1,5 +1,5 @@ arangosh> col = db.example; -[ArangoCollection 1080404398, "example" (type document, status loaded)] +[ArangoCollection 1079883313, "example" (type document, status loaded)] arangosh> db._drop("example"); arangosh> col; -[ArangoCollection 1080404398, "example" (type document, status deleted)] +[ArangoCollection 1079883313, "example" (type document, status deleted)] diff --git a/Documentation/Examples/collectionDatabaseName.generated b/Documentation/Examples/collectionDatabaseName.generated index 7c3c1dd641..8ca8631272 100644 --- a/Documentation/Examples/collectionDatabaseName.generated +++ b/Documentation/Examples/collectionDatabaseName.generated @@ -1,2 +1,2 @@ arangosh> db._collection("demo"); -[ArangoCollection 20425134, "demo" (type document, status loaded)] +[ArangoCollection 17217073, "demo" (type document, status loaded)] diff --git a/Documentation/Examples/collectionDatabaseTruncate.generated b/Documentation/Examples/collectionDatabaseTruncate.generated index aaa051b63d..d0d64929c6 100644 --- a/Documentation/Examples/collectionDatabaseTruncate.generated +++ b/Documentation/Examples/collectionDatabaseTruncate.generated @@ -1,10 +1,10 @@ arangosh> col = db.example; -[ArangoCollection 1080601006, "example" (type document, status loaded)] +[ArangoCollection 1080079921, "example" (type document, status loaded)] arangosh> col.save({ "Hello" : "World" }); { - "_id" : "example/1080928686", - "_rev" : "1080928686", - "_key" : "1080928686" + "_id" : "example/1080407601", + "_rev" : "1080407601", + "_key" : "1080407601" } arangosh> col.count(); 1 diff --git a/Documentation/Examples/collectionDatabaseTruncateName.generated b/Documentation/Examples/collectionDatabaseTruncateName.generated index 8e37c69c73..c8e47035e2 100644 --- a/Documentation/Examples/collectionDatabaseTruncateName.generated +++ b/Documentation/Examples/collectionDatabaseTruncateName.generated @@ -1,10 +1,10 @@ arangosh> col = db.example; -[ArangoCollection 1081584046, "example" (type document, status loaded)] +[ArangoCollection 1081062961, "example" (type document, status loaded)] arangosh> col.save({ "Hello" : "World" }); { - "_id" : "example/1081911726", - "_rev" : "1081911726", - "_key" : "1081911726" + "_id" : "example/1081390641", + "_rev" : "1081390641", + "_key" : "1081390641" } arangosh> col.count(); 1 diff --git a/Documentation/Examples/collectionDrop.generated b/Documentation/Examples/collectionDrop.generated index d1c14071bf..5c313dea1f 100644 --- a/Documentation/Examples/collectionDrop.generated +++ b/Documentation/Examples/collectionDrop.generated @@ -1,5 +1,5 @@ arangosh> col = db.example; -[ArangoCollection 1082567086, "example" (type document, status loaded)] +[ArangoCollection 1082046001, "example" (type document, status loaded)] arangosh> col.drop(); arangosh> col; -[ArangoCollection 1082567086, "example" (type document, status deleted)] +[ArangoCollection 1082046001, "example" (type document, status deleted)] diff --git a/Documentation/Examples/collectionEnsureCapConstraint.generated b/Documentation/Examples/collectionEnsureCapConstraint.generated index 5270e2d1f6..8a73784842 100644 --- a/Documentation/Examples/collectionEnsureCapConstraint.generated +++ b/Documentation/Examples/collectionEnsureCapConstraint.generated @@ -1,6 +1,6 @@ arangosh> db.examples.ensureIndex({ type: "cap", size: 10 }); { - "id" : "examples/1082960302", + "id" : "examples/1082439217", "type" : "cap", "size" : 10, "byteSize" : 0, diff --git a/Documentation/Examples/collectionEnsureIndex.generated b/Documentation/Examples/collectionEnsureIndex.generated index 7bdc626eb6..a54e3c7b47 100644 --- a/Documentation/Examples/collectionEnsureIndex.generated +++ b/Documentation/Examples/collectionEnsureIndex.generated @@ -1,6 +1,6 @@ arangosh> db.test.ensureIndex({ type: "hash", fields: [ "a" ], sparse: true }); { - "id" : "test/1088924078", + "id" : "test/1088402993", "type" : "hash", "fields" : [ "a" @@ -13,7 +13,7 @@ arangosh> db.test.ensureIndex({ type: "hash" } arangosh> db.test.ensureIndex({ type: "hash", fields: [ "a", "b" ], unique: true }); { - "id" : "test/1089186222", + "id" : "test/1088665137", "type" : "hash", "fields" : [ "a", diff --git a/Documentation/Examples/collectionFigures.generated b/Documentation/Examples/collectionFigures.generated index 716a00f4e9..5432341cd0 100644 --- a/Documentation/Examples/collectionFigures.generated +++ b/Documentation/Examples/collectionFigures.generated @@ -37,12 +37,12 @@ arangosh> db.demo.figures() "count" : 1, "size" : 16120 }, - "lastTick" : "21211566", + "lastTick" : "18003505", "uncollectedLogfileEntries" : 0, "documentReferences" : 0, "waitingFor" : "-", "compactionStatus" : { "message" : "skipped compaction because collection has no datafiles", - "time" : "2016-03-01T20:04:03Z" + "time" : "2016-03-10T19:38:26Z" } } diff --git a/Documentation/Examples/collectionFirstExample.generated b/Documentation/Examples/collectionFirstExample.generated index af65706239..ad314f0459 100644 --- a/Documentation/Examples/collectionFirstExample.generated +++ b/Documentation/Examples/collectionFirstExample.generated @@ -1,7 +1,7 @@ arangosh> db.users.firstExample("name", "Angela"); { - "_id" : "users/1090496942", - "_key" : "1090496942", - "_rev" : "1090496942", + "_id" : "users/1090172465", + "_key" : "1090172465", + "_rev" : "1090172465", "name" : "Angela" } diff --git a/Documentation/Examples/collectionFulltext.generated b/Documentation/Examples/collectionFulltext.generated index f696a6978c..94d2315517 100644 --- a/Documentation/Examples/collectionFulltext.generated +++ b/Documentation/Examples/collectionFulltext.generated @@ -1,6 +1,6 @@ arangosh> db.emails.ensureFulltextIndex("content"); { - "id" : "emails/1091217838", + "id" : "emails/1090893361", "type" : "fulltext", "fields" : [ "content" @@ -13,34 +13,34 @@ arangosh> db.emails.ensureFulltextIndex("content""Hello Alice, how are you doing? Regards, Bob" }); { - "_id" : "emails/1091545518", - "_rev" : "1091545518", - "_key" : "1091545518" + "_id" : "emails/1091221041", + "_rev" : "1091221041", + "_key" : "1091221041" } arangosh> db.emails.save({ content: "Hello Charlie, do Alice and Bob know about it?" }); { - "_id" : "emails/1091742126", - "_rev" : "1091742126", - "_key" : "1091742126" + "_id" : "emails/1091417649", + "_rev" : "1091417649", + "_key" : "1091417649" } arangosh> db.emails.save({ content: "I think they don't know. Regards, Eve" }); { - "_id" : "emails/1091938734", - "_rev" : "1091938734", - "_key" : "1091938734" + "_id" : "emails/1091614257", + "_rev" : "1091614257", + "_key" : "1091614257" } arangosh> db.emails.fulltext("content", "charlie,|eve").toArray(); [ { - "_id" : "emails/1091742126", - "_key" : "1091742126", - "_rev" : "1091742126", + "_id" : "emails/1091417649", + "_key" : "1091417649", + "_rev" : "1091417649", "content" : "Hello Charlie, do Alice and Bob know about it?" }, { - "_id" : "emails/1091938734", - "_key" : "1091938734", - "_rev" : "1091938734", + "_id" : "emails/1091614257", + "_key" : "1091614257", + "_rev" : "1091614257", "content" : "I think they don't know. Regards, Eve" } ] diff --git a/Documentation/Examples/collectionGetIndexes.generated b/Documentation/Examples/collectionGetIndexes.generated index 409ff7b08c..68b7d357f6 100644 --- a/Documentation/Examples/collectionGetIndexes.generated +++ b/Documentation/Examples/collectionGetIndexes.generated @@ -11,7 +11,7 @@ arangosh> db.test.getIndexes(); "sparse" : false }, { - "id" : "test/1092594094", + "id" : "test/1092269617", "type" : "skiplist", "fields" : [ "skiplistAttribute" @@ -20,7 +20,7 @@ arangosh> db.test.getIndexes(); "sparse" : false }, { - "id" : "test/1092856238", + "id" : "test/1092531761", "type" : "skiplist", "fields" : [ "skiplistUniqueAttribute" @@ -29,7 +29,7 @@ arangosh> db.test.getIndexes(); "sparse" : false }, { - "id" : "test/1093249454", + "id" : "test/1092924977", "type" : "hash", "fields" : [ "hashListAttribute", diff --git a/Documentation/Examples/collectionLoad.generated b/Documentation/Examples/collectionLoad.generated index ed5c5e6bbf..692434db3d 100644 --- a/Documentation/Examples/collectionLoad.generated +++ b/Documentation/Examples/collectionLoad.generated @@ -1,5 +1,5 @@ arangosh> col = db.example; -[ArangoCollection 1093511598, "example" (type document, status loaded)] +[ArangoCollection 1093187121, "example" (type document, status loaded)] arangosh> col.load(); arangosh> col; -[ArangoCollection 1093511598, "example" (type document, status loaded)] +[ArangoCollection 1093187121, "example" (type document, status loaded)] diff --git a/Documentation/Examples/collectionLookupByKeys.generated b/Documentation/Examples/collectionLookupByKeys.generated index 6debc4c2c0..93ad7f9047 100644 --- a/Documentation/Examples/collectionLookupByKeys.generated +++ b/Documentation/Examples/collectionLookupByKeys.generated @@ -10,61 +10,61 @@ arangosh> db.example.documents(keys); { "value" : 0, "_id" : "example/test0", - "_rev" : "1094101422", + "_rev" : "1093776945", "_key" : "test0" }, { "value" : 1, "_id" : "example/test1", - "_rev" : "1094298030", + "_rev" : "1093973553", "_key" : "test1" }, { "value" : 2, "_id" : "example/test2", - "_rev" : "1094494638", + "_rev" : "1094170161", "_key" : "test2" }, { "value" : 3, "_id" : "example/test3", - "_rev" : "1094691246", + "_rev" : "1094366769", "_key" : "test3" }, { "value" : 4, "_id" : "example/test4", - "_rev" : "1094887854", + "_rev" : "1094563377", "_key" : "test4" }, { "value" : 5, "_id" : "example/test5", - "_rev" : "1095084462", + "_rev" : "1094759985", "_key" : "test5" }, { "value" : 6, "_id" : "example/test6", - "_rev" : "1095281070", + "_rev" : "1094956593", "_key" : "test6" }, { "value" : 7, "_id" : "example/test7", - "_rev" : "1095477678", + "_rev" : "1095153201", "_key" : "test7" }, { "value" : 8, "_id" : "example/test8", - "_rev" : "1095674286", + "_rev" : "1095349809", "_key" : "test8" }, { "value" : 9, "_id" : "example/test9", - "_rev" : "1095870894", + "_rev" : "1095546417", "_key" : "test9" } ] diff --git a/Documentation/Examples/collectionRename.generated b/Documentation/Examples/collectionRename.generated index ab7bf7e3f2..80cbf58033 100644 --- a/Documentation/Examples/collectionRename.generated +++ b/Documentation/Examples/collectionRename.generated @@ -1,5 +1,5 @@ arangosh> c = db.example; -[ArangoCollection 1100392878, "example" (type document, status loaded)] +[ArangoCollection 1100068401, "example" (type document, status loaded)] arangosh> c.rename("better-example"); arangosh> c; -[ArangoCollection 1100392878, "better-example" (type document, status loaded)] +[ArangoCollection 1100068401, "better-example" (type document, status loaded)] diff --git a/Documentation/Examples/collectionTruncate.generated b/Documentation/Examples/collectionTruncate.generated index e93cafb477..db847013da 100644 --- a/Documentation/Examples/collectionTruncate.generated +++ b/Documentation/Examples/collectionTruncate.generated @@ -1,10 +1,10 @@ arangosh> col = db.example; -[ArangoCollection 1100720558, "example" (type document, status loaded)] +[ArangoCollection 1100396081, "example" (type document, status loaded)] arangosh> col.save({ "Hello" : "World" }); { - "_id" : "example/1101048238", - "_rev" : "1101048238", - "_key" : "1101048238" + "_id" : "example/1100723761", + "_rev" : "1100723761", + "_key" : "1100723761" } arangosh> col.count(); 1 diff --git a/Documentation/Examples/collectionsDatabaseName.generated b/Documentation/Examples/collectionsDatabaseName.generated index 6adb1f5ae0..d699554701 100644 --- a/Documentation/Examples/collectionsDatabaseName.generated +++ b/Documentation/Examples/collectionsDatabaseName.generated @@ -1,21 +1,21 @@ arangosh> db._collections(); [ - [ArangoCollection 2337198, "_routing" (type document, status loaded)], - [ArangoCollection 4106670, "_statisticsRaw" (type document, status loaded)], - [ArangoCollection 5417390, "_queues" (type document, status loaded)], - [ArangoCollection 13412782, "_sessions" (type document, status loaded)], - [ArangoCollection 4499886, "_statistics" (type document, status loaded)], - [ArangoCollection 4893102, "_statistics15" (type document, status loaded)], - [ArangoCollection 2206126, "_modules" (type document, status loaded)], - [ArangoCollection 3975598, "_aqlfunctions" (type document, status loaded)], - [ArangoCollection 20425134, "demo" (type document, status loaded)], - [ArangoCollection 5286318, "_configuration" (type document, status loaded)], - [ArangoCollection 21277102, "animals" (type document, status loaded)], - [ArangoCollection 14133678, "_system_users_users" (type document, status loaded)], - [ArangoCollection 5679534, "_apps" (type document, status loaded)], - [ArangoCollection 2075054, "_graphs" (type document, status loaded)], - [ArangoCollection 2468270, "_cluster_kickstarter_plans" (type document, status loaded)], - [ArangoCollection 240046, "_users" (type document, status loaded)], - [ArangoCollection 5548462, "_jobs" (type document, status loaded)], - [ArangoCollection 1101703598, "example" (type document, status loaded)] + [ArangoCollection 4896305, "_statistics15" (type document, status loaded)], + [ArangoCollection 2209329, "_modules" (type document, status loaded)], + [ArangoCollection 3978801, "_aqlfunctions" (type document, status loaded)], + [ArangoCollection 5289521, "_configuration" (type document, status loaded)], + [ArangoCollection 14136881, "_system_users_users" (type document, status loaded)], + [ArangoCollection 5682737, "_apps" (type document, status loaded)], + [ArangoCollection 17217073, "demo" (type document, status loaded)], + [ArangoCollection 2078257, "_graphs" (type document, status loaded)], + [ArangoCollection 18069041, "animals" (type document, status loaded)], + [ArangoCollection 1101379121, "example" (type document, status loaded)], + [ArangoCollection 2471473, "_cluster_kickstarter_plans" (type document, status loaded)], + [ArangoCollection 243249, "_users" (type document, status loaded)], + [ArangoCollection 5551665, "_jobs" (type document, status loaded)], + [ArangoCollection 2340401, "_routing" (type document, status loaded)], + [ArangoCollection 4109873, "_statisticsRaw" (type document, status loaded)], + [ArangoCollection 5420593, "_queues" (type document, status loaded)], + [ArangoCollection 13415985, "_sessions" (type document, status loaded)], + [ArangoCollection 4503089, "_statistics" (type document, status loaded)] ] diff --git a/Documentation/Examples/cursorHasNext.generated b/Documentation/Examples/cursorHasNext.generated index 65d7493756..eaff16b8c0 100644 --- a/Documentation/Examples/cursorHasNext.generated +++ b/Documentation/Examples/cursorHasNext.generated @@ -2,31 +2,31 @@ arangosh> var a = db.five.all(); arangosh> while (a.hasNext()) print(a.next()); { "name" : "three", - "_id" : "five/1105373614", - "_rev" : "1105373614", - "_key" : "1105373614" -} -{ - "name" : "four", - "_id" : "five/1105570222", - "_rev" : "1105570222", - "_key" : "1105570222" -} -{ - "name" : "five", - "_id" : "five/1105766830", - "_rev" : "1105766830", - "_key" : "1105766830" + "_id" : "five/1105049137", + "_rev" : "1105049137", + "_key" : "1105049137" } { "name" : "two", - "_id" : "five/1105177006", - "_rev" : "1105177006", - "_key" : "1105177006" + "_id" : "five/1104852529", + "_rev" : "1104852529", + "_key" : "1104852529" } { "name" : "one", - "_id" : "five/1104980398", - "_rev" : "1104980398", - "_key" : "1104980398" + "_id" : "five/1104655921", + "_rev" : "1104655921", + "_key" : "1104655921" +} +{ + "name" : "four", + "_id" : "five/1105245745", + "_rev" : "1105245745", + "_key" : "1105245745" +} +{ + "name" : "five", + "_id" : "five/1105442353", + "_rev" : "1105442353", + "_key" : "1105442353" } diff --git a/Documentation/Examples/cursorNext.generated b/Documentation/Examples/cursorNext.generated index 02b6f65b5b..156032e881 100644 --- a/Documentation/Examples/cursorNext.generated +++ b/Documentation/Examples/cursorNext.generated @@ -1,7 +1,7 @@ arangosh> db.five.all().next(); { - "name" : "one", - "_id" : "five/1106356654", - "_rev" : "1106356654", - "_key" : "1106356654" + "name" : "three", + "_id" : "five/1106425393", + "_rev" : "1106425393", + "_key" : "1106425393" } diff --git a/Documentation/Examples/dbId.generated b/Documentation/Examples/dbId.generated index 38a2bd82a9..1b84255dfa 100644 --- a/Documentation/Examples/dbId.generated +++ b/Documentation/Examples/dbId.generated @@ -1,2 +1,2 @@ arangosh> require("internal").db._id(); -108974 +112177 diff --git a/Documentation/Examples/dbPath.generated b/Documentation/Examples/dbPath.generated index bfd610cf3f..91ea02317a 100644 --- a/Documentation/Examples/dbPath.generated +++ b/Documentation/Examples/dbPath.generated @@ -1,2 +1,2 @@ arangosh> require("internal").db._path(); -/tmp/vocdir.40199/databases/database-108974 +/tmp/vocdir.10518/databases/database-112177 diff --git a/Documentation/Examples/dbVersion.generated b/Documentation/Examples/dbVersion.generated index 96b5cd4631..da54947473 100644 --- a/Documentation/Examples/dbVersion.generated +++ b/Documentation/Examples/dbVersion.generated @@ -1,2 +1,2 @@ arangosh> require("internal").db._version(); -2.8.4 +2.8.5 diff --git a/Documentation/Examples/documentDocumentRemove.generated b/Documentation/Examples/documentDocumentRemove.generated index 4218b5d960..08944aa377 100644 --- a/Documentation/Examples/documentDocumentRemove.generated +++ b/Documentation/Examples/documentDocumentRemove.generated @@ -1,15 +1,15 @@ arangosh> a1 = db.example.insert({ a : 1 }); { - "_id" : "example/1107732910", - "_rev" : "1107732910", - "_key" : "1107732910" + "_id" : "example/1107408433", + "_rev" : "1107408433", + "_key" : "1107408433" } arangosh> db.example.document(a1); { "a" : 1, - "_id" : "example/1107732910", - "_rev" : "1107732910", - "_key" : "1107732910" + "_id" : "example/1107408433", + "_rev" : "1107408433", + "_key" : "1107408433" } arangosh> db.example.remove(a1); true diff --git a/Documentation/Examples/documentDocumentRemoveConflict.generated b/Documentation/Examples/documentDocumentRemoveConflict.generated index 8942f586a5..b4319808c4 100644 --- a/Documentation/Examples/documentDocumentRemoveConflict.generated +++ b/Documentation/Examples/documentDocumentRemoveConflict.generated @@ -1,14 +1,14 @@ arangosh> a1 = db.example.insert({ a : 1 }); { - "_id" : "example/1108584878", - "_rev" : "1108584878", - "_key" : "1108584878" + "_id" : "example/1108260401", + "_rev" : "1108260401", + "_key" : "1108260401" } arangosh> a2 = db.example.replace(a1, { a : 2 }); { - "_id" : "example/1108584878", - "_rev" : "1108781486", - "_key" : "1108584878" + "_id" : "example/1108260401", + "_rev" : "1108457009", + "_key" : "1108260401" } arangosh> db.example.remove(a1); [ArangoError 1200: precondition failed] diff --git a/Documentation/Examples/documentDocumentUpdate.generated b/Documentation/Examples/documentDocumentUpdate.generated index dc8ba1d033..410eca8a32 100644 --- a/Documentation/Examples/documentDocumentUpdate.generated +++ b/Documentation/Examples/documentDocumentUpdate.generated @@ -1,14 +1,14 @@ arangosh> a1 = db.example.insert({ a : 1 }); { - "_id" : "example/1109698990", - "_rev" : "1109698990", - "_key" : "1109698990" + "_id" : "example/1109374513", + "_rev" : "1109374513", + "_key" : "1109374513" } arangosh> a2 = db._update(a1, { b : 2 }); { - "_id" : "example/1109698990", - "_rev" : "1110026670", - "_key" : "1109698990" + "_id" : "example/1109374513", + "_rev" : "1109702193", + "_key" : "1109374513" } arangosh> a3 = db._update(a1, { c : 3 }); [ArangoError 1200: precondition failed] diff --git a/Documentation/Examples/documentsCollectionFirst.generated b/Documentation/Examples/documentsCollectionFirst.generated index 021a4a6d32..a3af03a10d 100644 --- a/Documentation/Examples/documentsCollectionFirst.generated +++ b/Documentation/Examples/documentsCollectionFirst.generated @@ -1,9 +1,9 @@ arangosh> db.example.first(1); [ { - "_id" : "example/1110813102", - "_key" : "1110813102", - "_rev" : "1110813102", + "_id" : "example/1110488625", + "_key" : "1110488625", + "_rev" : "1110488625", "Hello" : "world" } ] diff --git a/Documentation/Examples/documentsCollectionFirstNull.generated b/Documentation/Examples/documentsCollectionFirstNull.generated index 9da2b783dc..7a3a2c151d 100644 --- a/Documentation/Examples/documentsCollectionFirstNull.generated +++ b/Documentation/Examples/documentsCollectionFirstNull.generated @@ -1,7 +1,7 @@ arangosh> db.example.first(); { - "_id" : "example/1111730606", - "_key" : "1111730606", - "_rev" : "1111730606", + "_id" : "example/1111406129", + "_key" : "1111406129", + "_rev" : "1111406129", "Hello" : "world" } diff --git a/Documentation/Examples/documentsCollectionInsert.generated b/Documentation/Examples/documentsCollectionInsert.generated index 298dc4026e..fa2fad1956 100644 --- a/Documentation/Examples/documentsCollectionInsert.generated +++ b/Documentation/Examples/documentsCollectionInsert.generated @@ -1,12 +1,12 @@ arangosh> db.example.insert({ Hello : "World" }); { - "_id" : "example/1112320430", - "_rev" : "1112320430", - "_key" : "1112320430" + "_id" : "example/1111995953", + "_rev" : "1111995953", + "_key" : "1111995953" } arangosh> db.example.insert({ Hello : "World" }, true); { - "_id" : "example/1112517038", - "_rev" : "1112517038", - "_key" : "1112517038" + "_id" : "example/1112192561", + "_rev" : "1112192561", + "_key" : "1112192561" } diff --git a/Documentation/Examples/documentsCollectionLast.generated b/Documentation/Examples/documentsCollectionLast.generated index c0a09957fe..0b6086effd 100644 --- a/Documentation/Examples/documentsCollectionLast.generated +++ b/Documentation/Examples/documentsCollectionLast.generated @@ -1,15 +1,15 @@ arangosh> db.example.last(2); [ { - "_id" : "example/1113369006", - "_key" : "1113369006", - "_rev" : "1113369006", + "_id" : "example/1113044529", + "_key" : "1113044529", + "_rev" : "1113044529", "Foo" : "bar" }, { - "_id" : "example/1113041326", - "_key" : "1113041326", - "_rev" : "1113041326", + "_id" : "example/1112716849", + "_key" : "1112716849", + "_rev" : "1112716849", "Hello" : "world" } ] diff --git a/Documentation/Examples/documentsCollectionLastNull.generated b/Documentation/Examples/documentsCollectionLastNull.generated index c2f917df8e..66d7ba1f19 100644 --- a/Documentation/Examples/documentsCollectionLastNull.generated +++ b/Documentation/Examples/documentsCollectionLastNull.generated @@ -1,9 +1,9 @@ arangosh> db.example.last(1); [ { - "_id" : "example/1113958830", - "_key" : "1113958830", - "_rev" : "1113958830", + "_id" : "example/1113634353", + "_key" : "1113634353", + "_rev" : "1113634353", "Hello" : "world" } ] diff --git a/Documentation/Examples/documentsCollectionName.generated b/Documentation/Examples/documentsCollectionName.generated index 6cc2016522..966bf70631 100644 --- a/Documentation/Examples/documentsCollectionName.generated +++ b/Documentation/Examples/documentsCollectionName.generated @@ -1,6 +1,6 @@ arangosh> db.example.document("example/2873916"); { "_id" : "example/2873916", - "_rev" : "1114483118", + "_rev" : "1114158641", "_key" : "2873916" } diff --git a/Documentation/Examples/documentsCollectionRemove.generated b/Documentation/Examples/documentsCollectionRemove.generated index 64575b648d..615337cd78 100644 --- a/Documentation/Examples/documentsCollectionRemove.generated +++ b/Documentation/Examples/documentsCollectionRemove.generated @@ -1,8 +1,8 @@ arangosh> a1 = db.example.insert({ a : 1 }); { - "_id" : "example/1115793838", - "_rev" : "1115793838", - "_key" : "1115793838" + "_id" : "example/1115469361", + "_rev" : "1115469361", + "_key" : "1115469361" } arangosh> db._remove(a1); true diff --git a/Documentation/Examples/documentsCollectionRemoveConflict.generated b/Documentation/Examples/documentsCollectionRemoveConflict.generated index 65da4dabf5..bb4b1ed656 100644 --- a/Documentation/Examples/documentsCollectionRemoveConflict.generated +++ b/Documentation/Examples/documentsCollectionRemoveConflict.generated @@ -1,14 +1,14 @@ arangosh> a1 = db.example.insert({ a : 1 }); { - "_id" : "example/1116776878", - "_rev" : "1116776878", - "_key" : "1116776878" + "_id" : "example/1116452401", + "_rev" : "1116452401", + "_key" : "1116452401" } arangosh> a2 = db._replace(a1, { a : 2 }); { - "_id" : "example/1116776878", - "_rev" : "1116973486", - "_key" : "1116776878" + "_id" : "example/1116452401", + "_rev" : "1116649009", + "_key" : "1116452401" } arangosh> db._remove(a1); [ArangoError 1200: precondition failed] diff --git a/Documentation/Examples/documentsCollectionRemoveSignature.generated b/Documentation/Examples/documentsCollectionRemoveSignature.generated index 522662ed43..fc987e2a30 100644 --- a/Documentation/Examples/documentsCollectionRemoveSignature.generated +++ b/Documentation/Examples/documentsCollectionRemoveSignature.generated @@ -1,8 +1,8 @@ arangosh> db.example.insert({ a: 1 } ); { - "_id" : "example/1117890990", - "_rev" : "1117890990", - "_key" : "1117890990" + "_id" : "example/1117566513", + "_rev" : "1117566513", + "_key" : "1117566513" } arangosh> db.example.remove("example/11265325374", {overwrite: true, waitForSync: false}) false diff --git a/Documentation/Examples/documentsCollectionReplace.generated b/Documentation/Examples/documentsCollectionReplace.generated index 83aa7bf2af..1003e05a3f 100644 --- a/Documentation/Examples/documentsCollectionReplace.generated +++ b/Documentation/Examples/documentsCollectionReplace.generated @@ -1,14 +1,14 @@ arangosh> a1 = db.example.insert({ a : 1 }); { - "_id" : "example/1118546350", - "_rev" : "1118546350", - "_key" : "1118546350" + "_id" : "example/1118221873", + "_rev" : "1118221873", + "_key" : "1118221873" } arangosh> a2 = db.example.replace(a1, { a : 2 }); { - "_id" : "example/1118546350", - "_rev" : "1118742958", - "_key" : "1118546350" + "_id" : "example/1118221873", + "_rev" : "1118418481", + "_key" : "1118221873" } arangosh> a3 = db.example.replace(a1, { a : 3 }); [ArangoError 1200: precondition failed] diff --git a/Documentation/Examples/documentsCollectionReplaceHandle.generated b/Documentation/Examples/documentsCollectionReplaceHandle.generated index 0fc81e5b8c..489015d64a 100644 --- a/Documentation/Examples/documentsCollectionReplaceHandle.generated +++ b/Documentation/Examples/documentsCollectionReplaceHandle.generated @@ -1,12 +1,12 @@ arangosh> a1 = db.example.insert({ a : 1 }); { - "_id" : "example/1119660462", - "_rev" : "1119660462", - "_key" : "1119660462" + "_id" : "example/1119335985", + "_rev" : "1119335985", + "_key" : "1119335985" } arangosh> a2 = db.example.replace("example/3903044", { a : 2 }); { "_id" : "example/3903044", - "_rev" : "1119857070", + "_rev" : "1119532593", "_key" : "3903044" } diff --git a/Documentation/Examples/documentsCollectionUpdate.generated b/Documentation/Examples/documentsCollectionUpdate.generated index a20fbddf9a..b420528807 100644 --- a/Documentation/Examples/documentsCollectionUpdate.generated +++ b/Documentation/Examples/documentsCollectionUpdate.generated @@ -1,22 +1,22 @@ arangosh> a1 = db.example.insert({"a" : 1}); { - "_id" : "example/1120381358", - "_rev" : "1120381358", - "_key" : "1120381358" + "_id" : "example/1120056881", + "_rev" : "1120056881", + "_key" : "1120056881" } arangosh> a2 = db.example.update(a1, {"b" : 2, "c" : 3}); { - "_id" : "example/1120381358", - "_rev" : "1120774574", - "_key" : "1120381358" + "_id" : "example/1120056881", + "_rev" : "1120450097", + "_key" : "1120056881" } arangosh> a3 = db.example.update(a1, {"d" : 4}); [ArangoError 1200: precondition failed] arangosh> a4 = db.example.update(a2, {"e" : 5, "f" : 6 }); { - "_id" : "example/1120381358", - "_rev" : "1121429934", - "_key" : "1120381358" + "_id" : "example/1120056881", + "_rev" : "1121105457", + "_key" : "1120056881" } arangosh> db.example.document(a4); { @@ -25,15 +25,15 @@ arangosh> db.example.document(a4); "c" : 3, "e" : 5, "f" : 6, - "_id" : "example/1120381358", - "_rev" : "1121429934", - "_key" : "1120381358" + "_id" : "example/1120056881", + "_rev" : "1121105457", + "_key" : "1120056881" } arangosh> a5 = db.example.update(a4, {"a" : 1, c : 9, e : 42 }); { - "_id" : "example/1120381358", - "_rev" : "1121692078", - "_key" : "1120381358" + "_id" : "example/1120056881", + "_rev" : "1121367601", + "_key" : "1120056881" } arangosh> db.example.document(a5); { @@ -42,7 +42,7 @@ arangosh> db.example.document(a5); "c" : 9, "e" : 42, "f" : 6, - "_id" : "example/1120381358", - "_rev" : "1121692078", - "_key" : "1120381358" + "_id" : "example/1120056881", + "_rev" : "1121367601", + "_key" : "1120056881" } diff --git a/Documentation/Examples/documentsCollectionUpdateHandle.generated b/Documentation/Examples/documentsCollectionUpdateHandle.generated index 113f14f892..d92f582acd 100644 --- a/Documentation/Examples/documentsCollectionUpdateHandle.generated +++ b/Documentation/Examples/documentsCollectionUpdateHandle.generated @@ -1,12 +1,12 @@ arangosh> a1 = db.example.insert({"a" : 1}); { - "_id" : "example/1122544046", - "_rev" : "1122544046", - "_key" : "1122544046" + "_id" : "example/1122219569", + "_rev" : "1122219569", + "_key" : "1122219569" } arangosh> a2 = db.example.update("example/18612115", { "x" : 1, "y" : 2 }); { "_id" : "example/18612115", - "_rev" : "1122937262", + "_rev" : "1122612785", "_key" : "18612115" } diff --git a/Documentation/Examples/documentsCollectionUpdateHandleArray.generated b/Documentation/Examples/documentsCollectionUpdateHandleArray.generated index 3630ef7c1b..a4e7f8d022 100644 --- a/Documentation/Examples/documentsCollectionUpdateHandleArray.generated +++ b/Documentation/Examples/documentsCollectionUpdateHandleArray.generated @@ -1,13 +1,13 @@ arangosh> db.example.insert({"a" : { "one" : 1, "two" : 2, "three" : 3 }, "b" : { }}); { - "_id" : "example/1124051374", - "_rev" : "1124051374", - "_key" : "1124051374" + "_id" : "example/1123726897", + "_rev" : "1123726897", + "_key" : "1123726897" } arangosh> db.example.update("example/20774803", {"a" : { "four" : 4 }, "b" : { "b1" : 1 }}); { "_id" : "example/20774803", - "_rev" : "1124575662", + "_rev" : "1124251185", "_key" : "20774803" } arangosh> db.example.document("example/20774803"); @@ -19,13 +19,13 @@ arangosh> db.example.document("example/20774803""b1" : 1 }, "_id" : "example/20774803", - "_rev" : "1124575662", + "_rev" : "1124251185", "_key" : "20774803" } arangosh> db.example.update("example/20774803", { "a" : { "one" : null }, "b" : null }, false, false); { "_id" : "example/20774803", - "_rev" : "1124903342", + "_rev" : "1124578865", "_key" : "20774803" } arangosh> db.example.document("example/20774803"); @@ -34,6 +34,6 @@ arangosh> db.example.document("example/20774803""four" : 4 }, "_id" : "example/20774803", - "_rev" : "1124903342", + "_rev" : "1124578865", "_key" : "20774803" } diff --git a/Documentation/Examples/documentsCollectionUpdateHandleKeepNull.generated b/Documentation/Examples/documentsCollectionUpdateHandleKeepNull.generated index 4f7b5b93c6..05ecc31020 100644 --- a/Documentation/Examples/documentsCollectionUpdateHandleKeepNull.generated +++ b/Documentation/Examples/documentsCollectionUpdateHandleKeepNull.generated @@ -1,13 +1,13 @@ arangosh> db.example.insert({"a" : 1}); { - "_id" : "example/1125755310", - "_rev" : "1125755310", - "_key" : "1125755310" + "_id" : "example/1125430833", + "_rev" : "1125430833", + "_key" : "1125430833" } arangosh> db.example.update("example/19988371", { "b" : null, "c" : null, "d" : 3 }); { "_id" : "example/19988371", - "_rev" : "1126214062", + "_rev" : "1125889585", "_key" : "19988371" } arangosh> db.example.document("example/19988371"); @@ -16,13 +16,13 @@ arangosh> db.example.document("example/19988371""c" : null, "d" : 3, "_id" : "example/19988371", - "_rev" : "1126214062", + "_rev" : "1125889585", "_key" : "19988371" } arangosh> db.example.update("example/19988371", { "a" : null }, false, false); { "_id" : "example/19988371", - "_rev" : "1126476206", + "_rev" : "1126151729", "_key" : "19988371" } arangosh> db.example.document("example/19988371"); @@ -31,18 +31,18 @@ arangosh> db.example.document("example/19988371""c" : null, "d" : 3, "_id" : "example/19988371", - "_rev" : "1126476206", + "_rev" : "1126151729", "_key" : "19988371" } arangosh> db.example.update("example/19988371", { "b" : null, "c": null, "d" : null }, false, false); { "_id" : "example/19988371", - "_rev" : "1126738350", + "_rev" : "1126413873", "_key" : "19988371" } arangosh> db.example.document("example/19988371"); { "_id" : "example/19988371", - "_rev" : "1126738350", + "_rev" : "1126413873", "_key" : "19988371" } diff --git a/Documentation/Examples/documentsDocumentName.generated b/Documentation/Examples/documentsDocumentName.generated index a3a9c8fae9..f3a70c0415 100644 --- a/Documentation/Examples/documentsDocumentName.generated +++ b/Documentation/Examples/documentsDocumentName.generated @@ -1,6 +1,6 @@ arangosh> db._document("example/12345"); { "_id" : "example/12345", - "_rev" : "1127262638", + "_rev" : "1126938161", "_key" : "12345" } diff --git a/Documentation/Examples/documentsDocumentReplace.generated b/Documentation/Examples/documentsDocumentReplace.generated index 7d4600da4c..f9c88e9503 100644 --- a/Documentation/Examples/documentsDocumentReplace.generated +++ b/Documentation/Examples/documentsDocumentReplace.generated @@ -1,14 +1,14 @@ arangosh> a1 = db.example.insert({ a : 1 }); { - "_id" : "example/1127852462", - "_rev" : "1127852462", - "_key" : "1127852462" + "_id" : "example/1127527985", + "_rev" : "1127527985", + "_key" : "1127527985" } arangosh> a2 = db._replace(a1, { a : 2 }); { - "_id" : "example/1127852462", - "_rev" : "1128049070", - "_key" : "1127852462" + "_id" : "example/1127527985", + "_rev" : "1127724593", + "_key" : "1127527985" } arangosh> a3 = db._replace(a1, { a : 3 }); [ArangoError 1200: precondition failed] diff --git a/Documentation/Examples/dropIndex.generated b/Documentation/Examples/dropIndex.generated index b5848e8a74..2caf45111f 100644 --- a/Documentation/Examples/dropIndex.generated +++ b/Documentation/Examples/dropIndex.generated @@ -1,6 +1,6 @@ arangosh> db.example.ensureIndex({ type: "skiplist", fields: [ "a", "b" ] }); { - "id" : "example/1128704430", + "id" : "example/1128379953", "type" : "skiplist", "fields" : [ "a", @@ -25,7 +25,7 @@ arangosh> indexInfo; "sparse" : false }, { - "id" : "example/1128704430", + "id" : "example/1128379953", "type" : "skiplist", "fields" : [ "a", diff --git a/Documentation/Examples/ensureFulltextIndex.generated b/Documentation/Examples/ensureFulltextIndex.generated index 5f6611b630..78ab1ca938 100644 --- a/Documentation/Examples/ensureFulltextIndex.generated +++ b/Documentation/Examples/ensureFulltextIndex.generated @@ -1,6 +1,6 @@ arangosh> db.example.ensureIndex({ type: "fulltext", fields: [ "text" ], minLength: 3 }); { - "id" : "example/1133095342", + "id" : "example/1132770865", "type" : "fulltext", "fields" : [ "text" @@ -13,45 +13,45 @@ arangosh> db.example.ensureIndex({ type: "fulltext" } arangosh> db.example.save({ text : "the quick brown", b : { c : 1 } }); { - "_id" : "example/1133619630", - "_rev" : "1133619630", - "_key" : "1133619630" + "_id" : "example/1133295153", + "_rev" : "1133295153", + "_key" : "1133295153" } arangosh> db.example.save({ text : "quick brown fox", b : { c : 2 } }); { - "_id" : "example/1133816238", - "_rev" : "1133816238", - "_key" : "1133816238" + "_id" : "example/1133491761", + "_rev" : "1133491761", + "_key" : "1133491761" } arangosh> db.example.save({ text : "brown fox jums", b : { c : 3 } }); { - "_id" : "example/1134012846", - "_rev" : "1134012846", - "_key" : "1134012846" + "_id" : "example/1133688369", + "_rev" : "1133688369", + "_key" : "1133688369" } arangosh> db.example.save({ text : "fox jumps over", b : { c : 4 } }); { - "_id" : "example/1134209454", - "_rev" : "1134209454", - "_key" : "1134209454" + "_id" : "example/1133884977", + "_rev" : "1133884977", + "_key" : "1133884977" } arangosh> db.example.save({ text : "jumps over the", b : { c : 5 } }); { - "_id" : "example/1134406062", - "_rev" : "1134406062", - "_key" : "1134406062" + "_id" : "example/1134081585", + "_rev" : "1134081585", + "_key" : "1134081585" } arangosh> db.example.save({ text : "over the lazy", b : { c : 6 } }); { - "_id" : "example/1134602670", - "_rev" : "1134602670", - "_key" : "1134602670" + "_id" : "example/1134278193", + "_rev" : "1134278193", + "_key" : "1134278193" } arangosh> db.example.save({ text : "the lazy dog", b : { c : 7 } }); { - "_id" : "example/1134799278", - "_rev" : "1134799278", - "_key" : "1134799278" + "_id" : "example/1134474801", + "_rev" : "1134474801", + "_key" : "1134474801" } arangosh> db._query("FOR document IN FULLTEXT(example, 'text', 'the') RETURN document"); [ @@ -60,36 +60,36 @@ arangosh> db._query("FOR document IN FULLTEXT(examp "c" : 1 }, "text" : "the quick brown", - "_id" : "example/1133619630", - "_rev" : "1133619630", - "_key" : "1133619630" + "_id" : "example/1133295153", + "_rev" : "1133295153", + "_key" : "1133295153" }, { "b" : { "c" : 5 }, "text" : "jumps over the", - "_id" : "example/1134406062", - "_rev" : "1134406062", - "_key" : "1134406062" + "_id" : "example/1134081585", + "_rev" : "1134081585", + "_key" : "1134081585" }, { "b" : { "c" : 6 }, "text" : "over the lazy", - "_id" : "example/1134602670", - "_rev" : "1134602670", - "_key" : "1134602670" + "_id" : "example/1134278193", + "_rev" : "1134278193", + "_key" : "1134278193" }, { "b" : { "c" : 7 }, "text" : "the lazy dog", - "_id" : "example/1134799278", - "_rev" : "1134799278", - "_key" : "1134799278" + "_id" : "example/1134474801", + "_rev" : "1134474801", + "_key" : "1134474801" } ] [object ArangoQueryCursor, count: 4, hasMore: false] diff --git a/Documentation/Examples/ensureHashIndex.generated b/Documentation/Examples/ensureHashIndex.generated index f08ab769e2..7a7209f399 100644 --- a/Documentation/Examples/ensureHashIndex.generated +++ b/Documentation/Examples/ensureHashIndex.generated @@ -1,6 +1,6 @@ arangosh> db.test.ensureIndex({ type: "hash", fields: [ "a" ] }); { - "id" : "test/1135323566", + "id" : "test/1134999089", "type" : "hash", "fields" : [ "a" @@ -13,19 +13,19 @@ arangosh> db.test.ensureIndex({ type: "hash" } arangosh> db.test.save({ a : 1 }); { - "_id" : "test/1135585710", - "_rev" : "1135585710", - "_key" : "1135585710" + "_id" : "test/1135261233", + "_rev" : "1135261233", + "_key" : "1135261233" } arangosh> db.test.save({ a : 1 }); { - "_id" : "test/1135782318", - "_rev" : "1135782318", - "_key" : "1135782318" + "_id" : "test/1135457841", + "_rev" : "1135457841", + "_key" : "1135457841" } arangosh> db.test.save({ a : null }); { - "_id" : "test/1136044462", - "_rev" : "1136044462", - "_key" : "1136044462" + "_id" : "test/1135719985", + "_rev" : "1135719985", + "_key" : "1135719985" } diff --git a/Documentation/Examples/ensureSkiplist.generated b/Documentation/Examples/ensureSkiplist.generated index 5bdc44236a..a4f8efa004 100644 --- a/Documentation/Examples/ensureSkiplist.generated +++ b/Documentation/Examples/ensureSkiplist.generated @@ -1,6 +1,6 @@ arangosh> db.names.ensureIndex({ type: "skiplist", fields: [ "first" ] }); { - "id" : "names/1136503214", + "id" : "names/1136178737", "type" : "skiplist", "fields" : [ "first" @@ -12,31 +12,31 @@ arangosh> db.names.ensureIndex({ type: "skiplist""first" : "Tim" }); { - "_id" : "names/1136765358", - "_rev" : "1136765358", - "_key" : "1136765358" + "_id" : "names/1136440881", + "_rev" : "1136440881", + "_key" : "1136440881" } arangosh> db.names.save({ "first" : "Tom" }); { - "_id" : "names/1136961966", - "_rev" : "1136961966", - "_key" : "1136961966" + "_id" : "names/1136637489", + "_rev" : "1136637489", + "_key" : "1136637489" } arangosh> db.names.save({ "first" : "John" }); { - "_id" : "names/1137158574", - "_rev" : "1137158574", - "_key" : "1137158574" + "_id" : "names/1136834097", + "_rev" : "1136834097", + "_key" : "1136834097" } arangosh> db.names.save({ "first" : "Tim" }); { - "_id" : "names/1137355182", - "_rev" : "1137355182", - "_key" : "1137355182" + "_id" : "names/1137030705", + "_rev" : "1137030705", + "_key" : "1137030705" } arangosh> db.names.save({ "first" : "Tom" }); { - "_id" : "names/1137551790", - "_rev" : "1137551790", - "_key" : "1137551790" + "_id" : "names/1137227313", + "_rev" : "1137227313", + "_key" : "1137227313" } diff --git a/Documentation/Examples/ensureUniqueConstraint.generated b/Documentation/Examples/ensureUniqueConstraint.generated index feb04fa02e..753f37b955 100644 --- a/Documentation/Examples/ensureUniqueConstraint.generated +++ b/Documentation/Examples/ensureUniqueConstraint.generated @@ -1,6 +1,6 @@ arangosh> db.test.ensureIndex({ type: "hash", fields: [ "a", "b.c" ], unique: true }); { - "id" : "test/1138141614", + "id" : "test/1137817137", "type" : "hash", "fields" : [ "a", @@ -14,17 +14,17 @@ arangosh> db.test.ensureIndex({ type: "hash" } arangosh> db.test.save({ a : 1, b : { c : 1 } }); { - "_id" : "test/1138469294", - "_rev" : "1138469294", - "_key" : "1138469294" + "_id" : "test/1138144817", + "_rev" : "1138144817", + "_key" : "1138144817" } arangosh> db.test.save({ a : 1, b : { c : 1 } }); [ArangoError 1210: cannot create document, unique constraint violated] arangosh> db.test.save({ a : 1, b : { c : null } }); { - "_id" : "test/1138928046", - "_rev" : "1138928046", - "_key" : "1138928046" + "_id" : "test/1138603569", + "_rev" : "1138603569", + "_key" : "1138603569" } arangosh> db.test.save({ a : 1 }); [ArangoError 1210: cannot create document, unique constraint violated] diff --git a/Documentation/Examples/ensureUniqueSkiplist.generated b/Documentation/Examples/ensureUniqueSkiplist.generated index bef5e5bb98..42a4395f2f 100644 --- a/Documentation/Examples/ensureUniqueSkiplist.generated +++ b/Documentation/Examples/ensureUniqueSkiplist.generated @@ -1,6 +1,6 @@ arangosh> db.ids.ensureIndex({ type: "skiplist", fields: [ "myId" ], unique: true }); { - "id" : "ids/1139583406", + "id" : "ids/1139258929", "type" : "skiplist", "fields" : [ "myId" @@ -12,21 +12,21 @@ arangosh> db.ids.ensureIndex({ type: "skiplist""myId": 123 }); { - "_id" : "ids/1139845550", - "_rev" : "1139845550", - "_key" : "1139845550" + "_id" : "ids/1139521073", + "_rev" : "1139521073", + "_key" : "1139521073" } arangosh> db.ids.save({ "myId": 456 }); { - "_id" : "ids/1140042158", - "_rev" : "1140042158", - "_key" : "1140042158" + "_id" : "ids/1139717681", + "_rev" : "1139717681", + "_key" : "1139717681" } arangosh> db.ids.save({ "myId": 789 }); { - "_id" : "ids/1140238766", - "_rev" : "1140238766", - "_key" : "1140238766" + "_id" : "ids/1139914289", + "_rev" : "1139914289", + "_key" : "1139914289" } arangosh> db.ids.save({ "myId": 123 }); [ArangoError 1210: cannot create document, unique constraint violated] diff --git a/Documentation/Examples/ensureUniqueSkiplistMultiColmun.generated b/Documentation/Examples/ensureUniqueSkiplistMultiColmun.generated index 7ea00d2d96..51aad4b6dd 100644 --- a/Documentation/Examples/ensureUniqueSkiplistMultiColmun.generated +++ b/Documentation/Examples/ensureUniqueSkiplistMultiColmun.generated @@ -1,6 +1,6 @@ arangosh> db.ids.ensureIndex({ type: "skiplist", fields: [ "name.first", "name.last" ], unique: true }); { - "id" : "ids/1140959662", + "id" : "ids/1140635185", "type" : "skiplist", "fields" : [ "name.first", @@ -13,20 +13,20 @@ arangosh> db.ids.ensureIndex({ type: "skiplist""name" : { "first" : "hans", "last": "hansen" }}); { - "_id" : "ids/1141287342", - "_rev" : "1141287342", - "_key" : "1141287342" + "_id" : "ids/1140962865", + "_rev" : "1140962865", + "_key" : "1140962865" } arangosh> db.ids.save({ "name" : { "first" : "jens", "last": "jensen" }}); { - "_id" : "ids/1141483950", - "_rev" : "1141483950", - "_key" : "1141483950" + "_id" : "ids/1141159473", + "_rev" : "1141159473", + "_key" : "1141159473" } arangosh> db.ids.save({ "name" : { "first" : "hans", "last": "jensen" }}); { - "_id" : "ids/1141680558", - "_rev" : "1141680558", - "_key" : "1141680558" + "_id" : "ids/1141356081", + "_rev" : "1141356081", + "_key" : "1141356081" } [ArangoError 1210: cannot create document, unique constraint violated] diff --git a/Documentation/Examples/executeQuery.generated b/Documentation/Examples/executeQuery.generated index 88af9718ae..ae297b2a4c 100644 --- a/Documentation/Examples/executeQuery.generated +++ b/Documentation/Examples/executeQuery.generated @@ -2,21 +2,21 @@ arangosh> result = db.users.all().toArray(); [ { "name" : "Helmut", - "_id" : "users/1142598062", - "_rev" : "1142598062", - "_key" : "1142598062" - }, - { - "name" : "Angela", - "_id" : "users/1142794670", - "_rev" : "1142794670", - "_key" : "1142794670" + "_id" : "users/1142273585", + "_rev" : "1142273585", + "_key" : "1142273585" }, { "name" : "Gerhard", - "_id" : "users/1142335918", - "_rev" : "1142335918", - "_key" : "1142335918" + "_id" : "users/1142011441", + "_rev" : "1142011441", + "_key" : "1142011441" + }, + { + "name" : "Angela", + "_id" : "users/1142470193", + "_rev" : "1142470193", + "_key" : "1142470193" } ] arangosh> q = db.users.all(); q.execute(); result = [ ]; while (q.hasNext()) { result.push(q.next()); } diff --git a/Documentation/Examples/executeQueryBatchSize.generated b/Documentation/Examples/executeQueryBatchSize.generated index 182955c3d5..e214854e58 100644 --- a/Documentation/Examples/executeQueryBatchSize.generated +++ b/Documentation/Examples/executeQueryBatchSize.generated @@ -1,40 +1,40 @@ arangosh> q = db.users.all(); q.setBatchSize(20); q.execute(); while (q.hasNext()) { print(q.next()); } { "name" : "Angela", - "_id" : "users/1143908782", - "_rev" : "1143908782", - "_key" : "1143908782" -} -{ - "name" : "Gerhard", - "_id" : "users/1143450030", - "_rev" : "1143450030", - "_key" : "1143450030" + "_id" : "users/1143584305", + "_rev" : "1143584305", + "_key" : "1143584305" } { "name" : "Helmut", - "_id" : "users/1143712174", - "_rev" : "1143712174", - "_key" : "1143712174" + "_id" : "users/1143387697", + "_rev" : "1143387697", + "_key" : "1143387697" +} +{ + "name" : "Gerhard", + "_id" : "users/1143125553", + "_rev" : "1143125553", + "_key" : "1143125553" } SimpleQueryAll(users) arangosh> q = db.users.all(); q.execute(20); while (q.hasNext()) { print(q.next()); } { "name" : "Angela", - "_id" : "users/1143908782", - "_rev" : "1143908782", - "_key" : "1143908782" -} -{ - "name" : "Gerhard", - "_id" : "users/1143450030", - "_rev" : "1143450030", - "_key" : "1143450030" + "_id" : "users/1143584305", + "_rev" : "1143584305", + "_key" : "1143584305" } { "name" : "Helmut", - "_id" : "users/1143712174", - "_rev" : "1143712174", - "_key" : "1143712174" + "_id" : "users/1143387697", + "_rev" : "1143387697", + "_key" : "1143387697" +} +{ + "name" : "Gerhard", + "_id" : "users/1143125553", + "_rev" : "1143125553", + "_key" : "1143125553" } SimpleQueryAll(users) diff --git a/Documentation/Examples/generalGraphDropGraphKeep.generated b/Documentation/Examples/generalGraphDropGraphKeep.generated index d26218ea03..995f58ae08 100644 --- a/Documentation/Examples/generalGraphDropGraphKeep.generated +++ b/Documentation/Examples/generalGraphDropGraphKeep.generated @@ -2,8 +2,8 @@ arangosh> var graph_module = "social"); true arangosh> db._collection("female"); -[ArangoCollection 1298835886, "female" (type document, status loaded)] +[ArangoCollection 1298511409, "female" (type document, status loaded)] arangosh> db._collection("male"); -[ArangoCollection 1298966958, "male" (type document, status loaded)] +[ArangoCollection 1298642481, "male" (type document, status loaded)] arangosh> db._collection("relation"); -[ArangoCollection 1299098030, "relation" (type edge, status loaded)] +[ArangoCollection 1298773553, "relation" (type edge, status loaded)] diff --git a/Documentation/Examples/generalGraphEdgeCollectionRemove.generated b/Documentation/Examples/generalGraphEdgeCollectionRemove.generated index f43948082b..39d504a1a4 100644 --- a/Documentation/Examples/generalGraphEdgeCollectionRemove.generated +++ b/Documentation/Examples/generalGraphEdgeCollectionRemove.generated @@ -3,7 +3,7 @@ arangosh> var graph = examples.loadGraph("female/alice", "female/diana", {_key: "aliceAndDiana"}); { "_id" : "relation/aliceAndDiana", - "_rev" : "1317906862", + "_rev" : "1317582385", "_key" : "aliceAndDiana" } arangosh> db._exists("relation/aliceAndDiana") diff --git a/Documentation/Examples/generalGraphEdgeCollectionReplace.generated b/Documentation/Examples/generalGraphEdgeCollectionReplace.generated index 45feb0c770..bc93deb31e 100644 --- a/Documentation/Examples/generalGraphEdgeCollectionReplace.generated +++ b/Documentation/Examples/generalGraphEdgeCollectionReplace.generated @@ -3,12 +3,12 @@ arangosh> var graph = examples.loadGraph("female/alice", "female/diana", {typo: "nose", _key: "aliceAndDiana"}); { "_id" : "relation/aliceAndDiana", - "_rev" : "1322297774", + "_rev" : "1321973297", "_key" : "aliceAndDiana" } arangosh> graph.relation.replace("relation/aliceAndDiana", {type: "knows"}); { "_id" : "relation/aliceAndDiana", - "_rev" : "1322494382", + "_rev" : "1322169905", "_key" : "aliceAndDiana" } diff --git a/Documentation/Examples/generalGraphEdgeCollectionSave1.generated b/Documentation/Examples/generalGraphEdgeCollectionSave1.generated index f6cdfd9aec..fca8354e4c 100644 --- a/Documentation/Examples/generalGraphEdgeCollectionSave1.generated +++ b/Documentation/Examples/generalGraphEdgeCollectionSave1.generated @@ -3,6 +3,6 @@ arangosh> var graph = examples.loadGraph("male/bob", "female/alice", {type: "married", _key: "bobAndAlice"}); { "_id" : "relation/bobAndAlice", - "_rev" : "1326229934", + "_rev" : "1325905457", "_key" : "bobAndAlice" } diff --git a/Documentation/Examples/generalGraphEdgeCollectionUpdate.generated b/Documentation/Examples/generalGraphEdgeCollectionUpdate.generated index 52f021a774..4bb6a1069c 100644 --- a/Documentation/Examples/generalGraphEdgeCollectionUpdate.generated +++ b/Documentation/Examples/generalGraphEdgeCollectionUpdate.generated @@ -3,12 +3,12 @@ arangosh> var graph = examples.loadGraph("female/alice", "female/diana", {type: "knows", _key: "aliceAndDiana"}); { "_id" : "relation/aliceAndDiana", - "_rev" : "1333504430", + "_rev" : "1333179953", "_key" : "aliceAndDiana" } arangosh> graph.relation.update("relation/aliceAndDiana", {type: "quarrelled", _key: "aliceAndDiana"}); { "_id" : "relation/aliceAndDiana", - "_rev" : "1333701038", + "_rev" : "1333376561", "_key" : "aliceAndDiana" } diff --git a/Documentation/Examples/generalGraphEdges1.generated b/Documentation/Examples/generalGraphEdges1.generated index 94c6c8c328..98767c2991 100644 --- a/Documentation/Examples/generalGraphEdges1.generated +++ b/Documentation/Examples/generalGraphEdges1.generated @@ -4,5 +4,5 @@ arangosh> db._query("FOR e IN GRAPH_EDGES(" ........> +"'routeplanner', {}, {edgeExamples : [{distance: 600}, {distance: 700}]}) RETURN e" ........> ).toArray(); [ - "internationalHighway/1339664814" + "internationalHighway/1339340337" ] diff --git a/Documentation/Examples/generalGraphEdges2.generated b/Documentation/Examples/generalGraphEdges2.generated index e7b46c0f5b..e1d0ba4b92 100644 --- a/Documentation/Examples/generalGraphEdges2.generated +++ b/Documentation/Examples/generalGraphEdges2.generated @@ -4,10 +4,10 @@ arangosh> db._query("FOR e IN GRAPH_EDGES(" ........> +"'routeplanner', 'germanCity/Hamburg', {direction : 'outbound', maxDepth : 2}) RETURN e" ........> ).toArray(); [ - "germanHighway/1344711086", - "internationalHighway/1346152878", - "internationalHighway/1346349486", - "internationalHighway/1345759662", - "frenchHighway/1345038766", - "internationalHighway/1345956270" + "germanHighway/1344386609", + "internationalHighway/1345828401", + "internationalHighway/1346025009", + "internationalHighway/1345435185", + "frenchHighway/1344714289", + "internationalHighway/1345631793" ] diff --git a/Documentation/Examples/generalGraphEdges3.generated b/Documentation/Examples/generalGraphEdges3.generated index c319395e5d..2c4aff8f22 100644 --- a/Documentation/Examples/generalGraphEdges3.generated +++ b/Documentation/Examples/generalGraphEdges3.generated @@ -6,49 +6,49 @@ arangosh> db._query("FOR e IN GRAPH_EDGES(" ........> ).toArray(); [ { - "_id" : "germanHighway/1351199150", - "_key" : "1351199150", - "_rev" : "1351199150", + "_id" : "germanHighway/1350874673", + "_key" : "1350874673", + "_rev" : "1350874673", "_from" : "germanCity/Hamburg", "_to" : "germanCity/Cologne", "distance" : 500 }, { - "_id" : "internationalHighway/1352640942", - "_key" : "1352640942", - "_rev" : "1352640942", + "_id" : "internationalHighway/1352316465", + "_key" : "1352316465", + "_rev" : "1352316465", "_from" : "germanCity/Cologne", "_to" : "frenchCity/Lyon", "distance" : 700 }, { - "_id" : "internationalHighway/1352837550", - "_key" : "1352837550", - "_rev" : "1352837550", + "_id" : "internationalHighway/1352513073", + "_key" : "1352513073", + "_rev" : "1352513073", "_from" : "germanCity/Cologne", "_to" : "frenchCity/Paris", "distance" : 550 }, { - "_id" : "internationalHighway/1352247726", - "_key" : "1352247726", - "_rev" : "1352247726", + "_id" : "internationalHighway/1351923249", + "_key" : "1351923249", + "_rev" : "1351923249", "_from" : "germanCity/Hamburg", "_to" : "frenchCity/Paris", "distance" : 900 }, { - "_id" : "frenchHighway/1351526830", - "_key" : "1351526830", - "_rev" : "1351526830", + "_id" : "frenchHighway/1351202353", + "_key" : "1351202353", + "_rev" : "1351202353", "_from" : "frenchCity/Paris", "_to" : "frenchCity/Lyon", "distance" : 550 }, { - "_id" : "internationalHighway/1352444334", - "_key" : "1352444334", - "_rev" : "1352444334", + "_id" : "internationalHighway/1352119857", + "_key" : "1352119857", + "_rev" : "1352119857", "_from" : "germanCity/Hamburg", "_to" : "frenchCity/Lyon", "distance" : 1300 diff --git a/Documentation/Examples/generalGraphEdgesFiltered.generated b/Documentation/Examples/generalGraphEdgesFiltered.generated index 0660abb2ee..43b006e6be 100644 --- a/Documentation/Examples/generalGraphEdgesFiltered.generated +++ b/Documentation/Examples/generalGraphEdgesFiltered.generated @@ -5,7 +5,7 @@ arangosh> graph._edges({type: "married"}).to { "_id" : "relation/aliceAndBob", "_key" : "aliceAndBob", - "_rev" : "1356048814", + "_rev" : "1355724337", "_from" : "female/alice", "_to" : "male/bob", "type" : "married" @@ -13,7 +13,7 @@ arangosh> graph._edges({type: "married"}).to { "_id" : "relation/charlyAndDiana", "_key" : "charlyAndDiana", - "_rev" : "1356507566", + "_rev" : "1356183089", "_from" : "male/charly", "_to" : "female/diana", "type" : "married" diff --git a/Documentation/Examples/generalGraphEdgesUnfiltered.generated b/Documentation/Examples/generalGraphEdgesUnfiltered.generated index fa4bae4ac0..87eb467c84 100644 --- a/Documentation/Examples/generalGraphEdgesUnfiltered.generated +++ b/Documentation/Examples/generalGraphEdgesUnfiltered.generated @@ -5,7 +5,7 @@ arangosh> graph._edges().toArray(); { "_id" : "relation/aliceAndBob", "_key" : "aliceAndBob", - "_rev" : "1359653294", + "_rev" : "1359328817", "_from" : "female/alice", "_to" : "male/bob", "type" : "married" @@ -13,7 +13,7 @@ arangosh> graph._edges().toArray(); { "_id" : "relation/aliceAndCharly", "_key" : "aliceAndCharly", - "_rev" : "1359915438", + "_rev" : "1359590961", "_from" : "female/alice", "_to" : "male/charly", "type" : "friend" @@ -21,7 +21,7 @@ arangosh> graph._edges().toArray(); { "_id" : "relation/bobAndDiana", "_key" : "bobAndDiana", - "_rev" : "1360308654", + "_rev" : "1359984177", "_from" : "male/bob", "_to" : "female/diana", "type" : "friend" @@ -29,7 +29,7 @@ arangosh> graph._edges().toArray(); { "_id" : "relation/charlyAndDiana", "_key" : "charlyAndDiana", - "_rev" : "1360112046", + "_rev" : "1359787569", "_from" : "male/charly", "_to" : "female/diana", "type" : "married" diff --git a/Documentation/Examples/generalGraphFluentAQLEdgesFilteredMultiple.generated b/Documentation/Examples/generalGraphFluentAQLEdgesFilteredMultiple.generated index de37e27943..5d90f2ce83 100644 --- a/Documentation/Examples/generalGraphFluentAQLEdgesFilteredMultiple.generated +++ b/Documentation/Examples/generalGraphFluentAQLEdgesFilteredMultiple.generated @@ -6,7 +6,7 @@ arangosh> query.edges([{type: "married"}, {t { "_id" : "relation/aliceAndBob", "_key" : "aliceAndBob", - "_rev" : "1366862254", + "_rev" : "1366537777", "_from" : "female/alice", "_to" : "male/bob", "type" : "married" @@ -14,7 +14,7 @@ arangosh> query.edges([{type: "married"}, {t { "_id" : "relation/aliceAndCharly", "_key" : "aliceAndCharly", - "_rev" : "1367124398", + "_rev" : "1366799921", "_from" : "female/alice", "_to" : "male/charly", "type" : "friend" @@ -22,7 +22,7 @@ arangosh> query.edges([{type: "married"}, {t { "_id" : "relation/aliceAndBob", "_key" : "aliceAndBob", - "_rev" : "1366862254", + "_rev" : "1366537777", "_from" : "female/alice", "_to" : "male/bob", "type" : "married" @@ -30,7 +30,7 @@ arangosh> query.edges([{type: "married"}, {t { "_id" : "relation/bobAndDiana", "_key" : "bobAndDiana", - "_rev" : "1367517614", + "_rev" : "1367193137", "_from" : "male/bob", "_to" : "female/diana", "type" : "friend" diff --git a/Documentation/Examples/generalGraphFluentAQLEdgesFilteredSingle.generated b/Documentation/Examples/generalGraphFluentAQLEdgesFilteredSingle.generated index 662636022e..6b0466c499 100644 --- a/Documentation/Examples/generalGraphFluentAQLEdgesFilteredSingle.generated +++ b/Documentation/Examples/generalGraphFluentAQLEdgesFilteredSingle.generated @@ -6,7 +6,7 @@ arangosh> query.edges({type: "married"}).toA { "_id" : "relation/aliceAndBob", "_key" : "aliceAndBob", - "_rev" : "1370466734", + "_rev" : "1370142257", "_from" : "female/alice", "_to" : "male/bob", "type" : "married" @@ -14,7 +14,7 @@ arangosh> query.edges({type: "married"}).toA { "_id" : "relation/aliceAndBob", "_key" : "aliceAndBob", - "_rev" : "1370466734", + "_rev" : "1370142257", "_from" : "female/alice", "_to" : "male/bob", "type" : "married" diff --git a/Documentation/Examples/generalGraphFluentAQLEdgesUnfiltered.generated b/Documentation/Examples/generalGraphFluentAQLEdgesUnfiltered.generated index e2c384f03f..517dda962e 100644 --- a/Documentation/Examples/generalGraphFluentAQLEdgesUnfiltered.generated +++ b/Documentation/Examples/generalGraphFluentAQLEdgesUnfiltered.generated @@ -6,7 +6,7 @@ arangosh> query.edges().toArray(); { "_id" : "relation/aliceAndBob", "_key" : "aliceAndBob", - "_rev" : "1374071214", + "_rev" : "1373746737", "_from" : "female/alice", "_to" : "male/bob", "type" : "married" @@ -14,7 +14,7 @@ arangosh> query.edges().toArray(); { "_id" : "relation/aliceAndCharly", "_key" : "aliceAndCharly", - "_rev" : "1374333358", + "_rev" : "1374008881", "_from" : "female/alice", "_to" : "male/charly", "type" : "friend" @@ -22,7 +22,7 @@ arangosh> query.edges().toArray(); { "_id" : "relation/aliceAndBob", "_key" : "aliceAndBob", - "_rev" : "1374071214", + "_rev" : "1373746737", "_from" : "female/alice", "_to" : "male/bob", "type" : "married" @@ -30,7 +30,7 @@ arangosh> query.edges().toArray(); { "_id" : "relation/bobAndDiana", "_key" : "bobAndDiana", - "_rev" : "1374726574", + "_rev" : "1374402097", "_from" : "male/bob", "_to" : "female/diana", "type" : "friend" diff --git a/Documentation/Examples/generalGraphFluentAQLFromVerticesFilteredMultiple.generated b/Documentation/Examples/generalGraphFluentAQLFromVerticesFilteredMultiple.generated index eedbe35a53..b95e2bb9df 100644 --- a/Documentation/Examples/generalGraphFluentAQLFromVerticesFilteredMultiple.generated +++ b/Documentation/Examples/generalGraphFluentAQLFromVerticesFilteredMultiple.generated @@ -6,13 +6,13 @@ arangosh> query.fromVertices([{name: "Alice" { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1383836078", + "_rev" : "1383511601", "name" : "Alice" }, { "_id" : "male/charly", "_key" : "charly", - "_rev" : "1384360366", + "_rev" : "1384035889", "name" : "Charly" } ] diff --git a/Documentation/Examples/generalGraphFluentAQLFromVerticesFilteredSingle.generated b/Documentation/Examples/generalGraphFluentAQLFromVerticesFilteredSingle.generated index 1298d8b7f2..f916b3e7e5 100644 --- a/Documentation/Examples/generalGraphFluentAQLFromVerticesFilteredSingle.generated +++ b/Documentation/Examples/generalGraphFluentAQLFromVerticesFilteredSingle.generated @@ -6,7 +6,7 @@ arangosh> query.fromVertices({name: "Alice"} { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1387440558", + "_rev" : "1387116081", "name" : "Alice" } ] diff --git a/Documentation/Examples/generalGraphFluentAQLFromVerticesUnfiltered.generated b/Documentation/Examples/generalGraphFluentAQLFromVerticesUnfiltered.generated index 28b1c8cfe6..a4873ad9f3 100644 --- a/Documentation/Examples/generalGraphFluentAQLFromVerticesUnfiltered.generated +++ b/Documentation/Examples/generalGraphFluentAQLFromVerticesUnfiltered.generated @@ -6,13 +6,13 @@ arangosh> query.fromVertices().toArray(); { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1391045038", + "_rev" : "1390720561", "name" : "Alice" }, { "_id" : "male/charly", "_key" : "charly", - "_rev" : "1391569326", + "_rev" : "1391244849", "name" : "Charly" } ] diff --git a/Documentation/Examples/generalGraphFluentAQLInEdgesFilteredMultiple.generated b/Documentation/Examples/generalGraphFluentAQLInEdgesFilteredMultiple.generated index 55168a8f86..2f16a6e15d 100644 --- a/Documentation/Examples/generalGraphFluentAQLInEdgesFilteredMultiple.generated +++ b/Documentation/Examples/generalGraphFluentAQLInEdgesFilteredMultiple.generated @@ -6,7 +6,7 @@ arangosh> query.inEdges([{type: "married"}, { "_id" : "relation/aliceAndBob", "_key" : "aliceAndBob", - "_rev" : "1402907054", + "_rev" : "1402582577", "_from" : "female/alice", "_to" : "male/bob", "type" : "married" diff --git a/Documentation/Examples/generalGraphFluentAQLInEdgesFilteredSingle.generated b/Documentation/Examples/generalGraphFluentAQLInEdgesFilteredSingle.generated index fcc42bdcee..110fa5b6af 100644 --- a/Documentation/Examples/generalGraphFluentAQLInEdgesFilteredSingle.generated +++ b/Documentation/Examples/generalGraphFluentAQLInEdgesFilteredSingle.generated @@ -6,7 +6,7 @@ arangosh> query.inEdges({type: "married"}).t { "_id" : "relation/aliceAndBob", "_key" : "aliceAndBob", - "_rev" : "1406511534", + "_rev" : "1406187057", "_from" : "female/alice", "_to" : "male/bob", "type" : "married" diff --git a/Documentation/Examples/generalGraphFluentAQLInEdgesUnfiltered.generated b/Documentation/Examples/generalGraphFluentAQLInEdgesUnfiltered.generated index df8c528b08..cdf91153f4 100644 --- a/Documentation/Examples/generalGraphFluentAQLInEdgesUnfiltered.generated +++ b/Documentation/Examples/generalGraphFluentAQLInEdgesUnfiltered.generated @@ -6,7 +6,7 @@ arangosh> query.inEdges().toArray(); { "_id" : "relation/aliceAndBob", "_key" : "aliceAndBob", - "_rev" : "1410116014", + "_rev" : "1409791537", "_from" : "female/alice", "_to" : "male/bob", "type" : "married" diff --git a/Documentation/Examples/generalGraphFluentAQLNeighborsFilteredSingle.generated b/Documentation/Examples/generalGraphFluentAQLNeighborsFilteredSingle.generated index 3ef2e3cc7c..d5172d1e97 100644 --- a/Documentation/Examples/generalGraphFluentAQLNeighborsFilteredSingle.generated +++ b/Documentation/Examples/generalGraphFluentAQLNeighborsFilteredSingle.generated @@ -6,7 +6,7 @@ arangosh> query.neighbors({name: "Bob"}).toA { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1416604078", + "_rev" : "1416279601", "name" : "Bob" } ] diff --git a/Documentation/Examples/generalGraphFluentAQLNeighborsUnfiltered.generated b/Documentation/Examples/generalGraphFluentAQLNeighborsUnfiltered.generated index c0def54a76..98c4ec5a07 100644 --- a/Documentation/Examples/generalGraphFluentAQLNeighborsUnfiltered.generated +++ b/Documentation/Examples/generalGraphFluentAQLNeighborsUnfiltered.generated @@ -6,13 +6,13 @@ arangosh> query.neighbors().toArray(); { "_id" : "male/charly", "_key" : "charly", - "_rev" : "1420405166", + "_rev" : "1420080689", "name" : "Charly" }, { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1420208558", + "_rev" : "1419884081", "name" : "Bob" } ] diff --git a/Documentation/Examples/generalGraphFluentAQLNext.generated b/Documentation/Examples/generalGraphFluentAQLNext.generated index 32b35930b6..f00850ca0d 100644 --- a/Documentation/Examples/generalGraphFluentAQLNext.generated +++ b/Documentation/Examples/generalGraphFluentAQLNext.generated @@ -5,27 +5,27 @@ arangosh> query.next(); { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1424206254", + "_rev" : "1423881777", "name" : "Diana" } arangosh> query.next(); { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1423485358", + "_rev" : "1423160881", "name" : "Alice" } arangosh> query.next(); { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1423813038", + "_rev" : "1423488561", "name" : "Bob" } arangosh> query.next(); { "_id" : "male/charly", "_key" : "charly", - "_rev" : "1424009646", + "_rev" : "1423685169", "name" : "Charly" } diff --git a/Documentation/Examples/generalGraphFluentAQLNextRecreate.generated b/Documentation/Examples/generalGraphFluentAQLNextRecreate.generated index 42f501577c..7b9d95c0cd 100644 --- a/Documentation/Examples/generalGraphFluentAQLNextRecreate.generated +++ b/Documentation/Examples/generalGraphFluentAQLNextRecreate.generated @@ -5,7 +5,7 @@ arangosh> query.next(); { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1427810734", + "_rev" : "1427486257", "name" : "Diana" } arangosh> query.edges(); @@ -16,7 +16,7 @@ arangosh> query.next(); { "_id" : "relation/charlyAndDiana", "_key" : "charlyAndDiana", - "_rev" : "1428597166", + "_rev" : "1428272689", "_from" : "male/charly", "_to" : "female/diana", "type" : "married" diff --git a/Documentation/Examples/generalGraphFluentAQLOutEdgesFilteredMultiple.generated b/Documentation/Examples/generalGraphFluentAQLOutEdgesFilteredMultiple.generated index 44e762efd8..897ae19d8c 100644 --- a/Documentation/Examples/generalGraphFluentAQLOutEdgesFilteredMultiple.generated +++ b/Documentation/Examples/generalGraphFluentAQLOutEdgesFilteredMultiple.generated @@ -6,7 +6,7 @@ arangosh> query.outEdges([{type: "married"}, { "_id" : "relation/aliceAndBob", "_key" : "aliceAndBob", - "_rev" : "1431808430", + "_rev" : "1431483953", "_from" : "female/alice", "_to" : "male/bob", "type" : "married" @@ -14,7 +14,7 @@ arangosh> query.outEdges([{type: "married"}, { "_id" : "relation/aliceAndCharly", "_key" : "aliceAndCharly", - "_rev" : "1432070574", + "_rev" : "1431746097", "_from" : "female/alice", "_to" : "male/charly", "type" : "friend" @@ -22,7 +22,7 @@ arangosh> query.outEdges([{type: "married"}, { "_id" : "relation/bobAndDiana", "_key" : "bobAndDiana", - "_rev" : "1432463790", + "_rev" : "1432139313", "_from" : "male/bob", "_to" : "female/diana", "type" : "friend" diff --git a/Documentation/Examples/generalGraphFluentAQLOutEdgesFilteredSingle.generated b/Documentation/Examples/generalGraphFluentAQLOutEdgesFilteredSingle.generated index 419143857a..f5a33968fb 100644 --- a/Documentation/Examples/generalGraphFluentAQLOutEdgesFilteredSingle.generated +++ b/Documentation/Examples/generalGraphFluentAQLOutEdgesFilteredSingle.generated @@ -6,7 +6,7 @@ arangosh> query.outEdges({type: "married"}). { "_id" : "relation/aliceAndBob", "_key" : "aliceAndBob", - "_rev" : "1435412910", + "_rev" : "1435088433", "_from" : "female/alice", "_to" : "male/bob", "type" : "married" diff --git a/Documentation/Examples/generalGraphFluentAQLOutEdgesUnfiltered.generated b/Documentation/Examples/generalGraphFluentAQLOutEdgesUnfiltered.generated index 331f8415d0..f981e597db 100644 --- a/Documentation/Examples/generalGraphFluentAQLOutEdgesUnfiltered.generated +++ b/Documentation/Examples/generalGraphFluentAQLOutEdgesUnfiltered.generated @@ -6,7 +6,7 @@ arangosh> query.outEdges().toArray(); { "_id" : "relation/aliceAndBob", "_key" : "aliceAndBob", - "_rev" : "1439017390", + "_rev" : "1438692913", "_from" : "female/alice", "_to" : "male/bob", "type" : "married" @@ -14,7 +14,7 @@ arangosh> query.outEdges().toArray(); { "_id" : "relation/aliceAndCharly", "_key" : "aliceAndCharly", - "_rev" : "1439279534", + "_rev" : "1438955057", "_from" : "female/alice", "_to" : "male/charly", "type" : "friend" @@ -22,7 +22,7 @@ arangosh> query.outEdges().toArray(); { "_id" : "relation/bobAndDiana", "_key" : "bobAndDiana", - "_rev" : "1439672750", + "_rev" : "1439348273", "_from" : "male/bob", "_to" : "female/diana", "type" : "friend" diff --git a/Documentation/Examples/generalGraphFluentAQLPathNeighbors.generated b/Documentation/Examples/generalGraphFluentAQLPathNeighbors.generated index ddc5cd35b2..86e2ef0862 100644 --- a/Documentation/Examples/generalGraphFluentAQLPathNeighbors.generated +++ b/Documentation/Examples/generalGraphFluentAQLPathNeighbors.generated @@ -7,13 +7,13 @@ arangosh> query.neighbors().path().toArray(); { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1441573294", + "_rev" : "1441248817", "name" : "Alice" }, { "_id" : "male/charly", "_key" : "charly", - "_rev" : "1442097582", + "_rev" : "1441773105", "name" : "Charly" } ], @@ -21,13 +21,13 @@ arangosh> query.neighbors().path().toArray(); { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1441573294", + "_rev" : "1441248817", "name" : "Alice" }, { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1441900974", + "_rev" : "1441576497", "name" : "Bob" } ] diff --git a/Documentation/Examples/generalGraphFluentAQLPathSimple.generated b/Documentation/Examples/generalGraphFluentAQLPathSimple.generated index fa409bba6b..dd4ffcb01c 100644 --- a/Documentation/Examples/generalGraphFluentAQLPathSimple.generated +++ b/Documentation/Examples/generalGraphFluentAQLPathSimple.generated @@ -7,13 +7,13 @@ arangosh> query.outEdges().toVertices().path().toArray(); { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1445177774", + "_rev" : "1444853297", "name" : "Alice" }, { "_id" : "relation/aliceAndBob", "_key" : "aliceAndBob", - "_rev" : "1446226350", + "_rev" : "1445901873", "_from" : "female/alice", "_to" : "male/bob", "type" : "married" @@ -21,7 +21,7 @@ arangosh> query.outEdges().toVertices().path().toArray(); { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1445505454", + "_rev" : "1445180977", "name" : "Bob" } ], @@ -29,13 +29,13 @@ arangosh> query.outEdges().toVertices().path().toArray(); { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1445177774", + "_rev" : "1444853297", "name" : "Alice" }, { "_id" : "relation/aliceAndCharly", "_key" : "aliceAndCharly", - "_rev" : "1446488494", + "_rev" : "1446164017", "_from" : "female/alice", "_to" : "male/charly", "type" : "friend" @@ -43,7 +43,7 @@ arangosh> query.outEdges().toVertices().path().toArray(); { "_id" : "male/charly", "_key" : "charly", - "_rev" : "1445702062", + "_rev" : "1445377585", "name" : "Charly" } ] diff --git a/Documentation/Examples/generalGraphFluentAQLRestricted.generated b/Documentation/Examples/generalGraphFluentAQLRestricted.generated index 79e3bc7550..c3d78f5fa1 100644 --- a/Documentation/Examples/generalGraphFluentAQLRestricted.generated +++ b/Documentation/Examples/generalGraphFluentAQLRestricted.generated @@ -6,13 +6,13 @@ arangosh> query.edges().vertices().restrict("female { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1448782254", + "_rev" : "1448457777", "name" : "Alice" }, { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1448782254", + "_rev" : "1448457777", "name" : "Alice" } ] diff --git a/Documentation/Examples/generalGraphFluentAQLToArray.generated b/Documentation/Examples/generalGraphFluentAQLToArray.generated index f0c2ff10be..a5bc937bb9 100644 --- a/Documentation/Examples/generalGraphFluentAQLToArray.generated +++ b/Documentation/Examples/generalGraphFluentAQLToArray.generated @@ -6,25 +6,25 @@ arangosh> query.toArray(); { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1456646574", + "_rev" : "1456322097", "name" : "Diana" }, { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1455925678", + "_rev" : "1455601201", "name" : "Alice" }, { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1456253358", + "_rev" : "1455928881", "name" : "Bob" }, { "_id" : "male/charly", "_key" : "charly", - "_rev" : "1456449966", + "_rev" : "1456125489", "name" : "Charly" } ] diff --git a/Documentation/Examples/generalGraphFluentAQLToVerticesFilteredMultiple.generated b/Documentation/Examples/generalGraphFluentAQLToVerticesFilteredMultiple.generated index cd267ec64c..7eee075708 100644 --- a/Documentation/Examples/generalGraphFluentAQLToVerticesFilteredMultiple.generated +++ b/Documentation/Examples/generalGraphFluentAQLToVerticesFilteredMultiple.generated @@ -6,13 +6,13 @@ arangosh> query.toVertices([{name: "Bob"}, { { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1459857838", + "_rev" : "1459533361", "name" : "Bob" }, { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1460251054", + "_rev" : "1459926577", "name" : "Diana" } ] diff --git a/Documentation/Examples/generalGraphFluentAQLToVerticesFilteredSingle.generated b/Documentation/Examples/generalGraphFluentAQLToVerticesFilteredSingle.generated index 2b591a5726..67be69081a 100644 --- a/Documentation/Examples/generalGraphFluentAQLToVerticesFilteredSingle.generated +++ b/Documentation/Examples/generalGraphFluentAQLToVerticesFilteredSingle.generated @@ -6,7 +6,7 @@ arangosh> query.toVertices({name: "Bob"}).to { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1463462318", + "_rev" : "1463137841", "name" : "Bob" } ] diff --git a/Documentation/Examples/generalGraphFluentAQLToVerticesUnfiltered.generated b/Documentation/Examples/generalGraphFluentAQLToVerticesUnfiltered.generated index 43551bf31d..70ebcbf995 100644 --- a/Documentation/Examples/generalGraphFluentAQLToVerticesUnfiltered.generated +++ b/Documentation/Examples/generalGraphFluentAQLToVerticesUnfiltered.generated @@ -6,13 +6,13 @@ arangosh> query.toVertices().toArray(); { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1467066798", + "_rev" : "1466742321", "name" : "Bob" }, { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1467460014", + "_rev" : "1467135537", "name" : "Diana" } ] diff --git a/Documentation/Examples/generalGraphFluentAQLUnfilteredEdges.generated b/Documentation/Examples/generalGraphFluentAQLUnfilteredEdges.generated index cbe624bdc8..f086026973 100644 --- a/Documentation/Examples/generalGraphFluentAQLUnfilteredEdges.generated +++ b/Documentation/Examples/generalGraphFluentAQLUnfilteredEdges.generated @@ -6,7 +6,7 @@ arangosh> query.toVertices().outEdges().toArray(); { "_id" : "relation/bobAndDiana", "_key" : "bobAndDiana", - "_rev" : "1472047534", + "_rev" : "1471723057", "_from" : "male/bob", "_to" : "female/diana", "type" : "friend" diff --git a/Documentation/Examples/generalGraphFluentAQLUnfilteredVertices.generated b/Documentation/Examples/generalGraphFluentAQLUnfilteredVertices.generated index 19be86cde1..dd9af2fb4a 100644 --- a/Documentation/Examples/generalGraphFluentAQLUnfilteredVertices.generated +++ b/Documentation/Examples/generalGraphFluentAQLUnfilteredVertices.generated @@ -6,13 +6,13 @@ arangosh> query.toVertices().toArray(); { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1474275758", + "_rev" : "1473951281", "name" : "Bob" }, { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1474668974", + "_rev" : "1474344497", "name" : "Diana" } ] diff --git a/Documentation/Examples/generalGraphFluentAQLUnrestricted.generated b/Documentation/Examples/generalGraphFluentAQLUnrestricted.generated index fab594250e..77843930d6 100644 --- a/Documentation/Examples/generalGraphFluentAQLUnrestricted.generated +++ b/Documentation/Examples/generalGraphFluentAQLUnrestricted.generated @@ -6,25 +6,25 @@ arangosh> query.edges().vertices().toArray(); { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1477552558", + "_rev" : "1477228081", "name" : "Alice" }, { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1477880238", + "_rev" : "1477555761", "name" : "Bob" }, { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1477552558", + "_rev" : "1477228081", "name" : "Alice" }, { "_id" : "male/charly", "_key" : "charly", - "_rev" : "1478076846", + "_rev" : "1477752369", "name" : "Charly" } ] diff --git a/Documentation/Examples/generalGraphFluentAQLVerticesFilteredSingle.generated b/Documentation/Examples/generalGraphFluentAQLVerticesFilteredSingle.generated index d3a41b985c..f4fa7cac03 100644 --- a/Documentation/Examples/generalGraphFluentAQLVerticesFilteredSingle.generated +++ b/Documentation/Examples/generalGraphFluentAQLVerticesFilteredSingle.generated @@ -6,7 +6,7 @@ arangosh> query.vertices({name: "Alice"}).to { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1484761518", + "_rev" : "1484437041", "name" : "Alice" } ] diff --git a/Documentation/Examples/generalGraphFluentAQLVerticesUnfiltered.generated b/Documentation/Examples/generalGraphFluentAQLVerticesUnfiltered.generated index a69acd4f64..0bac7bfba3 100644 --- a/Documentation/Examples/generalGraphFluentAQLVerticesUnfiltered.generated +++ b/Documentation/Examples/generalGraphFluentAQLVerticesUnfiltered.generated @@ -6,25 +6,25 @@ arangosh> query.vertices().toArray(); { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1488365998", + "_rev" : "1488041521", "name" : "Alice" }, { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1488693678", + "_rev" : "1488369201", "name" : "Bob" }, { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1489086894", + "_rev" : "1488762417", "name" : "Diana" }, { "_id" : "male/charly", "_key" : "charly", - "_rev" : "1488890286", + "_rev" : "1488565809", "name" : "Charly" } ] diff --git a/Documentation/Examples/generalGraphGetFromVertex.generated b/Documentation/Examples/generalGraphGetFromVertex.generated index 126ec1bbb7..56081aeb84 100644 --- a/Documentation/Examples/generalGraphGetFromVertex.generated +++ b/Documentation/Examples/generalGraphGetFromVertex.generated @@ -4,6 +4,6 @@ arangosh> graph._fromVertex("relation/aliceAndBob"< { "name" : "Alice", "_id" : "female/alice", - "_rev" : "1491970478", + "_rev" : "1491646001", "_key" : "alice" } diff --git a/Documentation/Examples/generalGraphGetToVertex.generated b/Documentation/Examples/generalGraphGetToVertex.generated index 10e580b351..ce64a7bb8c 100644 --- a/Documentation/Examples/generalGraphGetToVertex.generated +++ b/Documentation/Examples/generalGraphGetToVertex.generated @@ -4,6 +4,6 @@ arangosh> graph._toVertex("relation/aliceAndBob""name" : "Bob", "_id" : "male/bob", - "_rev" : "1495968174", + "_rev" : "1495643697", "_key" : "bob" } diff --git a/Documentation/Examples/generalGraphModuleConnectingEdges1.generated b/Documentation/Examples/generalGraphModuleConnectingEdges1.generated index 22b219d877..17fa661f45 100644 --- a/Documentation/Examples/generalGraphModuleConnectingEdges1.generated +++ b/Documentation/Examples/generalGraphModuleConnectingEdges1.generated @@ -3,9 +3,9 @@ arangosh> var graph = examples.loadGraph(true}, {isCapital : true}); [ { - "_id" : "internationalHighway/1642768814", - "_key" : "1642768814", - "_rev" : "1642768814", + "_id" : "internationalHighway/1642903089", + "_key" : "1642903089", + "_rev" : "1642903089", "_from" : "germanCity/Berlin", "_to" : "frenchCity/Paris", "distance" : 1200 diff --git a/Documentation/Examples/generalGraphModuleNeighbors1.generated b/Documentation/Examples/generalGraphModuleNeighbors1.generated index acaae23bad..0cd8dd0861 100644 --- a/Documentation/Examples/generalGraphModuleNeighbors1.generated +++ b/Documentation/Examples/generalGraphModuleNeighbors1.generated @@ -2,21 +2,10 @@ arangosh> var examples = var graph = examples.loadGraph("routeplanner"); arangosh> graph._neighbors({isCapital : true}); [ - { - "_id" : "germanCity/Hamburg", - "_key" : "Hamburg", - "_rev" : "1691986350", - "isCapital" : false, - "population" : 1000000, - "loc" : [ - 53.5653, - 10.0014 - ] - }, { "_id" : "frenchCity/Paris", "_key" : "Paris", - "_rev" : "1692707246", + "_rev" : "1692841521", "isCapital" : true, "population" : 4000000, "loc" : [ @@ -24,10 +13,21 @@ arangosh> graph._neighbors({isCapital : true2.3508 ] }, + { + "_id" : "germanCity/Hamburg", + "_key" : "Hamburg", + "_rev" : "1692120625", + "isCapital" : false, + "population" : 1000000, + "loc" : [ + 53.5653, + 10.0014 + ] + }, { "_id" : "germanCity/Cologne", "_key" : "Cologne", - "_rev" : "1691789742", + "_rev" : "1691924017", "isCapital" : false, "population" : 1000000, "loc" : [ @@ -38,7 +38,18 @@ arangosh> graph._neighbors({isCapital : true"_id" : "frenchCity/Lyon", "_key" : "Lyon", - "_rev" : "1692510638", + "_rev" : "1692644913", + "isCapital" : false, + "population" : 80000, + "loc" : [ + 45.76, + 4.84 + ] + }, + { + "_id" : "frenchCity/Lyon", + "_key" : "Lyon", + "_rev" : "1692644913", "isCapital" : false, "population" : 80000, "loc" : [ @@ -49,7 +60,7 @@ arangosh> graph._neighbors({isCapital : true"_id" : "germanCity/Hamburg", "_key" : "Hamburg", - "_rev" : "1691986350", + "_rev" : "1692120625", "isCapital" : false, "population" : 1000000, "loc" : [ @@ -57,21 +68,10 @@ arangosh> graph._neighbors({isCapital : true10.0014 ] }, - { - "_id" : "frenchCity/Lyon", - "_key" : "Lyon", - "_rev" : "1692510638", - "isCapital" : false, - "population" : 80000, - "loc" : [ - 45.76, - 4.84 - ] - }, { "_id" : "germanCity/Cologne", "_key" : "Cologne", - "_rev" : "1691789742", + "_rev" : "1691924017", "isCapital" : false, "population" : 1000000, "loc" : [ @@ -82,7 +82,7 @@ arangosh> graph._neighbors({isCapital : true"_id" : "germanCity/Berlin", "_key" : "Berlin", - "_rev" : "1691593134", + "_rev" : "1691727409", "isCapital" : true, "population" : 3000000, "loc" : [ diff --git a/Documentation/Examples/generalGraphModuleNeighbors2.generated b/Documentation/Examples/generalGraphModuleNeighbors2.generated index 503e6b88a8..2b6be1e768 100644 --- a/Documentation/Examples/generalGraphModuleNeighbors2.generated +++ b/Documentation/Examples/generalGraphModuleNeighbors2.generated @@ -5,7 +5,7 @@ arangosh> graph._neighbors('germanCity/Hamburg'"_id" : "germanCity/Cologne", "_key" : "Cologne", - "_rev" : "1698277806", + "_rev" : "1698412081", "isCapital" : false, "population" : 1000000, "loc" : [ @@ -16,7 +16,7 @@ arangosh> graph._neighbors('germanCity/Hamburg'"_id" : "frenchCity/Lyon", "_key" : "Lyon", - "_rev" : "1698998702", + "_rev" : "1699132977", "isCapital" : false, "population" : 80000, "loc" : [ @@ -27,7 +27,7 @@ arangosh> graph._neighbors('germanCity/Hamburg'"_id" : "frenchCity/Paris", "_key" : "Paris", - "_rev" : "1699195310", + "_rev" : "1699329585", "isCapital" : true, "population" : 4000000, "loc" : [ diff --git a/Documentation/Examples/generalGraphModulePaths.generated b/Documentation/Examples/generalGraphModulePaths.generated index 62c1195b84..43520596a8 100644 --- a/Documentation/Examples/generalGraphModulePaths.generated +++ b/Documentation/Examples/generalGraphModulePaths.generated @@ -8,7 +8,7 @@ arangosh> g._paths(); { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1704831406", + "_rev" : "1704965681", "name" : "Diana" } ], @@ -16,13 +16,13 @@ arangosh> g._paths(); "source" : { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1704831406", + "_rev" : "1704965681", "name" : "Diana" }, "destination" : { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1704831406", + "_rev" : "1704965681", "name" : "Diana" } }, @@ -31,7 +31,7 @@ arangosh> g._paths(); { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1704110510", + "_rev" : "1704244785", "name" : "Alice" } ], @@ -39,13 +39,13 @@ arangosh> g._paths(); "source" : { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1704110510", + "_rev" : "1704244785", "name" : "Alice" }, "destination" : { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1704110510", + "_rev" : "1704244785", "name" : "Alice" } }, @@ -54,13 +54,13 @@ arangosh> g._paths(); { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1704110510", + "_rev" : "1704244785", "name" : "Alice" }, { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1704438190", + "_rev" : "1704572465", "name" : "Bob" } ], @@ -68,7 +68,7 @@ arangosh> g._paths(); { "_id" : "relation/aliceAndBob", "_key" : "aliceAndBob", - "_rev" : "1705159086", + "_rev" : "1705293361", "_from" : "female/alice", "_to" : "male/bob", "type" : "married" @@ -77,13 +77,13 @@ arangosh> g._paths(); "source" : { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1704110510", + "_rev" : "1704244785", "name" : "Alice" }, "destination" : { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1704438190", + "_rev" : "1704572465", "name" : "Bob" } }, @@ -92,19 +92,19 @@ arangosh> g._paths(); { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1704110510", + "_rev" : "1704244785", "name" : "Alice" }, { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1704438190", + "_rev" : "1704572465", "name" : "Bob" }, { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1704831406", + "_rev" : "1704965681", "name" : "Diana" } ], @@ -112,7 +112,7 @@ arangosh> g._paths(); { "_id" : "relation/aliceAndBob", "_key" : "aliceAndBob", - "_rev" : "1705159086", + "_rev" : "1705293361", "_from" : "female/alice", "_to" : "male/bob", "type" : "married" @@ -120,7 +120,7 @@ arangosh> g._paths(); { "_id" : "relation/bobAndDiana", "_key" : "bobAndDiana", - "_rev" : "1705814446", + "_rev" : "1705948721", "_from" : "male/bob", "_to" : "female/diana", "type" : "friend" @@ -129,13 +129,13 @@ arangosh> g._paths(); "source" : { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1704110510", + "_rev" : "1704244785", "name" : "Alice" }, "destination" : { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1704831406", + "_rev" : "1704965681", "name" : "Diana" } }, @@ -144,13 +144,13 @@ arangosh> g._paths(); { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1704110510", + "_rev" : "1704244785", "name" : "Alice" }, { "_id" : "male/charly", "_key" : "charly", - "_rev" : "1704634798", + "_rev" : "1704769073", "name" : "Charly" } ], @@ -158,7 +158,7 @@ arangosh> g._paths(); { "_id" : "relation/aliceAndCharly", "_key" : "aliceAndCharly", - "_rev" : "1705421230", + "_rev" : "1705555505", "_from" : "female/alice", "_to" : "male/charly", "type" : "friend" @@ -167,13 +167,13 @@ arangosh> g._paths(); "source" : { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1704110510", + "_rev" : "1704244785", "name" : "Alice" }, "destination" : { "_id" : "male/charly", "_key" : "charly", - "_rev" : "1704634798", + "_rev" : "1704769073", "name" : "Charly" } }, @@ -182,19 +182,19 @@ arangosh> g._paths(); { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1704110510", + "_rev" : "1704244785", "name" : "Alice" }, { "_id" : "male/charly", "_key" : "charly", - "_rev" : "1704634798", + "_rev" : "1704769073", "name" : "Charly" }, { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1704831406", + "_rev" : "1704965681", "name" : "Diana" } ], @@ -202,7 +202,7 @@ arangosh> g._paths(); { "_id" : "relation/aliceAndCharly", "_key" : "aliceAndCharly", - "_rev" : "1705421230", + "_rev" : "1705555505", "_from" : "female/alice", "_to" : "male/charly", "type" : "friend" @@ -210,7 +210,7 @@ arangosh> g._paths(); { "_id" : "relation/charlyAndDiana", "_key" : "charlyAndDiana", - "_rev" : "1705617838", + "_rev" : "1705752113", "_from" : "male/charly", "_to" : "female/diana", "type" : "married" @@ -219,13 +219,13 @@ arangosh> g._paths(); "source" : { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1704110510", + "_rev" : "1704244785", "name" : "Alice" }, "destination" : { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1704831406", + "_rev" : "1704965681", "name" : "Diana" } }, @@ -234,7 +234,7 @@ arangosh> g._paths(); { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1704438190", + "_rev" : "1704572465", "name" : "Bob" } ], @@ -242,13 +242,13 @@ arangosh> g._paths(); "source" : { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1704438190", + "_rev" : "1704572465", "name" : "Bob" }, "destination" : { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1704438190", + "_rev" : "1704572465", "name" : "Bob" } }, @@ -257,13 +257,13 @@ arangosh> g._paths(); { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1704438190", + "_rev" : "1704572465", "name" : "Bob" }, { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1704831406", + "_rev" : "1704965681", "name" : "Diana" } ], @@ -271,7 +271,7 @@ arangosh> g._paths(); { "_id" : "relation/bobAndDiana", "_key" : "bobAndDiana", - "_rev" : "1705814446", + "_rev" : "1705948721", "_from" : "male/bob", "_to" : "female/diana", "type" : "friend" @@ -280,13 +280,13 @@ arangosh> g._paths(); "source" : { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1704438190", + "_rev" : "1704572465", "name" : "Bob" }, "destination" : { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1704831406", + "_rev" : "1704965681", "name" : "Diana" } }, @@ -295,7 +295,7 @@ arangosh> g._paths(); { "_id" : "male/charly", "_key" : "charly", - "_rev" : "1704634798", + "_rev" : "1704769073", "name" : "Charly" } ], @@ -303,13 +303,13 @@ arangosh> g._paths(); "source" : { "_id" : "male/charly", "_key" : "charly", - "_rev" : "1704634798", + "_rev" : "1704769073", "name" : "Charly" }, "destination" : { "_id" : "male/charly", "_key" : "charly", - "_rev" : "1704634798", + "_rev" : "1704769073", "name" : "Charly" } }, @@ -318,13 +318,13 @@ arangosh> g._paths(); { "_id" : "male/charly", "_key" : "charly", - "_rev" : "1704634798", + "_rev" : "1704769073", "name" : "Charly" }, { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1704831406", + "_rev" : "1704965681", "name" : "Diana" } ], @@ -332,7 +332,7 @@ arangosh> g._paths(); { "_id" : "relation/charlyAndDiana", "_key" : "charlyAndDiana", - "_rev" : "1705617838", + "_rev" : "1705752113", "_from" : "male/charly", "_to" : "female/diana", "type" : "married" @@ -341,13 +341,13 @@ arangosh> g._paths(); "source" : { "_id" : "male/charly", "_key" : "charly", - "_rev" : "1704634798", + "_rev" : "1704769073", "name" : "Charly" }, "destination" : { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1704831406", + "_rev" : "1704965681", "name" : "Diana" } } diff --git a/Documentation/Examples/generalGraphModulePaths2.generated b/Documentation/Examples/generalGraphModulePaths2.generated index 5a48ed45b2..0d173681f4 100644 --- a/Documentation/Examples/generalGraphModulePaths2.generated +++ b/Documentation/Examples/generalGraphModulePaths2.generated @@ -8,13 +8,13 @@ arangosh> g._paths({direction : 'inbound', m { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1708435886", + "_rev" : "1708570161", "name" : "Diana" }, { "_id" : "male/charly", "_key" : "charly", - "_rev" : "1708239278", + "_rev" : "1708373553", "name" : "Charly" } ], @@ -22,7 +22,7 @@ arangosh> g._paths({direction : 'inbound', m { "_id" : "relation/charlyAndDiana", "_key" : "charlyAndDiana", - "_rev" : "1709222318", + "_rev" : "1709356593", "_from" : "male/charly", "_to" : "female/diana", "type" : "married" @@ -31,13 +31,13 @@ arangosh> g._paths({direction : 'inbound', m "source" : { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1708435886", + "_rev" : "1708570161", "name" : "Diana" }, "destination" : { "_id" : "male/charly", "_key" : "charly", - "_rev" : "1708239278", + "_rev" : "1708373553", "name" : "Charly" } }, @@ -46,19 +46,19 @@ arangosh> g._paths({direction : 'inbound', m { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1708435886", + "_rev" : "1708570161", "name" : "Diana" }, { "_id" : "male/charly", "_key" : "charly", - "_rev" : "1708239278", + "_rev" : "1708373553", "name" : "Charly" }, { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1707714990", + "_rev" : "1707849265", "name" : "Alice" } ], @@ -66,7 +66,7 @@ arangosh> g._paths({direction : 'inbound', m { "_id" : "relation/charlyAndDiana", "_key" : "charlyAndDiana", - "_rev" : "1709222318", + "_rev" : "1709356593", "_from" : "male/charly", "_to" : "female/diana", "type" : "married" @@ -74,7 +74,7 @@ arangosh> g._paths({direction : 'inbound', m { "_id" : "relation/aliceAndCharly", "_key" : "aliceAndCharly", - "_rev" : "1709025710", + "_rev" : "1709159985", "_from" : "female/alice", "_to" : "male/charly", "type" : "friend" @@ -83,13 +83,13 @@ arangosh> g._paths({direction : 'inbound', m "source" : { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1708435886", + "_rev" : "1708570161", "name" : "Diana" }, "destination" : { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1707714990", + "_rev" : "1707849265", "name" : "Alice" } }, @@ -98,13 +98,13 @@ arangosh> g._paths({direction : 'inbound', m { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1708435886", + "_rev" : "1708570161", "name" : "Diana" }, { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1708042670", + "_rev" : "1708176945", "name" : "Bob" } ], @@ -112,7 +112,7 @@ arangosh> g._paths({direction : 'inbound', m { "_id" : "relation/bobAndDiana", "_key" : "bobAndDiana", - "_rev" : "1709418926", + "_rev" : "1709553201", "_from" : "male/bob", "_to" : "female/diana", "type" : "friend" @@ -121,13 +121,13 @@ arangosh> g._paths({direction : 'inbound', m "source" : { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1708435886", + "_rev" : "1708570161", "name" : "Diana" }, "destination" : { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1708042670", + "_rev" : "1708176945", "name" : "Bob" } }, @@ -136,19 +136,19 @@ arangosh> g._paths({direction : 'inbound', m { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1708435886", + "_rev" : "1708570161", "name" : "Diana" }, { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1708042670", + "_rev" : "1708176945", "name" : "Bob" }, { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1707714990", + "_rev" : "1707849265", "name" : "Alice" } ], @@ -156,7 +156,7 @@ arangosh> g._paths({direction : 'inbound', m { "_id" : "relation/bobAndDiana", "_key" : "bobAndDiana", - "_rev" : "1709418926", + "_rev" : "1709553201", "_from" : "male/bob", "_to" : "female/diana", "type" : "friend" @@ -164,7 +164,7 @@ arangosh> g._paths({direction : 'inbound', m { "_id" : "relation/aliceAndBob", "_key" : "aliceAndBob", - "_rev" : "1708763566", + "_rev" : "1708897841", "_from" : "female/alice", "_to" : "male/bob", "type" : "married" @@ -173,13 +173,13 @@ arangosh> g._paths({direction : 'inbound', m "source" : { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1708435886", + "_rev" : "1708570161", "name" : "Diana" }, "destination" : { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1707714990", + "_rev" : "1707849265", "name" : "Alice" } }, @@ -188,13 +188,13 @@ arangosh> g._paths({direction : 'inbound', m { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1708042670", + "_rev" : "1708176945", "name" : "Bob" }, { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1707714990", + "_rev" : "1707849265", "name" : "Alice" } ], @@ -202,7 +202,7 @@ arangosh> g._paths({direction : 'inbound', m { "_id" : "relation/aliceAndBob", "_key" : "aliceAndBob", - "_rev" : "1708763566", + "_rev" : "1708897841", "_from" : "female/alice", "_to" : "male/bob", "type" : "married" @@ -211,13 +211,13 @@ arangosh> g._paths({direction : 'inbound', m "source" : { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1708042670", + "_rev" : "1708176945", "name" : "Bob" }, "destination" : { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1707714990", + "_rev" : "1707849265", "name" : "Alice" } }, @@ -226,13 +226,13 @@ arangosh> g._paths({direction : 'inbound', m { "_id" : "male/charly", "_key" : "charly", - "_rev" : "1708239278", + "_rev" : "1708373553", "name" : "Charly" }, { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1707714990", + "_rev" : "1707849265", "name" : "Alice" } ], @@ -240,7 +240,7 @@ arangosh> g._paths({direction : 'inbound', m { "_id" : "relation/aliceAndCharly", "_key" : "aliceAndCharly", - "_rev" : "1709025710", + "_rev" : "1709159985", "_from" : "female/alice", "_to" : "male/charly", "type" : "friend" @@ -249,13 +249,13 @@ arangosh> g._paths({direction : 'inbound', m "source" : { "_id" : "male/charly", "_key" : "charly", - "_rev" : "1708239278", + "_rev" : "1708373553", "name" : "Charly" }, "destination" : { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1707714990", + "_rev" : "1707849265", "name" : "Alice" } } diff --git a/Documentation/Examples/generalGraphModuleShortestPaths1.generated b/Documentation/Examples/generalGraphModuleShortestPaths1.generated index aa247c02b2..b4bf1b6248 100644 --- a/Documentation/Examples/generalGraphModuleShortestPaths1.generated +++ b/Documentation/Examples/generalGraphModuleShortestPaths1.generated @@ -10,7 +10,7 @@ arangosh> g._shortestPath({}, {}, {weight : 'distan "frenchCity/Paris" ], "edges" : [ - "internationalHighway/1747298734" + "internationalHighway/1747433009" ], "distance" : 1 }, @@ -20,7 +20,7 @@ arangosh> g._shortestPath({}, {}, {weight : 'distan "frenchCity/Lyon" ], "edges" : [ - "internationalHighway/1747102126" + "internationalHighway/1747236401" ], "distance" : 1 }, @@ -30,7 +30,7 @@ arangosh> g._shortestPath({}, {}, {weight : 'distan "frenchCity/Paris" ], "edges" : [ - "internationalHighway/1748085166" + "internationalHighway/1748219441" ], "distance" : 1 }, @@ -40,7 +40,7 @@ arangosh> g._shortestPath({}, {}, {weight : 'distan "frenchCity/Lyon" ], "edges" : [ - "internationalHighway/1747888558" + "internationalHighway/1748022833" ], "distance" : 1 }, @@ -50,7 +50,7 @@ arangosh> g._shortestPath({}, {}, {weight : 'distan "frenchCity/Paris" ], "edges" : [ - "internationalHighway/1747495342" + "internationalHighway/1747629617" ], "distance" : 1 }, @@ -60,7 +60,7 @@ arangosh> g._shortestPath({}, {}, {weight : 'distan "frenchCity/Lyon" ], "edges" : [ - "internationalHighway/1747691950" + "internationalHighway/1747826225" ], "distance" : 1 } diff --git a/Documentation/Examples/generalGraphModuleShortestPaths2.generated b/Documentation/Examples/generalGraphModuleShortestPaths2.generated index e22c48d6bf..4166d693f0 100644 --- a/Documentation/Examples/generalGraphModuleShortestPaths2.generated +++ b/Documentation/Examples/generalGraphModuleShortestPaths2.generated @@ -10,7 +10,7 @@ arangosh> g._shortestPath([{_id: 'germanCity/Cologn "frenchCity/Lyon" ], "edges" : [ - "internationalHighway/1754376622" + "internationalHighway/1754510897" ], "distance" : 1 } diff --git a/Documentation/Examples/generalGraphNeighbors2.generated b/Documentation/Examples/generalGraphNeighbors2.generated index 924961b913..00ab55c3a2 100644 --- a/Documentation/Examples/generalGraphNeighbors2.generated +++ b/Documentation/Examples/generalGraphNeighbors2.generated @@ -4,7 +4,7 @@ arangosh> db._query("FOR e IN GRAPH_NEIGHBORS(""'routeplanner', 'germanCity/Hamburg', {direction : 'outbound', maxDepth : 2}) RETURN e" ........> ).toArray(); [ - "frenchCity/Lyon", "germanCity/Cologne", + "frenchCity/Lyon", "frenchCity/Paris" ] diff --git a/Documentation/Examples/generalGraphPaths.generated b/Documentation/Examples/generalGraphPaths.generated index 2b3247440b..674e50a72c 100644 --- a/Documentation/Examples/generalGraphPaths.generated +++ b/Documentation/Examples/generalGraphPaths.generated @@ -8,7 +8,7 @@ arangosh> db._query("RETURN GRAPH_PATHS('social')"< { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1770432942", + "_rev" : "1770567217", "name" : "Diana" } ], @@ -16,13 +16,13 @@ arangosh> db._query("RETURN GRAPH_PATHS('social')"< "source" : { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1770432942", + "_rev" : "1770567217", "name" : "Diana" }, "destination" : { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1770432942", + "_rev" : "1770567217", "name" : "Diana" } }, @@ -31,7 +31,7 @@ arangosh> db._query("RETURN GRAPH_PATHS('social')"< { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1769712046", + "_rev" : "1769846321", "name" : "Alice" } ], @@ -39,13 +39,13 @@ arangosh> db._query("RETURN GRAPH_PATHS('social')"< "source" : { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1769712046", + "_rev" : "1769846321", "name" : "Alice" }, "destination" : { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1769712046", + "_rev" : "1769846321", "name" : "Alice" } }, @@ -54,13 +54,13 @@ arangosh> db._query("RETURN GRAPH_PATHS('social')"< { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1769712046", + "_rev" : "1769846321", "name" : "Alice" }, { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1770039726", + "_rev" : "1770174001", "name" : "Bob" } ], @@ -68,7 +68,7 @@ arangosh> db._query("RETURN GRAPH_PATHS('social')"< { "_id" : "relation/aliceAndBob", "_key" : "aliceAndBob", - "_rev" : "1770760622", + "_rev" : "1770894897", "_from" : "female/alice", "_to" : "male/bob", "type" : "married" @@ -77,13 +77,13 @@ arangosh> db._query("RETURN GRAPH_PATHS('social')"< "source" : { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1769712046", + "_rev" : "1769846321", "name" : "Alice" }, "destination" : { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1770039726", + "_rev" : "1770174001", "name" : "Bob" } }, @@ -92,19 +92,19 @@ arangosh> db._query("RETURN GRAPH_PATHS('social')"< { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1769712046", + "_rev" : "1769846321", "name" : "Alice" }, { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1770039726", + "_rev" : "1770174001", "name" : "Bob" }, { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1770432942", + "_rev" : "1770567217", "name" : "Diana" } ], @@ -112,7 +112,7 @@ arangosh> db._query("RETURN GRAPH_PATHS('social')"< { "_id" : "relation/aliceAndBob", "_key" : "aliceAndBob", - "_rev" : "1770760622", + "_rev" : "1770894897", "_from" : "female/alice", "_to" : "male/bob", "type" : "married" @@ -120,7 +120,7 @@ arangosh> db._query("RETURN GRAPH_PATHS('social')"< { "_id" : "relation/bobAndDiana", "_key" : "bobAndDiana", - "_rev" : "1771415982", + "_rev" : "1771550257", "_from" : "male/bob", "_to" : "female/diana", "type" : "friend" @@ -129,13 +129,13 @@ arangosh> db._query("RETURN GRAPH_PATHS('social')"< "source" : { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1769712046", + "_rev" : "1769846321", "name" : "Alice" }, "destination" : { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1770432942", + "_rev" : "1770567217", "name" : "Diana" } }, @@ -144,13 +144,13 @@ arangosh> db._query("RETURN GRAPH_PATHS('social')"< { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1769712046", + "_rev" : "1769846321", "name" : "Alice" }, { "_id" : "male/charly", "_key" : "charly", - "_rev" : "1770236334", + "_rev" : "1770370609", "name" : "Charly" } ], @@ -158,7 +158,7 @@ arangosh> db._query("RETURN GRAPH_PATHS('social')"< { "_id" : "relation/aliceAndCharly", "_key" : "aliceAndCharly", - "_rev" : "1771022766", + "_rev" : "1771157041", "_from" : "female/alice", "_to" : "male/charly", "type" : "friend" @@ -167,13 +167,13 @@ arangosh> db._query("RETURN GRAPH_PATHS('social')"< "source" : { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1769712046", + "_rev" : "1769846321", "name" : "Alice" }, "destination" : { "_id" : "male/charly", "_key" : "charly", - "_rev" : "1770236334", + "_rev" : "1770370609", "name" : "Charly" } }, @@ -182,19 +182,19 @@ arangosh> db._query("RETURN GRAPH_PATHS('social')"< { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1769712046", + "_rev" : "1769846321", "name" : "Alice" }, { "_id" : "male/charly", "_key" : "charly", - "_rev" : "1770236334", + "_rev" : "1770370609", "name" : "Charly" }, { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1770432942", + "_rev" : "1770567217", "name" : "Diana" } ], @@ -202,7 +202,7 @@ arangosh> db._query("RETURN GRAPH_PATHS('social')"< { "_id" : "relation/aliceAndCharly", "_key" : "aliceAndCharly", - "_rev" : "1771022766", + "_rev" : "1771157041", "_from" : "female/alice", "_to" : "male/charly", "type" : "friend" @@ -210,7 +210,7 @@ arangosh> db._query("RETURN GRAPH_PATHS('social')"< { "_id" : "relation/charlyAndDiana", "_key" : "charlyAndDiana", - "_rev" : "1771219374", + "_rev" : "1771353649", "_from" : "male/charly", "_to" : "female/diana", "type" : "married" @@ -219,13 +219,13 @@ arangosh> db._query("RETURN GRAPH_PATHS('social')"< "source" : { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1769712046", + "_rev" : "1769846321", "name" : "Alice" }, "destination" : { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1770432942", + "_rev" : "1770567217", "name" : "Diana" } }, @@ -234,7 +234,7 @@ arangosh> db._query("RETURN GRAPH_PATHS('social')"< { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1770039726", + "_rev" : "1770174001", "name" : "Bob" } ], @@ -242,13 +242,13 @@ arangosh> db._query("RETURN GRAPH_PATHS('social')"< "source" : { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1770039726", + "_rev" : "1770174001", "name" : "Bob" }, "destination" : { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1770039726", + "_rev" : "1770174001", "name" : "Bob" } }, @@ -257,13 +257,13 @@ arangosh> db._query("RETURN GRAPH_PATHS('social')"< { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1770039726", + "_rev" : "1770174001", "name" : "Bob" }, { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1770432942", + "_rev" : "1770567217", "name" : "Diana" } ], @@ -271,7 +271,7 @@ arangosh> db._query("RETURN GRAPH_PATHS('social')"< { "_id" : "relation/bobAndDiana", "_key" : "bobAndDiana", - "_rev" : "1771415982", + "_rev" : "1771550257", "_from" : "male/bob", "_to" : "female/diana", "type" : "friend" @@ -280,13 +280,13 @@ arangosh> db._query("RETURN GRAPH_PATHS('social')"< "source" : { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1770039726", + "_rev" : "1770174001", "name" : "Bob" }, "destination" : { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1770432942", + "_rev" : "1770567217", "name" : "Diana" } }, @@ -295,7 +295,7 @@ arangosh> db._query("RETURN GRAPH_PATHS('social')"< { "_id" : "male/charly", "_key" : "charly", - "_rev" : "1770236334", + "_rev" : "1770370609", "name" : "Charly" } ], @@ -303,13 +303,13 @@ arangosh> db._query("RETURN GRAPH_PATHS('social')"< "source" : { "_id" : "male/charly", "_key" : "charly", - "_rev" : "1770236334", + "_rev" : "1770370609", "name" : "Charly" }, "destination" : { "_id" : "male/charly", "_key" : "charly", - "_rev" : "1770236334", + "_rev" : "1770370609", "name" : "Charly" } }, @@ -318,13 +318,13 @@ arangosh> db._query("RETURN GRAPH_PATHS('social')"< { "_id" : "male/charly", "_key" : "charly", - "_rev" : "1770236334", + "_rev" : "1770370609", "name" : "Charly" }, { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1770432942", + "_rev" : "1770567217", "name" : "Diana" } ], @@ -332,7 +332,7 @@ arangosh> db._query("RETURN GRAPH_PATHS('social')"< { "_id" : "relation/charlyAndDiana", "_key" : "charlyAndDiana", - "_rev" : "1771219374", + "_rev" : "1771353649", "_from" : "male/charly", "_to" : "female/diana", "type" : "married" @@ -341,13 +341,13 @@ arangosh> db._query("RETURN GRAPH_PATHS('social')"< "source" : { "_id" : "male/charly", "_key" : "charly", - "_rev" : "1770236334", + "_rev" : "1770370609", "name" : "Charly" }, "destination" : { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1770432942", + "_rev" : "1770567217", "name" : "Diana" } } diff --git a/Documentation/Examples/generalGraphPaths2.generated b/Documentation/Examples/generalGraphPaths2.generated index 9572d415be..2032ee6eff 100644 --- a/Documentation/Examples/generalGraphPaths2.generated +++ b/Documentation/Examples/generalGraphPaths2.generated @@ -10,13 +10,13 @@ arangosh> db._query( { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1774037422", + "_rev" : "1774171697", "name" : "Diana" }, { "_id" : "male/charly", "_key" : "charly", - "_rev" : "1773840814", + "_rev" : "1773975089", "name" : "Charly" } ], @@ -24,7 +24,7 @@ arangosh> db._query( { "_id" : "relation/charlyAndDiana", "_key" : "charlyAndDiana", - "_rev" : "1774823854", + "_rev" : "1774958129", "_from" : "male/charly", "_to" : "female/diana", "type" : "married" @@ -33,13 +33,13 @@ arangosh> db._query( "source" : { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1774037422", + "_rev" : "1774171697", "name" : "Diana" }, "destination" : { "_id" : "male/charly", "_key" : "charly", - "_rev" : "1773840814", + "_rev" : "1773975089", "name" : "Charly" } }, @@ -48,19 +48,19 @@ arangosh> db._query( { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1774037422", + "_rev" : "1774171697", "name" : "Diana" }, { "_id" : "male/charly", "_key" : "charly", - "_rev" : "1773840814", + "_rev" : "1773975089", "name" : "Charly" }, { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1773316526", + "_rev" : "1773450801", "name" : "Alice" } ], @@ -68,7 +68,7 @@ arangosh> db._query( { "_id" : "relation/charlyAndDiana", "_key" : "charlyAndDiana", - "_rev" : "1774823854", + "_rev" : "1774958129", "_from" : "male/charly", "_to" : "female/diana", "type" : "married" @@ -76,7 +76,7 @@ arangosh> db._query( { "_id" : "relation/aliceAndCharly", "_key" : "aliceAndCharly", - "_rev" : "1774627246", + "_rev" : "1774761521", "_from" : "female/alice", "_to" : "male/charly", "type" : "friend" @@ -85,13 +85,13 @@ arangosh> db._query( "source" : { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1774037422", + "_rev" : "1774171697", "name" : "Diana" }, "destination" : { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1773316526", + "_rev" : "1773450801", "name" : "Alice" } }, @@ -100,13 +100,13 @@ arangosh> db._query( { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1774037422", + "_rev" : "1774171697", "name" : "Diana" }, { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1773644206", + "_rev" : "1773778481", "name" : "Bob" } ], @@ -114,7 +114,7 @@ arangosh> db._query( { "_id" : "relation/bobAndDiana", "_key" : "bobAndDiana", - "_rev" : "1775020462", + "_rev" : "1775154737", "_from" : "male/bob", "_to" : "female/diana", "type" : "friend" @@ -123,13 +123,13 @@ arangosh> db._query( "source" : { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1774037422", + "_rev" : "1774171697", "name" : "Diana" }, "destination" : { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1773644206", + "_rev" : "1773778481", "name" : "Bob" } }, @@ -138,19 +138,19 @@ arangosh> db._query( { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1774037422", + "_rev" : "1774171697", "name" : "Diana" }, { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1773644206", + "_rev" : "1773778481", "name" : "Bob" }, { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1773316526", + "_rev" : "1773450801", "name" : "Alice" } ], @@ -158,7 +158,7 @@ arangosh> db._query( { "_id" : "relation/bobAndDiana", "_key" : "bobAndDiana", - "_rev" : "1775020462", + "_rev" : "1775154737", "_from" : "male/bob", "_to" : "female/diana", "type" : "friend" @@ -166,7 +166,7 @@ arangosh> db._query( { "_id" : "relation/aliceAndBob", "_key" : "aliceAndBob", - "_rev" : "1774365102", + "_rev" : "1774499377", "_from" : "female/alice", "_to" : "male/bob", "type" : "married" @@ -175,13 +175,13 @@ arangosh> db._query( "source" : { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1774037422", + "_rev" : "1774171697", "name" : "Diana" }, "destination" : { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1773316526", + "_rev" : "1773450801", "name" : "Alice" } }, @@ -190,13 +190,13 @@ arangosh> db._query( { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1773644206", + "_rev" : "1773778481", "name" : "Bob" }, { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1773316526", + "_rev" : "1773450801", "name" : "Alice" } ], @@ -204,7 +204,7 @@ arangosh> db._query( { "_id" : "relation/aliceAndBob", "_key" : "aliceAndBob", - "_rev" : "1774365102", + "_rev" : "1774499377", "_from" : "female/alice", "_to" : "male/bob", "type" : "married" @@ -213,13 +213,13 @@ arangosh> db._query( "source" : { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1773644206", + "_rev" : "1773778481", "name" : "Bob" }, "destination" : { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1773316526", + "_rev" : "1773450801", "name" : "Alice" } }, @@ -228,13 +228,13 @@ arangosh> db._query( { "_id" : "male/charly", "_key" : "charly", - "_rev" : "1773840814", + "_rev" : "1773975089", "name" : "Charly" }, { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1773316526", + "_rev" : "1773450801", "name" : "Alice" } ], @@ -242,7 +242,7 @@ arangosh> db._query( { "_id" : "relation/aliceAndCharly", "_key" : "aliceAndCharly", - "_rev" : "1774627246", + "_rev" : "1774761521", "_from" : "female/alice", "_to" : "male/charly", "type" : "friend" @@ -251,13 +251,13 @@ arangosh> db._query( "source" : { "_id" : "male/charly", "_key" : "charly", - "_rev" : "1773840814", + "_rev" : "1773975089", "name" : "Charly" }, "destination" : { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1773316526", + "_rev" : "1773450801", "name" : "Alice" } } diff --git a/Documentation/Examples/generalGraphTraversal1.generated b/Documentation/Examples/generalGraphTraversal1.generated index 3bc82ad089..888f60255d 100644 --- a/Documentation/Examples/generalGraphTraversal1.generated +++ b/Documentation/Examples/generalGraphTraversal1.generated @@ -9,7 +9,7 @@ arangosh> db._query("FOR e IN GRAPH_TRAVERSAL('rout "vertex" : { "_id" : "germanCity/Hamburg", "_key" : "Hamburg", - "_rev" : "1823189422", + "_rev" : "1823323697", "isCapital" : false, "population" : 1000000, "loc" : [ @@ -22,7 +22,7 @@ arangosh> db._query("FOR e IN GRAPH_TRAVERSAL('rout "vertex" : { "_id" : "germanCity/Cologne", "_key" : "Cologne", - "_rev" : "1822992814", + "_rev" : "1823127089", "isCapital" : false, "population" : 1000000, "loc" : [ @@ -35,7 +35,7 @@ arangosh> db._query("FOR e IN GRAPH_TRAVERSAL('rout "vertex" : { "_id" : "frenchCity/Lyon", "_key" : "Lyon", - "_rev" : "1823713710", + "_rev" : "1823847985", "isCapital" : false, "population" : 80000, "loc" : [ @@ -48,7 +48,7 @@ arangosh> db._query("FOR e IN GRAPH_TRAVERSAL('rout "vertex" : { "_id" : "frenchCity/Paris", "_key" : "Paris", - "_rev" : "1823910318", + "_rev" : "1824044593", "isCapital" : true, "population" : 4000000, "loc" : [ @@ -61,7 +61,7 @@ arangosh> db._query("FOR e IN GRAPH_TRAVERSAL('rout "vertex" : { "_id" : "frenchCity/Lyon", "_key" : "Lyon", - "_rev" : "1823713710", + "_rev" : "1823847985", "isCapital" : false, "population" : 80000, "loc" : [ @@ -74,7 +74,7 @@ arangosh> db._query("FOR e IN GRAPH_TRAVERSAL('rout "vertex" : { "_id" : "frenchCity/Paris", "_key" : "Paris", - "_rev" : "1823910318", + "_rev" : "1824044593", "isCapital" : true, "population" : 4000000, "loc" : [ @@ -87,7 +87,7 @@ arangosh> db._query("FOR e IN GRAPH_TRAVERSAL('rout "vertex" : { "_id" : "frenchCity/Lyon", "_key" : "Lyon", - "_rev" : "1823713710", + "_rev" : "1823847985", "isCapital" : false, "population" : 80000, "loc" : [ @@ -100,7 +100,7 @@ arangosh> db._query("FOR e IN GRAPH_TRAVERSAL('rout "vertex" : { "_id" : "frenchCity/Lyon", "_key" : "Lyon", - "_rev" : "1823713710", + "_rev" : "1823847985", "isCapital" : false, "population" : 80000, "loc" : [ diff --git a/Documentation/Examples/generalGraphTraversal2.generated b/Documentation/Examples/generalGraphTraversal2.generated index 72c089378a..64f86a732b 100644 --- a/Documentation/Examples/generalGraphTraversal2.generated +++ b/Documentation/Examples/generalGraphTraversal2.generated @@ -9,7 +9,7 @@ arangosh> db._query("FOR e IN GRAPH_TRAVERSAL('rout "vertex" : { "_id" : "germanCity/Hamburg", "_key" : "Hamburg", - "_rev" : "1829677486", + "_rev" : "1829811761", "isCapital" : false, "population" : 1000000, "loc" : [ @@ -22,7 +22,7 @@ arangosh> db._query("FOR e IN GRAPH_TRAVERSAL('rout "vertex" : { "_id" : "germanCity/Cologne", "_key" : "Cologne", - "_rev" : "1829480878", + "_rev" : "1829615153", "isCapital" : false, "population" : 1000000, "loc" : [ @@ -35,7 +35,7 @@ arangosh> db._query("FOR e IN GRAPH_TRAVERSAL('rout "vertex" : { "_id" : "frenchCity/Paris", "_key" : "Paris", - "_rev" : "1830398382", + "_rev" : "1830532657", "isCapital" : true, "population" : 4000000, "loc" : [ @@ -48,7 +48,7 @@ arangosh> db._query("FOR e IN GRAPH_TRAVERSAL('rout "vertex" : { "_id" : "frenchCity/Lyon", "_key" : "Lyon", - "_rev" : "1830201774", + "_rev" : "1830336049", "isCapital" : false, "population" : 80000, "loc" : [ diff --git a/Documentation/Examples/generalGraphTraversalTree1.generated b/Documentation/Examples/generalGraphTraversalTree1.generated index 6d98574310..427266fcf1 100644 --- a/Documentation/Examples/generalGraphTraversalTree1.generated +++ b/Documentation/Examples/generalGraphTraversalTree1.generated @@ -9,7 +9,7 @@ arangosh> db._query("FOR e IN GRAPH_TRAVERSAL_TREE( { "_id" : "germanCity/Hamburg", "_key" : "Hamburg", - "_rev" : "1836165550", + "_rev" : "1836299825", "isCapital" : false, "population" : 1000000, "loc" : [ @@ -20,7 +20,7 @@ arangosh> db._query("FOR e IN GRAPH_TRAVERSAL_TREE( { "_id" : "germanCity/Cologne", "_key" : "Cologne", - "_rev" : "1835968942", + "_rev" : "1836103217", "isCapital" : false, "population" : 1000000, "loc" : [ @@ -31,7 +31,7 @@ arangosh> db._query("FOR e IN GRAPH_TRAVERSAL_TREE( { "_id" : "frenchCity/Lyon", "_key" : "Lyon", - "_rev" : "1836689838", + "_rev" : "1836824113", "isCapital" : false, "population" : 80000, "loc" : [ @@ -42,7 +42,7 @@ arangosh> db._query("FOR e IN GRAPH_TRAVERSAL_TREE( { "_id" : "frenchCity/Paris", "_key" : "Paris", - "_rev" : "1836886446", + "_rev" : "1837020721", "isCapital" : true, "population" : 4000000, "loc" : [ @@ -53,7 +53,7 @@ arangosh> db._query("FOR e IN GRAPH_TRAVERSAL_TREE( { "_id" : "frenchCity/Lyon", "_key" : "Lyon", - "_rev" : "1836689838", + "_rev" : "1836824113", "isCapital" : false, "population" : 80000, "loc" : [ @@ -68,7 +68,7 @@ arangosh> db._query("FOR e IN GRAPH_TRAVERSAL_TREE( { "_id" : "frenchCity/Paris", "_key" : "Paris", - "_rev" : "1836886446", + "_rev" : "1837020721", "isCapital" : true, "population" : 4000000, "loc" : [ @@ -79,7 +79,7 @@ arangosh> db._query("FOR e IN GRAPH_TRAVERSAL_TREE( { "_id" : "frenchCity/Lyon", "_key" : "Lyon", - "_rev" : "1836689838", + "_rev" : "1836824113", "isCapital" : false, "population" : 80000, "loc" : [ @@ -92,7 +92,7 @@ arangosh> db._query("FOR e IN GRAPH_TRAVERSAL_TREE( { "_id" : "frenchCity/Lyon", "_key" : "Lyon", - "_rev" : "1836689838", + "_rev" : "1836824113", "isCapital" : false, "population" : 80000, "loc" : [ diff --git a/Documentation/Examples/generalGraphTraversalTree2.generated b/Documentation/Examples/generalGraphTraversalTree2.generated index cd5a02d0b6..66ad8cde8c 100644 --- a/Documentation/Examples/generalGraphTraversalTree2.generated +++ b/Documentation/Examples/generalGraphTraversalTree2.generated @@ -9,7 +9,7 @@ arangosh> db._query("FOR e IN GRAPH_TRAVERSAL_TREE( { "_id" : "germanCity/Hamburg", "_key" : "Hamburg", - "_rev" : "1842653614", + "_rev" : "1842787889", "isCapital" : false, "population" : 1000000, "loc" : [ @@ -20,7 +20,7 @@ arangosh> db._query("FOR e IN GRAPH_TRAVERSAL_TREE( { "_id" : "germanCity/Cologne", "_key" : "Cologne", - "_rev" : "1842457006", + "_rev" : "1842591281", "isCapital" : false, "population" : 1000000, "loc" : [ @@ -31,7 +31,7 @@ arangosh> db._query("FOR e IN GRAPH_TRAVERSAL_TREE( { "_id" : "frenchCity/Paris", "_key" : "Paris", - "_rev" : "1843374510", + "_rev" : "1843508785", "isCapital" : true, "population" : 4000000, "loc" : [ @@ -42,7 +42,7 @@ arangosh> db._query("FOR e IN GRAPH_TRAVERSAL_TREE( { "_id" : "frenchCity/Lyon", "_key" : "Lyon", - "_rev" : "1843177902", + "_rev" : "1843312177", "isCapital" : false, "population" : 80000, "loc" : [ diff --git a/Documentation/Examples/generalGraphVertexCollectionRemove.generated b/Documentation/Examples/generalGraphVertexCollectionRemove.generated index 3ccc342a23..7d48d1e530 100644 --- a/Documentation/Examples/generalGraphVertexCollectionRemove.generated +++ b/Documentation/Examples/generalGraphVertexCollectionRemove.generated @@ -3,7 +3,7 @@ arangosh> var graph = examples.loadGraph("Kermit", _key: "kermit"}); { "_id" : "male/kermit", - "_rev" : "1850190254", + "_rev" : "1850324529", "_key" : "kermit" } arangosh> db._exists("male/kermit") diff --git a/Documentation/Examples/generalGraphVertexCollectionReplace.generated b/Documentation/Examples/generalGraphVertexCollectionReplace.generated index a744a423f1..8470b6f628 100644 --- a/Documentation/Examples/generalGraphVertexCollectionReplace.generated +++ b/Documentation/Examples/generalGraphVertexCollectionReplace.generated @@ -3,12 +3,12 @@ arangosh> var graph = examples.loadGraph("Jon", _key: "john"}); { "_id" : "male/john", - "_rev" : "1854646702", + "_rev" : "1854780977", "_key" : "john" } arangosh> graph.male.replace("male/john", {name: "John"}); { "_id" : "male/john", - "_rev" : "1854843310", + "_rev" : "1854977585", "_key" : "john" } diff --git a/Documentation/Examples/generalGraphVertexCollectionSave.generated b/Documentation/Examples/generalGraphVertexCollectionSave.generated index a013804f9b..05480e5761 100644 --- a/Documentation/Examples/generalGraphVertexCollectionSave.generated +++ b/Documentation/Examples/generalGraphVertexCollectionSave.generated @@ -3,6 +3,6 @@ arangosh> var graph = examples.loadGraph("Floyd", _key: "floyd"}); { "_id" : "male/floyd", - "_rev" : "1858578862", + "_rev" : "1858713137", "_key" : "floyd" } diff --git a/Documentation/Examples/generalGraphVertexCollectionUpdate.generated b/Documentation/Examples/generalGraphVertexCollectionUpdate.generated index 0dac3bae90..5f3d01c837 100644 --- a/Documentation/Examples/generalGraphVertexCollectionUpdate.generated +++ b/Documentation/Examples/generalGraphVertexCollectionUpdate.generated @@ -3,12 +3,12 @@ arangosh> var graph = examples.loadGraph("Lynda", _key: "linda"}); { "_id" : "female/linda", - "_rev" : "1862314414", + "_rev" : "1862448689", "_key" : "linda" } arangosh> graph.female.update("female/linda", {name: "Linda", _key: "linda"}); { "_id" : "female/linda", - "_rev" : "1862511022", + "_rev" : "1862645297", "_key" : "linda" } diff --git a/Documentation/Examples/generalGraphVertices1.generated b/Documentation/Examples/generalGraphVertices1.generated index 7904549be1..fcb74b8737 100644 --- a/Documentation/Examples/generalGraphVertices1.generated +++ b/Documentation/Examples/generalGraphVertices1.generated @@ -6,7 +6,7 @@ arangosh> db._query("FOR e IN GRAPH_VERTICES(""_id" : "germanCity/Berlin", "_key" : "Berlin", - "_rev" : "1864804782", + "_rev" : "1864939057", "isCapital" : true, "population" : 3000000, "loc" : [ @@ -17,7 +17,7 @@ arangosh> db._query("FOR e IN GRAPH_VERTICES(""_id" : "germanCity/Cologne", "_key" : "Cologne", - "_rev" : "1865001390", + "_rev" : "1865135665", "isCapital" : false, "population" : 1000000, "loc" : [ @@ -28,7 +28,7 @@ arangosh> db._query("FOR e IN GRAPH_VERTICES(""_id" : "germanCity/Hamburg", "_key" : "Hamburg", - "_rev" : "1865197998", + "_rev" : "1865332273", "isCapital" : false, "population" : 1000000, "loc" : [ @@ -39,7 +39,7 @@ arangosh> db._query("FOR e IN GRAPH_VERTICES(""_id" : "frenchCity/Paris", "_key" : "Paris", - "_rev" : "1865918894", + "_rev" : "1866053169", "isCapital" : true, "population" : 4000000, "loc" : [ @@ -50,7 +50,7 @@ arangosh> db._query("FOR e IN GRAPH_VERTICES(""_id" : "frenchCity/Lyon", "_key" : "Lyon", - "_rev" : "1865722286", + "_rev" : "1865856561", "isCapital" : false, "population" : 80000, "loc" : [ diff --git a/Documentation/Examples/generalGraphVertices2.generated b/Documentation/Examples/generalGraphVertices2.generated index 026fa16475..e7880d9f6a 100644 --- a/Documentation/Examples/generalGraphVertices2.generated +++ b/Documentation/Examples/generalGraphVertices2.generated @@ -7,7 +7,7 @@ arangosh> db._query("FOR e IN GRAPH_VERTICES(""_id" : "germanCity/Berlin", "_key" : "Berlin", - "_rev" : "1871292846", + "_rev" : "1871427121", "isCapital" : true, "population" : 3000000, "loc" : [ @@ -18,7 +18,7 @@ arangosh> db._query("FOR e IN GRAPH_VERTICES(""_id" : "germanCity/Cologne", "_key" : "Cologne", - "_rev" : "1871489454", + "_rev" : "1871623729", "isCapital" : false, "population" : 1000000, "loc" : [ @@ -29,7 +29,7 @@ arangosh> db._query("FOR e IN GRAPH_VERTICES(""_id" : "germanCity/Hamburg", "_key" : "Hamburg", - "_rev" : "1871686062", + "_rev" : "1871820337", "isCapital" : false, "population" : 1000000, "loc" : [ diff --git a/Documentation/Examples/generalGraphVerticesFiltered.generated b/Documentation/Examples/generalGraphVerticesFiltered.generated index bbdbedafa8..59c5b4c7eb 100644 --- a/Documentation/Examples/generalGraphVerticesFiltered.generated +++ b/Documentation/Examples/generalGraphVerticesFiltered.generated @@ -5,13 +5,13 @@ arangosh> graph._vertices([{name: "Alice"}, { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1877322158", + "_rev" : "1877456433", "name" : "Alice" }, { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1877649838", + "_rev" : "1877784113", "name" : "Bob" } ] diff --git a/Documentation/Examples/generalGraphVerticesUnfiltered.generated b/Documentation/Examples/generalGraphVerticesUnfiltered.generated index 69b00e256b..36502c5d8f 100644 --- a/Documentation/Examples/generalGraphVerticesUnfiltered.generated +++ b/Documentation/Examples/generalGraphVerticesUnfiltered.generated @@ -5,25 +5,25 @@ arangosh> graph._vertices().toArray(); { "_id" : "female/diana", "_key" : "diana", - "_rev" : "1881647534", + "_rev" : "1881781809", "name" : "Diana" }, { "_id" : "female/alice", "_key" : "alice", - "_rev" : "1880926638", + "_rev" : "1881060913", "name" : "Alice" }, { "_id" : "male/bob", "_key" : "bob", - "_rev" : "1881254318", + "_rev" : "1881388593", "name" : "Bob" }, { "_id" : "male/charly", "_key" : "charly", - "_rev" : "1881450926", + "_rev" : "1881585201", "name" : "Charly" } ] diff --git a/Documentation/Examples/general_graph__deleteEdgeDefinition.generated b/Documentation/Examples/general_graph__deleteEdgeDefinition.generated index 5821da7c1e..62806061ea 100644 --- a/Documentation/Examples/general_graph__deleteEdgeDefinition.generated +++ b/Documentation/Examples/general_graph__deleteEdgeDefinition.generated @@ -4,4 +4,4 @@ arangosh> var ed2 = graph_module._relation( arangosh> var graph = graph_module._create("myGraph", [ed1, ed2]); arangosh> graph._deleteEdgeDefinition("myEC1"); arangosh> db._collection("myEC1"); -[ArangoCollection 1886431662, "myEC1" (type edge, status loaded)] +[ArangoCollection 1886107185, "myEC1" (type edge, status loaded)] diff --git a/Documentation/Examples/geoIndexCreateForArrayAttribute.generated b/Documentation/Examples/geoIndexCreateForArrayAttribute.generated index 0d99790f6a..d4a5aa31f0 100644 --- a/Documentation/Examples/geoIndexCreateForArrayAttribute.generated +++ b/Documentation/Examples/geoIndexCreateForArrayAttribute.generated @@ -1,6 +1,6 @@ arangosh> db.geo.ensureIndex({ type: "geo", fields: [ "loc" ] }); { - "id" : "geo/1902619054", + "id" : "geo/1902294577", "type" : "geo1", "fields" : [ "loc" @@ -23,9 +23,9 @@ arangosh> db.geo.count(); arangosh> db.geo.near(0, 0).limit(3).toArray(); [ { - "_id" : "geo/1972021678", - "_key" : "1972021678", - "_rev" : "1972021678", + "_id" : "geo/1971697201", + "_key" : "1971697201", + "_rev" : "1971697201", "name" : "Name/0/0", "loc" : [ 0, @@ -33,9 +33,9 @@ arangosh> db.geo.near(0, "_id" : "geo/1972218286", - "_key" : "1972218286", - "_rev" : "1972218286", + "_id" : "geo/1971893809", + "_key" : "1971893809", + "_rev" : "1971893809", "name" : "Name/0/10", "loc" : [ 0, @@ -43,9 +43,9 @@ arangosh> db.geo.near(0, "_id" : "geo/1964747182", - "_key" : "1964747182", - "_rev" : "1964747182", + "_id" : "geo/1964422705", + "_key" : "1964422705", + "_rev" : "1964422705", "name" : "Name/-10/0", "loc" : [ -10, diff --git a/Documentation/Examples/geoIndexCreateForArrayAttribute2.generated b/Documentation/Examples/geoIndexCreateForArrayAttribute2.generated index 40a3dcadfd..3d6f694b5a 100644 --- a/Documentation/Examples/geoIndexCreateForArrayAttribute2.generated +++ b/Documentation/Examples/geoIndexCreateForArrayAttribute2.generated @@ -1,6 +1,6 @@ arangosh> db.geo2.ensureIndex({ type: "geo", fields: [ "location.latitude", "location.longitude" ] }); { - "id" : "geo2/2042210734", + "id" : "geo2/2041886257", "type" : "geo2", "fields" : [ "location.latitude", @@ -21,9 +21,9 @@ arangosh> for (i = -0, 0).limit(3).toArray(); [ { - "_id" : "geo2/2111613358", - "_key" : "2111613358", - "_rev" : "2111613358", + "_id" : "geo2/2111288881", + "_key" : "2111288881", + "_rev" : "2111288881", "location" : { "latitude" : 0, "longitude" : 0 @@ -31,9 +31,9 @@ arangosh> db.geo2.near(0, "name" : "Name/0/0" }, { - "_id" : "geo2/2111809966", - "_key" : "2111809966", - "_rev" : "2111809966", + "_id" : "geo2/2111485489", + "_key" : "2111485489", + "_rev" : "2111485489", "location" : { "latitude" : 0, "longitude" : 10 @@ -41,9 +41,9 @@ arangosh> db.geo2.near(0, "name" : "Name/0/10" }, { - "_id" : "geo2/2104338862", - "_key" : "2104338862", - "_rev" : "2104338862", + "_id" : "geo2/2104014385", + "_key" : "2104014385", + "_rev" : "2104014385", "location" : { "latitude" : -10, "longitude" : 0 diff --git a/Documentation/Examples/geoIndexSimpleQuery.generated b/Documentation/Examples/geoIndexSimpleQuery.generated index 15dcdf2b98..f74a4ad0c1 100644 --- a/Documentation/Examples/geoIndexSimpleQuery.generated +++ b/Documentation/Examples/geoIndexSimpleQuery.generated @@ -10,7 +10,7 @@ arangosh> db.complex.near(0, 1570: no suitable geo index found for geo restriction on 'complex'] arangosh> db.complex.ensureIndex({ type: "geo", fields: [ "home" ] }); { - "id" : "complex/2319886766", + "id" : "complex/2319562289", "type" : "geo1", "fields" : [ "home" @@ -26,9 +26,9 @@ arangosh> db.complex.ensureIndex({ type: "geo"0, 170).limit(5).toArray(); [ { - "_id" : "complex/2253957550", - "_key" : "2253957550", - "_rev" : "2253957550", + "_id" : "complex/2253633073", + "_key" : "2253633073", + "_rev" : "2253633073", "name" : "Name/0/170", "home" : [ 0, @@ -40,9 +40,9 @@ arangosh> db.complex.near(0, "_id" : "complex/2254154158", - "_key" : "2254154158", - "_rev" : "2254154158", + "_id" : "complex/2253829681", + "_key" : "2253829681", + "_rev" : "2253829681", "name" : "Name/0/180", "home" : [ 0, @@ -54,9 +54,9 @@ arangosh> db.complex.near(0, "_id" : "complex/2247076270", - "_key" : "2247076270", - "_rev" : "2247076270", + "_id" : "complex/2246751793", + "_key" : "2246751793", + "_rev" : "2246751793", "name" : "Name/0/-180", "home" : [ 0, @@ -68,9 +68,9 @@ arangosh> db.complex.near(0, "_id" : "complex/2261232046", - "_key" : "2261232046", - "_rev" : "2261232046", + "_id" : "complex/2260907569", + "_key" : "2260907569", + "_rev" : "2260907569", "name" : "Name/10/170", "home" : [ 10, @@ -82,9 +82,9 @@ arangosh> db.complex.near(0, "_id" : "complex/2246683054", - "_key" : "2246683054", - "_rev" : "2246683054", + "_id" : "complex/2246358577", + "_key" : "2246358577", + "_rev" : "2246358577", "name" : "Name/-10/170", "home" : [ -10, @@ -100,7 +100,7 @@ arangosh> db.complex.geo("work").near(1570: no suitable geo index found for geo restriction on 'complex'] arangosh> db.complex.ensureIndex({ type: "geo", fields: [ "work" ] }); { - "id" : "complex/2320411054", + "id" : "complex/2320086577", "type" : "geo1", "fields" : [ "work" @@ -116,9 +116,9 @@ arangosh> db.complex.ensureIndex({ type: "geo""work").near(0, 170).limit(5).toArray(); [ { - "_id" : "complex/2247272878", - "_key" : "2247272878", - "_rev" : "2247272878", + "_id" : "complex/2246948401", + "_key" : "2246948401", + "_rev" : "2246948401", "name" : "Name/0/-170", "home" : [ 0, @@ -130,9 +130,9 @@ arangosh> db.complex.geo("work").near("_id" : "complex/2247076270", - "_key" : "2247076270", - "_rev" : "2247076270", + "_id" : "complex/2246751793", + "_key" : "2246751793", + "_rev" : "2246751793", "name" : "Name/0/-180", "home" : [ 0, @@ -144,9 +144,9 @@ arangosh> db.complex.geo("work").near("_id" : "complex/2254154158", - "_key" : "2254154158", - "_rev" : "2254154158", + "_id" : "complex/2253829681", + "_key" : "2253829681", + "_rev" : "2253829681", "name" : "Name/0/180", "home" : [ 0, @@ -158,9 +158,9 @@ arangosh> db.complex.geo("work").near("_id" : "complex/2239998382", - "_key" : "2239998382", - "_rev" : "2239998382", + "_id" : "complex/2239673905", + "_key" : "2239673905", + "_rev" : "2239673905", "name" : "Name/-10/-170", "home" : [ -10, @@ -172,9 +172,9 @@ arangosh> db.complex.geo("work").near("_id" : "complex/2254547374", - "_key" : "2254547374", - "_rev" : "2254547374", + "_id" : "complex/2254222897", + "_key" : "2254222897", + "_rev" : "2254222897", "name" : "Name/10/-170", "home" : [ 10, diff --git a/Documentation/Examples/graph_create_cities_sample.generated b/Documentation/Examples/graph_create_cities_sample.generated index 29e9763b97..130fc2fa29 100644 --- a/Documentation/Examples/graph_create_cities_sample.generated +++ b/Documentation/Examples/graph_create_cities_sample.generated @@ -10,7 +10,7 @@ arangosh> db.frenchCity.toArray(); 2.3508 ], "_id" : "frenchCity/Paris", - "_rev" : "2323425710", + "_rev" : "2323101233", "_key" : "Paris" }, { @@ -21,7 +21,7 @@ arangosh> db.frenchCity.toArray(); 4.84 ], "_id" : "frenchCity/Lyon", - "_rev" : "2323229102", + "_rev" : "2322904625", "_key" : "Lyon" } ] @@ -35,7 +35,7 @@ arangosh> db.germanCity.toArray(); 13.3833 ], "_id" : "germanCity/Berlin", - "_rev" : "2322311598", + "_rev" : "2321987121", "_key" : "Berlin" }, { @@ -46,7 +46,7 @@ arangosh> db.germanCity.toArray(); 6.9528 ], "_id" : "germanCity/Cologne", - "_rev" : "2322508206", + "_rev" : "2322183729", "_key" : "Cologne" }, { @@ -57,33 +57,33 @@ arangosh> db.germanCity.toArray(); 10.0014 ], "_id" : "germanCity/Hamburg", - "_rev" : "2322704814", + "_rev" : "2322380337", "_key" : "Hamburg" } ] arangosh> db.germanHighway.toArray(); [ - { - "distance" : 500, - "_id" : "germanHighway/2324539822", - "_rev" : "2324539822", - "_key" : "2324539822", - "_from" : "germanCity/Hamburg", - "_to" : "germanCity/Cologne" - }, { "distance" : 400, - "_id" : "germanHighway/2324343214", - "_rev" : "2324343214", - "_key" : "2324343214", + "_id" : "germanHighway/2324018737", + "_rev" : "2324018737", + "_key" : "2324018737", "_from" : "germanCity/Berlin", "_to" : "germanCity/Hamburg" }, + { + "distance" : 500, + "_id" : "germanHighway/2324215345", + "_rev" : "2324215345", + "_key" : "2324215345", + "_from" : "germanCity/Hamburg", + "_to" : "germanCity/Cologne" + }, { "distance" : 850, - "_id" : "germanHighway/2324146606", - "_rev" : "2324146606", - "_key" : "2324146606", + "_id" : "germanHighway/2323822129", + "_rev" : "2323822129", + "_key" : "2323822129", "_from" : "germanCity/Berlin", "_to" : "germanCity/Cologne" } @@ -92,9 +92,9 @@ arangosh> db.frenchHighway.toArray(); [ { "distance" : 550, - "_id" : "frenchHighway/2324867502", - "_rev" : "2324867502", - "_key" : "2324867502", + "_id" : "frenchHighway/2324543025", + "_rev" : "2324543025", + "_key" : "2324543025", "_from" : "frenchCity/Paris", "_to" : "frenchCity/Lyon" } @@ -102,52 +102,52 @@ arangosh> db.frenchHighway.toArray(); arangosh> db.internationalHighway.toArray(); [ { - "distance" : 550, - "_id" : "internationalHighway/2326178222", - "_rev" : "2326178222", - "_key" : "2326178222", - "_from" : "germanCity/Cologne", - "_to" : "frenchCity/Paris" - }, - { - "distance" : 1300, - "_id" : "internationalHighway/2325785006", - "_rev" : "2325785006", - "_key" : "2325785006", - "_from" : "germanCity/Hamburg", + "distance" : 1100, + "_id" : "internationalHighway/2324870705", + "_rev" : "2324870705", + "_key" : "2324870705", + "_from" : "germanCity/Berlin", "_to" : "frenchCity/Lyon" }, { "distance" : 700, - "_id" : "internationalHighway/2325981614", - "_rev" : "2325981614", - "_key" : "2325981614", + "_id" : "internationalHighway/2325657137", + "_rev" : "2325657137", + "_key" : "2325657137", "_from" : "germanCity/Cologne", "_to" : "frenchCity/Lyon" }, { - "distance" : 1100, - "_id" : "internationalHighway/2325195182", - "_rev" : "2325195182", - "_key" : "2325195182", - "_from" : "germanCity/Berlin", - "_to" : "frenchCity/Lyon" - }, - { - "distance" : 1200, - "_id" : "internationalHighway/2325391790", - "_rev" : "2325391790", - "_key" : "2325391790", - "_from" : "germanCity/Berlin", + "distance" : 550, + "_id" : "internationalHighway/2325853745", + "_rev" : "2325853745", + "_key" : "2325853745", + "_from" : "germanCity/Cologne", "_to" : "frenchCity/Paris" }, { "distance" : 900, - "_id" : "internationalHighway/2325588398", - "_rev" : "2325588398", - "_key" : "2325588398", + "_id" : "internationalHighway/2325263921", + "_rev" : "2325263921", + "_key" : "2325263921", "_from" : "germanCity/Hamburg", "_to" : "frenchCity/Paris" + }, + { + "distance" : 1200, + "_id" : "internationalHighway/2325067313", + "_rev" : "2325067313", + "_key" : "2325067313", + "_from" : "germanCity/Berlin", + "_to" : "frenchCity/Paris" + }, + { + "distance" : 1300, + "_id" : "internationalHighway/2325460529", + "_rev" : "2325460529", + "_key" : "2325460529", + "_from" : "germanCity/Hamburg", + "_to" : "frenchCity/Lyon" } ] arangosh> examples.dropGraph("routeplanner"); diff --git a/Documentation/Examples/graph_create_knows_sample.generated b/Documentation/Examples/graph_create_knows_sample.generated index b97ba65003..b68a19d1f7 100644 --- a/Documentation/Examples/graph_create_knows_sample.generated +++ b/Documentation/Examples/graph_create_knows_sample.generated @@ -5,70 +5,70 @@ arangosh> db.persons.toArray() { "name" : "Charlie", "_id" : "persons/charlie", - "_rev" : "2328930734", + "_rev" : "2328606257", "_key" : "charlie" }, { "name" : "Bob", "_id" : "persons/bob", - "_rev" : "2328668590", + "_rev" : "2328344113", "_key" : "bob" }, { "name" : "Eve", "_id" : "persons/eve", - "_rev" : "2329323950", + "_rev" : "2328999473", "_key" : "eve" }, { "name" : "Dave", "_id" : "persons/dave", - "_rev" : "2329127342", + "_rev" : "2328802865", "_key" : "dave" }, { "name" : "Alice", "_id" : "persons/alice", - "_rev" : "2328471982", + "_rev" : "2328147505", "_key" : "alice" } ] arangosh> db.knows.toArray(); [ { - "_id" : "knows/2330175918", - "_rev" : "2330175918", - "_key" : "2330175918", - "_from" : "persons/eve", - "_to" : "persons/alice" - }, - { - "_id" : "knows/2330372526", - "_rev" : "2330372526", - "_key" : "2330372526", - "_from" : "persons/eve", - "_to" : "persons/bob" - }, - { - "_id" : "knows/2329782702", - "_rev" : "2329782702", - "_key" : "2329782702", - "_from" : "persons/bob", - "_to" : "persons/charlie" - }, - { - "_id" : "knows/2329586094", - "_rev" : "2329586094", - "_key" : "2329586094", + "_id" : "knows/2329261617", + "_rev" : "2329261617", + "_key" : "2329261617", "_from" : "persons/alice", "_to" : "persons/bob" }, { - "_id" : "knows/2329979310", - "_rev" : "2329979310", - "_key" : "2329979310", + "_id" : "knows/2329654833", + "_rev" : "2329654833", + "_key" : "2329654833", "_from" : "persons/bob", "_to" : "persons/dave" + }, + { + "_id" : "knows/2329851441", + "_rev" : "2329851441", + "_key" : "2329851441", + "_from" : "persons/eve", + "_to" : "persons/alice" + }, + { + "_id" : "knows/2329458225", + "_rev" : "2329458225", + "_key" : "2329458225", + "_from" : "persons/bob", + "_to" : "persons/charlie" + }, + { + "_id" : "knows/2330048049", + "_rev" : "2330048049", + "_key" : "2330048049", + "_from" : "persons/eve", + "_to" : "persons/bob" } ] arangosh> examples.dropGraph("knows_graph"); diff --git a/Documentation/Examples/graph_create_social_sample.generated b/Documentation/Examples/graph_create_social_sample.generated index 11b1759e6d..a6bb798ce1 100644 --- a/Documentation/Examples/graph_create_social_sample.generated +++ b/Documentation/Examples/graph_create_social_sample.generated @@ -5,13 +5,13 @@ arangosh> db.female.toArray() { "name" : "Diana", "_id" : "female/diana", - "_rev" : "2332993966", + "_rev" : "2332669489", "_key" : "diana" }, { "name" : "Alice", "_id" : "female/alice", - "_rev" : "2332273070", + "_rev" : "2331948593", "_key" : "alice" } ] @@ -20,13 +20,13 @@ arangosh> db.male.toArray() { "name" : "Bob", "_id" : "male/bob", - "_rev" : "2332600750", + "_rev" : "2332276273", "_key" : "bob" }, { "name" : "Charly", "_id" : "male/charly", - "_rev" : "2332797358", + "_rev" : "2332472881", "_key" : "charly" } ] @@ -35,7 +35,7 @@ arangosh> db.relation.toArray() { "type" : "friend", "_id" : "relation/bobAndDiana", - "_rev" : "2333977006", + "_rev" : "2333652529", "_key" : "bobAndDiana", "_from" : "male/bob", "_to" : "female/diana" @@ -43,7 +43,7 @@ arangosh> db.relation.toArray() { "type" : "married", "_id" : "relation/charlyAndDiana", - "_rev" : "2333780398", + "_rev" : "2333455921", "_key" : "charlyAndDiana", "_from" : "male/charly", "_to" : "female/diana" @@ -51,7 +51,7 @@ arangosh> db.relation.toArray() { "type" : "friend", "_id" : "relation/aliceAndCharly", - "_rev" : "2333583790", + "_rev" : "2333259313", "_key" : "aliceAndCharly", "_from" : "female/alice", "_to" : "male/charly" @@ -59,7 +59,7 @@ arangosh> db.relation.toArray() { "type" : "married", "_id" : "relation/aliceAndBob", - "_rev" : "2333321646", + "_rev" : "2332997169", "_key" : "aliceAndBob", "_from" : "female/alice", "_to" : "male/bob" diff --git a/Documentation/Examples/graph_create_traversal_sample.generated b/Documentation/Examples/graph_create_traversal_sample.generated index ac1ed42141..764791cd7d 100644 --- a/Documentation/Examples/graph_create_traversal_sample.generated +++ b/Documentation/Examples/graph_create_traversal_sample.generated @@ -5,119 +5,129 @@ arangosh> db.circles.toArray(); { "label" : "5", "_id" : "circles/E", - "_rev" : "2336663982", + "_rev" : "2336339505", "_key" : "E" }, { "label" : "6", "_id" : "circles/F", - "_rev" : "2336860590", + "_rev" : "2336536113", "_key" : "F" }, { "label" : "3", "_id" : "circles/C", - "_rev" : "2336270766", + "_rev" : "2335946289", "_key" : "C" }, { "label" : "11", "_id" : "circles/K", - "_rev" : "2337843630", + "_rev" : "2337519153", "_key" : "K" }, { "label" : "4", "_id" : "circles/D", - "_rev" : "2336467374", + "_rev" : "2336142897", "_key" : "D" }, { "label" : "9", "_id" : "circles/I", - "_rev" : "2337450414", + "_rev" : "2337125937", "_key" : "I" }, { "label" : "1", "_id" : "circles/A", - "_rev" : "2335877550", + "_rev" : "2335553073", "_key" : "A" }, { "label" : "2", "_id" : "circles/B", - "_rev" : "2336074158", + "_rev" : "2335749681", "_key" : "B" }, { "label" : "10", "_id" : "circles/J", - "_rev" : "2337647022", + "_rev" : "2337322545", "_key" : "J" }, { "label" : "7", "_id" : "circles/G", - "_rev" : "2337057198", + "_rev" : "2336732721", "_key" : "G" }, { "label" : "8", "_id" : "circles/H", - "_rev" : "2337253806", + "_rev" : "2336929329", "_key" : "H" } ] arangosh> db.edges.toArray(); [ - { - "theFalse" : false, - "theTruth" : true, - "label" : "left_blub", - "_id" : "edges/2338892206", - "_rev" : "2338892206", - "_key" : "2338892206", - "_from" : "circles/B", - "_to" : "circles/E" - }, { "theFalse" : false, "theTruth" : true, "label" : "right_blub", - "_id" : "edges/2339678638", - "_rev" : "2339678638", - "_key" : "2339678638", + "_id" : "edges/2339354161", + "_rev" : "2339354161", + "_key" : "2339354161", "_from" : "circles/H", "_to" : "circles/I" }, { "theFalse" : false, "theTruth" : true, - "label" : "right_zip", - "_id" : "edges/2339875246", - "_rev" : "2339875246", - "_key" : "2339875246", - "_from" : "circles/G", - "_to" : "circles/J" + "label" : "left_blub", + "_id" : "edges/2338567729", + "_rev" : "2338567729", + "_key" : "2338567729", + "_from" : "circles/B", + "_to" : "circles/E" + }, + { + "theFalse" : false, + "theTruth" : true, + "label" : "right_foo", + "_id" : "edges/2338960945", + "_rev" : "2338960945", + "_key" : "2338960945", + "_from" : "circles/A", + "_to" : "circles/G" }, { "theFalse" : false, "theTruth" : true, "label" : "left_bar", - "_id" : "edges/2338302382", - "_rev" : "2338302382", - "_key" : "2338302382", + "_id" : "edges/2337977905", + "_rev" : "2337977905", + "_key" : "2337977905", "_from" : "circles/A", "_to" : "circles/B" }, + { + "theFalse" : false, + "theTruth" : true, + "label" : "left_schubi", + "_id" : "edges/2338764337", + "_rev" : "2338764337", + "_key" : "2338764337", + "_from" : "circles/E", + "_to" : "circles/F" + }, { "theFalse" : false, "theTruth" : true, "label" : "right_blob", - "_id" : "edges/2339482030", - "_rev" : "2339482030", - "_key" : "2339482030", + "_id" : "edges/2339157553", + "_rev" : "2339157553", + "_key" : "2339157553", "_from" : "circles/G", "_to" : "circles/H" }, @@ -125,51 +135,41 @@ arangosh> db.edges.toArray(); "theFalse" : false, "theTruth" : true, "label" : "left_blorg", - "_id" : "edges/2338695598", - "_rev" : "2338695598", - "_key" : "2338695598", + "_id" : "edges/2338371121", + "_rev" : "2338371121", + "_key" : "2338371121", "_from" : "circles/C", "_to" : "circles/D" }, { "theFalse" : false, "theTruth" : true, - "label" : "left_schubi", - "_id" : "edges/2339088814", - "_rev" : "2339088814", - "_key" : "2339088814", - "_from" : "circles/E", - "_to" : "circles/F" - }, - { - "theFalse" : false, - "theTruth" : true, - "label" : "left_blarg", - "_id" : "edges/2338498990", - "_rev" : "2338498990", - "_key" : "2338498990", - "_from" : "circles/B", - "_to" : "circles/C" - }, - { - "theFalse" : false, - "theTruth" : true, - "label" : "right_foo", - "_id" : "edges/2339285422", - "_rev" : "2339285422", - "_key" : "2339285422", - "_from" : "circles/A", - "_to" : "circles/G" + "label" : "right_zip", + "_id" : "edges/2339550769", + "_rev" : "2339550769", + "_key" : "2339550769", + "_from" : "circles/G", + "_to" : "circles/J" }, { "theFalse" : false, "theTruth" : true, "label" : "right_zup", - "_id" : "edges/2340071854", - "_rev" : "2340071854", - "_key" : "2340071854", + "_id" : "edges/2339747377", + "_rev" : "2339747377", + "_key" : "2339747377", "_from" : "circles/J", "_to" : "circles/K" + }, + { + "theFalse" : false, + "theTruth" : true, + "label" : "left_blarg", + "_id" : "edges/2338174513", + "_rev" : "2338174513", + "_key" : "2338174513", + "_from" : "circles/B", + "_to" : "circles/C" } ] arangosh> examples.dropGraph("traversalGraph"); diff --git a/Documentation/Examples/graph_create_world_sample.generated b/Documentation/Examples/graph_create_world_sample.generated index 9316d22148..3eff096a65 100644 --- a/Documentation/Examples/graph_create_world_sample.generated +++ b/Documentation/Examples/graph_create_world_sample.generated @@ -6,7 +6,7 @@ arangosh> db.worldVertices.toArray(); "name" : "Andorra la Vella", "type" : "capital", "_id" : "worldVertices/capital-andorra-la-vella", - "_rev" : "2351868334", + "_rev" : "2351543857", "_key" : "capital-andorra-la-vella" }, { @@ -14,7 +14,7 @@ arangosh> db.worldVertices.toArray(); "name" : "Bolivia", "type" : "country", "_id" : "worldVertices/country-bolivia", - "_rev" : "2346756526", + "_rev" : "2346432049", "_key" : "country-bolivia" }, { @@ -22,14 +22,14 @@ arangosh> db.worldVertices.toArray(); "name" : "Finland", "type" : "country", "_id" : "worldVertices/country-finland", - "_rev" : "2350885294", + "_rev" : "2350560817", "_key" : "country-finland" }, { "name" : "Bandar Seri Begawan", "type" : "capital", "_id" : "worldVertices/capital-bandar-seri-begawan", - "_rev" : "2352261550", + "_rev" : "2351937073", "_key" : "capital-bandar-seri-begawan" }, { @@ -37,7 +37,7 @@ arangosh> db.worldVertices.toArray(); "name" : "Cameroon", "type" : "country", "_id" : "worldVertices/country-cameroon", - "_rev" : "2348525998", + "_rev" : "2348201521", "_key" : "country-cameroon" }, { @@ -45,28 +45,28 @@ arangosh> db.worldVertices.toArray(); "name" : "Albania", "type" : "country", "_id" : "worldVertices/country-albania", - "_rev" : "2343938478", + "_rev" : "2343614001", "_key" : "country-albania" }, { "name" : "Canberra", "type" : "capital", "_id" : "worldVertices/capital-canberra", - "_rev" : "2354227630", + "_rev" : "2353903153", "_key" : "capital-canberra" }, { "name" : "Beijing", "type" : "capital", "_id" : "worldVertices/capital-beijing", - "_rev" : "2352458158", + "_rev" : "2352133681", "_key" : "capital-beijing" }, { "name" : "Santiago", "type" : "capital", "_id" : "worldVertices/capital-santiago", - "_rev" : "2357766574", + "_rev" : "2357442097", "_key" : "capital-santiago" }, { @@ -74,28 +74,28 @@ arangosh> db.worldVertices.toArray(); "name" : "Bulgaria", "type" : "country", "_id" : "worldVertices/country-bulgaria", - "_rev" : "2347739566", + "_rev" : "2347415089", "_key" : "country-bulgaria" }, { "name" : "Tirana", "type" : "capital", "_id" : "worldVertices/capital-tirana", - "_rev" : "2358553006", + "_rev" : "2358228529", "_key" : "capital-tirana" }, { "name" : "Brasilia", "type" : "capital", "_id" : "worldVertices/capital-brasilia", - "_rev" : "2353047982", + "_rev" : "2352723505", "_key" : "capital-brasilia" }, { "name" : "Algiers", "type" : "capital", "_id" : "worldVertices/capital-algiers", - "_rev" : "2351671726", + "_rev" : "2351347249", "_key" : "capital-algiers" }, { @@ -103,7 +103,7 @@ arangosh> db.worldVertices.toArray(); "name" : "Bosnia and Herzegovina", "type" : "country", "_id" : "worldVertices/country-bosnia-and-herzegovina", - "_rev" : "2346953134", + "_rev" : "2346628657", "_key" : "country-bosnia-and-herzegovina" }, { @@ -111,7 +111,7 @@ arangosh> db.worldVertices.toArray(); "name" : "Bahrain", "type" : "country", "_id" : "worldVertices/country-bahrain", - "_rev" : "2345773486", + "_rev" : "2345449009", "_key" : "country-bahrain" }, { @@ -119,14 +119,14 @@ arangosh> db.worldVertices.toArray(); "name" : "Bahamas", "type" : "country", "_id" : "worldVertices/country-bahamas", - "_rev" : "2345576878", + "_rev" : "2345252401", "_key" : "country-bahamas" }, { "name" : "Bujumbura", "type" : "capital", "_id" : "worldVertices/capital-bujumbura", - "_rev" : "2353834414", + "_rev" : "2353509937", "_key" : "capital-bujumbura" }, { @@ -134,7 +134,7 @@ arangosh> db.worldVertices.toArray(); "name" : "Bangladesh", "type" : "country", "_id" : "worldVertices/country-bangladesh", - "_rev" : "2345970094", + "_rev" : "2345645617", "_key" : "country-bangladesh" }, { @@ -142,7 +142,7 @@ arangosh> db.worldVertices.toArray(); "name" : "Andorra", "type" : "country", "_id" : "worldVertices/country-andorra", - "_rev" : "2344331694", + "_rev" : "2344007217", "_key" : "country-andorra" }, { @@ -150,14 +150,14 @@ arangosh> db.worldVertices.toArray(); "code" : "BRN", "type" : "country", "_id" : "worldVertices/country-brunei", - "_rev" : "2347542958", + "_rev" : "2347218481", "_key" : "country-brunei" }, { "name" : "Vienna", "type" : "capital", "_id" : "worldVertices/capital-vienna", - "_rev" : "2358749614", + "_rev" : "2358425137", "_key" : "capital-vienna" }, { @@ -165,21 +165,21 @@ arangosh> db.worldVertices.toArray(); "name" : "Belgium", "type" : "country", "_id" : "worldVertices/country-belgium", - "_rev" : "2346363310", + "_rev" : "2346038833", "_key" : "country-belgium" }, { "name" : "Dhaka", "type" : "capital", "_id" : "worldVertices/capital-dhaka", - "_rev" : "2354620846", + "_rev" : "2354296369", "_key" : "capital-dhaka" }, { "name" : "Yamoussoukro", "type" : "capital", "_id" : "worldVertices/capital-yamoussoukro", - "_rev" : "2358946222", + "_rev" : "2358621745", "_key" : "capital-yamoussoukro" }, { @@ -187,7 +187,7 @@ arangosh> db.worldVertices.toArray(); "name" : "Burundi", "type" : "country", "_id" : "worldVertices/country-burundi", - "_rev" : "2348132782", + "_rev" : "2347808305", "_key" : "country-burundi" }, { @@ -195,7 +195,7 @@ arangosh> db.worldVertices.toArray(); "name" : "Cote d'Ivoire", "type" : "country", "_id" : "worldVertices/country-cote-d-ivoire", - "_rev" : "2349509038", + "_rev" : "2349184561", "_key" : "country-cote-d-ivoire" }, { @@ -203,14 +203,14 @@ arangosh> db.worldVertices.toArray(); "name" : "People's Republic of China", "type" : "country", "_id" : "worldVertices/country-people-s-republic-of-china", - "_rev" : "2351475118", + "_rev" : "2351150641", "_key" : "country-people-s-republic-of-china" }, { "name" : "Phnom Penh", "type" : "capital", "_id" : "worldVertices/capital-phnom-penh", - "_rev" : "2356980142", + "_rev" : "2356655665", "_key" : "capital-phnom-penh" }, { @@ -218,7 +218,7 @@ arangosh> db.worldVertices.toArray(); "name" : "Czech Republic", "type" : "country", "_id" : "worldVertices/country-czech-republic", - "_rev" : "2349902254", + "_rev" : "2349577777", "_key" : "country-czech-republic" }, { @@ -226,7 +226,7 @@ arangosh> db.worldVertices.toArray(); "code" : "TCD", "type" : "country", "_id" : "worldVertices/country-chad", - "_rev" : "2348919214", + "_rev" : "2348594737", "_key" : "country-chad" }, { @@ -234,21 +234,21 @@ arangosh> db.worldVertices.toArray(); "code" : "AGO", "type" : "country", "_id" : "worldVertices/country-angola", - "_rev" : "2344593838", + "_rev" : "2344269361", "_key" : "country-angola" }, { "name" : "Berlin", "type" : "capital", "_id" : "worldVertices/capital-berlin", - "_rev" : "2352654766", + "_rev" : "2352330289", "_key" : "capital-berlin" }, { "name" : "Quito", "type" : "capital", "_id" : "worldVertices/capital-quito", - "_rev" : "2357373358", + "_rev" : "2357048881", "_key" : "capital-quito" }, { @@ -256,14 +256,14 @@ arangosh> db.worldVertices.toArray(); "name" : "Australia", "type" : "country", "_id" : "worldVertices/country-australia", - "_rev" : "2345183662", + "_rev" : "2344859185", "_key" : "country-australia" }, { "name" : "Ottawa", "type" : "capital", "_id" : "worldVertices/capital-ottawa", - "_rev" : "2356390318", + "_rev" : "2356065841", "_key" : "capital-ottawa" }, { @@ -271,7 +271,7 @@ arangosh> db.worldVertices.toArray(); "name" : "Afghanistan", "type" : "country", "_id" : "worldVertices/country-afghanistan", - "_rev" : "2343741870", + "_rev" : "2343417393", "_key" : "country-afghanistan" }, { @@ -279,7 +279,7 @@ arangosh> db.worldVertices.toArray(); "name" : "Austria", "type" : "country", "_id" : "worldVertices/country-austria", - "_rev" : "2345380270", + "_rev" : "2345055793", "_key" : "country-austria" }, { @@ -287,35 +287,35 @@ arangosh> db.worldVertices.toArray(); "name" : "Botswana", "type" : "country", "_id" : "worldVertices/country-botswana", - "_rev" : "2347149742", + "_rev" : "2346825265", "_key" : "country-botswana" }, { "name" : "Helsinki", "type" : "capital", "_id" : "worldVertices/capital-helsinki", - "_rev" : "2355014062", + "_rev" : "2354689585", "_key" : "capital-helsinki" }, { "name" : "World", "type" : "root", "_id" : "worldVertices/world", - "_rev" : "2342103470", + "_rev" : "2341778993", "_key" : "world" }, { "name" : "Nassau", "type" : "capital", "_id" : "worldVertices/capital-nassau", - "_rev" : "2355997102", + "_rev" : "2355672625", "_key" : "capital-nassau" }, { "name" : "Manama", "type" : "capital", "_id" : "worldVertices/capital-manama", - "_rev" : "2355800494", + "_rev" : "2355476017", "_key" : "capital-manama" }, { @@ -323,28 +323,28 @@ arangosh> db.worldVertices.toArray(); "code" : "EGY", "type" : "country", "_id" : "worldVertices/country-egypt", - "_rev" : "2350492078", + "_rev" : "2350167601", "_key" : "country-egypt" }, { "name" : "Europe", "type" : "continent", "_id" : "worldVertices/continent-europe", - "_rev" : "2343020974", + "_rev" : "2342696497", "_key" : "continent-europe" }, { "name" : "North America", "type" : "continent", "_id" : "worldVertices/continent-north-america", - "_rev" : "2343217582", + "_rev" : "2342893105", "_key" : "continent-north-america" }, { "name" : "Africa", "type" : "continent", "_id" : "worldVertices/continent-africa", - "_rev" : "2342365614", + "_rev" : "2342041137", "_key" : "continent-africa" }, { @@ -352,28 +352,28 @@ arangosh> db.worldVertices.toArray(); "name" : "Burkina Faso", "type" : "country", "_id" : "worldVertices/country-burkina-faso", - "_rev" : "2347936174", + "_rev" : "2347611697", "_key" : "country-burkina-faso" }, { "name" : "Bogota", "type" : "capital", "_id" : "worldVertices/capital-bogota", - "_rev" : "2352851374", + "_rev" : "2352526897", "_key" : "capital-bogota" }, { "name" : "Ouagadougou", "type" : "capital", "_id" : "worldVertices/capital-ouagadougou", - "_rev" : "2356586926", + "_rev" : "2356262449", "_key" : "capital-ouagadougou" }, { "name" : "Australia", "type" : "continent", "_id" : "worldVertices/continent-australia", - "_rev" : "2342824366", + "_rev" : "2342499889", "_key" : "continent-australia" }, { @@ -381,21 +381,21 @@ arangosh> db.worldVertices.toArray(); "code" : "BTN", "type" : "country", "_id" : "worldVertices/country-bhutan", - "_rev" : "2346559918", + "_rev" : "2346235441", "_key" : "country-bhutan" }, { "name" : "Sofia", "type" : "capital", "_id" : "worldVertices/capital-sofia", - "_rev" : "2358159790", + "_rev" : "2357835313", "_key" : "capital-sofia" }, { "name" : "Asia", "type" : "continent", "_id" : "worldVertices/continent-asia", - "_rev" : "2342562222", + "_rev" : "2342237745", "_key" : "continent-asia" }, { @@ -403,7 +403,7 @@ arangosh> db.worldVertices.toArray(); "name" : "Argentina", "type" : "country", "_id" : "worldVertices/country-argentina", - "_rev" : "2344987054", + "_rev" : "2344662577", "_key" : "country-argentina" }, { @@ -411,28 +411,28 @@ arangosh> db.worldVertices.toArray(); "name" : "Antigua and Barbuda", "type" : "country", "_id" : "worldVertices/country-antigua-and-barbuda", - "_rev" : "2344790446", + "_rev" : "2344465969", "_key" : "country-antigua-and-barbuda" }, { "name" : "Sarajevo", "type" : "capital", "_id" : "worldVertices/capital-sarajevo", - "_rev" : "2357963182", + "_rev" : "2357638705", "_key" : "capital-sarajevo" }, { "name" : "Asmara", "type" : "capital", "_id" : "worldVertices/capital-asmara", - "_rev" : "2352064942", + "_rev" : "2351740465", "_key" : "capital-asmara" }, { "name" : "Kabul", "type" : "capital", "_id" : "worldVertices/capital-kabul", - "_rev" : "2355210670", + "_rev" : "2354886193", "_key" : "capital-kabul" }, { @@ -440,7 +440,7 @@ arangosh> db.worldVertices.toArray(); "name" : "Germany", "type" : "country", "_id" : "worldVertices/country-germany", - "_rev" : "2351278510", + "_rev" : "2350954033", "_key" : "country-germany" }, { @@ -448,28 +448,28 @@ arangosh> db.worldVertices.toArray(); "code" : "CHL", "type" : "country", "_id" : "worldVertices/country-chile", - "_rev" : "2349115822", + "_rev" : "2348791345", "_key" : "country-chile" }, { "name" : "Paris", "type" : "capital", "_id" : "worldVertices/capital-paris", - "_rev" : "2356783534", + "_rev" : "2356459057", "_key" : "capital-paris" }, { "name" : "Luanda", "type" : "capital", "_id" : "worldVertices/capital-luanda", - "_rev" : "2355603886", + "_rev" : "2355279409", "_key" : "capital-luanda" }, { "name" : "Yaounde", "type" : "capital", "_id" : "worldVertices/capital-yaounde", - "_rev" : "2359142830", + "_rev" : "2358818353", "_key" : "capital-yaounde" }, { @@ -477,21 +477,21 @@ arangosh> db.worldVertices.toArray(); "name" : "Croatia", "type" : "country", "_id" : "worldVertices/country-croatia", - "_rev" : "2349705646", + "_rev" : "2349381169", "_key" : "country-croatia" }, { "name" : "Zagreb", "type" : "capital", "_id" : "worldVertices/capital-zagreb", - "_rev" : "2359339438", + "_rev" : "2359014961", "_key" : "capital-zagreb" }, { "name" : "Cairo", "type" : "capital", "_id" : "worldVertices/capital-cairo", - "_rev" : "2354031022", + "_rev" : "2353706545", "_key" : "capital-cairo" }, { @@ -499,21 +499,21 @@ arangosh> db.worldVertices.toArray(); "name" : "Denmark", "type" : "country", "_id" : "worldVertices/country-denmark", - "_rev" : "2350098862", + "_rev" : "2349774385", "_key" : "country-denmark" }, { "name" : "Copenhagen", "type" : "capital", "_id" : "worldVertices/capital-copenhagen", - "_rev" : "2354424238", + "_rev" : "2354099761", "_key" : "capital-copenhagen" }, { "name" : "Prague", "type" : "capital", "_id" : "worldVertices/capital-prague", - "_rev" : "2357176750", + "_rev" : "2356852273", "_key" : "capital-prague" }, { @@ -521,7 +521,7 @@ arangosh> db.worldVertices.toArray(); "code" : "CAN", "type" : "country", "_id" : "worldVertices/country-canada", - "_rev" : "2348722606", + "_rev" : "2348398129", "_key" : "country-canada" }, { @@ -529,7 +529,7 @@ arangosh> db.worldVertices.toArray(); "name" : "Eritrea", "type" : "country", "_id" : "worldVertices/country-eritrea", - "_rev" : "2350688686", + "_rev" : "2350364209", "_key" : "country-eritrea" }, { @@ -537,7 +537,7 @@ arangosh> db.worldVertices.toArray(); "name" : "Cambodia", "type" : "country", "_id" : "worldVertices/country-cambodia", - "_rev" : "2348329390", + "_rev" : "2348004913", "_key" : "country-cambodia" }, { @@ -545,7 +545,7 @@ arangosh> db.worldVertices.toArray(); "code" : "BRA", "type" : "country", "_id" : "worldVertices/country-brazil", - "_rev" : "2347346350", + "_rev" : "2347021873", "_key" : "country-brazil" }, { @@ -553,14 +553,14 @@ arangosh> db.worldVertices.toArray(); "name" : "Barbados", "type" : "country", "_id" : "worldVertices/country-barbados", - "_rev" : "2346166702", + "_rev" : "2345842225", "_key" : "country-barbados" }, { "name" : "South America", "type" : "continent", "_id" : "worldVertices/continent-south-america", - "_rev" : "2343414190", + "_rev" : "2343089713", "_key" : "continent-south-america" }, { @@ -568,14 +568,14 @@ arangosh> db.worldVertices.toArray(); "name" : "Colombia", "type" : "country", "_id" : "worldVertices/country-colombia", - "_rev" : "2349312430", + "_rev" : "2348987953", "_key" : "country-colombia" }, { "name" : "N'Djamena", "type" : "capital", "_id" : "worldVertices/capital-n-djamena", - "_rev" : "2356193710", + "_rev" : "2355869233", "_key" : "capital-n-djamena" }, { @@ -583,49 +583,49 @@ arangosh> db.worldVertices.toArray(); "name" : "Algeria", "type" : "country", "_id" : "worldVertices/country-algeria", - "_rev" : "2344135086", + "_rev" : "2343810609", "_key" : "country-algeria" }, { "name" : "Brussels", "type" : "capital", "_id" : "worldVertices/capital-brussels", - "_rev" : "2353441198", + "_rev" : "2353116721", "_key" : "capital-brussels" }, { "name" : "La Paz", "type" : "capital", "_id" : "worldVertices/capital-la-paz", - "_rev" : "2355407278", + "_rev" : "2355082801", "_key" : "capital-la-paz" }, { "name" : "Buenos Aires", "type" : "capital", "_id" : "worldVertices/capital-buenos-aires", - "_rev" : "2353637806", + "_rev" : "2353313329", "_key" : "capital-buenos-aires" }, { "name" : "Thimphu", "type" : "capital", "_id" : "worldVertices/capital-thimphu", - "_rev" : "2358356398", + "_rev" : "2358031921", "_key" : "capital-thimphu" }, { "name" : "Bridgetown", "type" : "capital", "_id" : "worldVertices/capital-bridgetown", - "_rev" : "2353244590", + "_rev" : "2352920113", "_key" : "capital-bridgetown" }, { "name" : "Saint John's", "type" : "capital", "_id" : "worldVertices/capital-saint-john-s", - "_rev" : "2357569966", + "_rev" : "2357245489", "_key" : "capital-saint-john-s" }, { @@ -633,7 +633,7 @@ arangosh> db.worldVertices.toArray(); "code" : "FRA", "type" : "country", "_id" : "worldVertices/country-france", - "_rev" : "2351081902", + "_rev" : "2350757425", "_key" : "country-france" }, { @@ -641,14 +641,14 @@ arangosh> db.worldVertices.toArray(); "name" : "Ecuador", "type" : "country", "_id" : "worldVertices/country-ecuador", - "_rev" : "2350295470", + "_rev" : "2349970993", "_key" : "country-ecuador" }, { "name" : "Gaborone", "type" : "capital", "_id" : "worldVertices/capital-gaborone", - "_rev" : "2354817454", + "_rev" : "2354492977", "_key" : "capital-gaborone" } ] @@ -656,691 +656,691 @@ arangosh> db.worldEdges.toArray(); [ { "type" : "is-in", - "_id" : "worldEdges/2368121262", - "_rev" : "2368121262", - "_key" : "2368121262", - "_from" : "worldVertices/country-france", - "_to" : "worldVertices/continent-europe" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2374805934", - "_rev" : "2374805934", - "_key" : "2374805934", - "_from" : "worldVertices/capital-santiago", - "_to" : "worldVertices/country-chile" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2367334830", - "_rev" : "2367334830", - "_key" : "2367334830", - "_from" : "worldVertices/country-ecuador", - "_to" : "worldVertices/continent-south-america" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2362616238", - "_rev" : "2362616238", - "_key" : "2362616238", - "_from" : "worldVertices/country-bahamas", - "_to" : "worldVertices/continent-north-america" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2371070382", - "_rev" : "2371070382", - "_key" : "2371070382", - "_from" : "worldVertices/capital-cairo", - "_to" : "worldVertices/country-egypt" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2365761966", - "_rev" : "2365761966", - "_key" : "2365761966", - "_from" : "worldVertices/country-canada", - "_to" : "worldVertices/continent-north-america" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2374216110", - "_rev" : "2374216110", - "_key" : "2374216110", - "_from" : "worldVertices/capital-prague", - "_to" : "worldVertices/country-czech-republic" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2359863726", - "_rev" : "2359863726", - "_key" : "2359863726", - "_from" : "worldVertices/continent-asia", - "_to" : "worldVertices/world" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2365958574", - "_rev" : "2365958574", - "_key" : "2365958574", - "_from" : "worldVertices/country-chad", - "_to" : "worldVertices/continent-africa" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2368514478", - "_rev" : "2368514478", - "_key" : "2368514478", - "_from" : "worldVertices/country-people-s-republic-of-china", - "_to" : "worldVertices/continent-asia" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2371463598", - "_rev" : "2371463598", - "_key" : "2371463598", - "_from" : "worldVertices/capital-copenhagen", - "_to" : "worldVertices/country-denmark" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2369694126", - "_rev" : "2369694126", - "_key" : "2369694126", - "_from" : "worldVertices/capital-berlin", - "_to" : "worldVertices/country-germany" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2361633198", - "_rev" : "2361633198", - "_key" : "2361633198", - "_from" : "worldVertices/country-angola", - "_to" : "worldVertices/continent-africa" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2363009454", - "_rev" : "2363009454", - "_key" : "2363009454", - "_from" : "worldVertices/country-bangladesh", - "_to" : "worldVertices/continent-asia" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2362419630", - "_rev" : "2362419630", - "_key" : "2362419630", - "_from" : "worldVertices/country-austria", - "_to" : "worldVertices/continent-europe" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2376378798", - "_rev" : "2376378798", - "_key" : "2376378798", - "_from" : "worldVertices/capital-zagreb", - "_to" : "worldVertices/country-croatia" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2367924654", - "_rev" : "2367924654", - "_key" : "2367924654", - "_from" : "worldVertices/country-finland", - "_to" : "worldVertices/continent-europe" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2370873774", - "_rev" : "2370873774", - "_key" : "2370873774", - "_from" : "worldVertices/capital-bujumbura", - "_to" : "worldVertices/country-burundi" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2369497518", - "_rev" : "2369497518", - "_key" : "2369497518", - "_from" : "worldVertices/capital-beijing", - "_to" : "worldVertices/country-people-s-republic-of-china" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2370087342", - "_rev" : "2370087342", - "_key" : "2370087342", - "_from" : "worldVertices/capital-brasilia", - "_to" : "worldVertices/country-brazil" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2364189102", - "_rev" : "2364189102", - "_key" : "2364189102", - "_from" : "worldVertices/country-botswana", - "_to" : "worldVertices/continent-africa" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2371856814", - "_rev" : "2371856814", - "_key" : "2371856814", - "_from" : "worldVertices/capital-gaborone", - "_to" : "worldVertices/country-botswana" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2360256942", - "_rev" : "2360256942", - "_key" : "2360256942", - "_from" : "worldVertices/continent-europe", - "_to" : "worldVertices/world" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2366745006", - "_rev" : "2366745006", - "_key" : "2366745006", - "_from" : "worldVertices/country-croatia", - "_to" : "worldVertices/continent-europe" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2371660206", - "_rev" : "2371660206", - "_key" : "2371660206", - "_from" : "worldVertices/capital-dhaka", - "_to" : "worldVertices/country-bangladesh" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2372839854", - "_rev" : "2372839854", - "_key" : "2372839854", - "_from" : "worldVertices/capital-manama", - "_to" : "worldVertices/country-bahrain" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2361043374", - "_rev" : "2361043374", - "_key" : "2361043374", - "_from" : "worldVertices/country-albania", - "_to" : "worldVertices/continent-europe" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2370283950", - "_rev" : "2370283950", - "_key" : "2370283950", - "_from" : "worldVertices/capital-bridgetown", - "_to" : "worldVertices/country-barbados" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2363795886", - "_rev" : "2363795886", - "_key" : "2363795886", - "_from" : "worldVertices/country-bolivia", - "_to" : "worldVertices/continent-south-america" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2363402670", - "_rev" : "2363402670", - "_key" : "2363402670", - "_from" : "worldVertices/country-belgium", - "_to" : "worldVertices/continent-europe" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2376182190", - "_rev" : "2376182190", - "_key" : "2376182190", - "_from" : "worldVertices/capital-yaounde", - "_to" : "worldVertices/country-cameroon" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2364582318", - "_rev" : "2364582318", - "_key" : "2364582318", - "_from" : "worldVertices/country-brunei", - "_to" : "worldVertices/continent-asia" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2360650158", - "_rev" : "2360650158", - "_key" : "2360650158", - "_from" : "worldVertices/continent-south-america", - "_to" : "worldVertices/world" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2373036462", - "_rev" : "2373036462", - "_key" : "2373036462", - "_from" : "worldVertices/capital-nassau", - "_to" : "worldVertices/country-bahamas" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2375985582", - "_rev" : "2375985582", - "_key" : "2375985582", - "_from" : "worldVertices/capital-yamoussoukro", - "_to" : "worldVertices/country-cote-d-ivoire" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2363599278", - "_rev" : "2363599278", - "_key" : "2363599278", - "_from" : "worldVertices/country-bhutan", - "_to" : "worldVertices/continent-asia" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2362026414", - "_rev" : "2362026414", - "_key" : "2362026414", - "_from" : "worldVertices/country-argentina", - "_to" : "worldVertices/continent-south-america" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2367138222", - "_rev" : "2367138222", - "_key" : "2367138222", - "_from" : "worldVertices/country-denmark", - "_to" : "worldVertices/continent-europe" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2375395758", - "_rev" : "2375395758", - "_key" : "2375395758", - "_from" : "worldVertices/capital-thimphu", - "_to" : "worldVertices/country-bhutan" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2367531438", - "_rev" : "2367531438", - "_key" : "2367531438", - "_from" : "worldVertices/country-egypt", - "_to" : "worldVertices/continent-africa" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2366548398", - "_rev" : "2366548398", - "_key" : "2366548398", - "_from" : "worldVertices/country-cote-d-ivoire", - "_to" : "worldVertices/continent-africa" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2368317870", - "_rev" : "2368317870", - "_key" : "2368317870", - "_from" : "worldVertices/country-germany", - "_to" : "worldVertices/continent-europe" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2372446638", - "_rev" : "2372446638", - "_key" : "2372446638", - "_from" : "worldVertices/capital-la-paz", - "_to" : "worldVertices/country-bolivia" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2363992494", - "_rev" : "2363992494", - "_key" : "2363992494", - "_from" : "worldVertices/country-bosnia-and-herzegovina", - "_to" : "worldVertices/continent-europe" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2361239982", - "_rev" : "2361239982", - "_key" : "2361239982", - "_from" : "worldVertices/country-algeria", - "_to" : "worldVertices/continent-africa" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2374412718", - "_rev" : "2374412718", - "_key" : "2374412718", - "_from" : "worldVertices/capital-quito", - "_to" : "worldVertices/country-ecuador" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2360060334", - "_rev" : "2360060334", - "_key" : "2360060334", - "_from" : "worldVertices/continent-australia", - "_to" : "worldVertices/world" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2365172142", - "_rev" : "2365172142", - "_key" : "2365172142", - "_from" : "worldVertices/country-burundi", - "_to" : "worldVertices/continent-africa" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2366155182", - "_rev" : "2366155182", - "_key" : "2366155182", - "_from" : "worldVertices/country-chile", - "_to" : "worldVertices/continent-south-america" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2362812846", - "_rev" : "2362812846", - "_key" : "2362812846", - "_from" : "worldVertices/country-bahrain", - "_to" : "worldVertices/continent-asia" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2364975534", - "_rev" : "2364975534", - "_key" : "2364975534", - "_from" : "worldVertices/country-burkina-faso", - "_to" : "worldVertices/continent-africa" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2373822894", - "_rev" : "2373822894", - "_key" : "2373822894", - "_from" : "worldVertices/capital-paris", - "_to" : "worldVertices/country-france" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2372250030", - "_rev" : "2372250030", - "_key" : "2372250030", - "_from" : "worldVertices/capital-kabul", - "_to" : "worldVertices/country-afghanistan" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2368907694", - "_rev" : "2368907694", - "_key" : "2368907694", - "_from" : "worldVertices/capital-andorra-la-vella", - "_to" : "worldVertices/country-andorra" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2359667118", - "_rev" : "2359667118", - "_key" : "2359667118", - "_from" : "worldVertices/continent-africa", - "_to" : "worldVertices/world" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2375002542", - "_rev" : "2375002542", - "_key" : "2375002542", - "_from" : "worldVertices/capital-sarajevo", - "_to" : "worldVertices/country-bosnia-and-herzegovina" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2369104302", - "_rev" : "2369104302", - "_key" : "2369104302", - "_from" : "worldVertices/capital-asmara", - "_to" : "worldVertices/country-eritrea" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2366941614", - "_rev" : "2366941614", - "_key" : "2366941614", - "_from" : "worldVertices/country-czech-republic", - "_to" : "worldVertices/continent-europe" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2364778926", - "_rev" : "2364778926", - "_key" : "2364778926", - "_from" : "worldVertices/country-bulgaria", - "_to" : "worldVertices/continent-europe" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2365565358", - "_rev" : "2365565358", - "_key" : "2365565358", - "_from" : "worldVertices/country-cameroon", - "_to" : "worldVertices/continent-africa" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2362223022", - "_rev" : "2362223022", - "_key" : "2362223022", - "_from" : "worldVertices/country-australia", - "_to" : "worldVertices/continent-australia" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2363206062", - "_rev" : "2363206062", - "_key" : "2363206062", - "_from" : "worldVertices/country-barbados", - "_to" : "worldVertices/continent-north-america" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2375788974", - "_rev" : "2375788974", - "_key" : "2375788974", - "_from" : "worldVertices/capital-vienna", - "_to" : "worldVertices/country-austria" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2361829806", - "_rev" : "2361829806", - "_key" : "2361829806", - "_from" : "worldVertices/country-antigua-and-barbuda", - "_to" : "worldVertices/continent-north-america" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2373626286", - "_rev" : "2373626286", - "_key" : "2373626286", - "_from" : "worldVertices/capital-ouagadougou", - "_to" : "worldVertices/country-burkina-faso" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2361436590", - "_rev" : "2361436590", - "_key" : "2361436590", - "_from" : "worldVertices/country-andorra", - "_to" : "worldVertices/continent-europe" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2373429678", - "_rev" : "2373429678", - "_key" : "2373429678", - "_from" : "worldVertices/capital-ottawa", - "_to" : "worldVertices/country-canada" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2365368750", - "_rev" : "2365368750", - "_key" : "2365368750", - "_from" : "worldVertices/country-cambodia", - "_to" : "worldVertices/continent-asia" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2369300910", - "_rev" : "2369300910", - "_key" : "2369300910", - "_from" : "worldVertices/capital-bandar-seri-begawan", - "_to" : "worldVertices/country-brunei" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2371266990", - "_rev" : "2371266990", - "_key" : "2371266990", - "_from" : "worldVertices/capital-canberra", - "_to" : "worldVertices/country-australia" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2360453550", - "_rev" : "2360453550", - "_key" : "2360453550", - "_from" : "worldVertices/continent-north-america", - "_to" : "worldVertices/world" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2367728046", - "_rev" : "2367728046", - "_key" : "2367728046", - "_from" : "worldVertices/country-eritrea", - "_to" : "worldVertices/continent-africa" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2372643246", - "_rev" : "2372643246", - "_key" : "2372643246", - "_from" : "worldVertices/capital-luanda", - "_to" : "worldVertices/country-angola" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2369890734", - "_rev" : "2369890734", - "_key" : "2369890734", + "_id" : "worldEdges/2369566257", + "_rev" : "2369566257", + "_key" : "2369566257", "_from" : "worldVertices/capital-bogota", "_to" : "worldVertices/country-colombia" }, { "type" : "is-in", - "_id" : "worldEdges/2370677166", - "_rev" : "2370677166", - "_key" : "2370677166", - "_from" : "worldVertices/capital-buenos-aires", - "_to" : "worldVertices/country-argentina" + "_id" : "worldEdges/2374481457", + "_rev" : "2374481457", + "_key" : "2374481457", + "_from" : "worldVertices/capital-santiago", + "_to" : "worldVertices/country-chile" }, { "type" : "is-in", - "_id" : "worldEdges/2374019502", - "_rev" : "2374019502", - "_key" : "2374019502", - "_from" : "worldVertices/capital-phnom-penh", - "_to" : "worldVertices/country-cambodia" + "_id" : "worldEdges/2372122161", + "_rev" : "2372122161", + "_key" : "2372122161", + "_from" : "worldVertices/capital-la-paz", + "_to" : "worldVertices/country-bolivia" }, { "type" : "is-in", - "_id" : "worldEdges/2364385710", - "_rev" : "2364385710", - "_key" : "2364385710", - "_from" : "worldVertices/country-brazil", - "_to" : "worldVertices/continent-south-america" + "_id" : "worldEdges/2360129073", + "_rev" : "2360129073", + "_key" : "2360129073", + "_from" : "worldVertices/continent-north-america", + "_to" : "worldVertices/world" }, { "type" : "is-in", - "_id" : "worldEdges/2360846766", - "_rev" : "2360846766", - "_key" : "2360846766", + "_id" : "worldEdges/2361898545", + "_rev" : "2361898545", + "_key" : "2361898545", + "_from" : "worldVertices/country-australia", + "_to" : "worldVertices/continent-australia" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2360522289", + "_rev" : "2360522289", + "_key" : "2360522289", "_from" : "worldVertices/country-afghanistan", "_to" : "worldVertices/continent-asia" }, { "type" : "is-in", - "_id" : "worldEdges/2374609326", - "_rev" : "2374609326", - "_key" : "2374609326", + "_id" : "worldEdges/2361112113", + "_rev" : "2361112113", + "_key" : "2361112113", + "_from" : "worldVertices/country-andorra", + "_to" : "worldVertices/continent-europe" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2361701937", + "_rev" : "2361701937", + "_key" : "2361701937", + "_from" : "worldVertices/country-argentina", + "_to" : "worldVertices/continent-south-america" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2374284849", + "_rev" : "2374284849", + "_key" : "2374284849", "_from" : "worldVertices/capital-saint-john-s", "_to" : "worldVertices/country-antigua-and-barbuda" }, { "type" : "is-in", - "_id" : "worldEdges/2375199150", - "_rev" : "2375199150", - "_key" : "2375199150", - "_from" : "worldVertices/capital-sofia", - "_to" : "worldVertices/country-bulgaria" + "_id" : "worldEdges/2367403569", + "_rev" : "2367403569", + "_key" : "2367403569", + "_from" : "worldVertices/country-eritrea", + "_to" : "worldVertices/continent-africa" }, { "type" : "is-in", - "_id" : "worldEdges/2372053422", - "_rev" : "2372053422", - "_key" : "2372053422", - "_from" : "worldVertices/capital-helsinki", - "_to" : "worldVertices/country-finland" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2368711086", - "_rev" : "2368711086", - "_key" : "2368711086", - "_from" : "worldVertices/capital-algiers", - "_to" : "worldVertices/country-algeria" - }, - { - "type" : "is-in", - "_id" : "worldEdges/2366351790", - "_rev" : "2366351790", - "_key" : "2366351790", - "_from" : "worldVertices/country-colombia", + "_id" : "worldEdges/2365830705", + "_rev" : "2365830705", + "_key" : "2365830705", + "_from" : "worldVertices/country-chile", "_to" : "worldVertices/continent-south-america" }, { "type" : "is-in", - "_id" : "worldEdges/2373233070", - "_rev" : "2373233070", - "_key" : "2373233070", - "_from" : "worldVertices/capital-n-djamena", - "_to" : "worldVertices/country-chad" + "_id" : "worldEdges/2361308721", + "_rev" : "2361308721", + "_key" : "2361308721", + "_from" : "worldVertices/country-angola", + "_to" : "worldVertices/continent-africa" }, { "type" : "is-in", - "_id" : "worldEdges/2370480558", - "_rev" : "2370480558", - "_key" : "2370480558", + "_id" : "worldEdges/2368583217", + "_rev" : "2368583217", + "_key" : "2368583217", + "_from" : "worldVertices/capital-andorra-la-vella", + "_to" : "worldVertices/country-andorra" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2366813745", + "_rev" : "2366813745", + "_key" : "2366813745", + "_from" : "worldVertices/country-denmark", + "_to" : "worldVertices/continent-europe" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2368976433", + "_rev" : "2368976433", + "_key" : "2368976433", + "_from" : "worldVertices/capital-bandar-seri-begawan", + "_to" : "worldVertices/country-brunei" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2376054321", + "_rev" : "2376054321", + "_key" : "2376054321", + "_from" : "worldVertices/capital-zagreb", + "_to" : "worldVertices/country-croatia" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2359342641", + "_rev" : "2359342641", + "_key" : "2359342641", + "_from" : "worldVertices/continent-africa", + "_to" : "worldVertices/world" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2373105201", + "_rev" : "2373105201", + "_key" : "2373105201", + "_from" : "worldVertices/capital-ottawa", + "_to" : "worldVertices/country-canada" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2363668017", + "_rev" : "2363668017", + "_key" : "2363668017", + "_from" : "worldVertices/country-bosnia-and-herzegovina", + "_to" : "worldVertices/continent-europe" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2362684977", + "_rev" : "2362684977", + "_key" : "2362684977", + "_from" : "worldVertices/country-bangladesh", + "_to" : "worldVertices/continent-asia" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2367993393", + "_rev" : "2367993393", + "_key" : "2367993393", + "_from" : "worldVertices/country-germany", + "_to" : "worldVertices/continent-europe" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2366617137", + "_rev" : "2366617137", + "_key" : "2366617137", + "_from" : "worldVertices/country-czech-republic", + "_to" : "worldVertices/continent-europe" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2373695025", + "_rev" : "2373695025", + "_key" : "2373695025", + "_from" : "worldVertices/capital-phnom-penh", + "_to" : "worldVertices/country-cambodia" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2373301809", + "_rev" : "2373301809", + "_key" : "2373301809", + "_from" : "worldVertices/capital-ouagadougou", + "_to" : "worldVertices/country-burkina-faso" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2370942513", + "_rev" : "2370942513", + "_key" : "2370942513", + "_from" : "worldVertices/capital-canberra", + "_to" : "worldVertices/country-australia" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2371139121", + "_rev" : "2371139121", + "_key" : "2371139121", + "_from" : "worldVertices/capital-copenhagen", + "_to" : "worldVertices/country-denmark" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2367600177", + "_rev" : "2367600177", + "_key" : "2367600177", + "_from" : "worldVertices/country-finland", + "_to" : "worldVertices/continent-europe" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2362291761", + "_rev" : "2362291761", + "_key" : "2362291761", + "_from" : "worldVertices/country-bahamas", + "_to" : "worldVertices/continent-north-america" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2369369649", + "_rev" : "2369369649", + "_key" : "2369369649", + "_from" : "worldVertices/capital-berlin", + "_to" : "worldVertices/country-germany" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2365240881", + "_rev" : "2365240881", + "_key" : "2365240881", + "_from" : "worldVertices/country-cameroon", + "_to" : "worldVertices/continent-africa" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2369959473", + "_rev" : "2369959473", + "_key" : "2369959473", + "_from" : "worldVertices/capital-bridgetown", + "_to" : "worldVertices/country-barbados" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2373891633", + "_rev" : "2373891633", + "_key" : "2373891633", + "_from" : "worldVertices/capital-prague", + "_to" : "worldVertices/country-czech-republic" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2370156081", + "_rev" : "2370156081", + "_key" : "2370156081", "_from" : "worldVertices/capital-brussels", "_to" : "worldVertices/country-belgium" }, { "type" : "is-in", - "_id" : "worldEdges/2375592366", - "_rev" : "2375592366", - "_key" : "2375592366", + "_id" : "worldEdges/2368779825", + "_rev" : "2368779825", + "_key" : "2368779825", + "_from" : "worldVertices/capital-asmara", + "_to" : "worldVertices/country-eritrea" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2362488369", + "_rev" : "2362488369", + "_key" : "2362488369", + "_from" : "worldVertices/country-bahrain", + "_to" : "worldVertices/continent-asia" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2371532337", + "_rev" : "2371532337", + "_key" : "2371532337", + "_from" : "worldVertices/capital-gaborone", + "_to" : "worldVertices/country-botswana" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2361505329", + "_rev" : "2361505329", + "_key" : "2361505329", + "_from" : "worldVertices/country-antigua-and-barbuda", + "_to" : "worldVertices/continent-north-america" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2362881585", + "_rev" : "2362881585", + "_key" : "2362881585", + "_from" : "worldVertices/country-barbados", + "_to" : "worldVertices/continent-north-america" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2369173041", + "_rev" : "2369173041", + "_key" : "2369173041", + "_from" : "worldVertices/capital-beijing", + "_to" : "worldVertices/country-people-s-republic-of-china" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2371925553", + "_rev" : "2371925553", + "_key" : "2371925553", + "_from" : "worldVertices/capital-kabul", + "_to" : "worldVertices/country-afghanistan" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2365044273", + "_rev" : "2365044273", + "_key" : "2365044273", + "_from" : "worldVertices/country-cambodia", + "_to" : "worldVertices/continent-asia" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2375071281", + "_rev" : "2375071281", + "_key" : "2375071281", + "_from" : "worldVertices/capital-thimphu", + "_to" : "worldVertices/country-bhutan" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2362095153", + "_rev" : "2362095153", + "_key" : "2362095153", + "_from" : "worldVertices/country-austria", + "_to" : "worldVertices/continent-europe" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2372318769", + "_rev" : "2372318769", + "_key" : "2372318769", + "_from" : "worldVertices/capital-luanda", + "_to" : "worldVertices/country-angola" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2367010353", + "_rev" : "2367010353", + "_key" : "2367010353", + "_from" : "worldVertices/country-ecuador", + "_to" : "worldVertices/continent-south-america" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2359932465", + "_rev" : "2359932465", + "_key" : "2359932465", + "_from" : "worldVertices/continent-europe", + "_to" : "worldVertices/world" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2374088241", + "_rev" : "2374088241", + "_key" : "2374088241", + "_from" : "worldVertices/capital-quito", + "_to" : "worldVertices/country-ecuador" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2359539249", + "_rev" : "2359539249", + "_key" : "2359539249", + "_from" : "worldVertices/continent-asia", + "_to" : "worldVertices/world" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2364847665", + "_rev" : "2364847665", + "_key" : "2364847665", + "_from" : "worldVertices/country-burundi", + "_to" : "worldVertices/continent-africa" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2364651057", + "_rev" : "2364651057", + "_key" : "2364651057", + "_from" : "worldVertices/country-burkina-faso", + "_to" : "worldVertices/continent-africa" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2375464497", + "_rev" : "2375464497", + "_key" : "2375464497", + "_from" : "worldVertices/capital-vienna", + "_to" : "worldVertices/country-austria" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2360718897", + "_rev" : "2360718897", + "_key" : "2360718897", + "_from" : "worldVertices/country-albania", + "_to" : "worldVertices/continent-europe" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2365634097", + "_rev" : "2365634097", + "_key" : "2365634097", + "_from" : "worldVertices/country-chad", + "_to" : "worldVertices/continent-africa" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2374874673", + "_rev" : "2374874673", + "_key" : "2374874673", + "_from" : "worldVertices/capital-sofia", + "_to" : "worldVertices/country-bulgaria" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2364454449", + "_rev" : "2364454449", + "_key" : "2364454449", + "_from" : "worldVertices/country-bulgaria", + "_to" : "worldVertices/continent-europe" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2368386609", + "_rev" : "2368386609", + "_key" : "2368386609", + "_from" : "worldVertices/capital-algiers", + "_to" : "worldVertices/country-algeria" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2363864625", + "_rev" : "2363864625", + "_key" : "2363864625", + "_from" : "worldVertices/country-botswana", + "_to" : "worldVertices/continent-africa" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2371335729", + "_rev" : "2371335729", + "_key" : "2371335729", + "_from" : "worldVertices/capital-dhaka", + "_to" : "worldVertices/country-bangladesh" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2369762865", + "_rev" : "2369762865", + "_key" : "2369762865", + "_from" : "worldVertices/capital-brasilia", + "_to" : "worldVertices/country-brazil" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2367796785", + "_rev" : "2367796785", + "_key" : "2367796785", + "_from" : "worldVertices/country-france", + "_to" : "worldVertices/continent-europe" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2368190001", + "_rev" : "2368190001", + "_key" : "2368190001", + "_from" : "worldVertices/country-people-s-republic-of-china", + "_to" : "worldVertices/continent-asia" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2363274801", + "_rev" : "2363274801", + "_key" : "2363274801", + "_from" : "worldVertices/country-bhutan", + "_to" : "worldVertices/continent-asia" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2360325681", + "_rev" : "2360325681", + "_key" : "2360325681", + "_from" : "worldVertices/continent-south-america", + "_to" : "worldVertices/world" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2364257841", + "_rev" : "2364257841", + "_key" : "2364257841", + "_from" : "worldVertices/country-brunei", + "_to" : "worldVertices/continent-asia" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2372908593", + "_rev" : "2372908593", + "_key" : "2372908593", + "_from" : "worldVertices/capital-n-djamena", + "_to" : "worldVertices/country-chad" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2370352689", + "_rev" : "2370352689", + "_key" : "2370352689", + "_from" : "worldVertices/capital-buenos-aires", + "_to" : "worldVertices/country-argentina" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2366420529", + "_rev" : "2366420529", + "_key" : "2366420529", + "_from" : "worldVertices/country-croatia", + "_to" : "worldVertices/continent-europe" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2365437489", + "_rev" : "2365437489", + "_key" : "2365437489", + "_from" : "worldVertices/country-canada", + "_to" : "worldVertices/continent-north-america" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2363471409", + "_rev" : "2363471409", + "_key" : "2363471409", + "_from" : "worldVertices/country-bolivia", + "_to" : "worldVertices/continent-south-america" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2375267889", + "_rev" : "2375267889", + "_key" : "2375267889", "_from" : "worldVertices/capital-tirana", "_to" : "worldVertices/country-albania" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2366027313", + "_rev" : "2366027313", + "_key" : "2366027313", + "_from" : "worldVertices/country-colombia", + "_to" : "worldVertices/continent-south-america" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2372711985", + "_rev" : "2372711985", + "_key" : "2372711985", + "_from" : "worldVertices/capital-nassau", + "_to" : "worldVertices/country-bahamas" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2372515377", + "_rev" : "2372515377", + "_key" : "2372515377", + "_from" : "worldVertices/capital-manama", + "_to" : "worldVertices/country-bahrain" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2364061233", + "_rev" : "2364061233", + "_key" : "2364061233", + "_from" : "worldVertices/country-brazil", + "_to" : "worldVertices/continent-south-america" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2367206961", + "_rev" : "2367206961", + "_key" : "2367206961", + "_from" : "worldVertices/country-egypt", + "_to" : "worldVertices/continent-africa" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2375857713", + "_rev" : "2375857713", + "_key" : "2375857713", + "_from" : "worldVertices/capital-yaounde", + "_to" : "worldVertices/country-cameroon" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2374678065", + "_rev" : "2374678065", + "_key" : "2374678065", + "_from" : "worldVertices/capital-sarajevo", + "_to" : "worldVertices/country-bosnia-and-herzegovina" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2375661105", + "_rev" : "2375661105", + "_key" : "2375661105", + "_from" : "worldVertices/capital-yamoussoukro", + "_to" : "worldVertices/country-cote-d-ivoire" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2360915505", + "_rev" : "2360915505", + "_key" : "2360915505", + "_from" : "worldVertices/country-algeria", + "_to" : "worldVertices/continent-africa" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2373498417", + "_rev" : "2373498417", + "_key" : "2373498417", + "_from" : "worldVertices/capital-paris", + "_to" : "worldVertices/country-france" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2370549297", + "_rev" : "2370549297", + "_key" : "2370549297", + "_from" : "worldVertices/capital-bujumbura", + "_to" : "worldVertices/country-burundi" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2363078193", + "_rev" : "2363078193", + "_key" : "2363078193", + "_from" : "worldVertices/country-belgium", + "_to" : "worldVertices/continent-europe" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2370745905", + "_rev" : "2370745905", + "_key" : "2370745905", + "_from" : "worldVertices/capital-cairo", + "_to" : "worldVertices/country-egypt" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2366223921", + "_rev" : "2366223921", + "_key" : "2366223921", + "_from" : "worldVertices/country-cote-d-ivoire", + "_to" : "worldVertices/continent-africa" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2359735857", + "_rev" : "2359735857", + "_key" : "2359735857", + "_from" : "worldVertices/continent-australia", + "_to" : "worldVertices/world" + }, + { + "type" : "is-in", + "_id" : "worldEdges/2371728945", + "_rev" : "2371728945", + "_key" : "2371728945", + "_from" : "worldVertices/capital-helsinki", + "_to" : "worldVertices/country-finland" } ] arangosh> examples.dropGraph("worldCountry"); diff --git a/Documentation/Examples/queryLimit.generated b/Documentation/Examples/queryLimit.generated index f94cf96432..df95345710 100644 --- a/Documentation/Examples/queryLimit.generated +++ b/Documentation/Examples/queryLimit.generated @@ -2,47 +2,47 @@ arangosh> db.five.all().toArray(); [ { "name" : "five", - "_id" : "five/2413472174", - "_rev" : "2413472174", - "_key" : "2413472174" + "_id" : "five/2413147697", + "_rev" : "2413147697", + "_key" : "2413147697" }, { "name" : "four", - "_id" : "five/2413275566", - "_rev" : "2413275566", - "_key" : "2413275566" + "_id" : "five/2412951089", + "_rev" : "2412951089", + "_key" : "2412951089" }, { "name" : "one", - "_id" : "five/2412685742", - "_rev" : "2412685742", - "_key" : "2412685742" - }, - { - "name" : "three", - "_id" : "five/2413078958", - "_rev" : "2413078958", - "_key" : "2413078958" + "_id" : "five/2412361265", + "_rev" : "2412361265", + "_key" : "2412361265" }, { "name" : "two", - "_id" : "five/2412882350", - "_rev" : "2412882350", - "_key" : "2412882350" + "_id" : "five/2412557873", + "_rev" : "2412557873", + "_key" : "2412557873" + }, + { + "name" : "three", + "_id" : "five/2412754481", + "_rev" : "2412754481", + "_key" : "2412754481" } ] arangosh> db.five.all().limit(2).toArray(); [ { "name" : "five", - "_id" : "five/2413472174", - "_rev" : "2413472174", - "_key" : "2413472174" + "_id" : "five/2413147697", + "_rev" : "2413147697", + "_key" : "2413147697" }, { "name" : "four", - "_id" : "five/2413275566", - "_rev" : "2413275566", - "_key" : "2413275566" + "_id" : "five/2412951089", + "_rev" : "2412951089", + "_key" : "2412951089" } ] diff --git a/Documentation/Examples/querySkip.generated b/Documentation/Examples/querySkip.generated index 309ec16081..a40f739fb7 100644 --- a/Documentation/Examples/querySkip.generated +++ b/Documentation/Examples/querySkip.generated @@ -2,47 +2,47 @@ arangosh> db.five.all().toArray(); [ { "name" : "five", - "_id" : "five/2414913966", - "_rev" : "2414913966", - "_key" : "2414913966" - }, - { - "name" : "three", - "_id" : "five/2414520750", - "_rev" : "2414520750", - "_key" : "2414520750" - }, - { - "name" : "two", - "_id" : "five/2414324142", - "_rev" : "2414324142", - "_key" : "2414324142" + "_id" : "five/2414589489", + "_rev" : "2414589489", + "_key" : "2414589489" }, { "name" : "four", - "_id" : "five/2414717358", - "_rev" : "2414717358", - "_key" : "2414717358" + "_id" : "five/2414392881", + "_rev" : "2414392881", + "_key" : "2414392881" + }, + { + "name" : "two", + "_id" : "five/2413999665", + "_rev" : "2413999665", + "_key" : "2413999665" }, { "name" : "one", - "_id" : "five/2414127534", - "_rev" : "2414127534", - "_key" : "2414127534" + "_id" : "five/2413803057", + "_rev" : "2413803057", + "_key" : "2413803057" + }, + { + "name" : "three", + "_id" : "five/2414196273", + "_rev" : "2414196273", + "_key" : "2414196273" } ] arangosh> db.five.all().skip(3).toArray(); [ { - "name" : "four", - "_id" : "five/2414717358", - "_rev" : "2414717358", - "_key" : "2414717358" + "name" : "one", + "_id" : "five/2413803057", + "_rev" : "2413803057", + "_key" : "2413803057" }, { - "name" : "one", - "_id" : "five/2414127534", - "_rev" : "2414127534", - "_key" : "2414127534" + "name" : "three", + "_id" : "five/2414196273", + "_rev" : "2414196273", + "_key" : "2414196273" } ] diff --git a/Documentation/Examples/usingToArray.generated b/Documentation/Examples/usingToArray.generated index 157b10ce83..01b646d3a7 100644 --- a/Documentation/Examples/usingToArray.generated +++ b/Documentation/Examples/usingToArray.generated @@ -1,36 +1,36 @@ arangosh> db._create("five") -[ArangoCollection 2428610990, "five" (type document, status loaded)] +[ArangoCollection 2428286513, "five" (type document, status loaded)] arangosh> for (i = 0; i < 5; i++) db.five.save({value:i}) arangosh> db.five.toArray() [ - { - "value" : 0, - "_id" : "five/2428938670", - "_rev" : "2428938670", - "_key" : "2428938670" - }, - { - "value" : 3, - "_id" : "five/2429528494", - "_rev" : "2429528494", - "_key" : "2429528494" - }, { "value" : 1, - "_id" : "five/2429135278", - "_rev" : "2429135278", - "_key" : "2429135278" - }, - { - "value" : 2, - "_id" : "five/2429331886", - "_rev" : "2429331886", - "_key" : "2429331886" + "_id" : "five/2428810801", + "_rev" : "2428810801", + "_key" : "2428810801" }, { "value" : 4, - "_id" : "five/2429725102", - "_rev" : "2429725102", - "_key" : "2429725102" + "_id" : "five/2429400625", + "_rev" : "2429400625", + "_key" : "2429400625" + }, + { + "value" : 2, + "_id" : "five/2429007409", + "_rev" : "2429007409", + "_key" : "2429007409" + }, + { + "value" : 3, + "_id" : "five/2429204017", + "_rev" : "2429204017", + "_key" : "2429204017" + }, + { + "value" : 0, + "_id" : "five/2428614193", + "_rev" : "2428614193", + "_key" : "2428614193" } ] diff --git a/Documentation/Examples/working_with_date_time.generated b/Documentation/Examples/working_with_date_time.generated index dcaa9de874..aa0e297b0a 100644 --- a/Documentation/Examples/working_with_date_time.generated +++ b/Documentation/Examples/working_with_date_time.generated @@ -1,28 +1,28 @@ arangosh> db._create("exampleTime"); -[ArangoCollection 2429987246, "exampleTime" (type document, status loaded)] +[ArangoCollection 2429662769, "exampleTime" (type document, status loaded)] arangosh> var timestamps = ["2014-05-07T14:19:09.522","2014-05-07T21:19:09.522","2014-05-08T04:19:09.522","2014-05-08T11:19:09.522","2014-05-08T18:19:09.522"]; arangosh> for (i = 0; i < 5; i++) db.exampleTime.save({value:i, ts: timestamps[i]}) arangosh> db._query("FOR d IN exampleTime FILTER d.ts > '2014-05-07T14:19:09.522' and d.ts < '2014-05-08T18:19:09.522' RETURN d").toArray() [ + { + "value" : 2, + "ts" : "2014-05-08T04:19:09.522", + "_id" : "exampleTime/2430449201", + "_rev" : "2430449201", + "_key" : "2430449201" + }, { "value" : 3, "ts" : "2014-05-08T11:19:09.522", - "_id" : "exampleTime/2430970286", - "_rev" : "2430970286", - "_key" : "2430970286" + "_id" : "exampleTime/2430645809", + "_rev" : "2430645809", + "_key" : "2430645809" }, { "value" : 1, "ts" : "2014-05-07T21:19:09.522", - "_id" : "exampleTime/2430577070", - "_rev" : "2430577070", - "_key" : "2430577070" - }, - { - "value" : 2, - "ts" : "2014-05-08T04:19:09.522", - "_id" : "exampleTime/2430773678", - "_rev" : "2430773678", - "_key" : "2430773678" + "_id" : "exampleTime/2430252593", + "_rev" : "2430252593", + "_key" : "2430252593" } ] diff --git a/UnitTests/CMakeLists.txt b/UnitTests/CMakeLists.txt index df15670051..18225e115f 100644 --- a/UnitTests/CMakeLists.txt +++ b/UnitTests/CMakeLists.txt @@ -70,6 +70,13 @@ target_link_libraries( ${Boost_LIBRARIES} ) +if (NOT MSVC) + target_link_libraries( + ${TEST_BASICS_SUITE} + "resolv" + ) +endif () + endif () ################################################################################ @@ -94,6 +101,13 @@ target_link_libraries( ${Boost_LIBRARIES} ) +if (NOT MSVC) + target_link_libraries( + ${TEST_GEO_SUITE} + "resolv" + ) +endif () + endif () ## ----------------------------------------------------------------------------- diff --git a/VERSION b/VERSION index 2701a226a2..766d70806b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.8.4 +2.8.5 diff --git a/build.h b/build.h index 1d92d16dcc..43cd54b6fa 100644 --- a/build.h +++ b/build.h @@ -1 +1 @@ -#define TRI_VERSION "2.8.4" +#define TRI_VERSION "2.8.5" diff --git a/configure b/configure index ace569dd8a..d68eccd79d 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for ArangoDB GmbH 2.8.4. +# Generated by GNU Autoconf 2.69 for ArangoDB GmbH 2.8.5. # # Report bugs to . # @@ -580,8 +580,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='ArangoDB GmbH' PACKAGE_TARNAME='arangodb' -PACKAGE_VERSION='2.8.4' -PACKAGE_STRING='ArangoDB GmbH 2.8.4' +PACKAGE_VERSION='2.8.5' +PACKAGE_STRING='ArangoDB GmbH 2.8.5' PACKAGE_BUGREPORT='info@arangodb.com' PACKAGE_URL='https://www.arangodb.com' @@ -1405,7 +1405,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures ArangoDB GmbH 2.8.4 to adapt to many kinds of systems. +\`configure' configures ArangoDB GmbH 2.8.5 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1476,7 +1476,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of ArangoDB GmbH 2.8.4:";; + short | recursive ) echo "Configuration of ArangoDB GmbH 2.8.5:";; esac cat <<\_ACEOF @@ -1602,7 +1602,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -ArangoDB GmbH configure 2.8.4 +ArangoDB GmbH configure 2.8.5 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -2134,7 +2134,7 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by ArangoDB GmbH $as_me 2.8.4, which was +It was created by ArangoDB GmbH $as_me 2.8.5, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -3128,7 +3128,7 @@ fi # Define the identity of the package. PACKAGE='arangodb' - VERSION='2.8.4' + VERSION='2.8.5' cat >>confdefs.h <<_ACEOF @@ -6243,7 +6243,7 @@ else We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) +#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; @@ -6289,7 +6289,7 @@ else We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) +#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; @@ -6313,7 +6313,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) +#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; @@ -6358,7 +6358,7 @@ else We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) +#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; @@ -6382,7 +6382,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) +#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; @@ -9069,7 +9069,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by ArangoDB GmbH $as_me 2.8.4, which was +This file was extended by ArangoDB GmbH $as_me 2.8.5, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -9136,7 +9136,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -ArangoDB GmbH config.status 2.8.4 +ArangoDB GmbH config.status 2.8.5 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff --git a/configure.ac b/configure.ac index 6cdc1ca0ac..36b3496bdc 100644 --- a/configure.ac +++ b/configure.ac @@ -6,7 +6,7 @@ dnl ============================================================================ dnl --SECTION-- ArangoDB GmbH Build Environment dnl ============================================================================ -AC_INIT([ArangoDB GmbH], [2.8.4], [info@arangodb.com], [arangodb], [https://www.arangodb.com]) +AC_INIT([ArangoDB GmbH], [2.8.5], [info@arangodb.com], [arangodb], [https://www.arangodb.com]) CURRENT_DIR=`pwd` diff --git a/js/apps/system/_admin/aardvark/APP/api-docs.json b/js/apps/system/_admin/aardvark/APP/api-docs.json index 6ef759e75e..6965c1eb9d 100644 --- a/js/apps/system/_admin/aardvark/APP/api-docs.json +++ b/js/apps/system/_admin/aardvark/APP/api-docs.json @@ -2491,7 +2491,7 @@ }, "/_admin/statistics": { "get": { - "description": "\n\n\nReturns the statistics information. The returned object contains the\nstatistics figures grouped together according to the description returned by\n*_admin/statistics-description*. For instance, to access a figure *userTime*\nfrom the group *system*, you first select the sub-object describing the\ngroup stored in *system* and in that sub-object the value for *userTime* is\nstored in the attribute of the same name.\n\nIn case of a distribution, the returned object contains the total count in\n*count* and the distribution list in *counts*. The sum (or total) of the\nindividual values is returned in *sum*.\n\n\n
Example:

shell> curl --dump - http://localhost:8529/_admin/statistics\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"time\" : 1456862637.512907, \n  \"system\" : { \n    \"minorPageFaults\" : 42921, \n    \"majorPageFaults\" : 2955, \n    \"userTime\" : 2.435467, \n    \"systemTime\" : 1.861656, \n    \"numberOfThreads\" : 25, \n    \"residentSize\" : 117526528, \n    \"residentSizePercent\" : 0.006840944290161133, \n    \"virtualSize\" : 5014016000 \n  }, \n  \"client\" : { \n    \"httpConnections\" : 1, \n    \"connectionTime\" : { \n      \"sum\" : 0.0003027915954589844, \n      \"count\" : 1, \n      \"counts\" : [ \n        1, \n        0, \n        0, \n        0 \n      ] \n    }, \n    \"totalTime\" : { \n      \"sum\" : 1.8053078651428223, \n      \"count\" : 3722, \n      \"counts\" : [ \n        3710, \n        9, \n        3, \n        0, \n        0, \n        0, \n        0 \n      ] \n    }, \n    \"requestTime\" : { \n      \"sum\" : 1.5350773334503174, \n      \"count\" : 3722, \n      \"counts\" : [ \n        3711, \n        8, \n        3, \n        0, \n        0, \n        0, \n        0 \n      ] \n    }, \n    \"queueTime\" : { \n      \"sum\" : 0.025108814239501953, \n      \"count\" : 3700, \n      \"counts\" : [ \n        3700, \n        0, \n        0, \n        0, \n        0, \n        0, \n        0 \n      ] \n    }, \n    \"ioTime\" : { \n      \"sum\" : 0.24512171745300293, \n      \"count\" : 3722, \n      \"counts\" : [ \n        3721, \n        1, \n        0, \n        0, \n        0, \n        0, \n        0 \n      ] \n    }, \n    \"bytesSent\" : { \n      \"sum\" : 1733926, \n      \"count\" : 3722, \n      \"counts\" : [ \n        414, \n        3040, \n        19, \n        249, \n        0, \n        0 \n      ] \n    }, \n    \"bytesReceived\" : { \n      \"sum\" : 834495, \n      \"count\" : 3722, \n      \"counts\" : [ \n        3458, \n        264, \n        0, \n        0, \n        0, \n        0 \n      ] \n    } \n  }, \n  \"http\" : { \n    \"requestsTotal\" : 3734, \n    \"requestsAsync\" : 0, \n    \"requestsGet\" : 668, \n    \"requestsHead\" : 71, \n    \"requestsPost\" : 2728, \n    \"requestsPut\" : 120, \n    \"requestsPatch\" : 3, \n    \"requestsDelete\" : 143, \n    \"requestsOptions\" : 0, \n    \"requestsOther\" : 1 \n  }, \n  \"server\" : { \n    \"uptime\" : 11.211220979690552, \n    \"physicalMemory\" : 17179869184 \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", + "description": "\n\n\nReturns the statistics information. The returned object contains the\nstatistics figures grouped together according to the description returned by\n*_admin/statistics-description*. For instance, to access a figure *userTime*\nfrom the group *system*, you first select the sub-object describing the\ngroup stored in *system* and in that sub-object the value for *userTime* is\nstored in the attribute of the same name.\n\nIn case of a distribution, the returned object contains the total count in\n*count* and the distribution list in *counts*. The sum (or total) of the\nindividual values is returned in *sum*.\n\n\n
Example:

shell> curl --dump - http://localhost:8529/_admin/statistics\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"time\" : 1457638700.72929, \n  \"system\" : { \n    \"minorPageFaults\" : 44060, \n    \"majorPageFaults\" : 3007, \n    \"userTime\" : 2.732053, \n    \"systemTime\" : 1.824541, \n    \"numberOfThreads\" : 25, \n    \"residentSize\" : 120442880, \n    \"residentSizePercent\" : 0.007010698318481445, \n    \"virtualSize\" : 5015117824 \n  }, \n  \"client\" : { \n    \"httpConnections\" : 1, \n    \"connectionTime\" : { \n      \"sum\" : 0.001432180404663086, \n      \"count\" : 1, \n      \"counts\" : [ \n        1, \n        0, \n        0, \n        0 \n      ] \n    }, \n    \"totalTime\" : { \n      \"sum\" : 2.030900001525879, \n      \"count\" : 3722, \n      \"counts\" : [ \n        3705, \n        13, \n        4, \n        0, \n        0, \n        0, \n        0 \n      ] \n    }, \n    \"requestTime\" : { \n      \"sum\" : 1.7447307109832764, \n      \"count\" : 3722, \n      \"counts\" : [ \n        3705, \n        13, \n        4, \n        0, \n        0, \n        0, \n        0 \n      ] \n    }, \n    \"queueTime\" : { \n      \"sum\" : 0.029402494430541992, \n      \"count\" : 3700, \n      \"counts\" : [ \n        3700, \n        0, \n        0, \n        0, \n        0, \n        0, \n        0 \n      ] \n    }, \n    \"ioTime\" : { \n      \"sum\" : 0.25676679611206055, \n      \"count\" : 3722, \n      \"counts\" : [ \n        3722, \n        0, \n        0, \n        0, \n        0, \n        0, \n        0 \n      ] \n    }, \n    \"bytesSent\" : { \n      \"sum\" : 1738790, \n      \"count\" : 3722, \n      \"counts\" : [ \n        414, \n        3040, \n        19, \n        249, \n        0, \n        0 \n      ] \n    }, \n    \"bytesReceived\" : { \n      \"sum\" : 834495, \n      \"count\" : 3722, \n      \"counts\" : [ \n        3458, \n        264, \n        0, \n        0, \n        0, \n        0 \n      ] \n    } \n  }, \n  \"http\" : { \n    \"requestsTotal\" : 3734, \n    \"requestsAsync\" : 0, \n    \"requestsGet\" : 668, \n    \"requestsHead\" : 71, \n    \"requestsPost\" : 2728, \n    \"requestsPut\" : 120, \n    \"requestsPatch\" : 3, \n    \"requestsDelete\" : 143, \n    \"requestsOptions\" : 0, \n    \"requestsOther\" : 1 \n  }, \n  \"server\" : { \n    \"uptime\" : 9.2930428981781, \n    \"physicalMemory\" : 17179869184 \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", "parameters": [], "responses": { "200": { @@ -2754,7 +2754,7 @@ }, "/_api/batch": { "post": { - "description": "\nfree style json body\n\n\n\nExecutes a batch request. A batch request can contain any number of\nother requests that can be sent to ArangoDB in isolation. The benefit of\nusing batch requests is that batching requests requires less client/server\nroundtrips than when sending isolated requests.\n\nAll parts of a batch request are executed serially on the server. The\nserver will return the results of all parts in a single response when all\nparts are finished.\n\nTechnically, a batch request is a multipart HTTP request, with\ncontent-type `multipart/form-data`. A batch request consists of an\nenvelope and the individual batch part actions. Batch part actions\nare \"regular\" HTTP requests, including full header and an optional body.\nMultiple batch parts are separated by a boundary identifier. The\nboundary identifier is declared in the batch envelope. The MIME content-type\nfor each individual batch part must be `application/x-arango-batchpart`.\n\nPlease note that when constructing the individual batch parts, you must\nuse CRLF (`\\r\\n`) as the line terminator as in regular HTTP messages.\n\nThe response sent by the server will be an `HTTP 200` response, with an\noptional error summary header `x-arango-errors`. This header contains the\nnumber of batch part operations that failed with an HTTP error code of at\nleast 400. This header is only present in the response if the number of\nerrors is greater than zero.\n\nThe response sent by the server is a multipart response, too. It contains\nthe individual HTTP responses for all batch parts, including the full HTTP\nresult header (with status code and other potential headers) and an\noptional result body. The individual batch parts in the result are\nseperated using the same boundary value as specified in the request.\n\nThe order of batch parts in the response will be the same as in the\noriginal client request. Client can additionally use the `Content-Id`\nMIME header in a batch part to define an individual id for each batch part.\nThe server will return this id is the batch part responses, too.\n\n\n
Example: Sending a batch request with five batch parts:\n\n- GET /_api/version\n\n- DELETE /_api/collection/products\n\n- POST /_api/collection/products\n\n- GET /_api/collection/products/figures\n\n- DELETE /_api/collection/products\n\nThe boundary (`SomeBoundaryValue`) is passed to the server in the HTTP\n`Content-Type` HTTP header.\n*Please note the reply is not displayed all accurate.*

shell> curl -X POST --header 'Content-Type: multipart/form-data; boundary=SomeBoundaryValue' --data-binary @- --dump - http://localhost:8529/_api/batch <<EOF\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: myId1\r\n\r\nGET /_api/version HTTP/1.1\r\n\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: myId2\r\n\r\nDELETE /_api/collection/products HTTP/1.1\r\n\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: someId\r\n\r\nPOST /_api/collection/products HTTP/1.1\r\n\r\n{ \"name\": \"products\" }\r\n\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: nextId\r\n\r\nGET /_api/collection/products/figures HTTP/1.1\r\n\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: otherId\r\n\r\nDELETE /_api/collection/products HTTP/1.1\r\n--SomeBoundaryValue--\r\n\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: multipart/form-data; boundary=SomeBoundaryValue\nx-arango-errors: 1\n\n\"--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\nContent-Id: myId1\\r\\n\\r\\nHTTP/1.1 200 OK\\r\\nContent-Type: application/json; charset=utf-8\\r\\nContent-Length: 37\\r\\n\\r\\n{\\\"server\\\":\\\"arango\\\",\\\"version\\\":\\\"2.8.4\\\"}\\r\\n--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\nContent-Id: myId2\\r\\n\\r\\nHTTP/1.1 404 Not Found\\r\\nContent-Type: application/json; charset=utf-8\\r\\nContent-Length: 88\\r\\n\\r\\n{\\\"error\\\":true,\\\"code\\\":404,\\\"errorNum\\\":1203,\\\"errorMessage\\\":\\\"unknown collection 'products'\\\"}\\r\\n--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\nContent-Id: someId\\r\\n\\r\\nHTTP/1.1 200 OK\\r\\nLocation: /_db/_system/_api/collection/products\\r\\nContent-Type: application/json; charset=utf-8\\r\\nContent-Length: 137\\r\\n\\r\\n{\\\"id\\\":\\\"643934638\\\",\\\"name\\\":\\\"products\\\",\\\"waitForSync\\\":false,\\\"isVolatile\\\":false,\\\"isSystem\\\":false,\\\"status\\\":3,\\\"type\\\":2,\\\"error\\\":false,\\\"code\\\":200}\\r\\n--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\nContent-Id: nextId\\r\\n\\r\\nHTTP/1.1 200 OK\\r\\nLocation: /_db/_system/_api/collection/products/figures\\r\\nContent-Type: application/json; charset=utf-8\\r\\nContent-Length: 765\\r\\n\\r\\n{\\\"id\\\":\\\"643934638\\\",\\\"name\\\":\\\"products\\\",\\\"isSystem\\\":false,\\\"doCompact\\\":true,\\\"isVolatile\\\":false,\\\"journalSize\\\":1048576,\\\"keyOptions\\\":{\\\"type\\\":\\\"traditional\\\",\\\"allowUserKeys\\\":true},\\\"waitForSync\\\":false,\\\"indexBuckets\\\":8,\\\"count\\\":0,\\\"figures\\\":{\\\"alive\\\":{\\\"count\\\":0,\\\"size\\\":0},\\\"dead\\\":{\\\"count\\\":0,\\\"size\\\":0,\\\"deletion\\\":0},\\\"datafiles\\\":{\\\"count\\\":0,\\\"fileSize\\\":0},\\\"journals\\\":{\\\"count\\\":0,\\\"fileSize\\\":0},\\\"compactors\\\":{\\\"count\\\":0,\\\"fileSize\\\":0},\\\"shapefiles\\\":{\\\"count\\\":0,\\\"fileSize\\\":0},\\\"shapes\\\":{\\\"count\\\":0,\\\"size\\\":0},\\\"attributes\\\":{\\\"count\\\":0,\\\"size\\\":0},\\\"indexes\\\":{\\\"count\\\":1,\\\"size\\\":16064},\\\"lastTick\\\":\\\"0\\\",\\\"uncollectedLogfileEntries\\\":0,\\\"documentReferences\\\":0,\\\"waitingFor\\\":\\\"-\\\",\\\"compactionStatus\\\":{\\\"message\\\":\\\"compaction not yet started\\\",\\\"time\\\":\\\"2016-03-01T20:03:57Z\\\"}},\\\"status\\\":3,\\\"type\\\":2,\\\"error\\\":false,\\\"code\\\":200}\\r\\n--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\nContent-Id: otherId\\r\\n\\r\\nHTTP/1.1 200 OK\\r\\nContent-Type: application/json; charset=utf-8\\r\\nContent-Length: 43\\r\\n\\r\\n{\\\"id\\\":\\\"643934638\\\",\\\"error\\\":false,\\\"code\\\":200}\\r\\n--SomeBoundaryValue--\"\n

\n
Example: Sending a batch request, setting the boundary implicitly (the server will\nin this case try to find the boundary at the beginning of the request body).

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/batch <<EOF\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\n\r\nDELETE /_api/collection/notexisting1 HTTP/1.1\r\n\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\n\r\nDELETE /_api/collection/notexisting2 HTTP/1.1\r\n--SomeBoundaryValue--\r\n\nEOF\n\nHTTP/1.1 200 OK\nx-arango-errors: 2\n\n\"--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\n\\r\\nHTTP/1.1 404 Not Found\\r\\nContent-Type: application/json; charset=utf-8\\r\\nContent-Length: 92\\r\\n\\r\\n{\\\"error\\\":true,\\\"code\\\":404,\\\"errorNum\\\":1203,\\\"errorMessage\\\":\\\"unknown collection 'notexisting1'\\\"}\\r\\n--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\n\\r\\nHTTP/1.1 404 Not Found\\r\\nContent-Type: application/json; charset=utf-8\\r\\nContent-Length: 92\\r\\n\\r\\n{\\\"error\\\":true,\\\"code\\\":404,\\\"errorNum\\\":1203,\\\"errorMessage\\\":\\\"unknown collection 'notexisting2'\\\"}\\r\\n--SomeBoundaryValue--\"\n

\n\n", + "description": "\nfree style json body\n\n\n\nExecutes a batch request. A batch request can contain any number of\nother requests that can be sent to ArangoDB in isolation. The benefit of\nusing batch requests is that batching requests requires less client/server\nroundtrips than when sending isolated requests.\n\nAll parts of a batch request are executed serially on the server. The\nserver will return the results of all parts in a single response when all\nparts are finished.\n\nTechnically, a batch request is a multipart HTTP request, with\ncontent-type `multipart/form-data`. A batch request consists of an\nenvelope and the individual batch part actions. Batch part actions\nare \"regular\" HTTP requests, including full header and an optional body.\nMultiple batch parts are separated by a boundary identifier. The\nboundary identifier is declared in the batch envelope. The MIME content-type\nfor each individual batch part must be `application/x-arango-batchpart`.\n\nPlease note that when constructing the individual batch parts, you must\nuse CRLF (`\\r\\n`) as the line terminator as in regular HTTP messages.\n\nThe response sent by the server will be an `HTTP 200` response, with an\noptional error summary header `x-arango-errors`. This header contains the\nnumber of batch part operations that failed with an HTTP error code of at\nleast 400. This header is only present in the response if the number of\nerrors is greater than zero.\n\nThe response sent by the server is a multipart response, too. It contains\nthe individual HTTP responses for all batch parts, including the full HTTP\nresult header (with status code and other potential headers) and an\noptional result body. The individual batch parts in the result are\nseperated using the same boundary value as specified in the request.\n\nThe order of batch parts in the response will be the same as in the\noriginal client request. Client can additionally use the `Content-Id`\nMIME header in a batch part to define an individual id for each batch part.\nThe server will return this id is the batch part responses, too.\n\n\n
Example: Sending a batch request with five batch parts:\n\n- GET /_api/version\n\n- DELETE /_api/collection/products\n\n- POST /_api/collection/products\n\n- GET /_api/collection/products/figures\n\n- DELETE /_api/collection/products\n\nThe boundary (`SomeBoundaryValue`) is passed to the server in the HTTP\n`Content-Type` HTTP header.\n*Please note the reply is not displayed all accurate.*

shell> curl -X POST --header 'Content-Type: multipart/form-data; boundary=SomeBoundaryValue' --data-binary @- --dump - http://localhost:8529/_api/batch <<EOF\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: myId1\r\n\r\nGET /_api/version HTTP/1.1\r\n\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: myId2\r\n\r\nDELETE /_api/collection/products HTTP/1.1\r\n\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: someId\r\n\r\nPOST /_api/collection/products HTTP/1.1\r\n\r\n{ \"name\": \"products\" }\r\n\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: nextId\r\n\r\nGET /_api/collection/products/figures HTTP/1.1\r\n\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: otherId\r\n\r\nDELETE /_api/collection/products HTTP/1.1\r\n--SomeBoundaryValue--\r\n\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: multipart/form-data; boundary=SomeBoundaryValue\nx-arango-errors: 1\n\n\"--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\nContent-Id: myId1\\r\\n\\r\\nHTTP/1.1 200 OK\\r\\nContent-Type: application/json; charset=utf-8\\r\\nContent-Length: 37\\r\\n\\r\\n{\\\"server\\\":\\\"arango\\\",\\\"version\\\":\\\"2.8.5\\\"}\\r\\n--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\nContent-Id: myId2\\r\\n\\r\\nHTTP/1.1 404 Not Found\\r\\nContent-Type: application/json; charset=utf-8\\r\\nContent-Length: 88\\r\\n\\r\\n{\\\"error\\\":true,\\\"code\\\":404,\\\"errorNum\\\":1203,\\\"errorMessage\\\":\\\"unknown collection 'products'\\\"}\\r\\n--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\nContent-Id: someId\\r\\n\\r\\nHTTP/1.1 200 OK\\r\\nLocation: /_db/_system/_api/collection/products\\r\\nContent-Type: application/json; charset=utf-8\\r\\nContent-Length: 137\\r\\n\\r\\n{\\\"id\\\":\\\"640857649\\\",\\\"name\\\":\\\"products\\\",\\\"waitForSync\\\":false,\\\"isVolatile\\\":false,\\\"isSystem\\\":false,\\\"status\\\":3,\\\"type\\\":2,\\\"error\\\":false,\\\"code\\\":200}\\r\\n--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\nContent-Id: nextId\\r\\n\\r\\nHTTP/1.1 200 OK\\r\\nLocation: /_db/_system/_api/collection/products/figures\\r\\nContent-Type: application/json; charset=utf-8\\r\\nContent-Length: 765\\r\\n\\r\\n{\\\"id\\\":\\\"640857649\\\",\\\"name\\\":\\\"products\\\",\\\"isSystem\\\":false,\\\"doCompact\\\":true,\\\"isVolatile\\\":false,\\\"journalSize\\\":1048576,\\\"keyOptions\\\":{\\\"type\\\":\\\"traditional\\\",\\\"allowUserKeys\\\":true},\\\"waitForSync\\\":false,\\\"indexBuckets\\\":8,\\\"count\\\":0,\\\"figures\\\":{\\\"alive\\\":{\\\"count\\\":0,\\\"size\\\":0},\\\"dead\\\":{\\\"count\\\":0,\\\"size\\\":0,\\\"deletion\\\":0},\\\"datafiles\\\":{\\\"count\\\":0,\\\"fileSize\\\":0},\\\"journals\\\":{\\\"count\\\":0,\\\"fileSize\\\":0},\\\"compactors\\\":{\\\"count\\\":0,\\\"fileSize\\\":0},\\\"shapefiles\\\":{\\\"count\\\":0,\\\"fileSize\\\":0},\\\"shapes\\\":{\\\"count\\\":0,\\\"size\\\":0},\\\"attributes\\\":{\\\"count\\\":0,\\\"size\\\":0},\\\"indexes\\\":{\\\"count\\\":1,\\\"size\\\":16064},\\\"lastTick\\\":\\\"0\\\",\\\"uncollectedLogfileEntries\\\":0,\\\"documentReferences\\\":0,\\\"waitingFor\\\":\\\"-\\\",\\\"compactionStatus\\\":{\\\"message\\\":\\\"compaction not yet started\\\",\\\"time\\\":\\\"2016-03-10T19:38:20Z\\\"}},\\\"status\\\":3,\\\"type\\\":2,\\\"error\\\":false,\\\"code\\\":200}\\r\\n--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\nContent-Id: otherId\\r\\n\\r\\nHTTP/1.1 200 OK\\r\\nContent-Type: application/json; charset=utf-8\\r\\nContent-Length: 43\\r\\n\\r\\n{\\\"id\\\":\\\"640857649\\\",\\\"error\\\":false,\\\"code\\\":200}\\r\\n--SomeBoundaryValue--\"\n

\n
Example: Sending a batch request, setting the boundary implicitly (the server will\nin this case try to find the boundary at the beginning of the request body).

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/batch <<EOF\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\n\r\nDELETE /_api/collection/notexisting1 HTTP/1.1\r\n\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\n\r\nDELETE /_api/collection/notexisting2 HTTP/1.1\r\n--SomeBoundaryValue--\r\n\nEOF\n\nHTTP/1.1 200 OK\nx-arango-errors: 2\n\n\"--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\n\\r\\nHTTP/1.1 404 Not Found\\r\\nContent-Type: application/json; charset=utf-8\\r\\nContent-Length: 92\\r\\n\\r\\n{\\\"error\\\":true,\\\"code\\\":404,\\\"errorNum\\\":1203,\\\"errorMessage\\\":\\\"unknown collection 'notexisting1'\\\"}\\r\\n--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\n\\r\\nHTTP/1.1 404 Not Found\\r\\nContent-Type: application/json; charset=utf-8\\r\\nContent-Length: 92\\r\\n\\r\\n{\\\"error\\\":true,\\\"code\\\":404,\\\"errorNum\\\":1203,\\\"errorMessage\\\":\\\"unknown collection 'notexisting2'\\\"}\\r\\n--SomeBoundaryValue--\"\n

\n\n", "parameters": [ { "description": "The multipart batch request, consisting of the envelope and the individual\nbatch parts.\n\n", @@ -2789,7 +2789,7 @@ }, "/_api/collection": { "get": { - "description": "\n\nReturns an object with an attribute *collections* containing an\narray of all collection descriptions. The same information is also\navailable in the *names* as an object with the collection names\nas keys.\n\nBy providing the optional query parameter *excludeSystem* with a value of\n*true*, all system collections will be excluded from the response.\n\n\n
Example: Return information about all collections:

shell> curl --dump - http://localhost:8529/_api/collection\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"collections\" : [ \n    { \n      \"id\" : \"2337198\", \n      \"name\" : \"_routing\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    { \n      \"id\" : \"4106670\", \n      \"name\" : \"_statisticsRaw\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    { \n      \"id\" : \"5417390\", \n      \"name\" : \"_queues\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    { \n      \"id\" : \"13412782\", \n      \"name\" : \"_sessions\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    { \n      \"id\" : \"4499886\", \n      \"name\" : \"_statistics\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    { \n      \"id\" : \"4893102\", \n      \"name\" : \"_statistics15\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    { \n      \"id\" : \"2206126\", \n      \"name\" : \"_modules\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    { \n      \"id\" : \"3975598\", \n      \"name\" : \"_aqlfunctions\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    { \n      \"id\" : \"20425134\", \n      \"name\" : \"demo\", \n      \"isSystem\" : false, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    { \n      \"id\" : \"5286318\", \n      \"name\" : \"_configuration\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    { \n      \"id\" : \"21277102\", \n      \"name\" : \"animals\", \n      \"isSystem\" : false, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    { \n      \"id\" : \"14133678\", \n      \"name\" : \"_system_users_users\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    { \n      \"id\" : \"5679534\", \n      \"name\" : \"_apps\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    { \n      \"id\" : \"2075054\", \n      \"name\" : \"_graphs\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    { \n      \"id\" : \"2468270\", \n      \"name\" : \"_cluster_kickstarter_plans\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    { \n      \"id\" : \"240046\", \n      \"name\" : \"_users\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    { \n      \"id\" : \"5548462\", \n      \"name\" : \"_jobs\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    } \n  ], \n  \"names\" : { \n    \"_routing\" : { \n      \"id\" : \"2337198\", \n      \"name\" : \"_routing\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    \"_statisticsRaw\" : { \n      \"id\" : \"4106670\", \n      \"name\" : \"_statisticsRaw\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    \"_queues\" : { \n      \"id\" : \"5417390\", \n      \"name\" : \"_queues\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    \"_sessions\" : { \n      \"id\" : \"13412782\", \n      \"name\" : \"_sessions\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    \"_statistics\" : { \n      \"id\" : \"4499886\", \n      \"name\" : \"_statistics\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    \"_statistics15\" : { \n      \"id\" : \"4893102\", \n      \"name\" : \"_statistics15\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    \"_modules\" : { \n      \"id\" : \"2206126\", \n      \"name\" : \"_modules\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    \"_aqlfunctions\" : { \n      \"id\" : \"3975598\", \n      \"name\" : \"_aqlfunctions\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    \"demo\" : { \n      \"id\" : \"20425134\", \n      \"name\" : \"demo\", \n      \"isSystem\" : false, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    \"_configuration\" : { \n      \"id\" : \"5286318\", \n      \"name\" : \"_configuration\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    \"animals\" : { \n      \"id\" : \"21277102\", \n      \"name\" : \"animals\", \n      \"isSystem\" : false, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    \"_system_users_users\" : { \n      \"id\" : \"14133678\", \n      \"name\" : \"_system_users_users\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    \"_apps\" : { \n      \"id\" : \"5679534\", \n      \"name\" : \"_apps\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    \"_graphs\" : { \n      \"id\" : \"2075054\", \n      \"name\" : \"_graphs\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    \"_cluster_kickstarter_plans\" : { \n      \"id\" : \"2468270\", \n      \"name\" : \"_cluster_kickstarter_plans\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    \"_users\" : { \n      \"id\" : \"240046\", \n      \"name\" : \"_users\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    \"_jobs\" : { \n      \"id\" : \"5548462\", \n      \"name\" : \"_jobs\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", + "description": "\n\nReturns an object with an attribute *collections* containing an\narray of all collection descriptions. The same information is also\navailable in the *names* as an object with the collection names\nas keys.\n\nBy providing the optional query parameter *excludeSystem* with a value of\n*true*, all system collections will be excluded from the response.\n\n\n
Example: Return information about all collections:

shell> curl --dump - http://localhost:8529/_api/collection\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"collections\" : [ \n    { \n      \"id\" : \"4896305\", \n      \"name\" : \"_statistics15\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    { \n      \"id\" : \"2209329\", \n      \"name\" : \"_modules\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    { \n      \"id\" : \"3978801\", \n      \"name\" : \"_aqlfunctions\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    { \n      \"id\" : \"5289521\", \n      \"name\" : \"_configuration\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    { \n      \"id\" : \"14136881\", \n      \"name\" : \"_system_users_users\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    { \n      \"id\" : \"5682737\", \n      \"name\" : \"_apps\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    { \n      \"id\" : \"17217073\", \n      \"name\" : \"demo\", \n      \"isSystem\" : false, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    { \n      \"id\" : \"2078257\", \n      \"name\" : \"_graphs\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    { \n      \"id\" : \"18069041\", \n      \"name\" : \"animals\", \n      \"isSystem\" : false, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    { \n      \"id\" : \"2471473\", \n      \"name\" : \"_cluster_kickstarter_plans\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    { \n      \"id\" : \"243249\", \n      \"name\" : \"_users\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    { \n      \"id\" : \"5551665\", \n      \"name\" : \"_jobs\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    { \n      \"id\" : \"2340401\", \n      \"name\" : \"_routing\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    { \n      \"id\" : \"4109873\", \n      \"name\" : \"_statisticsRaw\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    { \n      \"id\" : \"5420593\", \n      \"name\" : \"_queues\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    { \n      \"id\" : \"13415985\", \n      \"name\" : \"_sessions\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    { \n      \"id\" : \"4503089\", \n      \"name\" : \"_statistics\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    } \n  ], \n  \"names\" : { \n    \"_statistics15\" : { \n      \"id\" : \"4896305\", \n      \"name\" : \"_statistics15\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    \"_modules\" : { \n      \"id\" : \"2209329\", \n      \"name\" : \"_modules\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    \"_aqlfunctions\" : { \n      \"id\" : \"3978801\", \n      \"name\" : \"_aqlfunctions\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    \"_configuration\" : { \n      \"id\" : \"5289521\", \n      \"name\" : \"_configuration\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    \"_system_users_users\" : { \n      \"id\" : \"14136881\", \n      \"name\" : \"_system_users_users\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    \"_apps\" : { \n      \"id\" : \"5682737\", \n      \"name\" : \"_apps\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    \"demo\" : { \n      \"id\" : \"17217073\", \n      \"name\" : \"demo\", \n      \"isSystem\" : false, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    \"_graphs\" : { \n      \"id\" : \"2078257\", \n      \"name\" : \"_graphs\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    \"animals\" : { \n      \"id\" : \"18069041\", \n      \"name\" : \"animals\", \n      \"isSystem\" : false, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    \"_cluster_kickstarter_plans\" : { \n      \"id\" : \"2471473\", \n      \"name\" : \"_cluster_kickstarter_plans\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    \"_users\" : { \n      \"id\" : \"243249\", \n      \"name\" : \"_users\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    \"_jobs\" : { \n      \"id\" : \"5551665\", \n      \"name\" : \"_jobs\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    \"_routing\" : { \n      \"id\" : \"2340401\", \n      \"name\" : \"_routing\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    \"_statisticsRaw\" : { \n      \"id\" : \"4109873\", \n      \"name\" : \"_statisticsRaw\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    \"_queues\" : { \n      \"id\" : \"5420593\", \n      \"name\" : \"_queues\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    \"_sessions\" : { \n      \"id\" : \"13415985\", \n      \"name\" : \"_sessions\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    }, \n    \"_statistics\" : { \n      \"id\" : \"4503089\", \n      \"name\" : \"_statistics\", \n      \"isSystem\" : true, \n      \"status\" : 3, \n      \"type\" : 2 \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", "parameters": [ { "description": "Whether or not system collections should be excluded from the result.\n\n", @@ -2812,7 +2812,7 @@ "x-filename": "Collections - js/actions/_api/collection/app.js" }, "post": { - "description": "**A json post document with these Properties is required:**\n\n - **journalSize**: The maximal size of a journal or datafile in bytes. The value \n must be at least `1048576` (1 MiB). (The default is a configuration parameter)\n - **keyOptions**:\n - **allowUserKeys**: if set to *true*, then it is allowed to supply own key values in the\n *_key* attribute of a document. If set to *false*, then the key generator\n will solely be responsible for generating keys and supplying own key values\n in the *_key* attribute of documents is considered an error.\n - **type**: specifies the type of the key generator. The currently available generators are\n *traditional* and *autoincrement*.\n - **increment**: increment value for *autoincrement* key generator. Not used for other key\n generator types.\n - **offset**: Initial offset value for *autoincrement* key generator.\n Not used for other key generator types.\n - **name**: The name of the collection.\n - **waitForSync**: If *true* then the data is synchronized to disk before returning from a\n document create, update, replace or removal operation. (default: false)\n - **doCompact**: whether or not the collection will be compacted (default is *true*)\n - **isVolatile**: If *true* then the collection data is kept in-memory only and not made persistent.\n Unloading the collection will cause the collection data to be discarded. Stopping\n or re-starting the server will also cause full loss of data in the\n collection. Setting this option will make the resulting collection be\n slightly faster than regular collections because ArangoDB does not\n enforce any synchronization to disk and does not calculate any CRC\n checksums for datafiles (as there are no datafiles). This option \n should therefore be used for cache-type collections only, and not \n for data that cannot be re-created otherwise.\n (The default is *false*)\n - **shardKeys**: (The default is *[ \"_key\" ]*): in a cluster, this attribute determines\n which document attributes are used to determine the target shard for documents.\n Documents are sent to shards based on the values of their shard key attributes.\n The values of all shard key attributes in a document are hashed,\n and the hash value is used to determine the target shard.\n **Note**: Values of shard key attributes cannot be changed once set.\n This option is meaningless in a single server setup.\n - **numberOfShards**: (The default is *1*): in a cluster, this value determines the\n number of shards to create for the collection. In a single\n server setup, this option is meaningless.\n - **isSystem**: If *true*, create a system collection. In this case *collection-name*\n should start with an underscore. End users should normally create non-system\n collections only. API implementors may be required to create system\n collections in very special occasions, but normally a regular collection will do.\n (The default is *false*)\n - **type**: (The default is *2*): the type of the collection to create.\n The following values for *type* are valid:\n - *2*: document collection\n - *3*: edges collection\n - **indexBuckets**: The: number of buckets into which indexes using a hash\n table are split. The default is 16 and this number has to be a\n power of 2 and less than or equal to 1024. \n For very large collections one should increase this to avoid long pauses \n when the hash table has to be initially built or resized, since buckets \n are resized individually and can be initially built in parallel. For \n example, 64 might be a sensible value for a collection with 100\n 000 000 documents. Currently, only the edge index respects this\n value, but other index types might follow in future ArangoDB versions. \n Changes (see below) are applied when the collection is loaded the next \n time.\n\n\n\n\nCreates an new collection with a given name. The request must contain an\nobject with the following attributes.\n\n\n\n
Example:

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/collection <<EOF\n{ \n  \"name\" : \"testCollectionBasics\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_db/_system/_api/collection/testCollectionBasics\n\n{ \n  \"id\" : \"644262318\", \n  \"name\" : \"testCollectionBasics\", \n  \"waitForSync\" : false, \n  \"isVolatile\" : false, \n  \"isSystem\" : false, \n  \"status\" : 3, \n  \"type\" : 2, \n  \"error\" : false, \n  \"code\" : 200 \n}\nshell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/collection <<EOF\n{ \n  \"name\" : \"testCollectionEdges\", \n  \"type\" : 3 \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_db/_system/_api/collection/testCollectionEdges\n\n{ \n  \"id\" : \"644393390\", \n  \"name\" : \"testCollectionEdges\", \n  \"waitForSync\" : false, \n  \"isVolatile\" : false, \n  \"isSystem\" : false, \n  \"status\" : 3, \n  \"type\" : 3, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example:

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/collection <<EOF\n{ \n  \"name\" : \"testCollectionUsers\", \n  \"keyOptions\" : { \n    \"type\" : \"autoincrement\", \n    \"increment\" : 5, \n    \"allowUserKeys\" : true \n  } \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_db/_system/_api/collection/testCollectionUsers\n\n{ \n  \"id\" : \"644655534\", \n  \"name\" : \"testCollectionUsers\", \n  \"waitForSync\" : false, \n  \"isVolatile\" : false, \n  \"isSystem\" : false, \n  \"status\" : 3, \n  \"type\" : 2, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", + "description": "**A json post document with these Properties is required:**\n\n - **journalSize**: The maximal size of a journal or datafile in bytes. The value \n must be at least `1048576` (1 MiB). (The default is a configuration parameter)\n - **keyOptions**:\n - **allowUserKeys**: if set to *true*, then it is allowed to supply own key values in the\n *_key* attribute of a document. If set to *false*, then the key generator\n will solely be responsible for generating keys and supplying own key values\n in the *_key* attribute of documents is considered an error.\n - **type**: specifies the type of the key generator. The currently available generators are\n *traditional* and *autoincrement*.\n - **increment**: increment value for *autoincrement* key generator. Not used for other key\n generator types.\n - **offset**: Initial offset value for *autoincrement* key generator.\n Not used for other key generator types.\n - **name**: The name of the collection.\n - **waitForSync**: If *true* then the data is synchronized to disk before returning from a\n document create, update, replace or removal operation. (default: false)\n - **doCompact**: whether or not the collection will be compacted (default is *true*)\n - **isVolatile**: If *true* then the collection data is kept in-memory only and not made persistent.\n Unloading the collection will cause the collection data to be discarded. Stopping\n or re-starting the server will also cause full loss of data in the\n collection. Setting this option will make the resulting collection be\n slightly faster than regular collections because ArangoDB does not\n enforce any synchronization to disk and does not calculate any CRC\n checksums for datafiles (as there are no datafiles). This option \n should therefore be used for cache-type collections only, and not \n for data that cannot be re-created otherwise.\n (The default is *false*)\n - **shardKeys**: (The default is *[ \"_key\" ]*): in a cluster, this attribute determines\n which document attributes are used to determine the target shard for documents.\n Documents are sent to shards based on the values of their shard key attributes.\n The values of all shard key attributes in a document are hashed,\n and the hash value is used to determine the target shard.\n **Note**: Values of shard key attributes cannot be changed once set.\n This option is meaningless in a single server setup.\n - **numberOfShards**: (The default is *1*): in a cluster, this value determines the\n number of shards to create for the collection. In a single\n server setup, this option is meaningless.\n - **isSystem**: If *true*, create a system collection. In this case *collection-name*\n should start with an underscore. End users should normally create non-system\n collections only. API implementors may be required to create system\n collections in very special occasions, but normally a regular collection will do.\n (The default is *false*)\n - **type**: (The default is *2*): the type of the collection to create.\n The following values for *type* are valid:\n - *2*: document collection\n - *3*: edges collection\n - **indexBuckets**: The: number of buckets into which indexes using a hash\n table are split. The default is 16 and this number has to be a\n power of 2 and less than or equal to 1024. \n For very large collections one should increase this to avoid long pauses \n when the hash table has to be initially built or resized, since buckets \n are resized individually and can be initially built in parallel. For \n example, 64 might be a sensible value for a collection with 100\n 000 000 documents. Currently, only the edge index respects this\n value, but other index types might follow in future ArangoDB versions. \n Changes (see below) are applied when the collection is loaded the next \n time.\n\n\n\n\nCreates an new collection with a given name. The request must contain an\nobject with the following attributes.\n\n\n\n
Example:

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/collection <<EOF\n{ \n  \"name\" : \"testCollectionBasics\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_db/_system/_api/collection/testCollectionBasics\n\n{ \n  \"id\" : \"641185329\", \n  \"name\" : \"testCollectionBasics\", \n  \"waitForSync\" : false, \n  \"isVolatile\" : false, \n  \"isSystem\" : false, \n  \"status\" : 3, \n  \"type\" : 2, \n  \"error\" : false, \n  \"code\" : 200 \n}\nshell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/collection <<EOF\n{ \n  \"name\" : \"testCollectionEdges\", \n  \"type\" : 3 \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_db/_system/_api/collection/testCollectionEdges\n\n{ \n  \"id\" : \"641316401\", \n  \"name\" : \"testCollectionEdges\", \n  \"waitForSync\" : false, \n  \"isVolatile\" : false, \n  \"isSystem\" : false, \n  \"status\" : 3, \n  \"type\" : 3, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example:

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/collection <<EOF\n{ \n  \"name\" : \"testCollectionUsers\", \n  \"keyOptions\" : { \n    \"type\" : \"autoincrement\", \n    \"increment\" : 5, \n    \"allowUserKeys\" : true \n  } \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_db/_system/_api/collection/testCollectionUsers\n\n{ \n  \"id\" : \"641578545\", \n  \"name\" : \"testCollectionUsers\", \n  \"waitForSync\" : false, \n  \"isVolatile\" : false, \n  \"isSystem\" : false, \n  \"status\" : 3, \n  \"type\" : 2, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", "parameters": [ { "in": "body", @@ -2842,7 +2842,7 @@ }, "/_api/collection/{collection-name}": { "delete": { - "description": "\n\nDrops the collection identified by *collection-name*.\n\nIf the collection was successfully dropped, an object is returned with\nthe following attributes:\n\n- *error*: *false*\n\n- *id*: The identifier of the dropped collection.\n\n\n
Example: Using an identifier:

shell> curl -X DELETE --dump - http://localhost:8529/_api/collection/644852142\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"644852142\", \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Using a name:

shell> curl -X DELETE --dump - http://localhost:8529/_api/collection/products1\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"645048750\", \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", + "description": "\n\nDrops the collection identified by *collection-name*.\n\nIf the collection was successfully dropped, an object is returned with\nthe following attributes:\n\n- *error*: *false*\n\n- *id*: The identifier of the dropped collection.\n\n\n
Example: Using an identifier:

shell> curl -X DELETE --dump - http://localhost:8529/_api/collection/641775153\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"641775153\", \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Using a name:

shell> curl -X DELETE --dump - http://localhost:8529/_api/collection/products1\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"641971761\", \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", "parameters": [ { "description": "The name of the collection to drop.\n\n", @@ -2895,7 +2895,7 @@ }, "/_api/collection/{collection-name}/checksum": { "get": { - "description": "\n\nWill calculate a checksum of the meta-data (keys and optionally revision ids) and\noptionally the document data in the collection.\n\nThe checksum can be used to compare if two collections on different ArangoDB\ninstances contain the same contents. The current revision of the collection is\nreturned too so one can make sure the checksums are calculated for the same\nstate of data.\n\nBy default, the checksum will only be calculated on the *_key* system attribute\nof the documents contained in the collection. For edge collections, the system\nattributes *_from* and *_to* will also be included in the calculation.\n\nBy setting the optional query parameter *withRevisions* to *true*, then revision\nids (*_rev* system attributes) are included in the checksumming.\n\nBy providing the optional query parameter *withData* with a value of *true*,\nthe user-defined document attributes will be included in the calculation too.\n**Note**: Including user-defined attributes will make the checksumming slower.\n\nThe response is a JSON object with the following attributes:\n\n- *checksum*: The calculated checksum as a number.\n\n- *revision*: The collection revision id as a string.\n\n**Note**: this method is not available in a cluster.\n\n\n
Example: Retrieving the checksum of a collection:

shell> curl --dump - http://localhost:8529/_api/collection/products/checksum\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"645245358\", \n  \"name\" : \"products\", \n  \"isSystem\" : false, \n  \"status\" : 3, \n  \"type\" : 2, \n  \"checksum\" : 500492157, \n  \"revision\" : \"645573038\", \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Retrieving the checksum of a collection including the collection data,\nbut not the revisions:

shell> curl --dump - http://localhost:8529/_api/collection/products/checksum?withRevisions=false&withData=true\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"645835182\", \n  \"name\" : \"products\", \n  \"isSystem\" : false, \n  \"status\" : 3, \n  \"type\" : 2, \n  \"checksum\" : 1456437626, \n  \"revision\" : \"646162862\", \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", + "description": "\n\nWill calculate a checksum of the meta-data (keys and optionally revision ids) and\noptionally the document data in the collection.\n\nThe checksum can be used to compare if two collections on different ArangoDB\ninstances contain the same contents. The current revision of the collection is\nreturned too so one can make sure the checksums are calculated for the same\nstate of data.\n\nBy default, the checksum will only be calculated on the *_key* system attribute\nof the documents contained in the collection. For edge collections, the system\nattributes *_from* and *_to* will also be included in the calculation.\n\nBy setting the optional query parameter *withRevisions* to *true*, then revision\nids (*_rev* system attributes) are included in the checksumming.\n\nBy providing the optional query parameter *withData* with a value of *true*,\nthe user-defined document attributes will be included in the calculation too.\n**Note**: Including user-defined attributes will make the checksumming slower.\n\nThe response is a JSON object with the following attributes:\n\n- *checksum*: The calculated checksum as a number.\n\n- *revision*: The collection revision id as a string.\n\n**Note**: this method is not available in a cluster.\n\n\n
Example: Retrieving the checksum of a collection:

shell> curl --dump - http://localhost:8529/_api/collection/products/checksum\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"642168369\", \n  \"name\" : \"products\", \n  \"isSystem\" : false, \n  \"status\" : 3, \n  \"type\" : 2, \n  \"checksum\" : 2743591508, \n  \"revision\" : \"642496049\", \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Retrieving the checksum of a collection including the collection data,\nbut not the revisions:

shell> curl --dump - http://localhost:8529/_api/collection/products/checksum?withRevisions=false&withData=true\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"642758193\", \n  \"name\" : \"products\", \n  \"isSystem\" : false, \n  \"status\" : 3, \n  \"type\" : 2, \n  \"checksum\" : 695108231, \n  \"revision\" : \"643085873\", \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", "parameters": [ { "description": "The name of the collection.\n\n", @@ -2938,7 +2938,7 @@ }, "/_api/collection/{collection-name}/count": { "get": { - "description": "\n\nIn addition to the above, the result also contains the number of documents.\n**Note** that this will always load the collection into memory.\n\n- *count*: The number of documents inside the collection.\n\n\n
Example: Requesting the number of documents:

shell> curl --dump - http://localhost:8529/_api/collection/products/count\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_db/_system/_api/collection/products/count\n\n{ \n  \"id\" : \"646425006\", \n  \"name\" : \"products\", \n  \"isSystem\" : false, \n  \"doCompact\" : true, \n  \"isVolatile\" : false, \n  \"journalSize\" : 1048576, \n  \"keyOptions\" : { \n    \"type\" : \"traditional\", \n    \"allowUserKeys\" : true \n  }, \n  \"waitForSync\" : true, \n  \"indexBuckets\" : 8, \n  \"count\" : 100, \n  \"status\" : 3, \n  \"type\" : 2, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", + "description": "\n\nIn addition to the above, the result also contains the number of documents.\n**Note** that this will always load the collection into memory.\n\n- *count*: The number of documents inside the collection.\n\n\n
Example: Requesting the number of documents:

shell> curl --dump - http://localhost:8529/_api/collection/products/count\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_db/_system/_api/collection/products/count\n\n{ \n  \"id\" : \"643348017\", \n  \"name\" : \"products\", \n  \"isSystem\" : false, \n  \"doCompact\" : true, \n  \"isVolatile\" : false, \n  \"journalSize\" : 1048576, \n  \"keyOptions\" : { \n    \"type\" : \"traditional\", \n    \"allowUserKeys\" : true \n  }, \n  \"waitForSync\" : true, \n  \"indexBuckets\" : 8, \n  \"count\" : 100, \n  \"status\" : 3, \n  \"type\" : 2, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", "parameters": [ { "description": "The name of the collection.\n\n", @@ -2967,7 +2967,7 @@ }, "/_api/collection/{collection-name}/figures": { "get": { - "description": "\n\nIn addition to the above, the result also contains the number of documents\nand additional statistical information about the collection.\n**Note** : This will always load the collection into memory.\n\n**Note**: collection data that are stored in the write-ahead log only are\nnot reported in the results. When the write-ahead log is collected, documents\nmight be added to journals and datafiles of the collection, which may modify\nthe figures of the collection.\n\nAdditionally, the filesizes of collection and index parameter JSON files are\nnot reported. These files should normally have a size of a few bytes\neach. Please also note that the *fileSize* values are reported in bytes\nand reflect the logical file sizes. Some filesystems may use optimisations\n(e.g. sparse files) so that the actual physical file size is somewhat\ndifferent. Directories and sub-directories may also require space in the\nfile system, but this space is not reported in the *fileSize* results.\n\nThat means that the figures reported do not reflect the actual disk\nusage of the collection with 100% accuracy. The actual disk usage of\na collection is normally slightly higher than the sum of the reported\n*fileSize* values. Still the sum of the *fileSize* values can still be\nused as a lower bound approximation of the disk usage.\n\n**A json document with these Properties is returned:**\n\n##HTTP 200\nReturns information about the collection:\n\n - **count**: The number of documents currently present in the collection.\n - **journalSize**: The maximal size of a journal or datafile in bytes.\n - **figures**:\n - **datafiles**:\n - **count**: The number of datafiles.\n - **fileSize**: The total filesize of datafiles (in bytes).\n - **uncollectedLogfileEntries**: The number of markers in the write-ahead\n log for this collection that have not been transferred to journals or datafiles.\n - **compactionStatus**:\n - **message**: The action that was performed when the compaction was last run for the collection. \n This information can be used for debugging compaction issues.\n - **time**: The point in time the compaction for the collection was last executed. \n This information can be used for debugging compaction issues.\n - **compactors**:\n - **count**: The number of compactor files.\n - **fileSize**: The total filesize of all compactor files (in bytes).\n - **dead**:\n - **count**: The number of dead documents. This includes document\n versions that have been deleted or replaced by a newer version. Documents\n deleted or replaced that are contained the write-ahead log only are not reported\n in this figure.\n - **deletion**: The total number of deletion markers. Deletion markers\n only contained in the write-ahead log are not reporting in this figure.\n - **size**: The total size in bytes used by all dead documents.\n - **indexes**:\n - **count**: The total number of indexes defined for the collection, including the pre-defined\n indexes (e.g. primary index).\n - **size**: The total memory allocated for indexes in bytes.\n - **shapes**:\n - **count**: The total number of shapes used in the collection. This includes shapes\n that are not in use anymore. Shapes that are contained\n in the write-ahead log only are not reported in this figure.\n - **size**: The total size of all shapes (in bytes). This includes\n shapes that are not in use anymore. Shapes that are contained in the\n write-ahead log only are not reported in this figure.\n - **waitingFor**: An optional string value that contains information about which object type is at the \n head of the collection's cleanup queue. This information can be used for debugging \n compaction and unload issues.\n - **alive**:\n - **count**: The number of currently active documents in all datafiles\n and journals of the collection. Documents that are contained in the\n write-ahead log only are not reported in this figure.\n - **size**: The total size in bytes used by all active documents of\n the collection. Documents that are contained in the write-ahead log only are\n not reported in this figure.\n - **documentReferences**: The number of references to documents in datafiles that JavaScript code \n currently holds. This information can be used for debugging compaction and \n unload issues.\n - **attributes**:\n - **count**: The total number of attributes used in the\n collection. Note: the value includes data of attributes that are not in use\n anymore. Attributes that are contained in the write-ahead log only are\n not reported in this figure.\n - **size**: The total size of the attribute data (in bytes).\n Note: the value includes data of attributes that are not in use anymore.\n Attributes that are contained in the write-ahead log only are not\n reported in this figure.\n - **shapefiles**:\n - **count**: The number of shape files. This value is deprecated and kept for compatibility reasons only.\n The value will always be 0 since ArangoDB 2.0 and higher.\n - **fileSize**: The total filesize of the shape files. This value is deprecated and kept\n for compatibility reasons only. The value will always be 0 in ArangoDB 2.0 and higher.\n - **journals**:\n - **count**: The number of journal files.\n - **fileSize**: The total filesize of all journal files (in bytes).\n - **maxTick**: The tick of the last marker that was stored in a journal\n of the collection. This might be 0 if the collection does not yet have\n a journal.\n\n\n
Example: Using an identifier and requesting the figures of the collection:

shell> curl --dump - http://localhost:8529/_api/collection/products/figures\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_db/_system/_api/collection/products/figures\n\n{ \n  \"id\" : \"666479022\", \n  \"name\" : \"products\", \n  \"isSystem\" : false, \n  \"doCompact\" : true, \n  \"isVolatile\" : false, \n  \"journalSize\" : 1048576, \n  \"keyOptions\" : { \n    \"type\" : \"traditional\", \n    \"allowUserKeys\" : true \n  }, \n  \"waitForSync\" : false, \n  \"indexBuckets\" : 8, \n  \"count\" : 1, \n  \"figures\" : { \n    \"alive\" : { \n      \"count\" : 1, \n      \"size\" : 88 \n    }, \n    \"dead\" : { \n      \"count\" : 0, \n      \"size\" : 0, \n      \"deletion\" : 0 \n    }, \n    \"datafiles\" : { \n      \"count\" : 0, \n      \"fileSize\" : 0 \n    }, \n    \"journals\" : { \n      \"count\" : 1, \n      \"fileSize\" : 1048576 \n    }, \n    \"compactors\" : { \n      \"count\" : 0, \n      \"fileSize\" : 0 \n    }, \n    \"shapefiles\" : { \n      \"count\" : 0, \n      \"fileSize\" : 0 \n    }, \n    \"shapes\" : { \n      \"count\" : 1, \n      \"size\" : 104 \n    }, \n    \"attributes\" : { \n      \"count\" : 1, \n      \"size\" : 48 \n    }, \n    \"indexes\" : { \n      \"count\" : 1, \n      \"size\" : 16120 \n    }, \n    \"lastTick\" : \"666872238\", \n    \"uncollectedLogfileEntries\" : 0, \n    \"documentReferences\" : 0, \n    \"waitingFor\" : \"-\", \n    \"compactionStatus\" : { \n      \"message\" : \"skipped compaction because collection has no datafiles\", \n      \"time\" : \"2016-03-01T20:04:00Z\" \n    } \n  }, \n  \"status\" : 3, \n  \"type\" : 2, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", + "description": "\n\nIn addition to the above, the result also contains the number of documents\nand additional statistical information about the collection.\n**Note** : This will always load the collection into memory.\n\n**Note**: collection data that are stored in the write-ahead log only are\nnot reported in the results. When the write-ahead log is collected, documents\nmight be added to journals and datafiles of the collection, which may modify\nthe figures of the collection.\n\nAdditionally, the filesizes of collection and index parameter JSON files are\nnot reported. These files should normally have a size of a few bytes\neach. Please also note that the *fileSize* values are reported in bytes\nand reflect the logical file sizes. Some filesystems may use optimisations\n(e.g. sparse files) so that the actual physical file size is somewhat\ndifferent. Directories and sub-directories may also require space in the\nfile system, but this space is not reported in the *fileSize* results.\n\nThat means that the figures reported do not reflect the actual disk\nusage of the collection with 100% accuracy. The actual disk usage of\na collection is normally slightly higher than the sum of the reported\n*fileSize* values. Still the sum of the *fileSize* values can still be\nused as a lower bound approximation of the disk usage.\n\n**A json document with these Properties is returned:**\n\n##HTTP 200\nReturns information about the collection:\n\n - **count**: The number of documents currently present in the collection.\n - **journalSize**: The maximal size of a journal or datafile in bytes.\n - **figures**:\n - **datafiles**:\n - **count**: The number of datafiles.\n - **fileSize**: The total filesize of datafiles (in bytes).\n - **uncollectedLogfileEntries**: The number of markers in the write-ahead\n log for this collection that have not been transferred to journals or datafiles.\n - **compactionStatus**:\n - **message**: The action that was performed when the compaction was last run for the collection. \n This information can be used for debugging compaction issues.\n - **time**: The point in time the compaction for the collection was last executed. \n This information can be used for debugging compaction issues.\n - **compactors**:\n - **count**: The number of compactor files.\n - **fileSize**: The total filesize of all compactor files (in bytes).\n - **dead**:\n - **count**: The number of dead documents. This includes document\n versions that have been deleted or replaced by a newer version. Documents\n deleted or replaced that are contained the write-ahead log only are not reported\n in this figure.\n - **deletion**: The total number of deletion markers. Deletion markers\n only contained in the write-ahead log are not reporting in this figure.\n - **size**: The total size in bytes used by all dead documents.\n - **indexes**:\n - **count**: The total number of indexes defined for the collection, including the pre-defined\n indexes (e.g. primary index).\n - **size**: The total memory allocated for indexes in bytes.\n - **shapes**:\n - **count**: The total number of shapes used in the collection. This includes shapes\n that are not in use anymore. Shapes that are contained\n in the write-ahead log only are not reported in this figure.\n - **size**: The total size of all shapes (in bytes). This includes\n shapes that are not in use anymore. Shapes that are contained in the\n write-ahead log only are not reported in this figure.\n - **waitingFor**: An optional string value that contains information about which object type is at the \n head of the collection's cleanup queue. This information can be used for debugging \n compaction and unload issues.\n - **alive**:\n - **count**: The number of currently active documents in all datafiles\n and journals of the collection. Documents that are contained in the\n write-ahead log only are not reported in this figure.\n - **size**: The total size in bytes used by all active documents of\n the collection. Documents that are contained in the write-ahead log only are\n not reported in this figure.\n - **documentReferences**: The number of references to documents in datafiles that JavaScript code \n currently holds. This information can be used for debugging compaction and \n unload issues.\n - **attributes**:\n - **count**: The total number of attributes used in the\n collection. Note: the value includes data of attributes that are not in use\n anymore. Attributes that are contained in the write-ahead log only are\n not reported in this figure.\n - **size**: The total size of the attribute data (in bytes).\n Note: the value includes data of attributes that are not in use anymore.\n Attributes that are contained in the write-ahead log only are not\n reported in this figure.\n - **shapefiles**:\n - **count**: The number of shape files. This value is deprecated and kept for compatibility reasons only.\n The value will always be 0 since ArangoDB 2.0 and higher.\n - **fileSize**: The total filesize of the shape files. This value is deprecated and kept\n for compatibility reasons only. The value will always be 0 in ArangoDB 2.0 and higher.\n - **journals**:\n - **count**: The number of journal files.\n - **fileSize**: The total filesize of all journal files (in bytes).\n - **maxTick**: The tick of the last marker that was stored in a journal\n of the collection. This might be 0 if the collection does not yet have\n a journal.\n\n\n
Example: Using an identifier and requesting the figures of the collection:

shell> curl --dump - http://localhost:8529/_api/collection/products/figures\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_db/_system/_api/collection/products/figures\n\n{ \n  \"id\" : \"666416689\", \n  \"name\" : \"products\", \n  \"isSystem\" : false, \n  \"doCompact\" : true, \n  \"isVolatile\" : false, \n  \"journalSize\" : 1048576, \n  \"keyOptions\" : { \n    \"type\" : \"traditional\", \n    \"allowUserKeys\" : true \n  }, \n  \"waitForSync\" : false, \n  \"indexBuckets\" : 8, \n  \"count\" : 1, \n  \"figures\" : { \n    \"alive\" : { \n      \"count\" : 1, \n      \"size\" : 88 \n    }, \n    \"dead\" : { \n      \"count\" : 0, \n      \"size\" : 0, \n      \"deletion\" : 0 \n    }, \n    \"datafiles\" : { \n      \"count\" : 0, \n      \"fileSize\" : 0 \n    }, \n    \"journals\" : { \n      \"count\" : 1, \n      \"fileSize\" : 1048576 \n    }, \n    \"compactors\" : { \n      \"count\" : 0, \n      \"fileSize\" : 0 \n    }, \n    \"shapefiles\" : { \n      \"count\" : 0, \n      \"fileSize\" : 0 \n    }, \n    \"shapes\" : { \n      \"count\" : 1, \n      \"size\" : 104 \n    }, \n    \"attributes\" : { \n      \"count\" : 1, \n      \"size\" : 48 \n    }, \n    \"indexes\" : { \n      \"count\" : 1, \n      \"size\" : 16120 \n    }, \n    \"lastTick\" : \"666809905\", \n    \"uncollectedLogfileEntries\" : 0, \n    \"documentReferences\" : 0, \n    \"waitingFor\" : \"-\", \n    \"compactionStatus\" : { \n      \"message\" : \"skipped compaction because collection has no datafiles\", \n      \"time\" : \"2016-03-10T19:38:23Z\" \n    } \n  }, \n  \"status\" : 3, \n  \"type\" : 2, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", "parameters": [ { "description": "The name of the collection.\n\n", @@ -3006,7 +3006,7 @@ }, "/_api/collection/{collection-name}/load": { "put": { - "description": "\n\nLoads a collection into memory. Returns the collection on success.\n\nThe request body object might optionally contain the following attribute:\n\n- *count*: If set, this controls whether the return value should include\n the number of documents in the collection. Setting *count* to\n *false* may speed up loading a collection. The default value for\n *count* is *true*.\n\nOn success an object with the following attributes is returned:\n\n- *id*: The identifier of the collection.\n\n- *name*: The name of the collection.\n\n- *count*: The number of documents inside the collection. This is only\n returned if the *count* input parameters is set to *true* or has\n not been specified.\n\n- *status*: The status of the collection as number.\n\n- *type*: The collection type. Valid types are:\n - 2: document collection\n - 3: edges collection\n\n- *isSystem*: If *true* then the collection is a system collection.\n\n\n
Example:

shell> curl -X PUT --dump - http://localhost:8529/_api/collection/products/load\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"668051886\", \n  \"name\" : \"products\", \n  \"isSystem\" : false, \n  \"count\" : 0, \n  \"status\" : 3, \n  \"type\" : 2, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", + "description": "\n\nLoads a collection into memory. Returns the collection on success.\n\nThe request body object might optionally contain the following attribute:\n\n- *count*: If set, this controls whether the return value should include\n the number of documents in the collection. Setting *count* to\n *false* may speed up loading a collection. The default value for\n *count* is *true*.\n\nOn success an object with the following attributes is returned:\n\n- *id*: The identifier of the collection.\n\n- *name*: The name of the collection.\n\n- *count*: The number of documents inside the collection. This is only\n returned if the *count* input parameters is set to *true* or has\n not been specified.\n\n- *status*: The status of the collection as number.\n\n- *type*: The collection type. Valid types are:\n - 2: document collection\n - 3: edges collection\n\n- *isSystem*: If *true* then the collection is a system collection.\n\n\n
Example:

shell> curl -X PUT --dump - http://localhost:8529/_api/collection/products/load\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"667924017\", \n  \"name\" : \"products\", \n  \"isSystem\" : false, \n  \"count\" : 0, \n  \"status\" : 3, \n  \"type\" : 2, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", "parameters": [ { "description": "The name of the collection.\n\n", @@ -3035,7 +3035,7 @@ }, "/_api/collection/{collection-name}/properties": { "get": { - "description": "\n\nIn addition to the above, the result will always contain the\n*waitForSync*, *doCompact*, *journalSize*, and *isVolatile* attributes.\nThis is achieved by forcing a load of the underlying collection.\n\n- *waitForSync*: If *true* then creating, changing or removing\n documents will wait until the data has been synchronized to disk.\n\n- *doCompact*: Whether or not the collection will be compacted.\n\n- *journalSize*: The maximal size setting for journals / datafiles\n in bytes.\n\n- *keyOptions*: JSON object which contains key generation options:\n - *type*: specifies the type of the key generator. The currently\n available generators are *traditional* and *autoincrement*.\n - *allowUserKeys*: if set to *true*, then it is allowed to supply\n own key values in the *_key* attribute of a document. If set to\n *false*, then the key generator is solely responsible for\n generating keys and supplying own key values in the *_key* attribute\n of documents is considered an error.\n\n- *isVolatile*: If *true* then the collection data will be\n kept in memory only and ArangoDB will not write or sync the data\n to disk.\n\nIn a cluster setup, the result will also contain the following attributes:\n- *numberOfShards*: the number of shards of the collection.\n\n- *shardKeys*: contains the names of document attributes that are used to\n determine the target shard for documents.\n\n\n
Example: Using an identifier:

shell> curl --dump - http://localhost:8529/_api/collection/667396526/properties\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_db/_system/_api/collection/products/properties\n\n{ \n  \"id\" : \"667396526\", \n  \"name\" : \"products\", \n  \"isSystem\" : false, \n  \"doCompact\" : true, \n  \"isVolatile\" : false, \n  \"journalSize\" : 1048576, \n  \"keyOptions\" : { \n    \"type\" : \"traditional\", \n    \"allowUserKeys\" : true \n  }, \n  \"waitForSync\" : true, \n  \"indexBuckets\" : 8, \n  \"status\" : 3, \n  \"type\" : 2, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Using a name:

shell> curl --dump - http://localhost:8529/_api/collection/products/properties\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_db/_system/_api/collection/products/properties\n\n{ \n  \"id\" : \"667593134\", \n  \"name\" : \"products\", \n  \"isSystem\" : false, \n  \"doCompact\" : true, \n  \"isVolatile\" : false, \n  \"journalSize\" : 1048576, \n  \"keyOptions\" : { \n    \"type\" : \"traditional\", \n    \"allowUserKeys\" : true \n  }, \n  \"waitForSync\" : true, \n  \"indexBuckets\" : 8, \n  \"status\" : 3, \n  \"type\" : 2, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", + "description": "\n\nIn addition to the above, the result will always contain the\n*waitForSync*, *doCompact*, *journalSize*, and *isVolatile* attributes.\nThis is achieved by forcing a load of the underlying collection.\n\n- *waitForSync*: If *true* then creating, changing or removing\n documents will wait until the data has been synchronized to disk.\n\n- *doCompact*: Whether or not the collection will be compacted.\n\n- *journalSize*: The maximal size setting for journals / datafiles\n in bytes.\n\n- *keyOptions*: JSON object which contains key generation options:\n - *type*: specifies the type of the key generator. The currently\n available generators are *traditional* and *autoincrement*.\n - *allowUserKeys*: if set to *true*, then it is allowed to supply\n own key values in the *_key* attribute of a document. If set to\n *false*, then the key generator is solely responsible for\n generating keys and supplying own key values in the *_key* attribute\n of documents is considered an error.\n\n- *isVolatile*: If *true* then the collection data will be\n kept in memory only and ArangoDB will not write or sync the data\n to disk.\n\nIn a cluster setup, the result will also contain the following attributes:\n- *numberOfShards*: the number of shards of the collection.\n\n- *shardKeys*: contains the names of document attributes that are used to\n determine the target shard for documents.\n\n\n
Example: Using an identifier:

shell> curl --dump - http://localhost:8529/_api/collection/667268657/properties\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_db/_system/_api/collection/products/properties\n\n{ \n  \"id\" : \"667268657\", \n  \"name\" : \"products\", \n  \"isSystem\" : false, \n  \"doCompact\" : true, \n  \"isVolatile\" : false, \n  \"journalSize\" : 1048576, \n  \"keyOptions\" : { \n    \"type\" : \"traditional\", \n    \"allowUserKeys\" : true \n  }, \n  \"waitForSync\" : true, \n  \"indexBuckets\" : 8, \n  \"status\" : 3, \n  \"type\" : 2, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Using a name:

shell> curl --dump - http://localhost:8529/_api/collection/products/properties\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_db/_system/_api/collection/products/properties\n\n{ \n  \"id\" : \"667465265\", \n  \"name\" : \"products\", \n  \"isSystem\" : false, \n  \"doCompact\" : true, \n  \"isVolatile\" : false, \n  \"journalSize\" : 1048576, \n  \"keyOptions\" : { \n    \"type\" : \"traditional\", \n    \"allowUserKeys\" : true \n  }, \n  \"waitForSync\" : true, \n  \"indexBuckets\" : 8, \n  \"status\" : 3, \n  \"type\" : 2, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", "parameters": [ { "description": "The name of the collection.\n\n", @@ -3062,7 +3062,7 @@ "x-filename": "Collections - js/actions/_api/collection/app.js" }, "put": { - "description": "\n\nChanges the properties of a collection. Expects an object with the\nattribute(s)\n\n- *waitForSync*: If *true* then creating or changing a\n document will wait until the data has been synchronized to disk.\n\n- *journalSize*: The maximal size of a journal or datafile in bytes. \n The value must be at least `1048576` (1 MB). Note that when\n changing the journalSize value, it will only have an effect for\n additional journals or datafiles that are created. Already\n existing journals or datafiles will not be affected.\n\nOn success an object with the following attributes is returned:\n\n- *id*: The identifier of the collection.\n\n- *name*: The name of the collection.\n\n- *waitForSync*: The new value.\n\n- *journalSize*: The new value.\n\n- *status*: The status of the collection as number.\n\n- *type*: The collection type. Valid types are:\n - 2: document collection\n - 3: edges collection\n\n- *isSystem*: If *true* then the collection is a system collection.\n\n- *isVolatile*: If *true* then the collection data will be\n kept in memory only and ArangoDB will not write or sync the data\n to disk.\n\n- *doCompact*: Whether or not the collection will be compacted.\n\n- *keyOptions*: JSON object which contains key generation options:\n - *type*: specifies the type of the key generator. The currently\n available generators are *traditional* and *autoincrement*.\n - *allowUserKeys*: if set to *true*, then it is allowed to supply\n own key values in the *_key* attribute of a document. If set to\n *false*, then the key generator is solely responsible for\n generating keys and supplying own key values in the *_key* attribute\n of documents is considered an error.\n\n**Note**: some other collection properties, such as *type*, *isVolatile*,\n*numberOfShards* or *shardKeys* cannot be changed once a collection is\ncreated.\n\n\n
Example:

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/collection/products/properties <<EOF\n{ \n  \"waitForSync\" : true \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"668314030\", \n  \"name\" : \"products\", \n  \"isSystem\" : false, \n  \"doCompact\" : true, \n  \"isVolatile\" : false, \n  \"journalSize\" : 1048576, \n  \"keyOptions\" : { \n    \"type\" : \"traditional\", \n    \"allowUserKeys\" : true \n  }, \n  \"waitForSync\" : true, \n  \"indexBuckets\" : 8, \n  \"status\" : 3, \n  \"type\" : 2, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", + "description": "\n\nChanges the properties of a collection. Expects an object with the\nattribute(s)\n\n- *waitForSync*: If *true* then creating or changing a\n document will wait until the data has been synchronized to disk.\n\n- *journalSize*: The maximal size of a journal or datafile in bytes. \n The value must be at least `1048576` (1 MB). Note that when\n changing the journalSize value, it will only have an effect for\n additional journals or datafiles that are created. Already\n existing journals or datafiles will not be affected.\n\nOn success an object with the following attributes is returned:\n\n- *id*: The identifier of the collection.\n\n- *name*: The name of the collection.\n\n- *waitForSync*: The new value.\n\n- *journalSize*: The new value.\n\n- *status*: The status of the collection as number.\n\n- *type*: The collection type. Valid types are:\n - 2: document collection\n - 3: edges collection\n\n- *isSystem*: If *true* then the collection is a system collection.\n\n- *isVolatile*: If *true* then the collection data will be\n kept in memory only and ArangoDB will not write or sync the data\n to disk.\n\n- *doCompact*: Whether or not the collection will be compacted.\n\n- *keyOptions*: JSON object which contains key generation options:\n - *type*: specifies the type of the key generator. The currently\n available generators are *traditional* and *autoincrement*.\n - *allowUserKeys*: if set to *true*, then it is allowed to supply\n own key values in the *_key* attribute of a document. If set to\n *false*, then the key generator is solely responsible for\n generating keys and supplying own key values in the *_key* attribute\n of documents is considered an error.\n\n**Note**: some other collection properties, such as *type*, *isVolatile*,\n*numberOfShards* or *shardKeys* cannot be changed once a collection is\ncreated.\n\n\n
Example:

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/collection/products/properties <<EOF\n{ \n  \"waitForSync\" : true \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"668186161\", \n  \"name\" : \"products\", \n  \"isSystem\" : false, \n  \"doCompact\" : true, \n  \"isVolatile\" : false, \n  \"journalSize\" : 1048576, \n  \"keyOptions\" : { \n    \"type\" : \"traditional\", \n    \"allowUserKeys\" : true \n  }, \n  \"waitForSync\" : true, \n  \"indexBuckets\" : 8, \n  \"status\" : 3, \n  \"type\" : 2, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", "parameters": [ { "description": "The name of the collection.\n\n", @@ -3091,7 +3091,7 @@ }, "/_api/collection/{collection-name}/rename": { "put": { - "description": "\n\nRenames a collection. Expects an object with the attribute(s)\n\n- *name*: The new name.\n\nIt returns an object with the attributes\n\n- *id*: The identifier of the collection.\n\n- *name*: The new name of the collection.\n\n- *status*: The status of the collection as number.\n\n- *type*: The collection type. Valid types are:\n - 2: document collection\n - 3: edges collection\n\n- *isSystem*: If *true* then the collection is a system collection.\n\nIf renaming the collection succeeds, then the collection is also renamed in \nall graph definitions inside the `_graphs` collection in the current database.\n\n**Note**: this method is not available in a cluster.\n\n\n
Example:

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/collection/products1/rename <<EOF\n{ \n  \"name\" : \"newname\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"668576174\", \n  \"name\" : \"newname\", \n  \"isSystem\" : false, \n  \"status\" : 3, \n  \"type\" : 2, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", + "description": "\n\nRenames a collection. Expects an object with the attribute(s)\n\n- *name*: The new name.\n\nIt returns an object with the attributes\n\n- *id*: The identifier of the collection.\n\n- *name*: The new name of the collection.\n\n- *status*: The status of the collection as number.\n\n- *type*: The collection type. Valid types are:\n - 2: document collection\n - 3: edges collection\n\n- *isSystem*: If *true* then the collection is a system collection.\n\nIf renaming the collection succeeds, then the collection is also renamed in \nall graph definitions inside the `_graphs` collection in the current database.\n\n**Note**: this method is not available in a cluster.\n\n\n
Example:

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/collection/products1/rename <<EOF\n{ \n  \"name\" : \"newname\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"668448305\", \n  \"name\" : \"newname\", \n  \"isSystem\" : false, \n  \"status\" : 3, \n  \"type\" : 2, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", "parameters": [ { "description": "The name of the collection to rename.\n\n", @@ -3120,7 +3120,7 @@ }, "/_api/collection/{collection-name}/revision": { "get": { - "description": "\n\nIn addition to the above, the result will also contain the\ncollection's revision id. The revision id is a server-generated\nstring that clients can use to check whether data in a collection\nhas changed since the last revision check.\n\n- *revision*: The collection revision id as a string.\n\n\n
Example: Retrieving the revision of a collection

shell> curl --dump - http://localhost:8529/_api/collection/products/revision\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"667789742\", \n  \"name\" : \"products\", \n  \"isSystem\" : false, \n  \"status\" : 3, \n  \"type\" : 2, \n  \"revision\" : \"0\", \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", + "description": "\n\nIn addition to the above, the result will also contain the\ncollection's revision id. The revision id is a server-generated\nstring that clients can use to check whether data in a collection\nhas changed since the last revision check.\n\n- *revision*: The collection revision id as a string.\n\n\n
Example: Retrieving the revision of a collection

shell> curl --dump - http://localhost:8529/_api/collection/products/revision\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"667661873\", \n  \"name\" : \"products\", \n  \"isSystem\" : false, \n  \"status\" : 3, \n  \"type\" : 2, \n  \"revision\" : \"0\", \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", "parameters": [ { "description": "The name of the collection.\n\n", @@ -3178,7 +3178,7 @@ }, "/_api/collection/{collection-name}/truncate": { "put": { - "description": "\n\nRemoves all documents from the collection, but leaves the indexes intact.\n\n\n
Example:

shell> curl -X PUT --dump - http://localhost:8529/_api/collection/products/truncate\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"668903854\", \n  \"name\" : \"products\", \n  \"isSystem\" : false, \n  \"status\" : 3, \n  \"type\" : 2, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", + "description": "\n\nRemoves all documents from the collection, but leaves the indexes intact.\n\n\n
Example:

shell> curl -X PUT --dump - http://localhost:8529/_api/collection/products/truncate\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"668775985\", \n  \"name\" : \"products\", \n  \"isSystem\" : false, \n  \"status\" : 3, \n  \"type\" : 2, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", "parameters": [ { "description": "The name of the collection.\n\n", @@ -3207,7 +3207,7 @@ }, "/_api/collection/{collection-name}/unload": { "put": { - "description": "\n\nRemoves a collection from memory. This call does not delete any documents.\nYou can use the collection afterwards; in which case it will be loaded into\nmemory, again. On success an object with the following attributes is\nreturned:\n\n- *id*: The identifier of the collection.\n\n- *name*: The name of the collection.\n\n- *status*: The status of the collection as number.\n\n- *type*: The collection type. Valid types are:\n - 2: document collection\n - 3: edges collection\n\n- *isSystem*: If *true* then the collection is a system collection.\n\n\n
Example:

shell> curl -X PUT --dump - http://localhost:8529/_api/collection/products/unload\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"669165998\", \n  \"name\" : \"products\", \n  \"isSystem\" : false, \n  \"status\" : 4, \n  \"type\" : 2, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", + "description": "\n\nRemoves a collection from memory. This call does not delete any documents.\nYou can use the collection afterwards; in which case it will be loaded into\nmemory, again. On success an object with the following attributes is\nreturned:\n\n- *id*: The identifier of the collection.\n\n- *name*: The name of the collection.\n\n- *status*: The status of the collection as number.\n\n- *type*: The collection type. Valid types are:\n - 2: document collection\n - 3: edges collection\n\n- *isSystem*: If *true* then the collection is a system collection.\n\n\n
Example:

shell> curl -X PUT --dump - http://localhost:8529/_api/collection/products/unload\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"669038129\", \n  \"name\" : \"products\", \n  \"isSystem\" : false, \n  \"status\" : 4, \n  \"type\" : 2, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", "parameters": [ { "description": "\n", @@ -3236,7 +3236,7 @@ }, "/_api/cursor": { "post": { - "description": "**A json post document with these Properties is required:**\n\n - **count**: indicates whether the number of documents in the result set should be returned in\n the \"count\" attribute of the result.\n Calculating the \"count\" attribute might in the future have a performance\n impact for some queries so this option is turned off by default, and \"count\"\n is only returned when requested.\n - **ttl**: The time-to-live for the cursor (in seconds). The cursor will be\n removed on the server automatically after the specified amount of time. This\n is useful to ensure garbage collection of cursors that are not fully fetched\n by clients. If not set, a server-defined value will be used.\n - **batchSize**: maximum number of result documents to be transferred from\n the server to the client in one roundtrip. If this attribute is\n not set, a server-controlled default value will be used. A *batchSize* value of\n *0* is disallowed.\n - **cache**: flag to determine whether the AQL query cache\n shall be used. If set to *false*, then any query cache lookup will be skipped\n for the query. If set to *true*, it will lead to the query cache being checked\n for the query if the query cache mode is either *on* or *demand*.\n - **bindVars**: list of bind parameter objects. of type object\n - **query**: contains the query string to be executed\n - **options**:\n - **profile**: if set to *true*, then the additional query profiling information\n will be returned in the *extra.stats* return attribute if the query result is not\n served from the query cache.\n - **optimizer.rules**: a list of to-be-included or to-be-excluded optimizer rules\n can be put into this attribute, telling the optimizer to include or exclude\n specific rules. To disable a rule, prefix its name with a `-`, to enable a rule, prefix it\n with a `+`. There is also a pseudo-rule `all`, which will match all optimizer rules. of type string\n - **fullCount**: if set to *true* and the query contains a *LIMIT* clause, then the\n result will contain an extra attribute *extra* with a sub-attribute *fullCount*.\n This sub-attribute will contain the number of documents in the result before the\n last LIMIT in the query was applied. It can be used to count the number of documents that\n match certain filter criteria, but only return a subset of them, in one go.\n It is thus similar to MySQL's *SQL_CALC_FOUND_ROWS* hint. Note that setting the option\n will disable a few LIMIT optimizations and may lead to more documents being processed,\n and thus make queries run longer. Note that the *fullCount* sub-attribute will only\n be present in the result if the query has a LIMIT clause and the LIMIT clause is\n actually used in the query.\n - **maxPlans**: limits the maximum number of plans that are created by the AQL query optimizer.\n\n\n\n\nThe query details include the query string plus optional query options and\nbind parameters. These values need to be passed in a JSON representation in\nthe body of the POST request.\n\n**A json document with these Properties is returned:**\n\n##HTTP 201\nis returned if the result set can be created by the server.\n\n - **count**: the total number of result documents available (only\navailable if the query was executed with the *count* attribute set)\n - **code**: the HTTP status code\n - **extra**: an optional JSON object with extra information about the query result\ncontained in its *stats* sub-attribute. For data-modification queries, the \n*extra.stats* sub-attribute will contain the number of modified documents and \nthe number of documents that could not be modified\ndue to an error (if *ignoreErrors* query option is specified)\n - **cached**: a boolean flag indicating whether the query result was served \nfrom the query cache or not. If the query result is served from the query\ncache, the *extra* return attribute will not contain any *stats* sub-attribute\nand no *profile* sub-attribute.\n - **hasMore**: A boolean indicator whether there are more results\navailable for the cursor on the server\n - **result**: an array of result documents (might be empty if query has no results)anonymous json object\n - **error**: A flag to indicate that an error occurred (*false* in this case)\n - **id**: id of temporary cursor created on the server (optional, see above)\n\n**A json document with these Properties is returned:**\n\n##HTTP 400\nis returned if the JSON representation is malformed or the query specification is\nmissing from the request.\nIf the JSON representation is malformed or the query specification is\nmissing from the request, the server will respond with *HTTP 400*.\nThe body of the response will contain a JSON object with additional error\ndetails. The object has the following attributes:\n\n - **errorMessage**: a descriptive error message\nIf the query specification is complete, the server will process the query. If an\nerror occurs during query processing, the server will respond with *HTTP 400*.\nAgain, the body of the response will contain details about the error.\nA [list of query errors can be found here](../ErrorCodes/README.md).\n - **errorNum**: the server error number\n - **code**: the HTTP status code\n - **error**: boolean flag to indicate that an error occurred (*true* in this case)\n\n\n
Example: Execute a query and extract the result in a single go

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor <<EOF\n{ \n  \"query\" : \"FOR p IN products LIMIT 2 RETURN p\", \n  \"count\" : true, \n  \"batchSize\" : 2 \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    { \n      \"hello1\" : \"world1\", \n      \"_id\" : \"products/675785134\", \n      \"_rev\" : \"675785134\", \n      \"_key\" : \"675785134\" \n    }, \n    { \n      \"hello2\" : \"world1\", \n      \"_id\" : \"products/676112814\", \n      \"_rev\" : \"676112814\", \n      \"_key\" : \"676112814\" \n    } \n  ], \n  \"hasMore\" : false, \n  \"count\" : 2, \n  \"cached\" : false, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 2, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 0 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n
Example: Execute a query and extract a part of the result

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor <<EOF\n{ \n  \"query\" : \"FOR p IN products LIMIT 5 RETURN p\", \n  \"count\" : true, \n  \"batchSize\" : 2 \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    { \n      \"hello1\" : \"world1\", \n      \"_id\" : \"products/673819054\", \n      \"_rev\" : \"673819054\", \n      \"_key\" : \"673819054\" \n    }, \n    { \n      \"hello5\" : \"world1\", \n      \"_id\" : \"products/675129774\", \n      \"_rev\" : \"675129774\", \n      \"_key\" : \"675129774\" \n    } \n  ], \n  \"hasMore\" : true, \n  \"id\" : \"675326382\", \n  \"count\" : 5, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 5, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 0 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"cached\" : false, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n
Example: Using the query option \"fullCount\"

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor <<EOF\n{ \n  \"query\" : \"FOR i IN 1..1000 FILTER i > 500 LIMIT 10 RETURN i\", \n  \"count\" : true, \n  \"options\" : { \n    \"fullCount\" : true \n  } \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    501, \n    502, \n    503, \n    504, \n    505, \n    506, \n    507, \n    508, \n    509, \n    510 \n  ], \n  \"hasMore\" : false, \n  \"count\" : 10, \n  \"cached\" : false, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 0, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 500, \n      \"fullCount\" : 500 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n
Example: Enabling and disabling optimizer rules

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor <<EOF\n{ \n  \"query\" : \"FOR i IN 1..10 LET a = 1 LET b = 2 FILTER a + b == 3 RETURN i\", \n  \"count\" : true, \n  \"options\" : { \n    \"maxPlans\" : 1, \n    \"optimizer\" : { \n      \"rules\" : [ \n        \"-all\", \n        \"+remove-unnecessary-filters\" \n      ] \n    } \n  } \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    1, \n    2, \n    3, \n    4, \n    5, \n    6, \n    7, \n    8, \n    9, \n    10 \n  ], \n  \"hasMore\" : false, \n  \"count\" : 10, \n  \"cached\" : false, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 0, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 0 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n
Example: Execute a data-modification query and retrieve the number of\nmodified documents

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor <<EOF\n{ \n  \"query\" : \"FOR p IN products REMOVE p IN products\" \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ ], \n  \"hasMore\" : false, \n  \"cached\" : false, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 2, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 2, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 0 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n
Example: Execute a data-modification query with option *ignoreErrors*

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor <<EOF\n{ \n  \"query\" : \"REMOVE 'bar' IN products OPTIONS { ignoreErrors: true }\" \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ ], \n  \"hasMore\" : false, \n  \"cached\" : false, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 1, \n      \"scannedFull\" : 0, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 0 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n
Example: Bad query - Missing body

shell> curl -X POST --dump - http://localhost:8529/_api/cursor\n\nHTTP/1.1 400 Bad Request\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"expecting atom, got end-of-file\", \n  \"code\" : 400, \n  \"errorNum\" : 600 \n}\n

\n
Example: Bad query - Unknown collection

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor <<EOF\n{ \n  \"query\" : \"FOR u IN unknowncoll LIMIT 2 RETURN u\", \n  \"count\" : true, \n  \"batchSize\" : 2 \n}\nEOF\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"collection not found (unknowncoll)\", \n  \"code\" : 404, \n  \"errorNum\" : 1203 \n}\n

\n
Example: Bad query - Execute a data-modification query that attempts to remove a non-existing\ndocument

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor <<EOF\n{ \n  \"query\" : \"REMOVE 'foo' IN products\" \n}\nEOF\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"document not found (while executing)\", \n  \"code\" : 404, \n  \"errorNum\" : 1202 \n}\n

\n\n\n", + "description": "**A json post document with these Properties is required:**\n\n - **count**: indicates whether the number of documents in the result set should be returned in\n the \"count\" attribute of the result.\n Calculating the \"count\" attribute might in the future have a performance\n impact for some queries so this option is turned off by default, and \"count\"\n is only returned when requested.\n - **ttl**: The time-to-live for the cursor (in seconds). The cursor will be\n removed on the server automatically after the specified amount of time. This\n is useful to ensure garbage collection of cursors that are not fully fetched\n by clients. If not set, a server-defined value will be used.\n - **batchSize**: maximum number of result documents to be transferred from\n the server to the client in one roundtrip. If this attribute is\n not set, a server-controlled default value will be used. A *batchSize* value of\n *0* is disallowed.\n - **cache**: flag to determine whether the AQL query cache\n shall be used. If set to *false*, then any query cache lookup will be skipped\n for the query. If set to *true*, it will lead to the query cache being checked\n for the query if the query cache mode is either *on* or *demand*.\n - **bindVars**: list of bind parameter objects. of type object\n - **query**: contains the query string to be executed\n - **options**:\n - **profile**: if set to *true*, then the additional query profiling information\n will be returned in the *extra.stats* return attribute if the query result is not\n served from the query cache.\n - **optimizer.rules**: a list of to-be-included or to-be-excluded optimizer rules\n can be put into this attribute, telling the optimizer to include or exclude\n specific rules. To disable a rule, prefix its name with a `-`, to enable a rule, prefix it\n with a `+`. There is also a pseudo-rule `all`, which will match all optimizer rules. of type string\n - **fullCount**: if set to *true* and the query contains a *LIMIT* clause, then the\n result will contain an extra attribute *extra* with a sub-attribute *fullCount*.\n This sub-attribute will contain the number of documents in the result before the\n last LIMIT in the query was applied. It can be used to count the number of documents that\n match certain filter criteria, but only return a subset of them, in one go.\n It is thus similar to MySQL's *SQL_CALC_FOUND_ROWS* hint. Note that setting the option\n will disable a few LIMIT optimizations and may lead to more documents being processed,\n and thus make queries run longer. Note that the *fullCount* sub-attribute will only\n be present in the result if the query has a LIMIT clause and the LIMIT clause is\n actually used in the query.\n - **maxPlans**: limits the maximum number of plans that are created by the AQL query optimizer.\n\n\n\n\nThe query details include the query string plus optional query options and\nbind parameters. These values need to be passed in a JSON representation in\nthe body of the POST request.\n\n**A json document with these Properties is returned:**\n\n##HTTP 201\nis returned if the result set can be created by the server.\n\n - **count**: the total number of result documents available (only\navailable if the query was executed with the *count* attribute set)\n - **code**: the HTTP status code\n - **extra**: an optional JSON object with extra information about the query result\ncontained in its *stats* sub-attribute. For data-modification queries, the \n*extra.stats* sub-attribute will contain the number of modified documents and \nthe number of documents that could not be modified\ndue to an error (if *ignoreErrors* query option is specified)\n - **cached**: a boolean flag indicating whether the query result was served \nfrom the query cache or not. If the query result is served from the query\ncache, the *extra* return attribute will not contain any *stats* sub-attribute\nand no *profile* sub-attribute.\n - **hasMore**: A boolean indicator whether there are more results\navailable for the cursor on the server\n - **result**: an array of result documents (might be empty if query has no results)anonymous json object\n - **error**: A flag to indicate that an error occurred (*false* in this case)\n - **id**: id of temporary cursor created on the server (optional, see above)\n\n**A json document with these Properties is returned:**\n\n##HTTP 400\nis returned if the JSON representation is malformed or the query specification is\nmissing from the request.\nIf the JSON representation is malformed or the query specification is\nmissing from the request, the server will respond with *HTTP 400*.\nThe body of the response will contain a JSON object with additional error\ndetails. The object has the following attributes:\n\n - **errorMessage**: a descriptive error message\nIf the query specification is complete, the server will process the query. If an\nerror occurs during query processing, the server will respond with *HTTP 400*.\nAgain, the body of the response will contain details about the error.\nA [list of query errors can be found here](../ErrorCodes/README.md).\n - **errorNum**: the server error number\n - **code**: the HTTP status code\n - **error**: boolean flag to indicate that an error occurred (*true* in this case)\n\n\n
Example: Execute a query and extract the result in a single go

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor <<EOF\n{ \n  \"query\" : \"FOR p IN products LIMIT 2 RETURN p\", \n  \"count\" : true, \n  \"batchSize\" : 2 \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    { \n      \"hello2\" : \"world1\", \n      \"_id\" : \"products/672839217\", \n      \"_rev\" : \"672839217\", \n      \"_key\" : \"672839217\" \n    }, \n    { \n      \"hello1\" : \"world1\", \n      \"_id\" : \"products/672511537\", \n      \"_rev\" : \"672511537\", \n      \"_key\" : \"672511537\" \n    } \n  ], \n  \"hasMore\" : false, \n  \"count\" : 2, \n  \"cached\" : false, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 2, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 0, \n      \"executionTime\" : 0.00016307830810546875 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n
Example: Execute a query and extract a part of the result

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor <<EOF\n{ \n  \"query\" : \"FOR p IN products LIMIT 5 RETURN p\", \n  \"count\" : true, \n  \"batchSize\" : 2 \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    { \n      \"hello2\" : \"world1\", \n      \"_id\" : \"products/670873137\", \n      \"_rev\" : \"670873137\", \n      \"_key\" : \"670873137\" \n    }, \n    { \n      \"hello1\" : \"world1\", \n      \"_id\" : \"products/670545457\", \n      \"_rev\" : \"670545457\", \n      \"_key\" : \"670545457\" \n    } \n  ], \n  \"hasMore\" : true, \n  \"id\" : \"672052785\", \n  \"count\" : 5, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 5, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 0, \n      \"executionTime\" : 0.00024509429931640625 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"cached\" : false, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n
Example: Using the query option \"fullCount\"

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor <<EOF\n{ \n  \"query\" : \"FOR i IN 1..1000 FILTER i > 500 LIMIT 10 RETURN i\", \n  \"count\" : true, \n  \"options\" : { \n    \"fullCount\" : true \n  } \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    501, \n    502, \n    503, \n    504, \n    505, \n    506, \n    507, \n    508, \n    509, \n    510 \n  ], \n  \"hasMore\" : false, \n  \"count\" : 10, \n  \"cached\" : false, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 0, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 500, \n      \"fullCount\" : 500, \n      \"executionTime\" : 0.0020470619201660156 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n
Example: Enabling and disabling optimizer rules

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor <<EOF\n{ \n  \"query\" : \"FOR i IN 1..10 LET a = 1 LET b = 2 FILTER a + b == 3 RETURN i\", \n  \"count\" : true, \n  \"options\" : { \n    \"maxPlans\" : 1, \n    \"optimizer\" : { \n      \"rules\" : [ \n        \"-all\", \n        \"+remove-unnecessary-filters\" \n      ] \n    } \n  } \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    1, \n    2, \n    3, \n    4, \n    5, \n    6, \n    7, \n    8, \n    9, \n    10 \n  ], \n  \"hasMore\" : false, \n  \"count\" : 10, \n  \"cached\" : false, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 0, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 0, \n      \"executionTime\" : 0.0019600391387939453 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n
Example: Execute a data-modification query and retrieve the number of\nmodified documents

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor <<EOF\n{ \n  \"query\" : \"FOR p IN products REMOVE p IN products\" \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ ], \n  \"hasMore\" : false, \n  \"cached\" : false, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 2, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 2, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 0, \n      \"executionTime\" : 0.0001468658447265625 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n
Example: Execute a data-modification query with option *ignoreErrors*

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor <<EOF\n{ \n  \"query\" : \"REMOVE 'bar' IN products OPTIONS { ignoreErrors: true }\" \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ ], \n  \"hasMore\" : false, \n  \"cached\" : false, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 1, \n      \"scannedFull\" : 0, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 0, \n      \"executionTime\" : 0.00012493133544921875 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n
Example: Bad query - Missing body

shell> curl -X POST --dump - http://localhost:8529/_api/cursor\n\nHTTP/1.1 400 Bad Request\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"expecting atom, got end-of-file\", \n  \"code\" : 400, \n  \"errorNum\" : 600 \n}\n

\n
Example: Bad query - Unknown collection

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor <<EOF\n{ \n  \"query\" : \"FOR u IN unknowncoll LIMIT 2 RETURN u\", \n  \"count\" : true, \n  \"batchSize\" : 2 \n}\nEOF\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"collection not found (unknowncoll)\", \n  \"code\" : 404, \n  \"errorNum\" : 1203 \n}\n

\n
Example: Bad query - Execute a data-modification query that attempts to remove a non-existing\ndocument

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor <<EOF\n{ \n  \"query\" : \"REMOVE 'foo' IN products\" \n}\nEOF\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"document not found (while executing)\", \n  \"code\" : 404, \n  \"errorNum\" : 1202 \n}\n

\n\n\n", "parameters": [ { "in": "body", @@ -3283,7 +3283,7 @@ }, "/_api/cursor/{cursor-identifier}": { "delete": { - "description": "\n\nDeletes the cursor and frees the resources associated with it.\n\nThe cursor will automatically be destroyed on the server when the client has\nretrieved all documents from it. The client can also explicitly destroy the\ncursor at any earlier time using an HTTP DELETE request. The cursor id must\nbe included as part of the URL.\n\nNote: the server will also destroy abandoned cursors automatically after a\ncertain server-controlled timeout to avoid resource leakage.\n\n\n
Example:

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor <<EOF\n{ \n  \"query\" : \"FOR p IN products LIMIT 5 RETURN p\", \n  \"count\" : true, \n  \"batchSize\" : 2 \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    { \n      \"hello2\" : \"world1\", \n      \"_id\" : \"products/677095854\", \n      \"_rev\" : \"677095854\", \n      \"_key\" : \"677095854\" \n    }, \n    { \n      \"hello1\" : \"world1\", \n      \"_id\" : \"products/676768174\", \n      \"_rev\" : \"676768174\", \n      \"_key\" : \"676768174\" \n    } \n  ], \n  \"hasMore\" : true, \n  \"id\" : \"678275502\", \n  \"count\" : 5, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 5, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 0 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"cached\" : false, \n  \"error\" : false, \n  \"code\" : 201 \n}\nshell> curl -X DELETE --dump - http://localhost:8529/_api/cursor/678275502\n\n

\n\n", + "description": "\n\nDeletes the cursor and frees the resources associated with it.\n\nThe cursor will automatically be destroyed on the server when the client has\nretrieved all documents from it. The client can also explicitly destroy the\ncursor at any earlier time using an HTTP DELETE request. The cursor id must\nbe included as part of the URL.\n\nNote: the server will also destroy abandoned cursors automatically after a\ncertain server-controlled timeout to avoid resource leakage.\n\n\n
Example:

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor <<EOF\n{ \n  \"query\" : \"FOR p IN products LIMIT 5 RETURN p\", \n  \"count\" : true, \n  \"batchSize\" : 2 \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    { \n      \"hello2\" : \"world1\", \n      \"_id\" : \"products/673822257\", \n      \"_rev\" : \"673822257\", \n      \"_key\" : \"673822257\" \n    }, \n    { \n      \"hello5\" : \"world1\", \n      \"_id\" : \"products/674805297\", \n      \"_rev\" : \"674805297\", \n      \"_key\" : \"674805297\" \n    } \n  ], \n  \"hasMore\" : true, \n  \"id\" : \"675001905\", \n  \"count\" : 5, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 5, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 0, \n      \"executionTime\" : 0.0001659393310546875 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"cached\" : false, \n  \"error\" : false, \n  \"code\" : 201 \n}\nshell> curl -X DELETE --dump - http://localhost:8529/_api/cursor/675001905\n\n

\n\n", "parameters": [ { "description": "The id of the cursor\n\n", @@ -3310,7 +3310,7 @@ "x-filename": "Cursors - arangod/RestHandler/RestCursorHandler.cpp" }, "put": { - "description": "\n\n\nIf the cursor is still alive, returns an object with the following\nattributes:\n\n- *id*: the *cursor-identifier*\n- *result*: a list of documents for the current batch\n- *hasMore*: *false* if this was the last batch\n- *count*: if present the total number of elements\n\nNote that even if *hasMore* returns *true*, the next call might\nstill return no documents. If, however, *hasMore* is *false*, then\nthe cursor is exhausted. Once the *hasMore* attribute has a value of\n*false*, the client can stop.\n\n\n
Example: Valid request for next batch

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor <<EOF\n{ \n  \"query\" : \"FOR p IN products LIMIT 5 RETURN p\", \n  \"count\" : true, \n  \"batchSize\" : 2 \n}\nEOF\n\nshell> curl -X PUT --dump - http://localhost:8529/_api/cursor/682731950\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    { \n      \"hello3\" : \"world1\", \n      \"_id\" : \"products/681879982\", \n      \"_rev\" : \"681879982\", \n      \"_key\" : \"681879982\" \n    }, \n    { \n      \"hello4\" : \"world1\", \n      \"_id\" : \"products/682207662\", \n      \"_rev\" : \"682207662\", \n      \"_key\" : \"682207662\" \n    } \n  ], \n  \"hasMore\" : true, \n  \"id\" : \"682731950\", \n  \"count\" : 5, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 5, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 0 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"cached\" : false, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Missing identifier

shell> curl -X PUT --dump - http://localhost:8529/_api/cursor\n\nHTTP/1.1 400 Bad Request\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"expecting PUT /_api/cursor/<cursor-id>\", \n  \"code\" : 400, \n  \"errorNum\" : 400 \n}\n

\n
Example: Unknown identifier

shell> curl -X PUT --dump - http://localhost:8529/_api/cursor/123123\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"cursor not found\", \n  \"code\" : 404, \n  \"errorNum\" : 1600 \n}\n

\n\n", + "description": "\n\n\nIf the cursor is still alive, returns an object with the following\nattributes:\n\n- *id*: the *cursor-identifier*\n- *result*: a list of documents for the current batch\n- *hasMore*: *false* if this was the last batch\n- *count*: if present the total number of elements\n\nNote that even if *hasMore* returns *true*, the next call might\nstill return no documents. If, however, *hasMore* is *false*, then\nthe cursor is exhausted. Once the *hasMore* attribute has a value of\n*false*, the client can stop.\n\n\n
Example: Valid request for next batch

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor <<EOF\n{ \n  \"query\" : \"FOR p IN products LIMIT 5 RETURN p\", \n  \"count\" : true, \n  \"batchSize\" : 2 \n}\nEOF\n\nshell> curl -X PUT --dump - http://localhost:8529/_api/cursor/679458353\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    { \n      \"hello1\" : \"world1\", \n      \"_id\" : \"products/677951025\", \n      \"_rev\" : \"677951025\", \n      \"_key\" : \"677951025\" \n    }, \n    { \n      \"hello5\" : \"world1\", \n      \"_id\" : \"products/679261745\", \n      \"_rev\" : \"679261745\", \n      \"_key\" : \"679261745\" \n    } \n  ], \n  \"hasMore\" : true, \n  \"id\" : \"679458353\", \n  \"count\" : 5, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 5, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 0, \n      \"executionTime\" : 0.00023293495178222656 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"cached\" : false, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Missing identifier

shell> curl -X PUT --dump - http://localhost:8529/_api/cursor\n\nHTTP/1.1 400 Bad Request\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"expecting PUT /_api/cursor/<cursor-id>\", \n  \"code\" : 400, \n  \"errorNum\" : 400 \n}\n

\n
Example: Unknown identifier

shell> curl -X PUT --dump - http://localhost:8529/_api/cursor/123123\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"cursor not found\", \n  \"code\" : 404, \n  \"errorNum\" : 1600 \n}\n

\n\n", "parameters": [ { "description": "The name of the cursor\n\n", @@ -3399,7 +3399,7 @@ }, "/_api/database/current": { "get": { - "description": "\n\nRetrieves information about the current database\n\nThe response is a JSON object with the following attributes:\n\n- *name*: the name of the current database\n\n- *id*: the id of the current database\n\n- *path*: the filesystem path of the current database\n\n- *isSystem*: whether or not the current database is the *_system* database\n\n\n
Example:

shell> curl --dump - http://localhost:8529/_api/database/current\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : { \n    \"name\" : \"_system\", \n    \"id\" : \"108974\", \n    \"path\" : \"/tmp/vocdir.40199/databases/database-108974\", \n    \"isSystem\" : true \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", + "description": "\n\nRetrieves information about the current database\n\nThe response is a JSON object with the following attributes:\n\n- *name*: the name of the current database\n\n- *id*: the id of the current database\n\n- *path*: the filesystem path of the current database\n\n- *isSystem*: whether or not the current database is the *_system* database\n\n\n
Example:

shell> curl --dump - http://localhost:8529/_api/database/current\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : { \n    \"name\" : \"_system\", \n    \"id\" : \"112177\", \n    \"path\" : \"/tmp/vocdir.10518/databases/database-112177\", \n    \"isSystem\" : true \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", "parameters": [], "responses": { "200": { @@ -3477,7 +3477,7 @@ }, "/_api/document": { "get": { - "description": "\n\nReturns an array of all keys, ids, or URI paths for all documents in the \ncollection identified by *collection*. The type of the result array is\ndetermined by the *type* attribute.\n\nNote that the results have no defined order and thus the order should\nnot be relied on.\n\n\n
Example: Return all document paths

shell> curl --dump - http://localhost:8529/_api/document/?collection=products\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"documents\" : [ \n    \"/_db/_system/_api/document/products/735553966\", \n    \"/_db/_system/_api/document/products/735226286\", \n    \"/_db/_system/_api/document/products/735881646\" \n  ] \n}\n

\n
Example: Return all document keys

shell> curl --dump - http://localhost:8529/_api/document/?collection=products&type=key\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"documents\" : [ \n    \"734636462\", \n    \"734308782\", \n    \"733981102\" \n  ] \n}\n

\n
Example: Collection does not exist

shell> curl --dump - http://localhost:8529/_api/document/?collection=doesnotexist\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"collection 'doesnotexist' not found\", \n  \"code\" : 404, \n  \"errorNum\" : 1203 \n}\n

\n\n", + "description": "\n\nReturns an array of all keys, ids, or URI paths for all documents in the \ncollection identified by *collection*. The type of the result array is\ndetermined by the *type* attribute.\n\nNote that the results have no defined order and thus the order should\nnot be relied on.\n\n\n
Example: Return all document paths

shell> curl --dump - http://localhost:8529/_api/document/?collection=products\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"documents\" : [ \n    \"/_db/_system/_api/document/products/732608049\", \n    \"/_db/_system/_api/document/products/732280369\", \n    \"/_db/_system/_api/document/products/731952689\" \n  ] \n}\n

\n
Example: Return all document keys

shell> curl --dump - http://localhost:8529/_api/document/?collection=products&type=key\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"documents\" : [ \n    \"731362865\", \n    \"730707505\", \n    \"731035185\" \n  ] \n}\n

\n
Example: Collection does not exist

shell> curl --dump - http://localhost:8529/_api/document/?collection=doesnotexist\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"collection 'doesnotexist' not found\", \n  \"code\" : 404, \n  \"errorNum\" : 1203 \n}\n

\n\n", "parameters": [ { "description": "The name of the collection.\n\n", @@ -3510,7 +3510,7 @@ "x-filename": "Documents - arangod/RestHandler/RestDocumentHandler.cpp" }, "post": { - "description": "\nfree style json body\n\n\n\nCreates a new document in the collection named *collection*. A JSON\nrepresentation of the document must be passed as the body of the POST\nrequest.\n\nIf the document was created successfully, then the \"Location\" header\ncontains the path to the newly created document. The \"ETag\" header field\ncontains the revision of the document.\n\nThe body of the response contains a JSON object with the following\nattributes:\n\n- *_id* contains the document handle of the newly created document\n- *_key* contains the document key\n- *_rev* contains the document revision\n\nIf the collection parameter *waitForSync* is *false*, then the call returns\nas soon as the document has been accepted. It will not wait until the\ndocument has been synced to disk.\n\nOptionally, the query parameter *waitForSync* can be used to force\nsynchronization of the document creation operation to disk even in case that\nthe *waitForSync* flag had been disabled for the entire collection. Thus,\nthe *waitForSync* query parameter can be used to force synchronization of just\nthis specific operations. To use this, set the *waitForSync* parameter to\n*true*. If the *waitForSync* parameter is not specified or set to *false*,\nthen the collection's default *waitForSync* behavior is applied. The\n*waitForSync* query parameter cannot be used to disable synchronization for\ncollections that have a default *waitForSync* value of *true*.\n\n\n
Example: Create a document in a collection named *products*. Note that the\nrevision identifier might or might not by equal to the auto-generated\nkey.

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/document?collection=products <<EOF\n{ \"Hello\": \"World\" }\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\netag: \"731818414\"\nlocation: /_db/_system/_api/document/products/731818414\n\n{ \n  \"error\" : false, \n  \"_id\" : \"products/731818414\", \n  \"_rev\" : \"731818414\", \n  \"_key\" : \"731818414\" \n}\n

\n
Example: Create a document in a collection named *products* with a collection-level\n*waitForSync* value of *false*.

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/document?collection=products <<EOF\n{ \"Hello\": \"World\" }\nEOF\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"731294126\"\nlocation: /_db/_system/_api/document/products/731294126\n\n{ \n  \"error\" : false, \n  \"_id\" : \"products/731294126\", \n  \"_rev\" : \"731294126\", \n  \"_key\" : \"731294126\" \n}\n

\n
Example: Create a document in a collection with a collection-level *waitForSync*\nvalue of *false*, but using the *waitForSync* query parameter.

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/document?collection=products&waitForSync=true <<EOF\n{ \"Hello\": \"World\" }\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\netag: \"732866990\"\nlocation: /_db/_system/_api/document/products/732866990\n\n{ \n  \"error\" : false, \n  \"_id\" : \"products/732866990\", \n  \"_rev\" : \"732866990\", \n  \"_key\" : \"732866990\" \n}\n

\n
Example: Create a document in a new, named collection

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/document?collection=products&createCollection=true <<EOF\n{ \"Hello\": \"World\" }\nEOF\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"732342702\"\nlocation: /_db/_system/_api/document/products/732342702\n\n{ \n  \"error\" : false, \n  \"_id\" : \"products/732342702\", \n  \"_rev\" : \"732342702\", \n  \"_key\" : \"732342702\" \n}\n

\n
Example: Unknown collection name

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/document?collection=products <<EOF\n{ \"Hello\": \"World\" }\nEOF\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"collection 'products' not found\", \n  \"code\" : 404, \n  \"errorNum\" : 1203 \n}\n

\n
Example: Illegal document

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/document?collection=products <<EOF\n{ 1: \"World\" }\nEOF\n\nHTTP/1.1 400 Bad Request\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"expecting attribute name\", \n  \"code\" : 400, \n  \"errorNum\" : 600 \n}\n

\n\n", + "description": "\nfree style json body\n\n\n\nCreates a new document in the collection named *collection*. A JSON\nrepresentation of the document must be passed as the body of the POST\nrequest.\n\nIf the document was created successfully, then the \"Location\" header\ncontains the path to the newly created document. The \"ETag\" header field\ncontains the revision of the document.\n\nThe body of the response contains a JSON object with the following\nattributes:\n\n- *_id* contains the document handle of the newly created document\n- *_key* contains the document key\n- *_rev* contains the document revision\n\nIf the collection parameter *waitForSync* is *false*, then the call returns\nas soon as the document has been accepted. It will not wait until the\ndocument has been synced to disk.\n\nOptionally, the query parameter *waitForSync* can be used to force\nsynchronization of the document creation operation to disk even in case that\nthe *waitForSync* flag had been disabled for the entire collection. Thus,\nthe *waitForSync* query parameter can be used to force synchronization of just\nthis specific operations. To use this, set the *waitForSync* parameter to\n*true*. If the *waitForSync* parameter is not specified or set to *false*,\nthen the collection's default *waitForSync* behavior is applied. The\n*waitForSync* query parameter cannot be used to disable synchronization for\ncollections that have a default *waitForSync* value of *true*.\n\n\n
Example: Create a document in a collection named *products*. Note that the\nrevision identifier might or might not by equal to the auto-generated\nkey.

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/document?collection=products <<EOF\n{ \"Hello\": \"World\" }\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\netag: \"728544817\"\nlocation: /_db/_system/_api/document/products/728544817\n\n{ \n  \"error\" : false, \n  \"_id\" : \"products/728544817\", \n  \"_rev\" : \"728544817\", \n  \"_key\" : \"728544817\" \n}\n

\n
Example: Create a document in a collection named *products* with a collection-level\n*waitForSync* value of *false*.

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/document?collection=products <<EOF\n{ \"Hello\": \"World\" }\nEOF\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"728020529\"\nlocation: /_db/_system/_api/document/products/728020529\n\n{ \n  \"error\" : false, \n  \"_id\" : \"products/728020529\", \n  \"_rev\" : \"728020529\", \n  \"_key\" : \"728020529\" \n}\n

\n
Example: Create a document in a collection with a collection-level *waitForSync*\nvalue of *false*, but using the *waitForSync* query parameter.

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/document?collection=products&waitForSync=true <<EOF\n{ \"Hello\": \"World\" }\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\netag: \"729593393\"\nlocation: /_db/_system/_api/document/products/729593393\n\n{ \n  \"error\" : false, \n  \"_id\" : \"products/729593393\", \n  \"_rev\" : \"729593393\", \n  \"_key\" : \"729593393\" \n}\n

\n
Example: Create a document in a new, named collection

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/document?collection=products&createCollection=true <<EOF\n{ \"Hello\": \"World\" }\nEOF\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"729069105\"\nlocation: /_db/_system/_api/document/products/729069105\n\n{ \n  \"error\" : false, \n  \"_id\" : \"products/729069105\", \n  \"_rev\" : \"729069105\", \n  \"_key\" : \"729069105\" \n}\n

\n
Example: Unknown collection name

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/document?collection=products <<EOF\n{ \"Hello\": \"World\" }\nEOF\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"collection 'products' not found\", \n  \"code\" : 404, \n  \"errorNum\" : 1203 \n}\n

\n
Example: Illegal document

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/document?collection=products <<EOF\n{ 1: \"World\" }\nEOF\n\nHTTP/1.1 400 Bad Request\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"expecting attribute name\", \n  \"code\" : 400, \n  \"errorNum\" : 600 \n}\n

\n\n", "parameters": [ { "description": "A JSON representation of the document.\n\n", @@ -3569,7 +3569,7 @@ }, "/_api/document/{collection-name}/{document-key}": { "delete": { - "description": "\n\nThe body of the response contains a JSON object with the information about\nthe handle and the revision. The attribute *_id* contains the known\n*document-handle* of the removed document, *_key* contains the key which\nuniquely identifies a document in a given collection, and the attribute *_rev*\ncontains the new document revision.\n\nIf the *waitForSync* parameter is not specified or set to\n*false*, then the collection's default *waitForSync* behavior is\napplied. The *waitForSync* query parameter cannot be used to disable\nsynchronization for collections that have a default *waitForSync* value\nof *true*.\n\n\n
Example: Using document handle:

shell> curl -X DELETE --dump - http://localhost:8529/_api/document/products/724937134\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"error\" : false, \n  \"_id\" : \"products/724937134\", \n  \"_rev\" : \"724937134\", \n  \"_key\" : \"724937134\" \n}\n

\n
Example: Unknown document handle:

shell> curl -X DELETE --dump - http://localhost:8529/_api/document/products/726641070\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"document not found\", \n  \"code\" : 404, \n  \"errorNum\" : 1202 \n}\n

\n
Example: Revision conflict:

shell> curl -X DELETE --header 'If-Match: \"725985710\"' --dump - http://localhost:8529/_api/document/products/725658030\n\nHTTP/1.1 412 Precondition Failed\ncontent-type: application/json; charset=utf-8\netag: \"725658030\"\n\n{ \n  \"error\" : true, \n  \"code\" : 412, \n  \"errorNum\" : 1200, \n  \"errorMessage\" : \"precondition failed\", \n  \"_id\" : \"products/725658030\", \n  \"_rev\" : \"725658030\", \n  \"_key\" : \"725658030\" \n}\n

\n\n", + "description": "\n\nThe body of the response contains a JSON object with the information about\nthe handle and the revision. The attribute *_id* contains the known\n*document-handle* of the removed document, *_key* contains the key which\nuniquely identifies a document in a given collection, and the attribute *_rev*\ncontains the new document revision.\n\nIf the *waitForSync* parameter is not specified or set to\n*false*, then the collection's default *waitForSync* behavior is\napplied. The *waitForSync* query parameter cannot be used to disable\nsynchronization for collections that have a default *waitForSync* value\nof *true*.\n\n\n
Example: Using document handle:

shell> curl -X DELETE --dump - http://localhost:8529/_api/document/products/721663537\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"error\" : false, \n  \"_id\" : \"products/721663537\", \n  \"_rev\" : \"721663537\", \n  \"_key\" : \"721663537\" \n}\n

\n
Example: Unknown document handle:

shell> curl -X DELETE --dump - http://localhost:8529/_api/document/products/723367473\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"document not found\", \n  \"code\" : 404, \n  \"errorNum\" : 1202 \n}\n

\n
Example: Revision conflict:

shell> curl -X DELETE --header 'If-Match: \"722712113\"' --dump - http://localhost:8529/_api/document/products/722384433\n\nHTTP/1.1 412 Precondition Failed\ncontent-type: application/json; charset=utf-8\netag: \"722384433\"\n\n{ \n  \"error\" : true, \n  \"code\" : 412, \n  \"errorNum\" : 1200, \n  \"errorMessage\" : \"precondition failed\", \n  \"_id\" : \"products/722384433\", \n  \"_rev\" : \"722384433\", \n  \"_key\" : \"722384433\" \n}\n

\n\n", "parameters": [ { "description": "The name of the collection.\n\n", @@ -3637,7 +3637,7 @@ "x-filename": "Documents - arangod/RestHandler/RestDocumentHandler.cpp" }, "get": { - "description": "\n\nReturns the document identified by *document-handle*. The returned\ndocument contains three special attributes: *_id* containing the document\nhandle, *_key* containing key which uniquely identifies a document\nin a given collection and *_rev* containing the revision.\n\n\n
Example: Use a document handle:

shell> curl --dump - http://localhost:8529/_api/document/products/733391278\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\netag: \"733391278\"\n\n{ \n  \"hello\" : \"world\", \n  \"_id\" : \"products/733391278\", \n  \"_rev\" : \"733391278\", \n  \"_key\" : \"733391278\" \n}\n

\n
Example: Use a document handle and an etag:

shell> curl --header 'If-None-Match: \"737061294\"' --dump - http://localhost:8529/_api/document/products/737061294\n\n

\n
Example: Unknown document handle:

shell> curl --dump - http://localhost:8529/_api/document/products/unknownhandle\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"collection 'products' not found\", \n  \"code\" : 404, \n  \"errorNum\" : 1203 \n}\n

\n\n", + "description": "\n\nReturns the document identified by *document-handle*. The returned\ndocument contains three special attributes: *_id* containing the document\nhandle, *_key* containing key which uniquely identifies a document\nin a given collection and *_rev* containing the revision.\n\n\n
Example: Use a document handle:

shell> curl --dump - http://localhost:8529/_api/document/products/730117681\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\netag: \"730117681\"\n\n{ \n  \"hello\" : \"world\", \n  \"_id\" : \"products/730117681\", \n  \"_rev\" : \"730117681\", \n  \"_key\" : \"730117681\" \n}\n

\n
Example: Use a document handle and an etag:

shell> curl --header 'If-None-Match: \"733787697\"' --dump - http://localhost:8529/_api/document/products/733787697\n\n

\n
Example: Unknown document handle:

shell> curl --dump - http://localhost:8529/_api/document/products/unknownhandle\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"collection 'products' not found\", \n  \"code\" : 404, \n  \"errorNum\" : 1203 \n}\n

\n\n", "parameters": [ { "description": "The name of the collection.\n\n", @@ -3690,7 +3690,7 @@ "x-filename": "Documents - arangod/RestHandler/RestDocumentHandler.cpp" }, "head": { - "description": "\n\nLike *GET*, but only returns the header fields and not the body. You\ncan use this call to get the current revision of a document or check if\nthe document was deleted.\n\n\n
Example:

shell> curl -X HEAD --dump - http://localhost:8529/_api/document/products/736471470\n\n

\n\n\n", + "description": "\n\nLike *GET*, but only returns the header fields and not the body. You\ncan use this call to get the current revision of a document or check if\nthe document was deleted.\n\n\n
Example:

shell> curl -X HEAD --dump - http://localhost:8529/_api/document/products/733197873\n\n

\n\n\n", "parameters": [ { "description": "The name of the collection.\n\n", @@ -3750,7 +3750,7 @@ "x-filename": "Documents - arangod/RestHandler/RestDocumentHandler.cpp" }, "patch": { - "description": "\nfree style json body\n\n\n\nPartially updates the document identified by *document-handle*.\nThe body of the request must contain a JSON document with the attributes\nto patch (the patch document). All attributes from the patch document will\nbe added to the existing document if they do not yet exist, and overwritten\nin the existing document if they do exist there.\n\nSetting an attribute value to *null* in the patch document will cause a\nvalue of *null* be saved for the attribute by default.\n\nOptionally, the query parameter *waitForSync* can be used to force\nsynchronization of the document update operation to disk even in case\nthat the *waitForSync* flag had been disabled for the entire collection.\nThus, the *waitForSync* query parameter can be used to force synchronization\nof just specific operations. To use this, set the *waitForSync* parameter\nto *true*. If the *waitForSync* parameter is not specified or set to\n*false*, then the collection's default *waitForSync* behavior is\napplied. The *waitForSync* query parameter cannot be used to disable\nsynchronization for collections that have a default *waitForSync* value\nof *true*.\n\nThe body of the response contains a JSON object with the information about\nthe handle and the revision. The attribute *_id* contains the known\n*document-handle* of the updated document, *_key* contains the key which \nuniquely identifies a document in a given collection, and the attribute *_rev*\ncontains the new document revision.\n\nIf the document does not exist, then a *HTTP 404* is returned and the\nbody of the response contains an error document.\n\nYou can conditionally update a document based on a target revision id by\nusing either the *rev* query parameter or the *if-match* HTTP header.\nTo control the update behavior in case there is a revision mismatch, you\ncan use the *policy* parameter. This is the same as when replacing\ndocuments (see replacing documents for details).\n\n\n
Example: patches an existing document with new content.

shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/727493038 <<EOF\n{ \n  \"hello\" : \"world\" \n}\nEOF\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"727820718\"\nlocation: /_db/_system/_api/document/products/727493038\n\n{ \n  \"error\" : false, \n  \"_id\" : \"products/727493038\", \n  \"_rev\" : \"727820718\", \n  \"_key\" : \"727493038\" \n}\nshell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/727493038 <<EOF\n{ \n  \"numbers\" : { \n    \"one\" : 1, \n    \"two\" : 2, \n    \"three\" : 3, \n    \"empty\" : null \n  } \n}\nEOF\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"728410542\"\nlocation: /_db/_system/_api/document/products/727493038\n\n{ \n  \"error\" : false, \n  \"_id\" : \"products/727493038\", \n  \"_rev\" : \"728410542\", \n  \"_key\" : \"727493038\" \n}\nshell> curl --dump - http://localhost:8529/_api/document/products/727493038\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\netag: \"728410542\"\n\n{ \n  \"one\" : \"world\", \n  \"hello\" : \"world\", \n  \"numbers\" : { \n    \"empty\" : null, \n    \"one\" : 1, \n    \"two\" : 2, \n    \"three\" : 3 \n  }, \n  \"_id\" : \"products/727493038\", \n  \"_rev\" : \"728410542\", \n  \"_key\" : \"727493038\" \n}\nshell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/727493038?keepNull=false <<EOF\n{ \n  \"hello\" : null, \n  \"numbers\" : { \n    \"four\" : 4 \n  } \n}\nEOF\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"728869294\"\nlocation: /_db/_system/_api/document/products/727493038\n\n{ \n  \"error\" : false, \n  \"_id\" : \"products/727493038\", \n  \"_rev\" : \"728869294\", \n  \"_key\" : \"727493038\" \n}\nshell> curl --dump - http://localhost:8529/_api/document/products/727493038\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\netag: \"728869294\"\n\n{ \n  \"one\" : \"world\", \n  \"numbers\" : { \n    \"empty\" : null, \n    \"one\" : 1, \n    \"two\" : 2, \n    \"three\" : 3, \n    \"four\" : 4 \n  }, \n  \"_id\" : \"products/727493038\", \n  \"_rev\" : \"728869294\", \n  \"_key\" : \"727493038\" \n}\n

\n
Example: Merging attributes of an object using `mergeObjects`:

shell> curl --dump - http://localhost:8529/_api/document/products/729721262\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\netag: \"729721262\"\n\n{ \n  \"inhabitants\" : { \n    \"china\" : 1366980000, \n    \"india\" : 1263590000, \n    \"usa\" : 319220000 \n  }, \n  \"_id\" : \"products/729721262\", \n  \"_rev\" : \"729721262\", \n  \"_key\" : \"729721262\" \n}\nshell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/729721262?mergeObjects=true <<EOF\n{ \n  \"inhabitants\" : { \n    \"indonesia\" : 252164800, \n    \"brazil\" : 203553000 \n  } \n}\nEOF\n\nshell> curl --dump - http://localhost:8529/_api/document/products/729721262\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\netag: \"730245550\"\n\n{ \n  \"inhabitants\" : { \n    \"china\" : 1366980000, \n    \"india\" : 1263590000, \n    \"usa\" : 319220000, \n    \"indonesia\" : 252164800, \n    \"brazil\" : 203553000 \n  }, \n  \"_id\" : \"products/729721262\", \n  \"_rev\" : \"730245550\", \n  \"_key\" : \"729721262\" \n}\nshell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/729721262?mergeObjects=false <<EOF\n{ \n  \"inhabitants\" : { \n    \"pakistan\" : 188346000 \n  } \n}\nEOF\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"730704302\"\nlocation: /_db/_system/_api/document/products/729721262\n\n{ \n  \"error\" : false, \n  \"_id\" : \"products/729721262\", \n  \"_rev\" : \"730704302\", \n  \"_key\" : \"729721262\" \n}\nshell> curl --dump - http://localhost:8529/_api/document/products/729721262\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\netag: \"730704302\"\n\n{ \n  \"inhabitants\" : { \n    \"pakistan\" : 188346000 \n  }, \n  \"_id\" : \"products/729721262\", \n  \"_rev\" : \"730704302\", \n  \"_key\" : \"729721262\" \n}\n

\n\n", + "description": "\nfree style json body\n\n\n\nPartially updates the document identified by *document-handle*.\nThe body of the request must contain a JSON document with the attributes\nto patch (the patch document). All attributes from the patch document will\nbe added to the existing document if they do not yet exist, and overwritten\nin the existing document if they do exist there.\n\nSetting an attribute value to *null* in the patch document will cause a\nvalue of *null* be saved for the attribute by default.\n\nOptionally, the query parameter *waitForSync* can be used to force\nsynchronization of the document update operation to disk even in case\nthat the *waitForSync* flag had been disabled for the entire collection.\nThus, the *waitForSync* query parameter can be used to force synchronization\nof just specific operations. To use this, set the *waitForSync* parameter\nto *true*. If the *waitForSync* parameter is not specified or set to\n*false*, then the collection's default *waitForSync* behavior is\napplied. The *waitForSync* query parameter cannot be used to disable\nsynchronization for collections that have a default *waitForSync* value\nof *true*.\n\nThe body of the response contains a JSON object with the information about\nthe handle and the revision. The attribute *_id* contains the known\n*document-handle* of the updated document, *_key* contains the key which \nuniquely identifies a document in a given collection, and the attribute *_rev*\ncontains the new document revision.\n\nIf the document does not exist, then a *HTTP 404* is returned and the\nbody of the response contains an error document.\n\nYou can conditionally update a document based on a target revision id by\nusing either the *rev* query parameter or the *if-match* HTTP header.\nTo control the update behavior in case there is a revision mismatch, you\ncan use the *policy* parameter. This is the same as when replacing\ndocuments (see replacing documents for details).\n\n\n
Example: patches an existing document with new content.

shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/724219441 <<EOF\n{ \n  \"hello\" : \"world\" \n}\nEOF\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"724547121\"\nlocation: /_db/_system/_api/document/products/724219441\n\n{ \n  \"error\" : false, \n  \"_id\" : \"products/724219441\", \n  \"_rev\" : \"724547121\", \n  \"_key\" : \"724219441\" \n}\nshell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/724219441 <<EOF\n{ \n  \"numbers\" : { \n    \"one\" : 1, \n    \"two\" : 2, \n    \"three\" : 3, \n    \"empty\" : null \n  } \n}\nEOF\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"725136945\"\nlocation: /_db/_system/_api/document/products/724219441\n\n{ \n  \"error\" : false, \n  \"_id\" : \"products/724219441\", \n  \"_rev\" : \"725136945\", \n  \"_key\" : \"724219441\" \n}\nshell> curl --dump - http://localhost:8529/_api/document/products/724219441\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\netag: \"725136945\"\n\n{ \n  \"one\" : \"world\", \n  \"hello\" : \"world\", \n  \"numbers\" : { \n    \"empty\" : null, \n    \"one\" : 1, \n    \"two\" : 2, \n    \"three\" : 3 \n  }, \n  \"_id\" : \"products/724219441\", \n  \"_rev\" : \"725136945\", \n  \"_key\" : \"724219441\" \n}\nshell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/724219441?keepNull=false <<EOF\n{ \n  \"hello\" : null, \n  \"numbers\" : { \n    \"four\" : 4 \n  } \n}\nEOF\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"725595697\"\nlocation: /_db/_system/_api/document/products/724219441\n\n{ \n  \"error\" : false, \n  \"_id\" : \"products/724219441\", \n  \"_rev\" : \"725595697\", \n  \"_key\" : \"724219441\" \n}\nshell> curl --dump - http://localhost:8529/_api/document/products/724219441\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\netag: \"725595697\"\n\n{ \n  \"one\" : \"world\", \n  \"numbers\" : { \n    \"empty\" : null, \n    \"one\" : 1, \n    \"two\" : 2, \n    \"three\" : 3, \n    \"four\" : 4 \n  }, \n  \"_id\" : \"products/724219441\", \n  \"_rev\" : \"725595697\", \n  \"_key\" : \"724219441\" \n}\n

\n
Example: Merging attributes of an object using `mergeObjects`:

shell> curl --dump - http://localhost:8529/_api/document/products/726447665\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\netag: \"726447665\"\n\n{ \n  \"inhabitants\" : { \n    \"china\" : 1366980000, \n    \"india\" : 1263590000, \n    \"usa\" : 319220000 \n  }, \n  \"_id\" : \"products/726447665\", \n  \"_rev\" : \"726447665\", \n  \"_key\" : \"726447665\" \n}\nshell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/726447665?mergeObjects=true <<EOF\n{ \n  \"inhabitants\" : { \n    \"indonesia\" : 252164800, \n    \"brazil\" : 203553000 \n  } \n}\nEOF\n\nshell> curl --dump - http://localhost:8529/_api/document/products/726447665\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\netag: \"726971953\"\n\n{ \n  \"inhabitants\" : { \n    \"china\" : 1366980000, \n    \"india\" : 1263590000, \n    \"usa\" : 319220000, \n    \"indonesia\" : 252164800, \n    \"brazil\" : 203553000 \n  }, \n  \"_id\" : \"products/726447665\", \n  \"_rev\" : \"726971953\", \n  \"_key\" : \"726447665\" \n}\nshell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/726447665?mergeObjects=false <<EOF\n{ \n  \"inhabitants\" : { \n    \"pakistan\" : 188346000 \n  } \n}\nEOF\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"727430705\"\nlocation: /_db/_system/_api/document/products/726447665\n\n{ \n  \"error\" : false, \n  \"_id\" : \"products/726447665\", \n  \"_rev\" : \"727430705\", \n  \"_key\" : \"726447665\" \n}\nshell> curl --dump - http://localhost:8529/_api/document/products/726447665\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\netag: \"727430705\"\n\n{ \n  \"inhabitants\" : { \n    \"pakistan\" : 188346000 \n  }, \n  \"_id\" : \"products/726447665\", \n  \"_rev\" : \"727430705\", \n  \"_key\" : \"726447665\" \n}\n

\n\n", "parameters": [ { "description": "A JSON representation of the document update.\n\n", @@ -3846,7 +3846,7 @@ "x-filename": "Documents - arangod/RestHandler/RestDocumentHandler.cpp" }, "put": { - "description": "\nfree style json body\n\n\n\nCompletely updates (i.e. replaces) the document identified by *document-handle*.\nIf the document exists and can be updated, then a *HTTP 201* is returned\nand the \"ETag\" header field contains the new revision of the document.\n\nIf the new document passed in the body of the request contains the\n*document-handle* in the attribute *_id* and the revision\nin *_rev*,\nthese attributes will be ignored. Only the URI and the \"ETag\" header are\nrelevant in order to avoid confusion when using proxies.\n\n\nOptionally, the query parameter *waitForSync* can be used to force\nsynchronization of the document replacement operation to disk even in case\nthat the *waitForSync* flag had been disabled for the entire collection.\nThus, the *waitForSync* query parameter can be used to force synchronization\nof just specific operations. To use this, set the *waitForSync* parameter\nto *true*. If the *waitForSync* parameter is not specified or set to\n*false*, then the collection's default *waitForSync* behavior is\napplied. The *waitForSync* query parameter cannot be used to disable\nsynchronization for collections that have a default *waitForSync* value\nof *true*.\n\n\nThe body of the response contains a JSON object with the information about\nthe handle and the revision. The attribute *_id* contains the known\n*document-handle* of the updated document, *_key* contains the key which \nuniquely identifies a document in a given collection, and the attribute *_rev*\ncontains the new document revision.\n\nIf the document does not exist, then a *HTTP 404* is returned and the\nbody of the response contains an error document.\n\nThere are two ways for specifying the targeted document revision id for\nconditional replacements (i.e. replacements that will only be executed if\nthe revision id found in the database matches the document revision id specified\nin the request):\n- specifying the target revision in the *rev* URL query parameter\n- specifying the target revision in the *if-match* HTTP header\n\n\nSpecifying a target revision is optional, however, if done, only one of the\ndescribed mechanisms must be used (either the *rev* query parameter or the\n*if-match* HTTP header).\nRegardless which mechanism is used, the parameter needs to contain the target\ndocument revision id as returned in the *_rev* attribute of a document or\nby an HTTP *etag* header.\n\nFor example, to conditionally replace a document based on a specific revision\nid, you can use the following request:\n\n\n`PUT /_api/document/collection-name/document-key?rev=etag`\n\n\nIf a target revision id is provided in the request (e.g. via the *etag* value\nin the *rev* URL query parameter above), ArangoDB will check that\nthe revision id of the document found in the database is equal to the target\nrevision id provided in the request. If there is a mismatch between the revision\nid, then by default a *HTTP 412* conflict is returned and no replacement is\nperformed.\n\n\nThe conditional update behavior can be overridden with the *policy* URL query parameter:\n\n\n`PUT /_api/document/collection-name/document-key?policy=policy`\n\n\nIf *policy* is set to *error*, then the behavior is as before: replacements\nwill fail if the revision id found in the database does not match the target\nrevision id specified in the request.\n\nIf *policy* is set to *last*, then the replacement will succeed, even if the\nrevision id found in the database does not match the target revision id specified\nin the request. You can use the *last* *policy* to force replacements.\n\n\n
Example: Using a document handle

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/document/products/737651118 <<EOF\n{\"Hello\": \"you\"}\nEOF\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"737978798\"\nlocation: /_db/_system/_api/document/products/737651118\n\n{ \n  \"error\" : false, \n  \"_id\" : \"products/737651118\", \n  \"_rev\" : \"737978798\", \n  \"_key\" : \"737651118\" \n}\n

\n
Example: Unknown document handle

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/document/products/741845422 <<EOF\n{}\nEOF\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"document not found\", \n  \"code\" : 404, \n  \"errorNum\" : 1202 \n}\n

\n
Example: Produce a revision conflict

shell> curl -X PUT --header 'If-Match: \"738830766\"' --data-binary @- --dump - http://localhost:8529/_api/document/products/738503086 <<EOF\n{\"other\":\"content\"}\nEOF\n\nHTTP/1.1 412 Precondition Failed\ncontent-type: application/json; charset=utf-8\netag: \"738503086\"\n\n{ \n  \"error\" : true, \n  \"code\" : 412, \n  \"errorNum\" : 1200, \n  \"errorMessage\" : \"precondition failed\", \n  \"_id\" : \"products/738503086\", \n  \"_rev\" : \"738503086\", \n  \"_key\" : \"738503086\" \n}\n

\n
Example: Last write wins

shell> curl -X PUT --header 'If-Match: \"739944878\"' --data-binary @- --dump - http://localhost:8529/_api/document/products/739617198?policy=last <<EOF\n{}\nEOF\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"740207022\"\nlocation: /_db/_system/_api/document/products/739617198\n\n{ \n  \"error\" : false, \n  \"_id\" : \"products/739617198\", \n  \"_rev\" : \"740207022\", \n  \"_key\" : \"739617198\" \n}\n

\n
Example: Alternative to header fields

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/document/products/740731310?rev=741058990 <<EOF\n{\"other\":\"content\"}\nEOF\n\nHTTP/1.1 412 Precondition Failed\ncontent-type: application/json; charset=utf-8\netag: \"740731310\"\n\n{ \n  \"error\" : true, \n  \"code\" : 412, \n  \"errorNum\" : 1200, \n  \"errorMessage\" : \"precondition failed\", \n  \"_id\" : \"products/740731310\", \n  \"_rev\" : \"740731310\", \n  \"_key\" : \"740731310\" \n}\n

\n\n", + "description": "\nfree style json body\n\n\n\nCompletely updates (i.e. replaces) the document identified by *document-handle*.\nIf the document exists and can be updated, then a *HTTP 201* is returned\nand the \"ETag\" header field contains the new revision of the document.\n\nIf the new document passed in the body of the request contains the\n*document-handle* in the attribute *_id* and the revision\nin *_rev*,\nthese attributes will be ignored. Only the URI and the \"ETag\" header are\nrelevant in order to avoid confusion when using proxies.\n\n\nOptionally, the query parameter *waitForSync* can be used to force\nsynchronization of the document replacement operation to disk even in case\nthat the *waitForSync* flag had been disabled for the entire collection.\nThus, the *waitForSync* query parameter can be used to force synchronization\nof just specific operations. To use this, set the *waitForSync* parameter\nto *true*. If the *waitForSync* parameter is not specified or set to\n*false*, then the collection's default *waitForSync* behavior is\napplied. The *waitForSync* query parameter cannot be used to disable\nsynchronization for collections that have a default *waitForSync* value\nof *true*.\n\n\nThe body of the response contains a JSON object with the information about\nthe handle and the revision. The attribute *_id* contains the known\n*document-handle* of the updated document, *_key* contains the key which \nuniquely identifies a document in a given collection, and the attribute *_rev*\ncontains the new document revision.\n\nIf the document does not exist, then a *HTTP 404* is returned and the\nbody of the response contains an error document.\n\nThere are two ways for specifying the targeted document revision id for\nconditional replacements (i.e. replacements that will only be executed if\nthe revision id found in the database matches the document revision id specified\nin the request):\n- specifying the target revision in the *rev* URL query parameter\n- specifying the target revision in the *if-match* HTTP header\n\n\nSpecifying a target revision is optional, however, if done, only one of the\ndescribed mechanisms must be used (either the *rev* query parameter or the\n*if-match* HTTP header).\nRegardless which mechanism is used, the parameter needs to contain the target\ndocument revision id as returned in the *_rev* attribute of a document or\nby an HTTP *etag* header.\n\nFor example, to conditionally replace a document based on a specific revision\nid, you can use the following request:\n\n\n`PUT /_api/document/collection-name/document-key?rev=etag`\n\n\nIf a target revision id is provided in the request (e.g. via the *etag* value\nin the *rev* URL query parameter above), ArangoDB will check that\nthe revision id of the document found in the database is equal to the target\nrevision id provided in the request. If there is a mismatch between the revision\nid, then by default a *HTTP 412* conflict is returned and no replacement is\nperformed.\n\n\nThe conditional update behavior can be overridden with the *policy* URL query parameter:\n\n\n`PUT /_api/document/collection-name/document-key?policy=policy`\n\n\nIf *policy* is set to *error*, then the behavior is as before: replacements\nwill fail if the revision id found in the database does not match the target\nrevision id specified in the request.\n\nIf *policy* is set to *last*, then the replacement will succeed, even if the\nrevision id found in the database does not match the target revision id specified\nin the request. You can use the *last* *policy* to force replacements.\n\n\n
Example: Using a document handle

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/document/products/734377521 <<EOF\n{\"Hello\": \"you\"}\nEOF\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"734705201\"\nlocation: /_db/_system/_api/document/products/734377521\n\n{ \n  \"error\" : false, \n  \"_id\" : \"products/734377521\", \n  \"_rev\" : \"734705201\", \n  \"_key\" : \"734377521\" \n}\n

\n
Example: Unknown document handle

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/document/products/738571825 <<EOF\n{}\nEOF\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"document not found\", \n  \"code\" : 404, \n  \"errorNum\" : 1202 \n}\n

\n
Example: Produce a revision conflict

shell> curl -X PUT --header 'If-Match: \"735557169\"' --data-binary @- --dump - http://localhost:8529/_api/document/products/735229489 <<EOF\n{\"other\":\"content\"}\nEOF\n\nHTTP/1.1 412 Precondition Failed\ncontent-type: application/json; charset=utf-8\netag: \"735229489\"\n\n{ \n  \"error\" : true, \n  \"code\" : 412, \n  \"errorNum\" : 1200, \n  \"errorMessage\" : \"precondition failed\", \n  \"_id\" : \"products/735229489\", \n  \"_rev\" : \"735229489\", \n  \"_key\" : \"735229489\" \n}\n

\n
Example: Last write wins

shell> curl -X PUT --header 'If-Match: \"736671281\"' --data-binary @- --dump - http://localhost:8529/_api/document/products/736343601?policy=last <<EOF\n{}\nEOF\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"736933425\"\nlocation: /_db/_system/_api/document/products/736343601\n\n{ \n  \"error\" : false, \n  \"_id\" : \"products/736343601\", \n  \"_rev\" : \"736933425\", \n  \"_key\" : \"736343601\" \n}\n

\n
Example: Alternative to header fields

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/document/products/737457713?rev=737785393 <<EOF\n{\"other\":\"content\"}\nEOF\n\nHTTP/1.1 412 Precondition Failed\ncontent-type: application/json; charset=utf-8\netag: \"737457713\"\n\n{ \n  \"error\" : true, \n  \"code\" : 412, \n  \"errorNum\" : 1200, \n  \"errorMessage\" : \"precondition failed\", \n  \"_id\" : \"products/737457713\", \n  \"_rev\" : \"737457713\", \n  \"_key\" : \"737457713\" \n}\n

\n\n", "parameters": [ { "description": "A JSON representation of the new document.\n\n", @@ -3956,7 +3956,7 @@ "x-filename": "Graph edges - arangod/RestHandler/RestEdgeHandler.cpp, arangod/RestHandler/RestEdgesHandler.cpp" }, "post": { - "description": "\nfree style json body\n\n\n\nCreates a new edge document in the collection named *collection*. A JSON\nrepresentation of the document must be passed as the body of the POST\nrequest.\n\nThe *from* and *to* handles are immutable once the edge has been created.\n\nIn all other respects the method works like *POST /document*.\n\n\n
Example: Create an edge and read it back:

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/edge/?collection=edges&from=vertices/1&to=vertices/2 <<EOF\n{ \n  \"name\" : \"Emil\" \n}\nEOF\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"744729006\"\nlocation: /_db/_system/_api/edge/edges/744729006\n\n{ \n  \"error\" : false, \n  \"_id\" : \"edges/744729006\", \n  \"_rev\" : \"744729006\", \n  \"_key\" : \"744729006\" \n}\nshell> curl --dump - http://localhost:8529/_api/edge/edges/744729006\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\netag: \"744729006\"\n\n{ \n  \"name\" : \"Emil\", \n  \"_id\" : \"edges/744729006\", \n  \"_rev\" : \"744729006\", \n  \"_key\" : \"744729006\", \n  \"_from\" : \"vertices/1\", \n  \"_to\" : \"vertices/2\" \n}\n

\n\n", + "description": "\nfree style json body\n\n\n\nCreates a new edge document in the collection named *collection*. A JSON\nrepresentation of the document must be passed as the body of the POST\nrequest.\n\nThe *from* and *to* handles are immutable once the edge has been created.\n\nIn all other respects the method works like *POST /document*.\n\n\n
Example: Create an edge and read it back:

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/edge/?collection=edges&from=vertices/1&to=vertices/2 <<EOF\n{ \n  \"name\" : \"Emil\" \n}\nEOF\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"741455409\"\nlocation: /_db/_system/_api/edge/edges/741455409\n\n{ \n  \"error\" : false, \n  \"_id\" : \"edges/741455409\", \n  \"_rev\" : \"741455409\", \n  \"_key\" : \"741455409\" \n}\nshell> curl --dump - http://localhost:8529/_api/edge/edges/741455409\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\netag: \"741455409\"\n\n{ \n  \"name\" : \"Emil\", \n  \"_id\" : \"edges/741455409\", \n  \"_rev\" : \"741455409\", \n  \"_key\" : \"741455409\", \n  \"_from\" : \"vertices/1\", \n  \"_to\" : \"vertices/2\" \n}\n

\n\n", "parameters": [ { "description": "A JSON representation of the edge document must be passed as the body of\nthe POST request. This JSON object may contain the edge's document key in\nthe *_key* attribute if needed.\n\n", @@ -4390,7 +4390,7 @@ }, "/_api/edges/{collection-id}": { "get": { - "description": "\n\nReturns an array of edges starting or ending in the vertex identified by\n*vertex-handle*.\n\n\n
Example: Any direction

shell> curl --dump - http://localhost:8529/_api/edges/edges?vertex=vertices/1\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"edges\" : [ \n    { \n      \"$label\" : \"v2 -> v1\", \n      \"_id\" : \"edges/6\", \n      \"_rev\" : \"748857774\", \n      \"_key\" : \"6\", \n      \"_from\" : \"vertices/2\", \n      \"_to\" : \"vertices/1\" \n    }, \n    { \n      \"$label\" : \"v4 -> v1\", \n      \"_id\" : \"edges/7\", \n      \"_rev\" : \"749382062\", \n      \"_key\" : \"7\", \n      \"_from\" : \"vertices/4\", \n      \"_to\" : \"vertices/1\" \n    }, \n    { \n      \"$label\" : \"v1 -> v3\", \n      \"_id\" : \"edges/5\", \n      \"_rev\" : \"748333486\", \n      \"_key\" : \"5\", \n      \"_from\" : \"vertices/1\", \n      \"_to\" : \"vertices/3\" \n    } \n  ], \n  \"error\" : false, \n  \"code\" : 200, \n  \"stats\" : { \n    \"scannedIndex\" : 3, \n    \"filtered\" : 0 \n  } \n}\n

\n
Example: In edges

shell> curl --dump - http://localhost:8529/_api/edges/edges?vertex=vertices/1&direction=in\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"edges\" : [ \n    { \n      \"$label\" : \"v2 -> v1\", \n      \"_id\" : \"edges/6\", \n      \"_rev\" : \"753576366\", \n      \"_key\" : \"6\", \n      \"_from\" : \"vertices/2\", \n      \"_to\" : \"vertices/1\" \n    }, \n    { \n      \"$label\" : \"v4 -> v1\", \n      \"_id\" : \"edges/7\", \n      \"_rev\" : \"754100654\", \n      \"_key\" : \"7\", \n      \"_from\" : \"vertices/4\", \n      \"_to\" : \"vertices/1\" \n    } \n  ], \n  \"error\" : false, \n  \"code\" : 200, \n  \"stats\" : { \n    \"scannedIndex\" : 2, \n    \"filtered\" : 0 \n  } \n}\n

\n
Example: Out edges

shell> curl --dump - http://localhost:8529/_api/edges/edges?vertex=vertices/1&direction=out\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"edges\" : [ \n    { \n      \"$label\" : \"v1 -> v3\", \n      \"_id\" : \"edges/5\", \n      \"_rev\" : \"757770670\", \n      \"_key\" : \"5\", \n      \"_from\" : \"vertices/1\", \n      \"_to\" : \"vertices/3\" \n    } \n  ], \n  \"error\" : false, \n  \"code\" : 200, \n  \"stats\" : { \n    \"scannedIndex\" : 1, \n    \"filtered\" : 0 \n  } \n}\n

\n\n", + "description": "\n\nReturns an array of edges starting or ending in the vertex identified by\n*vertex-handle*.\n\n\n
Example: Any direction

shell> curl --dump - http://localhost:8529/_api/edges/edges?vertex=vertices/1\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"edges\" : [ \n    { \n      \"$label\" : \"v2 -> v1\", \n      \"_id\" : \"edges/6\", \n      \"_rev\" : \"745584177\", \n      \"_key\" : \"6\", \n      \"_from\" : \"vertices/2\", \n      \"_to\" : \"vertices/1\" \n    }, \n    { \n      \"$label\" : \"v4 -> v1\", \n      \"_id\" : \"edges/7\", \n      \"_rev\" : \"746108465\", \n      \"_key\" : \"7\", \n      \"_from\" : \"vertices/4\", \n      \"_to\" : \"vertices/1\" \n    }, \n    { \n      \"$label\" : \"v1 -> v3\", \n      \"_id\" : \"edges/5\", \n      \"_rev\" : \"745059889\", \n      \"_key\" : \"5\", \n      \"_from\" : \"vertices/1\", \n      \"_to\" : \"vertices/3\" \n    } \n  ], \n  \"error\" : false, \n  \"code\" : 200, \n  \"stats\" : { \n    \"scannedIndex\" : 3, \n    \"filtered\" : 0 \n  } \n}\n

\n
Example: In edges

shell> curl --dump - http://localhost:8529/_api/edges/edges?vertex=vertices/1&direction=in\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"edges\" : [ \n    { \n      \"$label\" : \"v2 -> v1\", \n      \"_id\" : \"edges/6\", \n      \"_rev\" : \"750302769\", \n      \"_key\" : \"6\", \n      \"_from\" : \"vertices/2\", \n      \"_to\" : \"vertices/1\" \n    }, \n    { \n      \"$label\" : \"v4 -> v1\", \n      \"_id\" : \"edges/7\", \n      \"_rev\" : \"750827057\", \n      \"_key\" : \"7\", \n      \"_from\" : \"vertices/4\", \n      \"_to\" : \"vertices/1\" \n    } \n  ], \n  \"error\" : false, \n  \"code\" : 200, \n  \"stats\" : { \n    \"scannedIndex\" : 2, \n    \"filtered\" : 0 \n  } \n}\n

\n
Example: Out edges

shell> curl --dump - http://localhost:8529/_api/edges/edges?vertex=vertices/1&direction=out\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"edges\" : [ \n    { \n      \"$label\" : \"v1 -> v3\", \n      \"_id\" : \"edges/5\", \n      \"_rev\" : \"754497073\", \n      \"_key\" : \"5\", \n      \"_from\" : \"vertices/1\", \n      \"_to\" : \"vertices/3\" \n    } \n  ], \n  \"error\" : false, \n  \"code\" : 200, \n  \"stats\" : { \n    \"scannedIndex\" : 1, \n    \"filtered\" : 0 \n  } \n}\n

\n\n", "parameters": [ { "description": "The id of the collection.\n\n", @@ -4436,7 +4436,7 @@ }, "/_api/endpoint": { "get": { - "description": "\n\nReturns an array of all configured endpoints the server is listening on. For\neach endpoint, the array of allowed databases is returned too if set.\n\nThe result is a JSON object which has the endpoints as keys, and an array of\nmapped database names as values for each endpoint.\n\nIf an array of mapped databases is empty, it means that all databases can be\naccessed via the endpoint. If an array of mapped databases contains more than\none database name, this means that any of the databases might be accessed\nvia the endpoint, and the first database in the arry will be treated as\nthe default database for the endpoint. The default database will be used\nwhen an incoming request does not specify a database name in the request\nexplicitly.\n\n**Note**: retrieving the array of all endpoints is allowed in the system database\nonly. Calling this action in any other database will make the server return\nan error.\n\n\n
Example:

shell> curl --dump - http://localhost:8529/_api/endpoint\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n[ \n  { \n    \"endpoint\" : \"tcp://127.0.0.1:30199\", \n    \"databases\" : [ ] \n  } \n]\n

\n\n", + "description": "\n\nReturns an array of all configured endpoints the server is listening on. For\neach endpoint, the array of allowed databases is returned too if set.\n\nThe result is a JSON object which has the endpoints as keys, and an array of\nmapped database names as values for each endpoint.\n\nIf an array of mapped databases is empty, it means that all databases can be\naccessed via the endpoint. If an array of mapped databases contains more than\none database name, this means that any of the databases might be accessed\nvia the endpoint, and the first database in the arry will be treated as\nthe default database for the endpoint. The default database will be used\nwhen an incoming request does not specify a database name in the request\nexplicitly.\n\n**Note**: retrieving the array of all endpoints is allowed in the system database\nonly. Calling this action in any other database will make the server return\nan error.\n\n\n
Example:

shell> curl --dump - http://localhost:8529/_api/endpoint\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n[ \n  { \n    \"endpoint\" : \"tcp://127.0.0.1:30518\", \n    \"databases\" : [ ] \n  } \n]\n

\n\n", "parameters": [], "responses": { "200": { @@ -4459,7 +4459,7 @@ }, "/_api/explain": { "post": { - "description": "**A json post document with these Properties is required:**\n\n - **query**: the query which you want explained; If the query references any bind variables,\n these must also be passed in the attribute *bindVars*. Additional\n options for the query can be passed in the *options* attribute.\n - **options**:\n - **optimizer.rules**: an array of to-be-included or to-be-excluded optimizer rules\n can be put into this attribute, telling the optimizer to include or exclude\n specific rules. To disable a rule, prefix its name with a `-`, to enable a rule, prefix it\n with a `+`. There is also a pseudo-rule `all`, which will match all optimizer rules. of type string\n - **maxNumberOfPlans**: an optional maximum number of plans that the optimizer is \n allowed to generate. Setting this attribute to a low value allows to put a\n cap on the amount of work the optimizer does.\n - **allPlans**: if set to *true*, all possible execution plans will be returned.\n The default is *false*, meaning only the optimal plan will be returned.\n - **bindVars**: key/value pairs representing the bind values of type object\n\n\n\n\n\nTo explain how an AQL query would be executed on the server, the query string\ncan be sent to the server via an HTTP POST request. The server will then validate\nthe query and create an execution plan for it. The execution plan will be\nreturned, but the query will not be executed.\n\nThe execution plan that is returned by the server can be used to estimate the\nprobable performance of the query. Though the actual performance will depend\non many different factors, the execution plan normally can provide some rough\nestimates on the amount of work the server needs to do in order to actually run \nthe query.\n\nBy default, the explain operation will return the optimal plan as chosen by\nthe query optimizer The optimal plan is the plan with the lowest total estimated\ncost. The plan will be returned in the attribute *plan* of the response object.\nIf the option *allPlans* is specified in the request, the result will contain \nall plans created by the optimizer. The plans will then be returned in the \nattribute *plans*.\n\nThe result will also contain an attribute *warnings*, which is an array of \nwarnings that occurred during optimization or execution plan creation. Additionally,\na *stats* attribute is contained in the result with some optimizer statistics.\n\nEach plan in the result is a JSON object with the following attributes:\n- *nodes*: the array of execution nodes of the plan. The array of available node types\n can be found [here](../Aql/Optimizer.md)\n\n- *estimatedCost*: the total estimated cost for the plan. If there are multiple\n plans, the optimizer will choose the plan with the lowest total cost.\n\n- *collections*: an array of collections used in the query\n\n- *rules*: an array of rules the optimizer applied. An overview of the\n available rules can be found [here](../Aql/Optimizer.md)\n\n- *variables*: array of variables used in the query (note: this may contain\n internal variables created by the optimizer)\n\n\n
Example: Valid query

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/explain <<EOF\n{ \n  \"query\" : \"FOR p IN products RETURN p\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"plan\" : { \n    \"nodes\" : [ \n      { \n        \"type\" : \"SingletonNode\", \n        \"dependencies\" : [ ], \n        \"id\" : 1, \n        \"estimatedCost\" : 1, \n        \"estimatedNrItems\" : 1 \n      }, \n      { \n        \"type\" : \"EnumerateCollectionNode\", \n        \"dependencies\" : [ \n          1 \n        ], \n        \"id\" : 2, \n        \"estimatedCost\" : 11, \n        \"estimatedNrItems\" : 10, \n        \"database\" : \"_system\", \n        \"collection\" : \"products\", \n        \"outVariable\" : { \n          \"id\" : 0, \n          \"name\" : \"p\" \n        }, \n        \"random\" : false \n      }, \n      { \n        \"type\" : \"ReturnNode\", \n        \"dependencies\" : [ \n          2 \n        ], \n        \"id\" : 3, \n        \"estimatedCost\" : 21, \n        \"estimatedNrItems\" : 10, \n        \"inVariable\" : { \n          \"id\" : 0, \n          \"name\" : \"p\" \n        } \n      } \n    ], \n    \"rules\" : [ ], \n    \"collections\" : [ \n      { \n        \"name\" : \"products\", \n        \"type\" : \"read\" \n      } \n    ], \n    \"variables\" : [ \n      { \n        \"id\" : 0, \n        \"name\" : \"p\" \n      } \n    ], \n    \"estimatedCost\" : 21, \n    \"estimatedNrItems\" : 10 \n  }, \n  \"warnings\" : [ ], \n  \"stats\" : { \n    \"rulesExecuted\" : 25, \n    \"rulesSkipped\" : 0, \n    \"plansCreated\" : 1 \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: A plan with some optimizer rules applied

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/explain <<EOF\n{ \n  \"query\" : \"FOR p IN products LET a = p.id FILTER a == 4 LET name = p.name SORT p.id LIMIT 1 RETURN name\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"plan\" : { \n    \"nodes\" : [ \n      { \n        \"type\" : \"SingletonNode\", \n        \"dependencies\" : [ ], \n        \"id\" : 1, \n        \"estimatedCost\" : 1, \n        \"estimatedNrItems\" : 1 \n      }, \n      { \n        \"type\" : \"IndexNode\", \n        \"dependencies\" : [ \n          1 \n        ], \n        \"id\" : 11, \n        \"estimatedCost\" : 11, \n        \"estimatedNrItems\" : 10, \n        \"database\" : \"_system\", \n        \"collection\" : \"products\", \n        \"outVariable\" : { \n          \"id\" : 0, \n          \"name\" : \"p\" \n        }, \n        \"indexes\" : [ \n          { \n            \"type\" : \"skiplist\", \n            \"id\" : \"760654254\", \n            \"unique\" : false, \n            \"sparse\" : false, \n            \"fields\" : [ \n              \"id\" \n            ] \n          } \n        ], \n        \"condition\" : { \n        }, \n        \"reverse\" : false \n      }, \n      { \n        \"type\" : \"CalculationNode\", \n        \"dependencies\" : [ \n          11 \n        ], \n        \"id\" : 3, \n        \"estimatedCost\" : 21, \n        \"estimatedNrItems\" : 10, \n        \"expression\" : { \n          \"type\" : \"attribute access\", \n          \"name\" : \"id\", \n          \"subNodes\" : [ \n            { \n              \"type\" : \"reference\", \n              \"name\" : \"p\", \n              \"id\" : 0 \n            } \n          ] \n        }, \n        \"outVariable\" : { \n          \"id\" : 1, \n          \"name\" : \"a\" \n        }, \n        \"canThrow\" : false, \n        \"expressionType\" : \"attribute\" \n      }, \n      { \n        \"type\" : \"CalculationNode\", \n        \"dependencies\" : [ \n          3 \n        ], \n        \"id\" : 4, \n        \"estimatedCost\" : 31, \n        \"estimatedNrItems\" : 10, \n        \"expression\" : { \n          \"type\" : \"compare ==\", \n          \"subNodes\" : [ \n            { \n              \"type\" : \"reference\", \n              \"name\" : \"a\", \n              \"id\" : 1 \n            }, \n            { \n              \"type\" : \"value\", \n              \"value\" : 4 \n            } \n          ] \n        }, \n        \"outVariable\" : { \n          \"id\" : 4, \n          \"name\" : \"3\" \n        }, \n        \"canThrow\" : false, \n        \"expressionType\" : \"simple\" \n      }, \n      { \n        \"type\" : \"FilterNode\", \n        \"dependencies\" : [ \n          4 \n        ], \n        \"id\" : 5, \n        \"estimatedCost\" : 41, \n        \"estimatedNrItems\" : 10, \n        \"inVariable\" : { \n          \"id\" : 4, \n          \"name\" : \"3\" \n        } \n      }, \n      { \n        \"type\" : \"LimitNode\", \n        \"dependencies\" : [ \n          5 \n        ], \n        \"id\" : 9, \n        \"estimatedCost\" : 42, \n        \"estimatedNrItems\" : 1, \n        \"offset\" : 0, \n        \"limit\" : 1, \n        \"fullCount\" : false \n      }, \n      { \n        \"type\" : \"CalculationNode\", \n        \"dependencies\" : [ \n          9 \n        ], \n        \"id\" : 6, \n        \"estimatedCost\" : 43, \n        \"estimatedNrItems\" : 1, \n        \"expression\" : { \n          \"type\" : \"attribute access\", \n          \"name\" : \"name\", \n          \"subNodes\" : [ \n            { \n              \"type\" : \"reference\", \n              \"name\" : \"p\", \n              \"id\" : 0 \n            } \n          ] \n        }, \n        \"outVariable\" : { \n          \"id\" : 2, \n          \"name\" : \"name\" \n        }, \n        \"canThrow\" : false, \n        \"expressionType\" : \"attribute\" \n      }, \n      { \n        \"type\" : \"ReturnNode\", \n        \"dependencies\" : [ \n          6 \n        ], \n        \"id\" : 10, \n        \"estimatedCost\" : 44, \n        \"estimatedNrItems\" : 1, \n        \"inVariable\" : { \n          \"id\" : 2, \n          \"name\" : \"name\" \n        } \n      } \n    ], \n    \"rules\" : [ \n      \"move-calculations-up\", \n      \"remove-redundant-calculations\", \n      \"remove-unnecessary-calculations\", \n      \"move-calculations-up-2\", \n      \"use-index-for-sort\", \n      \"move-calculations-down\" \n    ], \n    \"collections\" : [ \n      { \n        \"name\" : \"products\", \n        \"type\" : \"read\" \n      } \n    ], \n    \"variables\" : [ \n      { \n        \"id\" : 6, \n        \"name\" : \"5\" \n      }, \n      { \n        \"id\" : 4, \n        \"name\" : \"3\" \n      }, \n      { \n        \"id\" : 2, \n        \"name\" : \"name\" \n      }, \n      { \n        \"id\" : 1, \n        \"name\" : \"a\" \n      }, \n      { \n        \"id\" : 0, \n        \"name\" : \"p\" \n      } \n    ], \n    \"estimatedCost\" : 44, \n    \"estimatedNrItems\" : 1 \n  }, \n  \"warnings\" : [ ], \n  \"stats\" : { \n    \"rulesExecuted\" : 36, \n    \"rulesSkipped\" : 0, \n    \"plansCreated\" : 1 \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Using some options

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/explain <<EOF\n{ \n  \"query\" : \"FOR p IN products LET a = p.id FILTER a == 4 LET name = p.name SORT p.id LIMIT 1 RETURN name\", \n  \"options\" : { \n    \"maxNumberOfPlans\" : 2, \n    \"allPlans\" : true, \n    \"optimizer\" : { \n      \"rules\" : [ \n        \"-all\", \n        \"+use-index-for-sort\", \n        \"+use-index-range\" \n      ] \n    } \n  } \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"plans\" : [ \n    { \n      \"nodes\" : [ \n        { \n          \"type\" : \"SingletonNode\", \n          \"dependencies\" : [ ], \n          \"id\" : 1, \n          \"estimatedCost\" : 1, \n          \"estimatedNrItems\" : 1 \n        }, \n        { \n          \"type\" : \"IndexNode\", \n          \"dependencies\" : [ \n            1 \n          ], \n          \"id\" : 11, \n          \"estimatedCost\" : 11, \n          \"estimatedNrItems\" : 10, \n          \"database\" : \"_system\", \n          \"collection\" : \"products\", \n          \"outVariable\" : { \n            \"id\" : 0, \n            \"name\" : \"p\" \n          }, \n          \"indexes\" : [ \n            { \n              \"type\" : \"skiplist\", \n              \"id\" : \"763210158\", \n              \"unique\" : false, \n              \"sparse\" : false, \n              \"fields\" : [ \n                \"id\" \n              ] \n            } \n          ], \n          \"condition\" : { \n          }, \n          \"reverse\" : false \n        }, \n        { \n          \"type\" : \"CalculationNode\", \n          \"dependencies\" : [ \n            11 \n          ], \n          \"id\" : 3, \n          \"estimatedCost\" : 21, \n          \"estimatedNrItems\" : 10, \n          \"expression\" : { \n            \"type\" : \"attribute access\", \n            \"name\" : \"id\", \n            \"subNodes\" : [ \n              { \n                \"type\" : \"reference\", \n                \"name\" : \"p\", \n                \"id\" : 0 \n              } \n            ] \n          }, \n          \"outVariable\" : { \n            \"id\" : 1, \n            \"name\" : \"a\" \n          }, \n          \"canThrow\" : false, \n          \"expressionType\" : \"attribute\" \n        }, \n        { \n          \"type\" : \"CalculationNode\", \n          \"dependencies\" : [ \n            3 \n          ], \n          \"id\" : 4, \n          \"estimatedCost\" : 31, \n          \"estimatedNrItems\" : 10, \n          \"expression\" : { \n            \"type\" : \"compare ==\", \n            \"subNodes\" : [ \n              { \n                \"type\" : \"reference\", \n                \"name\" : \"a\", \n                \"id\" : 1 \n              }, \n              { \n                \"type\" : \"value\", \n                \"value\" : 4 \n              } \n            ] \n          }, \n          \"outVariable\" : { \n            \"id\" : 4, \n            \"name\" : \"3\" \n          }, \n          \"canThrow\" : false, \n          \"expressionType\" : \"simple\" \n        }, \n        { \n          \"type\" : \"FilterNode\", \n          \"dependencies\" : [ \n            4 \n          ], \n          \"id\" : 5, \n          \"estimatedCost\" : 41, \n          \"estimatedNrItems\" : 10, \n          \"inVariable\" : { \n            \"id\" : 4, \n            \"name\" : \"3\" \n          } \n        }, \n        { \n          \"type\" : \"CalculationNode\", \n          \"dependencies\" : [ \n            5 \n          ], \n          \"id\" : 6, \n          \"estimatedCost\" : 51, \n          \"estimatedNrItems\" : 10, \n          \"expression\" : { \n            \"type\" : \"attribute access\", \n            \"name\" : \"name\", \n            \"subNodes\" : [ \n              { \n                \"type\" : \"reference\", \n                \"name\" : \"p\", \n                \"id\" : 0 \n              } \n            ] \n          }, \n          \"outVariable\" : { \n            \"id\" : 2, \n            \"name\" : \"name\" \n          }, \n          \"canThrow\" : false, \n          \"expressionType\" : \"attribute\" \n        }, \n        { \n          \"type\" : \"CalculationNode\", \n          \"dependencies\" : [ \n            6 \n          ], \n          \"id\" : 7, \n          \"estimatedCost\" : 61, \n          \"estimatedNrItems\" : 10, \n          \"expression\" : { \n            \"type\" : \"attribute access\", \n            \"name\" : \"id\", \n            \"subNodes\" : [ \n              { \n                \"type\" : \"reference\", \n                \"name\" : \"p\", \n                \"id\" : 0 \n              } \n            ] \n          }, \n          \"outVariable\" : { \n            \"id\" : 6, \n            \"name\" : \"5\" \n          }, \n          \"canThrow\" : false, \n          \"expressionType\" : \"attribute\" \n        }, \n        { \n          \"type\" : \"LimitNode\", \n          \"dependencies\" : [ \n            7 \n          ], \n          \"id\" : 9, \n          \"estimatedCost\" : 62, \n          \"estimatedNrItems\" : 1, \n          \"offset\" : 0, \n          \"limit\" : 1, \n          \"fullCount\" : false \n        }, \n        { \n          \"type\" : \"ReturnNode\", \n          \"dependencies\" : [ \n            9 \n          ], \n          \"id\" : 10, \n          \"estimatedCost\" : 63, \n          \"estimatedNrItems\" : 1, \n          \"inVariable\" : { \n            \"id\" : 2, \n            \"name\" : \"name\" \n          } \n        } \n      ], \n      \"rules\" : [ \n        \"use-index-for-sort\" \n      ], \n      \"collections\" : [ \n        { \n          \"name\" : \"products\", \n          \"type\" : \"read\" \n        } \n      ], \n      \"variables\" : [ \n        { \n          \"id\" : 6, \n          \"name\" : \"5\" \n        }, \n        { \n          \"id\" : 4, \n          \"name\" : \"3\" \n        }, \n        { \n          \"id\" : 2, \n          \"name\" : \"name\" \n        }, \n        { \n          \"id\" : 1, \n          \"name\" : \"a\" \n        }, \n        { \n          \"id\" : 0, \n          \"name\" : \"p\" \n        } \n      ], \n      \"estimatedCost\" : 63, \n      \"estimatedNrItems\" : 1 \n    } \n  ], \n  \"warnings\" : [ ], \n  \"stats\" : { \n    \"rulesExecuted\" : 2, \n    \"rulesSkipped\" : 34, \n    \"plansCreated\" : 1 \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Returning all plans

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/explain <<EOF\n{ \n  \"query\" : \"FOR p IN products FILTER p.id == 25 RETURN p\", \n  \"options\" : { \n    \"allPlans\" : true \n  } \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"plans\" : [ \n    { \n      \"nodes\" : [ \n        { \n          \"type\" : \"SingletonNode\", \n          \"dependencies\" : [ ], \n          \"id\" : 1, \n          \"estimatedCost\" : 1, \n          \"estimatedNrItems\" : 1 \n        }, \n        { \n          \"type\" : \"IndexNode\", \n          \"dependencies\" : [ \n            1 \n          ], \n          \"id\" : 6, \n          \"estimatedCost\" : 1.99, \n          \"estimatedNrItems\" : 1, \n          \"database\" : \"_system\", \n          \"collection\" : \"products\", \n          \"outVariable\" : { \n            \"id\" : 0, \n            \"name\" : \"p\" \n          }, \n          \"indexes\" : [ \n            { \n              \"type\" : \"hash\", \n              \"id\" : \"759671214\", \n              \"unique\" : false, \n              \"sparse\" : false, \n              \"selectivityEstimate\" : 1, \n              \"fields\" : [ \n                \"id\" \n              ] \n            } \n          ], \n          \"condition\" : { \n            \"type\" : \"n-ary or\", \n            \"subNodes\" : [ \n              { \n                \"type\" : \"n-ary and\", \n                \"subNodes\" : [ \n                  { \n                    \"type\" : \"compare ==\", \n                    \"subNodes\" : [ \n                      { \n                        \"type\" : \"attribute access\", \n                        \"name\" : \"id\", \n                        \"subNodes\" : [ \n                          { \n                            \"type\" : \"reference\", \n                            \"name\" : \"p\", \n                            \"id\" : 0 \n                          } \n                        ] \n                      }, \n                      { \n                        \"type\" : \"value\", \n                        \"value\" : 25 \n                      } \n                    ] \n                  } \n                ] \n              } \n            ] \n          }, \n          \"reverse\" : false \n        }, \n        { \n          \"type\" : \"ReturnNode\", \n          \"dependencies\" : [ \n            6 \n          ], \n          \"id\" : 5, \n          \"estimatedCost\" : 2.99, \n          \"estimatedNrItems\" : 1, \n          \"inVariable\" : { \n            \"id\" : 0, \n            \"name\" : \"p\" \n          } \n        } \n      ], \n      \"rules\" : [ \n        \"use-indexes\", \n        \"remove-filter-covered-by-index\" \n      ], \n      \"collections\" : [ \n        { \n          \"name\" : \"products\", \n          \"type\" : \"read\" \n        } \n      ], \n      \"variables\" : [ \n        { \n          \"id\" : 2, \n          \"name\" : \"1\" \n        }, \n        { \n          \"id\" : 0, \n          \"name\" : \"p\" \n        } \n      ], \n      \"estimatedCost\" : 2.99, \n      \"estimatedNrItems\" : 1 \n    } \n  ], \n  \"warnings\" : [ ], \n  \"stats\" : { \n    \"rulesExecuted\" : 25, \n    \"rulesSkipped\" : 0, \n    \"plansCreated\" : 1 \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: A query that produces a warning

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/explain <<EOF\n{ \n  \"query\" : \"FOR i IN 1..10 RETURN 1 / 0\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"plan\" : { \n    \"nodes\" : [ \n      { \n        \"type\" : \"SingletonNode\", \n        \"dependencies\" : [ ], \n        \"id\" : 1, \n        \"estimatedCost\" : 1, \n        \"estimatedNrItems\" : 1 \n      }, \n      { \n        \"type\" : \"CalculationNode\", \n        \"dependencies\" : [ \n          1 \n        ], \n        \"id\" : 2, \n        \"estimatedCost\" : 2, \n        \"estimatedNrItems\" : 1, \n        \"expression\" : { \n          \"type\" : \"range\", \n          \"subNodes\" : [ \n            { \n              \"type\" : \"value\", \n              \"value\" : 1 \n            }, \n            { \n              \"type\" : \"value\", \n              \"value\" : 10 \n            } \n          ] \n        }, \n        \"outVariable\" : { \n          \"id\" : 2, \n          \"name\" : \"1\" \n        }, \n        \"canThrow\" : false, \n        \"expressionType\" : \"simple\" \n      }, \n      { \n        \"type\" : \"CalculationNode\", \n        \"dependencies\" : [ \n          2 \n        ], \n        \"id\" : 4, \n        \"estimatedCost\" : 3, \n        \"estimatedNrItems\" : 1, \n        \"expression\" : { \n          \"type\" : \"value\", \n          \"value\" : null \n        }, \n        \"outVariable\" : { \n          \"id\" : 4, \n          \"name\" : \"3\" \n        }, \n        \"canThrow\" : false, \n        \"expressionType\" : \"json\" \n      }, \n      { \n        \"type\" : \"EnumerateListNode\", \n        \"dependencies\" : [ \n          4 \n        ], \n        \"id\" : 3, \n        \"estimatedCost\" : 13, \n        \"estimatedNrItems\" : 10, \n        \"inVariable\" : { \n          \"id\" : 2, \n          \"name\" : \"1\" \n        }, \n        \"outVariable\" : { \n          \"id\" : 0, \n          \"name\" : \"i\" \n        } \n      }, \n      { \n        \"type\" : \"ReturnNode\", \n        \"dependencies\" : [ \n          3 \n        ], \n        \"id\" : 5, \n        \"estimatedCost\" : 23, \n        \"estimatedNrItems\" : 10, \n        \"inVariable\" : { \n          \"id\" : 4, \n          \"name\" : \"3\" \n        } \n      } \n    ], \n    \"rules\" : [ \n      \"move-calculations-up\", \n      \"move-calculations-up-2\" \n    ], \n    \"collections\" : [ ], \n    \"variables\" : [ \n      { \n        \"id\" : 4, \n        \"name\" : \"3\" \n      }, \n      { \n        \"id\" : 2, \n        \"name\" : \"1\" \n      }, \n      { \n        \"id\" : 0, \n        \"name\" : \"i\" \n      } \n    ], \n    \"estimatedCost\" : 23, \n    \"estimatedNrItems\" : 10 \n  }, \n  \"warnings\" : [ \n    { \n      \"code\" : 1562, \n      \"message\" : \"division by zero\" \n    } \n  ], \n  \"stats\" : { \n    \"rulesExecuted\" : 25, \n    \"rulesSkipped\" : 0, \n    \"plansCreated\" : 1 \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Invalid query (missing bind parameter)

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/explain <<EOF\n{ \n  \"query\" : \"FOR p IN products FILTER p.id == @id LIMIT 2 RETURN p.n\" \n}\nEOF\n\nHTTP/1.1 400 Bad Request\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"error\" : true, \n  \"code\" : 400, \n  \"errorNum\" : 1551, \n  \"errorMessage\" : \"no value specified for declared bind parameter 'id' (while parsing)\" \n}\n

\n
Example: The data returned in the *plan* attribute of the result contains one\nelement per AQL top-level statement (i.e. *FOR*, *RETURN*,\n*FILTER* etc.). If the query optimizer removed some unnecessary statements,\nthe result might also contain less elements than there were top-level\nstatements in the AQL query.\nThe following example shows a query with a non-sensible filter condition that\nthe optimizer has removed so that there are less top-level statements.

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/explain <<EOF\n{ \"query\" : \"FOR i IN [ 1, 2, 3 ] FILTER 1 == 2 RETURN i\" }\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"plan\" : { \n    \"nodes\" : [ \n      { \n        \"type\" : \"SingletonNode\", \n        \"dependencies\" : [ ], \n        \"id\" : 1, \n        \"estimatedCost\" : 1, \n        \"estimatedNrItems\" : 1 \n      }, \n      { \n        \"type\" : \"CalculationNode\", \n        \"dependencies\" : [ \n          1 \n        ], \n        \"id\" : 2, \n        \"estimatedCost\" : 2, \n        \"estimatedNrItems\" : 1, \n        \"expression\" : { \n          \"type\" : \"array\", \n          \"subNodes\" : [ \n            { \n              \"type\" : \"value\", \n              \"value\" : 1 \n            }, \n            { \n              \"type\" : \"value\", \n              \"value\" : 2 \n            }, \n            { \n              \"type\" : \"value\", \n              \"value\" : 3 \n            } \n          ] \n        }, \n        \"outVariable\" : { \n          \"id\" : 2, \n          \"name\" : \"1\" \n        }, \n        \"canThrow\" : false, \n        \"expressionType\" : \"json\" \n      }, \n      { \n        \"type\" : \"NoResultsNode\", \n        \"dependencies\" : [ \n          2 \n        ], \n        \"id\" : 7, \n        \"estimatedCost\" : 0.5, \n        \"estimatedNrItems\" : 0 \n      }, \n      { \n        \"type\" : \"EnumerateListNode\", \n        \"dependencies\" : [ \n          7 \n        ], \n        \"id\" : 3, \n        \"estimatedCost\" : 0.5, \n        \"estimatedNrItems\" : 0, \n        \"inVariable\" : { \n          \"id\" : 2, \n          \"name\" : \"1\" \n        }, \n        \"outVariable\" : { \n          \"id\" : 0, \n          \"name\" : \"i\" \n        } \n      }, \n      { \n        \"type\" : \"ReturnNode\", \n        \"dependencies\" : [ \n          3 \n        ], \n        \"id\" : 6, \n        \"estimatedCost\" : 0.5, \n        \"estimatedNrItems\" : 0, \n        \"inVariable\" : { \n          \"id\" : 0, \n          \"name\" : \"i\" \n        } \n      } \n    ], \n    \"rules\" : [ \n      \"move-calculations-up\", \n      \"move-filters-up\", \n      \"remove-unnecessary-filters\", \n      \"remove-unnecessary-calculations\" \n    ], \n    \"collections\" : [ ], \n    \"variables\" : [ \n      { \n        \"id\" : 4, \n        \"name\" : \"3\" \n      }, \n      { \n        \"id\" : 2, \n        \"name\" : \"1\" \n      }, \n      { \n        \"id\" : 0, \n        \"name\" : \"i\" \n      } \n    ], \n    \"estimatedCost\" : 0.5, \n    \"estimatedNrItems\" : 0 \n  }, \n  \"warnings\" : [ ], \n  \"stats\" : { \n    \"rulesExecuted\" : 25, \n    \"rulesSkipped\" : 0, \n    \"plansCreated\" : 1 \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", + "description": "**A json post document with these Properties is required:**\n\n - **query**: the query which you want explained; If the query references any bind variables,\n these must also be passed in the attribute *bindVars*. Additional\n options for the query can be passed in the *options* attribute.\n - **options**:\n - **optimizer.rules**: an array of to-be-included or to-be-excluded optimizer rules\n can be put into this attribute, telling the optimizer to include or exclude\n specific rules. To disable a rule, prefix its name with a `-`, to enable a rule, prefix it\n with a `+`. There is also a pseudo-rule `all`, which will match all optimizer rules. of type string\n - **maxNumberOfPlans**: an optional maximum number of plans that the optimizer is \n allowed to generate. Setting this attribute to a low value allows to put a\n cap on the amount of work the optimizer does.\n - **allPlans**: if set to *true*, all possible execution plans will be returned.\n The default is *false*, meaning only the optimal plan will be returned.\n - **bindVars**: key/value pairs representing the bind values of type object\n\n\n\n\n\nTo explain how an AQL query would be executed on the server, the query string\ncan be sent to the server via an HTTP POST request. The server will then validate\nthe query and create an execution plan for it. The execution plan will be\nreturned, but the query will not be executed.\n\nThe execution plan that is returned by the server can be used to estimate the\nprobable performance of the query. Though the actual performance will depend\non many different factors, the execution plan normally can provide some rough\nestimates on the amount of work the server needs to do in order to actually run \nthe query.\n\nBy default, the explain operation will return the optimal plan as chosen by\nthe query optimizer The optimal plan is the plan with the lowest total estimated\ncost. The plan will be returned in the attribute *plan* of the response object.\nIf the option *allPlans* is specified in the request, the result will contain \nall plans created by the optimizer. The plans will then be returned in the \nattribute *plans*.\n\nThe result will also contain an attribute *warnings*, which is an array of \nwarnings that occurred during optimization or execution plan creation. Additionally,\na *stats* attribute is contained in the result with some optimizer statistics.\n\nEach plan in the result is a JSON object with the following attributes:\n- *nodes*: the array of execution nodes of the plan. The array of available node types\n can be found [here](../Aql/Optimizer.md)\n\n- *estimatedCost*: the total estimated cost for the plan. If there are multiple\n plans, the optimizer will choose the plan with the lowest total cost.\n\n- *collections*: an array of collections used in the query\n\n- *rules*: an array of rules the optimizer applied. An overview of the\n available rules can be found [here](../Aql/Optimizer.md)\n\n- *variables*: array of variables used in the query (note: this may contain\n internal variables created by the optimizer)\n\n\n
Example: Valid query

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/explain <<EOF\n{ \n  \"query\" : \"FOR p IN products RETURN p\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"plan\" : { \n    \"nodes\" : [ \n      { \n        \"type\" : \"SingletonNode\", \n        \"dependencies\" : [ ], \n        \"id\" : 1, \n        \"estimatedCost\" : 1, \n        \"estimatedNrItems\" : 1 \n      }, \n      { \n        \"type\" : \"EnumerateCollectionNode\", \n        \"dependencies\" : [ \n          1 \n        ], \n        \"id\" : 2, \n        \"estimatedCost\" : 11, \n        \"estimatedNrItems\" : 10, \n        \"database\" : \"_system\", \n        \"collection\" : \"products\", \n        \"outVariable\" : { \n          \"id\" : 0, \n          \"name\" : \"p\" \n        }, \n        \"random\" : false \n      }, \n      { \n        \"type\" : \"ReturnNode\", \n        \"dependencies\" : [ \n          2 \n        ], \n        \"id\" : 3, \n        \"estimatedCost\" : 21, \n        \"estimatedNrItems\" : 10, \n        \"inVariable\" : { \n          \"id\" : 0, \n          \"name\" : \"p\" \n        } \n      } \n    ], \n    \"rules\" : [ ], \n    \"collections\" : [ \n      { \n        \"name\" : \"products\", \n        \"type\" : \"read\" \n      } \n    ], \n    \"variables\" : [ \n      { \n        \"id\" : 0, \n        \"name\" : \"p\" \n      } \n    ], \n    \"estimatedCost\" : 21, \n    \"estimatedNrItems\" : 10 \n  }, \n  \"warnings\" : [ ], \n  \"stats\" : { \n    \"rulesExecuted\" : 25, \n    \"rulesSkipped\" : 0, \n    \"plansCreated\" : 1 \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: A plan with some optimizer rules applied

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/explain <<EOF\n{ \n  \"query\" : \"FOR p IN products LET a = p.id FILTER a == 4 LET name = p.name SORT p.id LIMIT 1 RETURN name\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"plan\" : { \n    \"nodes\" : [ \n      { \n        \"type\" : \"SingletonNode\", \n        \"dependencies\" : [ ], \n        \"id\" : 1, \n        \"estimatedCost\" : 1, \n        \"estimatedNrItems\" : 1 \n      }, \n      { \n        \"type\" : \"IndexNode\", \n        \"dependencies\" : [ \n          1 \n        ], \n        \"id\" : 11, \n        \"estimatedCost\" : 11, \n        \"estimatedNrItems\" : 10, \n        \"database\" : \"_system\", \n        \"collection\" : \"products\", \n        \"outVariable\" : { \n          \"id\" : 0, \n          \"name\" : \"p\" \n        }, \n        \"indexes\" : [ \n          { \n            \"type\" : \"skiplist\", \n            \"id\" : \"757380657\", \n            \"unique\" : false, \n            \"sparse\" : false, \n            \"fields\" : [ \n              \"id\" \n            ] \n          } \n        ], \n        \"condition\" : { \n        }, \n        \"reverse\" : false \n      }, \n      { \n        \"type\" : \"CalculationNode\", \n        \"dependencies\" : [ \n          11 \n        ], \n        \"id\" : 3, \n        \"estimatedCost\" : 21, \n        \"estimatedNrItems\" : 10, \n        \"expression\" : { \n          \"type\" : \"attribute access\", \n          \"name\" : \"id\", \n          \"subNodes\" : [ \n            { \n              \"type\" : \"reference\", \n              \"name\" : \"p\", \n              \"id\" : 0 \n            } \n          ] \n        }, \n        \"outVariable\" : { \n          \"id\" : 1, \n          \"name\" : \"a\" \n        }, \n        \"canThrow\" : false, \n        \"expressionType\" : \"attribute\" \n      }, \n      { \n        \"type\" : \"CalculationNode\", \n        \"dependencies\" : [ \n          3 \n        ], \n        \"id\" : 4, \n        \"estimatedCost\" : 31, \n        \"estimatedNrItems\" : 10, \n        \"expression\" : { \n          \"type\" : \"compare ==\", \n          \"subNodes\" : [ \n            { \n              \"type\" : \"reference\", \n              \"name\" : \"a\", \n              \"id\" : 1 \n            }, \n            { \n              \"type\" : \"value\", \n              \"value\" : 4 \n            } \n          ] \n        }, \n        \"outVariable\" : { \n          \"id\" : 4, \n          \"name\" : \"3\" \n        }, \n        \"canThrow\" : false, \n        \"expressionType\" : \"simple\" \n      }, \n      { \n        \"type\" : \"FilterNode\", \n        \"dependencies\" : [ \n          4 \n        ], \n        \"id\" : 5, \n        \"estimatedCost\" : 41, \n        \"estimatedNrItems\" : 10, \n        \"inVariable\" : { \n          \"id\" : 4, \n          \"name\" : \"3\" \n        } \n      }, \n      { \n        \"type\" : \"LimitNode\", \n        \"dependencies\" : [ \n          5 \n        ], \n        \"id\" : 9, \n        \"estimatedCost\" : 42, \n        \"estimatedNrItems\" : 1, \n        \"offset\" : 0, \n        \"limit\" : 1, \n        \"fullCount\" : false \n      }, \n      { \n        \"type\" : \"CalculationNode\", \n        \"dependencies\" : [ \n          9 \n        ], \n        \"id\" : 6, \n        \"estimatedCost\" : 43, \n        \"estimatedNrItems\" : 1, \n        \"expression\" : { \n          \"type\" : \"attribute access\", \n          \"name\" : \"name\", \n          \"subNodes\" : [ \n            { \n              \"type\" : \"reference\", \n              \"name\" : \"p\", \n              \"id\" : 0 \n            } \n          ] \n        }, \n        \"outVariable\" : { \n          \"id\" : 2, \n          \"name\" : \"name\" \n        }, \n        \"canThrow\" : false, \n        \"expressionType\" : \"attribute\" \n      }, \n      { \n        \"type\" : \"ReturnNode\", \n        \"dependencies\" : [ \n          6 \n        ], \n        \"id\" : 10, \n        \"estimatedCost\" : 44, \n        \"estimatedNrItems\" : 1, \n        \"inVariable\" : { \n          \"id\" : 2, \n          \"name\" : \"name\" \n        } \n      } \n    ], \n    \"rules\" : [ \n      \"move-calculations-up\", \n      \"remove-redundant-calculations\", \n      \"remove-unnecessary-calculations\", \n      \"move-calculations-up-2\", \n      \"use-index-for-sort\", \n      \"move-calculations-down\" \n    ], \n    \"collections\" : [ \n      { \n        \"name\" : \"products\", \n        \"type\" : \"read\" \n      } \n    ], \n    \"variables\" : [ \n      { \n        \"id\" : 6, \n        \"name\" : \"5\" \n      }, \n      { \n        \"id\" : 4, \n        \"name\" : \"3\" \n      }, \n      { \n        \"id\" : 2, \n        \"name\" : \"name\" \n      }, \n      { \n        \"id\" : 1, \n        \"name\" : \"a\" \n      }, \n      { \n        \"id\" : 0, \n        \"name\" : \"p\" \n      } \n    ], \n    \"estimatedCost\" : 44, \n    \"estimatedNrItems\" : 1 \n  }, \n  \"warnings\" : [ ], \n  \"stats\" : { \n    \"rulesExecuted\" : 36, \n    \"rulesSkipped\" : 0, \n    \"plansCreated\" : 1 \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Using some options

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/explain <<EOF\n{ \n  \"query\" : \"FOR p IN products LET a = p.id FILTER a == 4 LET name = p.name SORT p.id LIMIT 1 RETURN name\", \n  \"options\" : { \n    \"maxNumberOfPlans\" : 2, \n    \"allPlans\" : true, \n    \"optimizer\" : { \n      \"rules\" : [ \n        \"-all\", \n        \"+use-index-for-sort\", \n        \"+use-index-range\" \n      ] \n    } \n  } \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"plans\" : [ \n    { \n      \"nodes\" : [ \n        { \n          \"type\" : \"SingletonNode\", \n          \"dependencies\" : [ ], \n          \"id\" : 1, \n          \"estimatedCost\" : 1, \n          \"estimatedNrItems\" : 1 \n        }, \n        { \n          \"type\" : \"IndexNode\", \n          \"dependencies\" : [ \n            1 \n          ], \n          \"id\" : 11, \n          \"estimatedCost\" : 11, \n          \"estimatedNrItems\" : 10, \n          \"database\" : \"_system\", \n          \"collection\" : \"products\", \n          \"outVariable\" : { \n            \"id\" : 0, \n            \"name\" : \"p\" \n          }, \n          \"indexes\" : [ \n            { \n              \"type\" : \"skiplist\", \n              \"id\" : \"759936561\", \n              \"unique\" : false, \n              \"sparse\" : false, \n              \"fields\" : [ \n                \"id\" \n              ] \n            } \n          ], \n          \"condition\" : { \n          }, \n          \"reverse\" : false \n        }, \n        { \n          \"type\" : \"CalculationNode\", \n          \"dependencies\" : [ \n            11 \n          ], \n          \"id\" : 3, \n          \"estimatedCost\" : 21, \n          \"estimatedNrItems\" : 10, \n          \"expression\" : { \n            \"type\" : \"attribute access\", \n            \"name\" : \"id\", \n            \"subNodes\" : [ \n              { \n                \"type\" : \"reference\", \n                \"name\" : \"p\", \n                \"id\" : 0 \n              } \n            ] \n          }, \n          \"outVariable\" : { \n            \"id\" : 1, \n            \"name\" : \"a\" \n          }, \n          \"canThrow\" : false, \n          \"expressionType\" : \"attribute\" \n        }, \n        { \n          \"type\" : \"CalculationNode\", \n          \"dependencies\" : [ \n            3 \n          ], \n          \"id\" : 4, \n          \"estimatedCost\" : 31, \n          \"estimatedNrItems\" : 10, \n          \"expression\" : { \n            \"type\" : \"compare ==\", \n            \"subNodes\" : [ \n              { \n                \"type\" : \"reference\", \n                \"name\" : \"a\", \n                \"id\" : 1 \n              }, \n              { \n                \"type\" : \"value\", \n                \"value\" : 4 \n              } \n            ] \n          }, \n          \"outVariable\" : { \n            \"id\" : 4, \n            \"name\" : \"3\" \n          }, \n          \"canThrow\" : false, \n          \"expressionType\" : \"simple\" \n        }, \n        { \n          \"type\" : \"FilterNode\", \n          \"dependencies\" : [ \n            4 \n          ], \n          \"id\" : 5, \n          \"estimatedCost\" : 41, \n          \"estimatedNrItems\" : 10, \n          \"inVariable\" : { \n            \"id\" : 4, \n            \"name\" : \"3\" \n          } \n        }, \n        { \n          \"type\" : \"CalculationNode\", \n          \"dependencies\" : [ \n            5 \n          ], \n          \"id\" : 6, \n          \"estimatedCost\" : 51, \n          \"estimatedNrItems\" : 10, \n          \"expression\" : { \n            \"type\" : \"attribute access\", \n            \"name\" : \"name\", \n            \"subNodes\" : [ \n              { \n                \"type\" : \"reference\", \n                \"name\" : \"p\", \n                \"id\" : 0 \n              } \n            ] \n          }, \n          \"outVariable\" : { \n            \"id\" : 2, \n            \"name\" : \"name\" \n          }, \n          \"canThrow\" : false, \n          \"expressionType\" : \"attribute\" \n        }, \n        { \n          \"type\" : \"CalculationNode\", \n          \"dependencies\" : [ \n            6 \n          ], \n          \"id\" : 7, \n          \"estimatedCost\" : 61, \n          \"estimatedNrItems\" : 10, \n          \"expression\" : { \n            \"type\" : \"attribute access\", \n            \"name\" : \"id\", \n            \"subNodes\" : [ \n              { \n                \"type\" : \"reference\", \n                \"name\" : \"p\", \n                \"id\" : 0 \n              } \n            ] \n          }, \n          \"outVariable\" : { \n            \"id\" : 6, \n            \"name\" : \"5\" \n          }, \n          \"canThrow\" : false, \n          \"expressionType\" : \"attribute\" \n        }, \n        { \n          \"type\" : \"LimitNode\", \n          \"dependencies\" : [ \n            7 \n          ], \n          \"id\" : 9, \n          \"estimatedCost\" : 62, \n          \"estimatedNrItems\" : 1, \n          \"offset\" : 0, \n          \"limit\" : 1, \n          \"fullCount\" : false \n        }, \n        { \n          \"type\" : \"ReturnNode\", \n          \"dependencies\" : [ \n            9 \n          ], \n          \"id\" : 10, \n          \"estimatedCost\" : 63, \n          \"estimatedNrItems\" : 1, \n          \"inVariable\" : { \n            \"id\" : 2, \n            \"name\" : \"name\" \n          } \n        } \n      ], \n      \"rules\" : [ \n        \"use-index-for-sort\" \n      ], \n      \"collections\" : [ \n        { \n          \"name\" : \"products\", \n          \"type\" : \"read\" \n        } \n      ], \n      \"variables\" : [ \n        { \n          \"id\" : 6, \n          \"name\" : \"5\" \n        }, \n        { \n          \"id\" : 4, \n          \"name\" : \"3\" \n        }, \n        { \n          \"id\" : 2, \n          \"name\" : \"name\" \n        }, \n        { \n          \"id\" : 1, \n          \"name\" : \"a\" \n        }, \n        { \n          \"id\" : 0, \n          \"name\" : \"p\" \n        } \n      ], \n      \"estimatedCost\" : 63, \n      \"estimatedNrItems\" : 1 \n    } \n  ], \n  \"warnings\" : [ ], \n  \"stats\" : { \n    \"rulesExecuted\" : 2, \n    \"rulesSkipped\" : 34, \n    \"plansCreated\" : 1 \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Returning all plans

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/explain <<EOF\n{ \n  \"query\" : \"FOR p IN products FILTER p.id == 25 RETURN p\", \n  \"options\" : { \n    \"allPlans\" : true \n  } \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"plans\" : [ \n    { \n      \"nodes\" : [ \n        { \n          \"type\" : \"SingletonNode\", \n          \"dependencies\" : [ ], \n          \"id\" : 1, \n          \"estimatedCost\" : 1, \n          \"estimatedNrItems\" : 1 \n        }, \n        { \n          \"type\" : \"IndexNode\", \n          \"dependencies\" : [ \n            1 \n          ], \n          \"id\" : 6, \n          \"estimatedCost\" : 1.99, \n          \"estimatedNrItems\" : 1, \n          \"database\" : \"_system\", \n          \"collection\" : \"products\", \n          \"outVariable\" : { \n            \"id\" : 0, \n            \"name\" : \"p\" \n          }, \n          \"indexes\" : [ \n            { \n              \"type\" : \"hash\", \n              \"id\" : \"756397617\", \n              \"unique\" : false, \n              \"sparse\" : false, \n              \"selectivityEstimate\" : 1, \n              \"fields\" : [ \n                \"id\" \n              ] \n            } \n          ], \n          \"condition\" : { \n            \"type\" : \"n-ary or\", \n            \"subNodes\" : [ \n              { \n                \"type\" : \"n-ary and\", \n                \"subNodes\" : [ \n                  { \n                    \"type\" : \"compare ==\", \n                    \"subNodes\" : [ \n                      { \n                        \"type\" : \"attribute access\", \n                        \"name\" : \"id\", \n                        \"subNodes\" : [ \n                          { \n                            \"type\" : \"reference\", \n                            \"name\" : \"p\", \n                            \"id\" : 0 \n                          } \n                        ] \n                      }, \n                      { \n                        \"type\" : \"value\", \n                        \"value\" : 25 \n                      } \n                    ] \n                  } \n                ] \n              } \n            ] \n          }, \n          \"reverse\" : false \n        }, \n        { \n          \"type\" : \"ReturnNode\", \n          \"dependencies\" : [ \n            6 \n          ], \n          \"id\" : 5, \n          \"estimatedCost\" : 2.99, \n          \"estimatedNrItems\" : 1, \n          \"inVariable\" : { \n            \"id\" : 0, \n            \"name\" : \"p\" \n          } \n        } \n      ], \n      \"rules\" : [ \n        \"use-indexes\", \n        \"remove-filter-covered-by-index\" \n      ], \n      \"collections\" : [ \n        { \n          \"name\" : \"products\", \n          \"type\" : \"read\" \n        } \n      ], \n      \"variables\" : [ \n        { \n          \"id\" : 2, \n          \"name\" : \"1\" \n        }, \n        { \n          \"id\" : 0, \n          \"name\" : \"p\" \n        } \n      ], \n      \"estimatedCost\" : 2.99, \n      \"estimatedNrItems\" : 1 \n    } \n  ], \n  \"warnings\" : [ ], \n  \"stats\" : { \n    \"rulesExecuted\" : 25, \n    \"rulesSkipped\" : 0, \n    \"plansCreated\" : 1 \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: A query that produces a warning

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/explain <<EOF\n{ \n  \"query\" : \"FOR i IN 1..10 RETURN 1 / 0\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"plan\" : { \n    \"nodes\" : [ \n      { \n        \"type\" : \"SingletonNode\", \n        \"dependencies\" : [ ], \n        \"id\" : 1, \n        \"estimatedCost\" : 1, \n        \"estimatedNrItems\" : 1 \n      }, \n      { \n        \"type\" : \"CalculationNode\", \n        \"dependencies\" : [ \n          1 \n        ], \n        \"id\" : 2, \n        \"estimatedCost\" : 2, \n        \"estimatedNrItems\" : 1, \n        \"expression\" : { \n          \"type\" : \"range\", \n          \"subNodes\" : [ \n            { \n              \"type\" : \"value\", \n              \"value\" : 1 \n            }, \n            { \n              \"type\" : \"value\", \n              \"value\" : 10 \n            } \n          ] \n        }, \n        \"outVariable\" : { \n          \"id\" : 2, \n          \"name\" : \"1\" \n        }, \n        \"canThrow\" : false, \n        \"expressionType\" : \"simple\" \n      }, \n      { \n        \"type\" : \"CalculationNode\", \n        \"dependencies\" : [ \n          2 \n        ], \n        \"id\" : 4, \n        \"estimatedCost\" : 3, \n        \"estimatedNrItems\" : 1, \n        \"expression\" : { \n          \"type\" : \"value\", \n          \"value\" : null \n        }, \n        \"outVariable\" : { \n          \"id\" : 4, \n          \"name\" : \"3\" \n        }, \n        \"canThrow\" : false, \n        \"expressionType\" : \"json\" \n      }, \n      { \n        \"type\" : \"EnumerateListNode\", \n        \"dependencies\" : [ \n          4 \n        ], \n        \"id\" : 3, \n        \"estimatedCost\" : 13, \n        \"estimatedNrItems\" : 10, \n        \"inVariable\" : { \n          \"id\" : 2, \n          \"name\" : \"1\" \n        }, \n        \"outVariable\" : { \n          \"id\" : 0, \n          \"name\" : \"i\" \n        } \n      }, \n      { \n        \"type\" : \"ReturnNode\", \n        \"dependencies\" : [ \n          3 \n        ], \n        \"id\" : 5, \n        \"estimatedCost\" : 23, \n        \"estimatedNrItems\" : 10, \n        \"inVariable\" : { \n          \"id\" : 4, \n          \"name\" : \"3\" \n        } \n      } \n    ], \n    \"rules\" : [ \n      \"move-calculations-up\", \n      \"move-calculations-up-2\" \n    ], \n    \"collections\" : [ ], \n    \"variables\" : [ \n      { \n        \"id\" : 4, \n        \"name\" : \"3\" \n      }, \n      { \n        \"id\" : 2, \n        \"name\" : \"1\" \n      }, \n      { \n        \"id\" : 0, \n        \"name\" : \"i\" \n      } \n    ], \n    \"estimatedCost\" : 23, \n    \"estimatedNrItems\" : 10 \n  }, \n  \"warnings\" : [ \n    { \n      \"code\" : 1562, \n      \"message\" : \"division by zero\" \n    } \n  ], \n  \"stats\" : { \n    \"rulesExecuted\" : 25, \n    \"rulesSkipped\" : 0, \n    \"plansCreated\" : 1 \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Invalid query (missing bind parameter)

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/explain <<EOF\n{ \n  \"query\" : \"FOR p IN products FILTER p.id == @id LIMIT 2 RETURN p.n\" \n}\nEOF\n\nHTTP/1.1 400 Bad Request\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"error\" : true, \n  \"code\" : 400, \n  \"errorNum\" : 1551, \n  \"errorMessage\" : \"no value specified for declared bind parameter 'id' (while parsing)\" \n}\n

\n
Example: The data returned in the *plan* attribute of the result contains one\nelement per AQL top-level statement (i.e. *FOR*, *RETURN*,\n*FILTER* etc.). If the query optimizer removed some unnecessary statements,\nthe result might also contain less elements than there were top-level\nstatements in the AQL query.\nThe following example shows a query with a non-sensible filter condition that\nthe optimizer has removed so that there are less top-level statements.

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/explain <<EOF\n{ \"query\" : \"FOR i IN [ 1, 2, 3 ] FILTER 1 == 2 RETURN i\" }\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"plan\" : { \n    \"nodes\" : [ \n      { \n        \"type\" : \"SingletonNode\", \n        \"dependencies\" : [ ], \n        \"id\" : 1, \n        \"estimatedCost\" : 1, \n        \"estimatedNrItems\" : 1 \n      }, \n      { \n        \"type\" : \"CalculationNode\", \n        \"dependencies\" : [ \n          1 \n        ], \n        \"id\" : 2, \n        \"estimatedCost\" : 2, \n        \"estimatedNrItems\" : 1, \n        \"expression\" : { \n          \"type\" : \"array\", \n          \"subNodes\" : [ \n            { \n              \"type\" : \"value\", \n              \"value\" : 1 \n            }, \n            { \n              \"type\" : \"value\", \n              \"value\" : 2 \n            }, \n            { \n              \"type\" : \"value\", \n              \"value\" : 3 \n            } \n          ] \n        }, \n        \"outVariable\" : { \n          \"id\" : 2, \n          \"name\" : \"1\" \n        }, \n        \"canThrow\" : false, \n        \"expressionType\" : \"json\" \n      }, \n      { \n        \"type\" : \"NoResultsNode\", \n        \"dependencies\" : [ \n          2 \n        ], \n        \"id\" : 7, \n        \"estimatedCost\" : 0.5, \n        \"estimatedNrItems\" : 0 \n      }, \n      { \n        \"type\" : \"EnumerateListNode\", \n        \"dependencies\" : [ \n          7 \n        ], \n        \"id\" : 3, \n        \"estimatedCost\" : 0.5, \n        \"estimatedNrItems\" : 0, \n        \"inVariable\" : { \n          \"id\" : 2, \n          \"name\" : \"1\" \n        }, \n        \"outVariable\" : { \n          \"id\" : 0, \n          \"name\" : \"i\" \n        } \n      }, \n      { \n        \"type\" : \"ReturnNode\", \n        \"dependencies\" : [ \n          3 \n        ], \n        \"id\" : 6, \n        \"estimatedCost\" : 0.5, \n        \"estimatedNrItems\" : 0, \n        \"inVariable\" : { \n          \"id\" : 0, \n          \"name\" : \"i\" \n        } \n      } \n    ], \n    \"rules\" : [ \n      \"move-calculations-up\", \n      \"move-filters-up\", \n      \"remove-unnecessary-filters\", \n      \"remove-unnecessary-calculations\" \n    ], \n    \"collections\" : [ ], \n    \"variables\" : [ \n      { \n        \"id\" : 4, \n        \"name\" : \"3\" \n      }, \n      { \n        \"id\" : 2, \n        \"name\" : \"1\" \n      }, \n      { \n        \"id\" : 0, \n        \"name\" : \"i\" \n      } \n    ], \n    \"estimatedCost\" : 0.5, \n    \"estimatedNrItems\" : 0 \n  }, \n  \"warnings\" : [ ], \n  \"stats\" : { \n    \"rulesExecuted\" : 25, \n    \"rulesSkipped\" : 0, \n    \"plansCreated\" : 1 \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", "parameters": [ { "in": "body", @@ -4538,7 +4538,7 @@ }, "/_api/gharial": { "get": { - "description": "\n\nLists all graph names stored in this database.\n\n\n
Example:

shell> curl --dump - http://localhost:8529/_api/gharial\n\nHTTP/1.1 200 OK\ncontent-type: application/json\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"graphs\" : [ \n    { \n      \"_id\" : \"_graphs/social\", \n      \"_key\" : \"social\", \n      \"_rev\" : \"581216686\", \n      \"edgeDefinitions\" : [ \n        { \n          \"collection\" : \"relation\", \n          \"from\" : [ \n            \"female\", \n            \"male\" \n          ], \n          \"to\" : [ \n            \"female\", \n            \"male\" \n          ] \n        } \n      ], \n      \"orphanCollections\" : [ ] \n    }, \n    { \n      \"_id\" : \"_graphs/routeplanner\", \n      \"_key\" : \"routeplanner\", \n      \"_rev\" : \"584296878\", \n      \"orphanCollections\" : [ ], \n      \"edgeDefinitions\" : [ \n        { \n          \"collection\" : \"germanHighway\", \n          \"from\" : [ \n            \"germanCity\" \n          ], \n          \"to\" : [ \n            \"germanCity\" \n          ] \n        }, \n        { \n          \"collection\" : \"frenchHighway\", \n          \"from\" : [ \n            \"frenchCity\" \n          ], \n          \"to\" : [ \n            \"frenchCity\" \n          ] \n        }, \n        { \n          \"collection\" : \"internationalHighway\", \n          \"from\" : [ \n            \"frenchCity\", \n            \"germanCity\" \n          ], \n          \"to\" : [ \n            \"frenchCity\", \n            \"germanCity\" \n          ] \n        } \n      ] \n    } \n  ] \n}\n

\n\n", + "description": "\n\nLists all graph names stored in this database.\n\n\n
Example:

shell> curl --dump - http://localhost:8529/_api/gharial\n\nHTTP/1.1 200 OK\ncontent-type: application/json\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"graphs\" : [ \n    { \n      \"_id\" : \"_graphs/social\", \n      \"_key\" : \"social\", \n      \"_rev\" : \"578139697\", \n      \"edgeDefinitions\" : [ \n        { \n          \"collection\" : \"relation\", \n          \"from\" : [ \n            \"female\", \n            \"male\" \n          ], \n          \"to\" : [ \n            \"female\", \n            \"male\" \n          ] \n        } \n      ], \n      \"orphanCollections\" : [ ] \n    }, \n    { \n      \"_id\" : \"_graphs/routeplanner\", \n      \"_key\" : \"routeplanner\", \n      \"_rev\" : \"581219889\", \n      \"orphanCollections\" : [ ], \n      \"edgeDefinitions\" : [ \n        { \n          \"collection\" : \"germanHighway\", \n          \"from\" : [ \n            \"germanCity\" \n          ], \n          \"to\" : [ \n            \"germanCity\" \n          ] \n        }, \n        { \n          \"collection\" : \"frenchHighway\", \n          \"from\" : [ \n            \"frenchCity\" \n          ], \n          \"to\" : [ \n            \"frenchCity\" \n          ] \n        }, \n        { \n          \"collection\" : \"internationalHighway\", \n          \"from\" : [ \n            \"frenchCity\", \n            \"germanCity\" \n          ], \n          \"to\" : [ \n            \"frenchCity\", \n            \"germanCity\" \n          ] \n        } \n      ] \n    } \n  ] \n}\n

\n\n", "parameters": [], "responses": { "200": { @@ -4553,7 +4553,7 @@ "x-filename": "Graph - js/apps/system/_api/gharial/APP/gharial.js" }, "post": { - "description": "\n\nThe creation of a graph requires the name of the graph and a definition of its edges.\n[See also edge definitions](../GeneralGraphs/Management.md#edge-definitions).\n\n**A json post document with these Properties is required:**\n\n - **orphanCollections**: An array of additional vertex collections.\n - **edgeDefinitions**: An array of definitions for the edge\n - **name**: Name of the graph.\n\n\n\n
Example:

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/gharial <<EOF\n{ \n  \"name\" : \"myGraph\", \n  \"edgeDefinitions\" : [ \n    { \n      \"collection\" : \"edges\", \n      \"from\" : [ \n        \"startVertices\" \n      ], \n      \"to\" : [ \n        \"endVertices\" \n      ] \n    } \n  ] \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json\netag: 555133358\n\n{ \n  \"error\" : false, \n  \"code\" : 201, \n  \"graph\" : { \n    \"name\" : \"myGraph\", \n    \"edgeDefinitions\" : [ \n      { \n        \"collection\" : \"edges\", \n        \"from\" : [ \n          \"startVertices\" \n        ], \n        \"to\" : [ \n          \"endVertices\" \n        ] \n      } \n    ], \n    \"orphanCollections\" : [ ], \n    \"_id\" : \"_graphs/myGraph\", \n    \"_rev\" : \"555133358\" \n  } \n}\n

\n\n", + "description": "\n\nThe creation of a graph requires the name of the graph and a definition of its edges.\n[See also edge definitions](../GeneralGraphs/Management.md#edge-definitions).\n\n**A json post document with these Properties is required:**\n\n - **orphanCollections**: An array of additional vertex collections.\n - **edgeDefinitions**: An array of definitions for the edge\n - **name**: Name of the graph.\n\n\n\n
Example:

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/gharial <<EOF\n{ \n  \"name\" : \"myGraph\", \n  \"edgeDefinitions\" : [ \n    { \n      \"collection\" : \"edges\", \n      \"from\" : [ \n        \"startVertices\" \n      ], \n      \"to\" : [ \n        \"endVertices\" \n      ] \n    } \n  ] \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json\netag: 551925297\n\n{ \n  \"error\" : false, \n  \"code\" : 201, \n  \"graph\" : { \n    \"name\" : \"myGraph\", \n    \"edgeDefinitions\" : [ \n      { \n        \"collection\" : \"edges\", \n        \"from\" : [ \n          \"startVertices\" \n        ], \n        \"to\" : [ \n          \"endVertices\" \n        ] \n      } \n    ], \n    \"orphanCollections\" : [ ], \n    \"_id\" : \"_graphs/myGraph\", \n    \"_rev\" : \"551925297\" \n  } \n}\n

\n\n", "parameters": [ { "in": "body", @@ -4601,7 +4601,7 @@ "x-filename": "Graph - js/apps/system/_api/gharial/APP/gharial.js" }, "get": { - "description": "\n\nGets a graph from the collection *\\_graphs*.\nReturns the definition content of this graph.\n\n\n
Example:

shell> curl --dump - http://localhost:8529/_api/gharial/myGraph\n\nHTTP/1.1 200 OK\ncontent-type: application/json\netag: 576039342\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"graph\" : { \n    \"name\" : \"myGraph\", \n    \"edgeDefinitions\" : [ \n      { \n        \"collection\" : \"edges\", \n        \"from\" : [ \n          \"startVertices\" \n        ], \n        \"to\" : [ \n          \"endVertices\" \n        ] \n      } \n    ], \n    \"orphanCollections\" : [ ], \n    \"_id\" : \"_graphs/myGraph\", \n    \"_rev\" : \"576039342\" \n  } \n}\n

\n\n", + "description": "\n\nGets a graph from the collection *\\_graphs*.\nReturns the definition content of this graph.\n\n\n
Example:

shell> curl --dump - http://localhost:8529/_api/gharial/myGraph\n\nHTTP/1.1 200 OK\ncontent-type: application/json\netag: 572831281\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"graph\" : { \n    \"name\" : \"myGraph\", \n    \"edgeDefinitions\" : [ \n      { \n        \"collection\" : \"edges\", \n        \"from\" : [ \n          \"startVertices\" \n        ], \n        \"to\" : [ \n          \"endVertices\" \n        ] \n      } \n    ], \n    \"orphanCollections\" : [ ], \n    \"_id\" : \"_graphs/myGraph\", \n    \"_rev\" : \"572831281\" \n  } \n}\n

\n\n", "parameters": [], "responses": { "200": { @@ -4639,7 +4639,7 @@ "x-filename": "Graph - js/apps/system/_api/gharial/APP/gharial.js" }, "post": { - "description": "\n\nAdds an additional edge definition to the graph.\nThis edge definition has to contain a *collection* and an array of each *from* and *to* vertex collections.\nAn edge definition can only be added if this definition is either not used in any other graph, or it is used\nwith exactly the same definition. It is not possible to store a definition \"e\" from \"v1\" to \"v2\" in the one\ngraph, and \"e\" from \"v2\" to \"v1\" in the other graph.\n\n**A json post document with these Properties is required:**\n\n - **to**: One or many edge collections that can contain target vertices. of type string\n - **from**: One or many vertex collections that can contain source vertices. of type string\n - **collection**: The name of the edge collection to be used.\n\n\n\n
Example:

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge <<EOF\n{ \n  \"collection\" : \"lives_in\", \n  \"from\" : [ \n    \"female\", \n    \"male\" \n  ], \n  \"to\" : [ \n    \"city\" \n  ] \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json\netag: 542419374\n\n{ \n  \"error\" : false, \n  \"code\" : 201, \n  \"graph\" : { \n    \"name\" : \"social\", \n    \"edgeDefinitions\" : [ \n      { \n        \"collection\" : \"relation\", \n        \"from\" : [ \n          \"female\", \n          \"male\" \n        ], \n        \"to\" : [ \n          \"female\", \n          \"male\" \n        ] \n      }, \n      { \n        \"collection\" : \"lives_in\", \n        \"from\" : [ \n          \"female\", \n          \"male\" \n        ], \n        \"to\" : [ \n          \"city\" \n        ] \n      } \n    ], \n    \"orphanCollections\" : [ ], \n    \"_id\" : \"_graphs/social\", \n    \"_rev\" : \"542419374\" \n  } \n}\n

\n\n", + "description": "\n\nAdds an additional edge definition to the graph.\nThis edge definition has to contain a *collection* and an array of each *from* and *to* vertex collections.\nAn edge definition can only be added if this definition is either not used in any other graph, or it is used\nwith exactly the same definition. It is not possible to store a definition \"e\" from \"v1\" to \"v2\" in the one\ngraph, and \"e\" from \"v2\" to \"v1\" in the other graph.\n\n**A json post document with these Properties is required:**\n\n - **to**: One or many edge collections that can contain target vertices. of type string\n - **from**: One or many vertex collections that can contain source vertices. of type string\n - **collection**: The name of the edge collection to be used.\n\n\n\n
Example:

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge <<EOF\n{ \n  \"collection\" : \"lives_in\", \n  \"from\" : [ \n    \"female\", \n    \"male\" \n  ], \n  \"to\" : [ \n    \"city\" \n  ] \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json\netag: 539211313\n\n{ \n  \"error\" : false, \n  \"code\" : 201, \n  \"graph\" : { \n    \"name\" : \"social\", \n    \"edgeDefinitions\" : [ \n      { \n        \"collection\" : \"relation\", \n        \"from\" : [ \n          \"female\", \n          \"male\" \n        ], \n        \"to\" : [ \n          \"female\", \n          \"male\" \n        ] \n      }, \n      { \n        \"collection\" : \"lives_in\", \n        \"from\" : [ \n          \"female\", \n          \"male\" \n        ], \n        \"to\" : [ \n          \"city\" \n        ] \n      } \n    ], \n    \"orphanCollections\" : [ ], \n    \"_id\" : \"_graphs/social\", \n    \"_rev\" : \"539211313\" \n  } \n}\n

\n\n", "parameters": [ { "in": "body", @@ -4672,7 +4672,7 @@ }, "/_api/gharial/{graph-name}/edge/{collection-name}": { "post": { - "description": "\n\nCreates a new edge in the collection.\nWithin the body the has to contain a *\\_from* and *\\_to* value referencing to valid vertices in the graph.\nFurthermore the edge has to be valid in the definition of this\n[edge collection](../Glossary/README.md#edge-collection).\n\n\nfree style json body\n\n\n
Example:

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge/relation <<EOF\n{ \n  \"type\" : \"friend\", \n  \"_from\" : \"female/alice\", \n  \"_to\" : \"female/diana\" \n}\nEOF\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json\netag: 540912046\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"edge\" : { \n    \"_id\" : \"relation/540912046\", \n    \"_rev\" : \"540912046\", \n    \"_key\" : \"540912046\" \n  } \n}\n

\n\n", + "description": "\n\nCreates a new edge in the collection.\nWithin the body the has to contain a *\\_from* and *\\_to* value referencing to valid vertices in the graph.\nFurthermore the edge has to be valid in the definition of this\n[edge collection](../Glossary/README.md#edge-collection).\n\n\nfree style json body\n\n\n
Example:

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge/relation <<EOF\n{ \n  \"type\" : \"friend\", \n  \"_from\" : \"female/alice\", \n  \"_to\" : \"female/diana\" \n}\nEOF\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json\netag: 537703985\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"edge\" : { \n    \"_id\" : \"relation/537703985\", \n    \"_rev\" : \"537703985\", \n    \"_key\" : \"537703985\" \n  } \n}\n

\n\n", "parameters": [ { "description": "The body has to be the JSON object to be stored.\n\n", @@ -4731,7 +4731,7 @@ "x-filename": "Graph - js/apps/system/_api/gharial/APP/gharial.js" }, "get": { - "description": "\n\nGets an edge from the given collection.\n\n\n
Example:

shell> curl --dump - http://localhost:8529/_api/gharial/social/edge/relation/aliceAndBob\n\nHTTP/1.1 200 OK\ncontent-type: application/json\netag: 573745582\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"edge\" : { \n    \"_id\" : \"relation/aliceAndBob\", \n    \"_key\" : \"aliceAndBob\", \n    \"_rev\" : \"573745582\", \n    \"_from\" : \"female/alice\", \n    \"_to\" : \"male/bob\", \n    \"type\" : \"married\" \n  } \n}\n

\n\n", + "description": "\n\nGets an edge from the given collection.\n\n\n
Example:

shell> curl --dump - http://localhost:8529/_api/gharial/social/edge/relation/aliceAndBob\n\nHTTP/1.1 200 OK\ncontent-type: application/json\netag: 570537521\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"edge\" : { \n    \"_id\" : \"relation/aliceAndBob\", \n    \"_key\" : \"aliceAndBob\", \n    \"_rev\" : \"570537521\", \n    \"_from\" : \"female/alice\", \n    \"_to\" : \"male/bob\", \n    \"type\" : \"married\" \n  } \n}\n

\n\n", "parameters": [], "responses": { "200": { @@ -4752,7 +4752,7 @@ "x-filename": "Graph - js/apps/system/_api/gharial/APP/gharial.js" }, "patch": { - "description": "\n\nUpdates the data of the specific edge in the collection.\n\n\nfree style json body\n\n\n
Example:

shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge/relation/aliceAndBob <<EOF\n{ \n  \"since\" : \"01.01.2001\" \n}\nEOF\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json\netag: 604940718\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"edge\" : { \n    \"_id\" : \"relation/aliceAndBob\", \n    \"_rev\" : \"604940718\", \n    \"_oldRev\" : \"603826606\", \n    \"_key\" : \"aliceAndBob\" \n  } \n}\n

\n\n", + "description": "\n\nUpdates the data of the specific edge in the collection.\n\n\nfree style json body\n\n\n
Example:

shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge/relation/aliceAndBob <<EOF\n{ \n  \"since\" : \"01.01.2001\" \n}\nEOF\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json\netag: 601863729\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"edge\" : { \n    \"_id\" : \"relation/aliceAndBob\", \n    \"_rev\" : \"601863729\", \n    \"_oldRev\" : \"600749617\", \n    \"_key\" : \"aliceAndBob\" \n  } \n}\n

\n\n", "parameters": [ { "description": "The body has to be a JSON object containing the attributes to be updated.\n\n", @@ -4785,7 +4785,7 @@ "x-filename": "Graph - js/apps/system/_api/gharial/APP/gharial.js" }, "put": { - "description": "\n\nReplaces the data of an edge in the collection.\n\n\nfree style json body\n\n\n
Example:

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge/relation/aliceAndBob <<EOF\n{ \n  \"type\" : \"divorced\" \n}\nEOF\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json\netag: 608807342\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"edge\" : { \n    \"_id\" : \"relation/aliceAndBob\", \n    \"_rev\" : \"608807342\", \n    \"_oldRev\" : \"607824302\", \n    \"_key\" : \"aliceAndBob\" \n  } \n}\n

\n\n", + "description": "\n\nReplaces the data of an edge in the collection.\n\n\nfree style json body\n\n\n
Example:

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge/relation/aliceAndBob <<EOF\n{ \n  \"type\" : \"divorced\" \n}\nEOF\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json\netag: 605730353\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"edge\" : { \n    \"_id\" : \"relation/aliceAndBob\", \n    \"_rev\" : \"605730353\", \n    \"_oldRev\" : \"604747313\", \n    \"_key\" : \"aliceAndBob\" \n  } \n}\n

\n\n", "parameters": [ { "description": "The body has to be the JSON object to be stored.\n\n", @@ -4823,7 +4823,7 @@ }, "/_api/gharial/{graph-name}/edge/{definition-name}": { "delete": { - "description": "\n\nRemove one edge definition from the graph.\nThis will only remove the edge collection, the vertex collections remain untouched and can still be used\nin your queries.\n\n\n
Example:

shell> curl -X DELETE --dump - http://localhost:8529/_api/gharial/social/edge/relation\n\nHTTP/1.1 200 OK\ncontent-type: application/json\netag: 568568238\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"graph\" : { \n    \"name\" : \"social\", \n    \"edgeDefinitions\" : [ ], \n    \"orphanCollections\" : [ \n      \"female\", \n      \"male\" \n    ], \n    \"_id\" : \"_graphs/social\", \n    \"_rev\" : \"568568238\" \n  } \n}\n

\n\n\n", + "description": "\n\nRemove one edge definition from the graph.\nThis will only remove the edge collection, the vertex collections remain untouched and can still be used\nin your queries.\n\n\n
Example:

shell> curl -X DELETE --dump - http://localhost:8529/_api/gharial/social/edge/relation\n\nHTTP/1.1 200 OK\ncontent-type: application/json\netag: 565360177\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"graph\" : { \n    \"name\" : \"social\", \n    \"edgeDefinitions\" : [ ], \n    \"orphanCollections\" : [ \n      \"female\", \n      \"male\" \n    ], \n    \"_id\" : \"_graphs/social\", \n    \"_rev\" : \"565360177\" \n  } \n}\n

\n\n\n", "parameters": [], "responses": { "200": { @@ -4844,7 +4844,7 @@ "x-filename": "Graph - js/apps/system/_api/gharial/APP/gharial.js" }, "post": { - "description": "\n\nChange one specific edge definition.\nThis will modify all occurrences of this definition in all graphs known to your database.\n\n**A json post document with these Properties is required:**\n\n - **to**: One or many edge collections that can contain target vertices. of type string\n - **from**: One or many vertex collections that can contain source vertices. of type string\n - **collection**: The name of the edge collection to be used.\n\n\n\n
Example:

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge/relation <<EOF\n{ \n  \"collection\" : \"relation\", \n  \"from\" : [ \n    \"female\", \n    \"male\", \n    \"animal\" \n  ], \n  \"to\" : [ \n    \"female\", \n    \"male\", \n    \"animal\" \n  ] \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json\netag: 618047918\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"graph\" : { \n    \"name\" : \"social\", \n    \"edgeDefinitions\" : [ \n      { \n        \"collection\" : \"relation\", \n        \"from\" : [ \n          \"animal\", \n          \"female\", \n          \"male\" \n        ], \n        \"to\" : [ \n          \"animal\", \n          \"female\", \n          \"male\" \n        ] \n      } \n    ], \n    \"orphanCollections\" : [ ], \n    \"_id\" : \"_graphs/social\", \n    \"_rev\" : \"618047918\" \n  } \n}\n

\n\n", + "description": "\n\nChange one specific edge definition.\nThis will modify all occurrences of this definition in all graphs known to your database.\n\n**A json post document with these Properties is required:**\n\n - **to**: One or many edge collections that can contain target vertices. of type string\n - **from**: One or many vertex collections that can contain source vertices. of type string\n - **collection**: The name of the edge collection to be used.\n\n\n\n
Example:

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge/relation <<EOF\n{ \n  \"collection\" : \"relation\", \n  \"from\" : [ \n    \"female\", \n    \"male\", \n    \"animal\" \n  ], \n  \"to\" : [ \n    \"female\", \n    \"male\", \n    \"animal\" \n  ] \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json\netag: 614970929\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"graph\" : { \n    \"name\" : \"social\", \n    \"edgeDefinitions\" : [ \n      { \n        \"collection\" : \"relation\", \n        \"from\" : [ \n          \"animal\", \n          \"female\", \n          \"male\" \n        ], \n        \"to\" : [ \n          \"animal\", \n          \"female\", \n          \"male\" \n        ] \n      } \n    ], \n    \"orphanCollections\" : [ ], \n    \"_id\" : \"_graphs/social\", \n    \"_rev\" : \"614970929\" \n  } \n}\n

\n\n", "parameters": [ { "in": "body", @@ -4895,7 +4895,7 @@ "x-filename": "Graph - js/apps/system/_api/gharial/APP/gharial.js" }, "post": { - "description": "\n\nAdds a vertex collection to the set of collections of the graph. If the\ncollection does not exist, it will be created.\n\n\n
Example:

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/gharial/social/vertex <<EOF\n{ \n  \"collection\" : \"otherVertices\" \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json\netag: 550742446\n\n{ \n  \"error\" : false, \n  \"code\" : 201, \n  \"graph\" : { \n    \"name\" : \"social\", \n    \"edgeDefinitions\" : [ \n      { \n        \"collection\" : \"relation\", \n        \"from\" : [ \n          \"female\", \n          \"male\" \n        ], \n        \"to\" : [ \n          \"female\", \n          \"male\" \n        ] \n      } \n    ], \n    \"orphanCollections\" : [ \n      \"otherVertices\" \n    ], \n    \"_id\" : \"_graphs/social\", \n    \"_rev\" : \"550742446\" \n  } \n}\n

\n\n", + "description": "\n\nAdds a vertex collection to the set of collections of the graph. If the\ncollection does not exist, it will be created.\n\n\n
Example:

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/gharial/social/vertex <<EOF\n{ \n  \"collection\" : \"otherVertices\" \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json\netag: 547534385\n\n{ \n  \"error\" : false, \n  \"code\" : 201, \n  \"graph\" : { \n    \"name\" : \"social\", \n    \"edgeDefinitions\" : [ \n      { \n        \"collection\" : \"relation\", \n        \"from\" : [ \n          \"female\", \n          \"male\" \n        ], \n        \"to\" : [ \n          \"female\", \n          \"male\" \n        ] \n      } \n    ], \n    \"orphanCollections\" : [ \n      \"otherVertices\" \n    ], \n    \"_id\" : \"_graphs/social\", \n    \"_rev\" : \"547534385\" \n  } \n}\n

\n\n", "parameters": [], "responses": { "201": { @@ -4915,7 +4915,7 @@ }, "/_api/gharial/{graph-name}/vertex/{collection-name}": { "delete": { - "description": "\n\nRemoves a vertex collection from the graph and optionally deletes the collection,\nif it is not used in any other graph.\n\n\n
Example: ///\nYou can remove vertex collections that are not used in any edge collection:

shell> curl -X DELETE --dump - http://localhost:8529/_api/gharial/social/vertex/otherVertices\n\nHTTP/1.1 200 OK\ncontent-type: application/json\netag: 612673966\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"graph\" : { \n    \"name\" : \"social\", \n    \"edgeDefinitions\" : [ \n      { \n        \"collection\" : \"relation\", \n        \"from\" : [ \n          \"female\", \n          \"male\" \n        ], \n        \"to\" : [ \n          \"female\", \n          \"male\" \n        ] \n      } \n    ], \n    \"orphanCollections\" : [ ], \n    \"_id\" : \"_graphs/social\", \n    \"_rev\" : \"612673966\" \n  } \n}\n

\n
Example: You cannot remove vertex collections that are used in edge collections:

shell> curl -X DELETE --dump - http://localhost:8529/_api/gharial/social/vertex/male\n\nHTTP/1.1 400 Bad Request\ncontent-type: application/json\n\n{ \n  \"error\" : true, \n  \"code\" : 400, \n  \"errorNum\" : 1928, \n  \"errorMessage\" : \"not in orphan collection\" \n}\n

\n\n\n", + "description": "\n\nRemoves a vertex collection from the graph and optionally deletes the collection,\nif it is not used in any other graph.\n\n\n
Example: ///\nYou can remove vertex collections that are not used in any edge collection:

shell> curl -X DELETE --dump - http://localhost:8529/_api/gharial/social/vertex/otherVertices\n\nHTTP/1.1 200 OK\ncontent-type: application/json\netag: 609596977\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"graph\" : { \n    \"name\" : \"social\", \n    \"edgeDefinitions\" : [ \n      { \n        \"collection\" : \"relation\", \n        \"from\" : [ \n          \"female\", \n          \"male\" \n        ], \n        \"to\" : [ \n          \"female\", \n          \"male\" \n        ] \n      } \n    ], \n    \"orphanCollections\" : [ ], \n    \"_id\" : \"_graphs/social\", \n    \"_rev\" : \"609596977\" \n  } \n}\n

\n
Example: You cannot remove vertex collections that are used in edge collections:

shell> curl -X DELETE --dump - http://localhost:8529/_api/gharial/social/vertex/male\n\nHTTP/1.1 400 Bad Request\ncontent-type: application/json\n\n{ \n  \"error\" : true, \n  \"code\" : 400, \n  \"errorNum\" : 1928, \n  \"errorMessage\" : \"not in orphan collection\" \n}\n

\n\n\n", "parameters": [], "responses": { "200": { @@ -4936,7 +4936,7 @@ "x-filename": "Graph - js/apps/system/_api/gharial/APP/gharial.js" }, "post": { - "description": "\n\nAdds a vertex to the given collection.\n\n\nfree style json body\n\n\n
Example:

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/gharial/social/vertex/male <<EOF\n{ \n  \"name\" : \"Francis\" \n}\nEOF\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json\netag: 549235118\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"vertex\" : { \n    \"_id\" : \"male/549235118\", \n    \"_rev\" : \"549235118\", \n    \"_key\" : \"549235118\" \n  } \n}\n

\n\n", + "description": "\n\nAdds a vertex to the given collection.\n\n\nfree style json body\n\n\n
Example:

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/gharial/social/vertex/male <<EOF\n{ \n  \"name\" : \"Francis\" \n}\nEOF\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json\netag: 546027057\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"vertex\" : { \n    \"_id\" : \"male/546027057\", \n    \"_rev\" : \"546027057\", \n    \"_key\" : \"546027057\" \n  } \n}\n

\n\n", "parameters": [ { "description": "The body has to be the JSON object to be stored.\n\n", @@ -4995,7 +4995,7 @@ "x-filename": "Graph - js/apps/system/_api/gharial/APP/gharial.js" }, "get": { - "description": "\n\nGets a vertex from the given collection.\n\n\n
Example:

shell> curl --dump - http://localhost:8529/_api/gharial/social/vertex/female/alice\n\nHTTP/1.1 200 OK\ncontent-type: application/json\netag: 577874350\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"vertex\" : { \n    \"_id\" : \"female/alice\", \n    \"_key\" : \"alice\", \n    \"_rev\" : \"577874350\", \n    \"name\" : \"Alice\" \n  } \n}\n

\n\n", + "description": "\n\nGets a vertex from the given collection.\n\n\n
Example:

shell> curl --dump - http://localhost:8529/_api/gharial/social/vertex/female/alice\n\nHTTP/1.1 200 OK\ncontent-type: application/json\netag: 574797361\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"vertex\" : { \n    \"_id\" : \"female/alice\", \n    \"_key\" : \"alice\", \n    \"_rev\" : \"574797361\", \n    \"name\" : \"Alice\" \n  } \n}\n

\n\n", "parameters": [], "responses": { "200": { @@ -5016,7 +5016,7 @@ "x-filename": "Graph - js/apps/system/_api/gharial/APP/gharial.js" }, "patch": { - "description": "\n\nUpdates the data of the specific vertex in the collection.\n\n\nfree style json body\n\n\n
Example:

shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/gharial/social/vertex/female/alice <<EOF\n{ \n  \"age\" : 26 \n}\nEOF\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json\netag: 600943022\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"vertex\" : { \n    \"_id\" : \"female/alice\", \n    \"_rev\" : \"600943022\", \n    \"_oldRev\" : \"598780334\", \n    \"_key\" : \"alice\" \n  } \n}\n

\n\n", + "description": "\n\nUpdates the data of the specific vertex in the collection.\n\n\nfree style json body\n\n\n
Example:

shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/gharial/social/vertex/female/alice <<EOF\n{ \n  \"age\" : 26 \n}\nEOF\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json\netag: 597866033\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"vertex\" : { \n    \"_id\" : \"female/alice\", \n    \"_rev\" : \"597866033\", \n    \"_oldRev\" : \"595703345\", \n    \"_key\" : \"alice\" \n  } \n}\n

\n\n", "parameters": [ { "description": "The body has to contain a JSON object containing exactly the attributes that should be replaced.\n\n", @@ -5052,7 +5052,7 @@ "x-filename": "Graph - js/apps/system/_api/gharial/APP/gharial.js" }, "put": { - "description": "\n\nReplaces the data of a vertex in the collection.\n\n\nfree style json body\n\n\n
Example:

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/gharial/social/vertex/female/alice <<EOF\n{ \n  \"name\" : \"Alice Cooper\", \n  \"age\" : 26 \n}\nEOF\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json\netag: 624798126\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"vertex\" : { \n    \"_id\" : \"female/alice\", \n    \"_rev\" : \"624798126\", \n    \"_oldRev\" : \"622635438\", \n    \"_key\" : \"alice\" \n  } \n}\n

\n\n", + "description": "\n\nReplaces the data of a vertex in the collection.\n\n\nfree style json body\n\n\n
Example:

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/gharial/social/vertex/female/alice <<EOF\n{ \n  \"name\" : \"Alice Cooper\", \n  \"age\" : 26 \n}\nEOF\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json\netag: 621721137\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"vertex\" : { \n    \"_id\" : \"female/alice\", \n    \"_rev\" : \"621721137\", \n    \"_oldRev\" : \"619558449\", \n    \"_key\" : \"alice\" \n  } \n}\n

\n\n", "parameters": [ { "description": "The body has to be the JSON object to be stored.\n\n", @@ -5297,7 +5297,7 @@ }, "/_api/index": { "get": { - "description": "\n\n\nReturns an object with an attribute *indexes* containing an array of all\nindex descriptions for the given collection. The same information is also\navailable in the *identifiers* as an object with the index handles as\nkeys.\n\n\n
Example: Return information about all indexes

shell> curl --dump - http://localhost:8529/_api/index?collection=products\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"indexes\" : [ \n    { \n      \"id\" : \"products/0\", \n      \"type\" : \"primary\", \n      \"fields\" : [ \n        \"_key\" \n      ], \n      \"selectivityEstimate\" : 1, \n      \"unique\" : true, \n      \"sparse\" : false \n    }, \n    { \n      \"id\" : \"products/782084526\", \n      \"type\" : \"hash\", \n      \"fields\" : [ \n        \"name\" \n      ], \n      \"selectivityEstimate\" : 1, \n      \"unique\" : false, \n      \"sparse\" : false \n    }, \n    { \n      \"id\" : \"products/782346670\", \n      \"type\" : \"skiplist\", \n      \"fields\" : [ \n        \"price\" \n      ], \n      \"unique\" : false, \n      \"sparse\" : true \n    } \n  ], \n  \"identifiers\" : { \n    \"products/0\" : { \n      \"id\" : \"products/0\", \n      \"type\" : \"primary\", \n      \"fields\" : [ \n        \"_key\" \n      ], \n      \"selectivityEstimate\" : 1, \n      \"unique\" : true, \n      \"sparse\" : false \n    }, \n    \"products/782084526\" : { \n      \"id\" : \"products/782084526\", \n      \"type\" : \"hash\", \n      \"fields\" : [ \n        \"name\" \n      ], \n      \"selectivityEstimate\" : 1, \n      \"unique\" : false, \n      \"sparse\" : false \n    }, \n    \"products/782346670\" : { \n      \"id\" : \"products/782346670\", \n      \"type\" : \"skiplist\", \n      \"fields\" : [ \n        \"price\" \n      ], \n      \"unique\" : false, \n      \"sparse\" : true \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", + "description": "\n\n\nReturns an object with an attribute *indexes* containing an array of all\nindex descriptions for the given collection. The same information is also\navailable in the *identifiers* as an object with the index handles as\nkeys.\n\n\n
Example: Return information about all indexes

shell> curl --dump - http://localhost:8529/_api/index?collection=products\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"indexes\" : [ \n    { \n      \"id\" : \"products/0\", \n      \"type\" : \"primary\", \n      \"fields\" : [ \n        \"_key\" \n      ], \n      \"selectivityEstimate\" : 1, \n      \"unique\" : true, \n      \"sparse\" : false \n    }, \n    { \n      \"id\" : \"products/778810929\", \n      \"type\" : \"hash\", \n      \"fields\" : [ \n        \"name\" \n      ], \n      \"selectivityEstimate\" : 1, \n      \"unique\" : false, \n      \"sparse\" : false \n    }, \n    { \n      \"id\" : \"products/779073073\", \n      \"type\" : \"skiplist\", \n      \"fields\" : [ \n        \"price\" \n      ], \n      \"unique\" : false, \n      \"sparse\" : true \n    } \n  ], \n  \"identifiers\" : { \n    \"products/0\" : { \n      \"id\" : \"products/0\", \n      \"type\" : \"primary\", \n      \"fields\" : [ \n        \"_key\" \n      ], \n      \"selectivityEstimate\" : 1, \n      \"unique\" : true, \n      \"sparse\" : false \n    }, \n    \"products/778810929\" : { \n      \"id\" : \"products/778810929\", \n      \"type\" : \"hash\", \n      \"fields\" : [ \n        \"name\" \n      ], \n      \"selectivityEstimate\" : 1, \n      \"unique\" : false, \n      \"sparse\" : false \n    }, \n    \"products/779073073\" : { \n      \"id\" : \"products/779073073\", \n      \"type\" : \"skiplist\", \n      \"fields\" : [ \n        \"price\" \n      ], \n      \"unique\" : false, \n      \"sparse\" : true \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", "parameters": [ { "description": "The collection name.\n\n", @@ -5320,7 +5320,7 @@ "x-filename": "Indexes - js/actions/api-index.js" }, "post": { - "description": "**A json post document with these Properties is required:**\n\n - **fields**: an array of attribute paths. of type string\n - **unique**: if *true*, then create a unique index.\n - **type**: must be equal to *\"skiplist\"*.\n - **sparse**: if *true*, then create a sparse index.\n\n\n\n\n\nCreates a skip-list index for the collection *collection-name*, if\nit does not already exist. The call expects an object containing the index\ndetails.\n\nIn a sparse index all documents will be excluded from the index that do not \ncontain at least one of the specified index attributes (i.e. *fields*) or that \nhave a value of *null* in any of the specified index attributes. Such documents \nwill not be indexed, and not be taken into account for uniqueness checks if\nthe *unique* flag is set.\n\nIn a non-sparse index, these documents will be indexed (for non-present\nindexed attributes, a value of *null* will be used) and will be taken into\naccount for uniqueness checks if the *unique* flag is set.\n\n**Note**: unique indexes on non-shard keys are not supported in a cluster.\n\n\n
Example: Creating a skiplist index

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/index?collection=products <<EOF\n{ \n  \"type\" : \"skiplist\", \n  \"unique\" : false, \n  \"fields\" : [ \n    \"a\", \n    \"b\" \n  ] \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"products/785361326\", \n  \"type\" : \"skiplist\", \n  \"fields\" : [ \n    \"a\", \n    \"b\" \n  ], \n  \"unique\" : false, \n  \"sparse\" : false, \n  \"isNewlyCreated\" : true, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n
Example: Creating a sparse skiplist index

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/index?collection=products <<EOF\n{ \n  \"type\" : \"skiplist\", \n  \"unique\" : false, \n  \"sparse\" : true, \n  \"fields\" : [ \n    \"a\" \n  ] \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"products/786803118\", \n  \"type\" : \"skiplist\", \n  \"fields\" : [ \n    \"a\" \n  ], \n  \"unique\" : false, \n  \"sparse\" : true, \n  \"isNewlyCreated\" : true, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n\n", + "description": "**A json post document with these Properties is required:**\n\n - **fields**: an array of attribute paths. of type string\n - **unique**: if *true*, then create a unique index.\n - **type**: must be equal to *\"skiplist\"*.\n - **sparse**: if *true*, then create a sparse index.\n\n\n\n\n\nCreates a skip-list index for the collection *collection-name*, if\nit does not already exist. The call expects an object containing the index\ndetails.\n\nIn a sparse index all documents will be excluded from the index that do not \ncontain at least one of the specified index attributes (i.e. *fields*) or that \nhave a value of *null* in any of the specified index attributes. Such documents \nwill not be indexed, and not be taken into account for uniqueness checks if\nthe *unique* flag is set.\n\nIn a non-sparse index, these documents will be indexed (for non-present\nindexed attributes, a value of *null* will be used) and will be taken into\naccount for uniqueness checks if the *unique* flag is set.\n\n**Note**: unique indexes on non-shard keys are not supported in a cluster.\n\n\n
Example: Creating a skiplist index

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/index?collection=products <<EOF\n{ \n  \"type\" : \"skiplist\", \n  \"unique\" : false, \n  \"fields\" : [ \n    \"a\", \n    \"b\" \n  ] \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"products/782087729\", \n  \"type\" : \"skiplist\", \n  \"fields\" : [ \n    \"a\", \n    \"b\" \n  ], \n  \"unique\" : false, \n  \"sparse\" : false, \n  \"isNewlyCreated\" : true, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n
Example: Creating a sparse skiplist index

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/index?collection=products <<EOF\n{ \n  \"type\" : \"skiplist\", \n  \"unique\" : false, \n  \"sparse\" : true, \n  \"fields\" : [ \n    \"a\" \n  ] \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"products/783529521\", \n  \"type\" : \"skiplist\", \n  \"fields\" : [ \n    \"a\" \n  ], \n  \"unique\" : false, \n  \"sparse\" : true, \n  \"isNewlyCreated\" : true, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n\n", "parameters": [ { "description": "The collection name.\n\n\n", @@ -5363,7 +5363,7 @@ }, "/_api/index#CapConstraints": { "post": { - "description": "**A json post document with these Properties is required:**\n\n - **byteSize**: The maximal size of the active document data in the collection\n (in bytes). If specified, the value must be at least 16384.\n - **type**: must be equal to *\"cap\"*.\n - **size**: The maximal number of documents for the collection. If specified,\n the value must be greater than zero.\n\n\n\n\n**NOTE** Swagger examples won't work due to the anchor.\n\n\n\nCreates a cap constraint for the collection *collection-name*,\nif it does not already exist. Expects an object containing the index details.\n\n**Note**: The cap constraint does not index particular attributes of the\ndocuments in a collection, but limits the number of documents in the\ncollection to a maximum value. The cap constraint thus does not support\nattribute names specified in the *fields* attribute nor uniqueness of\nany kind via the *unique* attribute.\n\nIt is allowed to specify either *size* or *byteSize*, or both at\nthe same time. If both are specified, then the automatic document removal\nwill be triggered by the first non-met constraint.\n\n\n
Example: Creating a cap constraint

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/index?collection=products <<EOF\n{ \n  \"type\" : \"cap\", \n  \"size\" : 10 \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"products/783788462\", \n  \"type\" : \"cap\", \n  \"size\" : 10, \n  \"byteSize\" : 0, \n  \"unique\" : false, \n  \"isNewlyCreated\" : true, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n\n", + "description": "**A json post document with these Properties is required:**\n\n - **byteSize**: The maximal size of the active document data in the collection\n (in bytes). If specified, the value must be at least 16384.\n - **type**: must be equal to *\"cap\"*.\n - **size**: The maximal number of documents for the collection. If specified,\n the value must be greater than zero.\n\n\n\n\n**NOTE** Swagger examples won't work due to the anchor.\n\n\n\nCreates a cap constraint for the collection *collection-name*,\nif it does not already exist. Expects an object containing the index details.\n\n**Note**: The cap constraint does not index particular attributes of the\ndocuments in a collection, but limits the number of documents in the\ncollection to a maximum value. The cap constraint thus does not support\nattribute names specified in the *fields* attribute nor uniqueness of\nany kind via the *unique* attribute.\n\nIt is allowed to specify either *size* or *byteSize*, or both at\nthe same time. If both are specified, then the automatic document removal\nwill be triggered by the first non-met constraint.\n\n\n
Example: Creating a cap constraint

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/index?collection=products <<EOF\n{ \n  \"type\" : \"cap\", \n  \"size\" : 10 \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"products/780514865\", \n  \"type\" : \"cap\", \n  \"size\" : 10, \n  \"byteSize\" : 0, \n  \"unique\" : false, \n  \"isNewlyCreated\" : true, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n\n", "parameters": [ { "description": "The collection name.\n\n", @@ -5406,7 +5406,7 @@ }, "/_api/index#fulltext": { "post": { - "description": "**A json post document with these Properties is required:**\n\n - **fields**: an array of attribute names. Currently, the array is limited\n to exactly one attribute. of type string\n - **type**: must be equal to *\"fulltext\"*.\n - **minLength**: Minimum character length of words to index. Will default\n to a server-defined value if unspecified. It is thus recommended to set\n this value explicitly when creating the index.\n\n\n\n\n**NOTE** Swagger examples won't work due to the anchor.\n\n\nCreates a fulltext index for the collection *collection-name*, if\nit does not already exist. The call expects an object containing the index\ndetails.\n\n\n
Example: Creating a fulltext index

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/index?collection=products <<EOF\n{ \n  \"type\" : \"fulltext\", \n  \"fields\" : [ \n    \"text\" \n  ] \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"products/784247214\", \n  \"type\" : \"fulltext\", \n  \"fields\" : [ \n    \"text\" \n  ], \n  \"unique\" : false, \n  \"sparse\" : true, \n  \"minLength\" : 2, \n  \"isNewlyCreated\" : true, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n\n", + "description": "**A json post document with these Properties is required:**\n\n - **fields**: an array of attribute names. Currently, the array is limited\n to exactly one attribute. of type string\n - **type**: must be equal to *\"fulltext\"*.\n - **minLength**: Minimum character length of words to index. Will default\n to a server-defined value if unspecified. It is thus recommended to set\n this value explicitly when creating the index.\n\n\n\n\n**NOTE** Swagger examples won't work due to the anchor.\n\n\nCreates a fulltext index for the collection *collection-name*, if\nit does not already exist. The call expects an object containing the index\ndetails.\n\n\n
Example: Creating a fulltext index

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/index?collection=products <<EOF\n{ \n  \"type\" : \"fulltext\", \n  \"fields\" : [ \n    \"text\" \n  ] \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"products/780973617\", \n  \"type\" : \"fulltext\", \n  \"fields\" : [ \n    \"text\" \n  ], \n  \"unique\" : false, \n  \"sparse\" : true, \n  \"minLength\" : 2, \n  \"isNewlyCreated\" : true, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n\n", "parameters": [ { "description": "The collection name.\n\n", @@ -5491,7 +5491,7 @@ }, "/_api/index#geo": { "post": { - "description": "**A json post document with these Properties is required:**\n\n - **fields**: An array with one or two attribute paths.\n If it is an array with one attribute path *location*, then a geo-spatial\n index on all documents is created using *location* as path to the\n coordinates. The value of the attribute must be an array with at least two\n double values. The array must contain the latitude (first value) and the\n longitude (second value). All documents, which do not have the attribute\n path or with value that are not suitable, are ignored.\n If it is an array with two attribute paths *latitude* and *longitude*,\n then a geo-spatial index on all documents is created using *latitude*\n and *longitude* as paths the latitude and the longitude. The value of\n the attribute *latitude* and of the attribute *longitude* must a\n double. All documents, which do not have the attribute paths or which\n values are not suitable, are ignored. of type string\n - **type**: must be equal to *\"geo\"*.\n - **geoJson**: If a geo-spatial index on a *location* is constructed\n and *geoJson* is *true*, then the order within the array is longitude\n followed by latitude. This corresponds to the format described in\n http://geojson.org/geojson-spec.html#positions\n\n\n\n\n**NOTE** Swagger examples won't work due to the anchor.\n\n\nCreates a geo-spatial index in the collection *collection-name*, if\nit does not already exist. Expects an object containing the index details.\n\nGeo indexes are always sparse, meaning that documents that do not contain\nthe index attributes or have non-numeric values in the index attributes\nwill not be indexed.\n\n\n
Example: Creating a geo index with a location attribute

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/index?collection=products <<EOF\n{ \n  \"type\" : \"geo\", \n  \"fields\" : [ \n    \"b\" \n  ] \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"products/783395246\", \n  \"type\" : \"geo1\", \n  \"fields\" : [ \n    \"b\" \n  ], \n  \"geoJson\" : false, \n  \"constraint\" : false, \n  \"unique\" : false, \n  \"ignoreNull\" : true, \n  \"sparse\" : true, \n  \"isNewlyCreated\" : true, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n
Example: Creating a geo index with latitude and longitude attributes

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/index?collection=products <<EOF\n{ \n  \"type\" : \"geo\", \n  \"fields\" : [ \n    \"e\", \n    \"f\" \n  ] \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"products/782936494\", \n  \"type\" : \"geo2\", \n  \"fields\" : [ \n    \"e\", \n    \"f\" \n  ], \n  \"constraint\" : false, \n  \"unique\" : false, \n  \"ignoreNull\" : true, \n  \"sparse\" : true, \n  \"isNewlyCreated\" : true, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n\n", + "description": "**A json post document with these Properties is required:**\n\n - **fields**: An array with one or two attribute paths.\n If it is an array with one attribute path *location*, then a geo-spatial\n index on all documents is created using *location* as path to the\n coordinates. The value of the attribute must be an array with at least two\n double values. The array must contain the latitude (first value) and the\n longitude (second value). All documents, which do not have the attribute\n path or with value that are not suitable, are ignored.\n If it is an array with two attribute paths *latitude* and *longitude*,\n then a geo-spatial index on all documents is created using *latitude*\n and *longitude* as paths the latitude and the longitude. The value of\n the attribute *latitude* and of the attribute *longitude* must a\n double. All documents, which do not have the attribute paths or which\n values are not suitable, are ignored. of type string\n - **type**: must be equal to *\"geo\"*.\n - **geoJson**: If a geo-spatial index on a *location* is constructed\n and *geoJson* is *true*, then the order within the array is longitude\n followed by latitude. This corresponds to the format described in\n http://geojson.org/geojson-spec.html#positions\n\n\n\n\n**NOTE** Swagger examples won't work due to the anchor.\n\n\nCreates a geo-spatial index in the collection *collection-name*, if\nit does not already exist. Expects an object containing the index details.\n\nGeo indexes are always sparse, meaning that documents that do not contain\nthe index attributes or have non-numeric values in the index attributes\nwill not be indexed.\n\n\n
Example: Creating a geo index with a location attribute

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/index?collection=products <<EOF\n{ \n  \"type\" : \"geo\", \n  \"fields\" : [ \n    \"b\" \n  ] \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"products/780121649\", \n  \"type\" : \"geo1\", \n  \"fields\" : [ \n    \"b\" \n  ], \n  \"geoJson\" : false, \n  \"constraint\" : false, \n  \"unique\" : false, \n  \"ignoreNull\" : true, \n  \"sparse\" : true, \n  \"isNewlyCreated\" : true, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n
Example: Creating a geo index with latitude and longitude attributes

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/index?collection=products <<EOF\n{ \n  \"type\" : \"geo\", \n  \"fields\" : [ \n    \"e\", \n    \"f\" \n  ] \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"products/779662897\", \n  \"type\" : \"geo2\", \n  \"fields\" : [ \n    \"e\", \n    \"f\" \n  ], \n  \"constraint\" : false, \n  \"unique\" : false, \n  \"ignoreNull\" : true, \n  \"sparse\" : true, \n  \"isNewlyCreated\" : true, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n\n", "parameters": [ { "description": "The collection name.\n\n\n", @@ -5531,7 +5531,7 @@ }, "/_api/index#hash": { "post": { - "description": "**A json post document with these Properties is required:**\n\n - **fields**: an array of attribute paths. of type string\n - **unique**: if *true*, then create a unique index.\n - **type**: must be equal to *\"hash\"*.\n - **sparse**: if *true*, then create a sparse index.\n\n\n\n\n**NOTE** Swagger examples won't work due to the anchor.\n\n\nCreates a hash index for the collection *collection-name* if it\ndoes not already exist. The call expects an object containing the index\ndetails.\n\nIn a sparse index all documents will be excluded from the index that do not \ncontain at least one of the specified index attributes (i.e. *fields*) or that \nhave a value of *null* in any of the specified index attributes. Such documents \nwill not be indexed, and not be taken into account for uniqueness checks if\nthe *unique* flag is set.\n\nIn a non-sparse index, these documents will be indexed (for non-present\nindexed attributes, a value of *null* will be used) and will be taken into\naccount for uniqueness checks if the *unique* flag is set.\n\n**Note**: unique indexes on non-shard keys are not supported in a cluster.\n\n\n
Example: Creating an unique constraint

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/index?collection=products <<EOF\n{ \n  \"type\" : \"hash\", \n  \"unique\" : true, \n  \"fields\" : [ \n    \"a\", \n    \"b\" \n  ] \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"products/785885614\", \n  \"type\" : \"hash\", \n  \"fields\" : [ \n    \"a\", \n    \"b\" \n  ], \n  \"selectivityEstimate\" : 1, \n  \"unique\" : true, \n  \"sparse\" : false, \n  \"isNewlyCreated\" : true, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n
Example: Creating a non-unique hash index

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/index?collection=products <<EOF\n{ \n  \"type\" : \"hash\", \n  \"unique\" : false, \n  \"fields\" : [ \n    \"a\", \n    \"b\" \n  ] \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"products/784837038\", \n  \"type\" : \"hash\", \n  \"fields\" : [ \n    \"a\", \n    \"b\" \n  ], \n  \"selectivityEstimate\" : 1, \n  \"unique\" : false, \n  \"sparse\" : false, \n  \"isNewlyCreated\" : true, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n
Example: Creating a sparse index

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/index?collection=products <<EOF\n{ \n  \"type\" : \"hash\", \n  \"unique\" : false, \n  \"sparse\" : true, \n  \"fields\" : [ \n    \"a\" \n  ] \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"products/786344366\", \n  \"type\" : \"hash\", \n  \"fields\" : [ \n    \"a\" \n  ], \n  \"selectivityEstimate\" : 1, \n  \"unique\" : false, \n  \"sparse\" : true, \n  \"isNewlyCreated\" : true, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n\n", + "description": "**A json post document with these Properties is required:**\n\n - **fields**: an array of attribute paths. of type string\n - **unique**: if *true*, then create a unique index.\n - **type**: must be equal to *\"hash\"*.\n - **sparse**: if *true*, then create a sparse index.\n\n\n\n\n**NOTE** Swagger examples won't work due to the anchor.\n\n\nCreates a hash index for the collection *collection-name* if it\ndoes not already exist. The call expects an object containing the index\ndetails.\n\nIn a sparse index all documents will be excluded from the index that do not \ncontain at least one of the specified index attributes (i.e. *fields*) or that \nhave a value of *null* in any of the specified index attributes. Such documents \nwill not be indexed, and not be taken into account for uniqueness checks if\nthe *unique* flag is set.\n\nIn a non-sparse index, these documents will be indexed (for non-present\nindexed attributes, a value of *null* will be used) and will be taken into\naccount for uniqueness checks if the *unique* flag is set.\n\n**Note**: unique indexes on non-shard keys are not supported in a cluster.\n\n\n
Example: Creating an unique constraint

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/index?collection=products <<EOF\n{ \n  \"type\" : \"hash\", \n  \"unique\" : true, \n  \"fields\" : [ \n    \"a\", \n    \"b\" \n  ] \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"products/782612017\", \n  \"type\" : \"hash\", \n  \"fields\" : [ \n    \"a\", \n    \"b\" \n  ], \n  \"selectivityEstimate\" : 1, \n  \"unique\" : true, \n  \"sparse\" : false, \n  \"isNewlyCreated\" : true, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n
Example: Creating a non-unique hash index

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/index?collection=products <<EOF\n{ \n  \"type\" : \"hash\", \n  \"unique\" : false, \n  \"fields\" : [ \n    \"a\", \n    \"b\" \n  ] \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"products/781563441\", \n  \"type\" : \"hash\", \n  \"fields\" : [ \n    \"a\", \n    \"b\" \n  ], \n  \"selectivityEstimate\" : 1, \n  \"unique\" : false, \n  \"sparse\" : false, \n  \"isNewlyCreated\" : true, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n
Example: Creating a sparse index

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/index?collection=products <<EOF\n{ \n  \"type\" : \"hash\", \n  \"unique\" : false, \n  \"sparse\" : true, \n  \"fields\" : [ \n    \"a\" \n  ] \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"products/783070769\", \n  \"type\" : \"hash\", \n  \"fields\" : [ \n    \"a\" \n  ], \n  \"selectivityEstimate\" : 1, \n  \"unique\" : false, \n  \"sparse\" : true, \n  \"isNewlyCreated\" : true, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n\n", "parameters": [ { "description": "The collection name.\n\n", @@ -5574,7 +5574,7 @@ }, "/_api/index/{index-handle}": { "delete": { - "description": "\n\n\nDeletes an index with *index-handle*.\n\n\n
Example:

shell> curl -X DELETE --dump - http://localhost:8529/_api/index/products/787327406\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"products/787327406\", \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", + "description": "\n\n\nDeletes an index with *index-handle*.\n\n\n
Example:

shell> curl -X DELETE --dump - http://localhost:8529/_api/index/products/784053809\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"products/784053809\", \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", "parameters": [ { "description": "The index handle.\n\n", @@ -5630,7 +5630,7 @@ }, "/_api/job/{job-id}": { "get": { - "description": "\n\nReturns the processing status of the specified job. The processing status can be \ndetermined by peeking into the HTTP response code of the response.\n\n\n
Example: Querying the status of a done job:

shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:8529/_api/version\n\nHTTP/1.1 202 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 627616174\n\nshell> curl -X PUT --dump - http://localhost:8529/_api/job/627616174\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\nx-arango-async-id: 627616174\n\n{ \n  \"server\" : \"arango\", \n  \"version\" : \"2.8.4\" \n}\n

\n
Example: Querying the status of a pending job:\n(we create a sleep job therefore...)

shell> curl --header 'x-arango-async: store' --dump - http://localhost:8529/_admin/sleep?duration=30\n\nHTTP/1.1 202 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 627681710\n\nshell> curl --dump - http://localhost:8529/_api/job/627681710\n\nHTTP/1.1 204 No Content\ncontent-type: text/plain; charset=utf-8\n\n

\n\n", + "description": "\n\nReturns the processing status of the specified job. The processing status can be \ndetermined by peeking into the HTTP response code of the response.\n\n\n
Example: Querying the status of a done job:

shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:8529/_api/version\n\nHTTP/1.1 202 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 624539185\n\nshell> curl -X PUT --dump - http://localhost:8529/_api/job/624539185\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\nx-arango-async-id: 624539185\n\n{ \n  \"server\" : \"arango\", \n  \"version\" : \"2.8.5\" \n}\n

\n
Example: Querying the status of a pending job:\n(we create a sleep job therefore...)

shell> curl --header 'x-arango-async: store' --dump - http://localhost:8529/_admin/sleep?duration=30\n\nHTTP/1.1 202 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 624604721\n\nshell> curl --dump - http://localhost:8529/_api/job/624604721\n\nHTTP/1.1 204 No Content\ncontent-type: text/plain; charset=utf-8\n\n

\n\n", "parameters": [ { "description": "The async job id.\n\n", @@ -5660,7 +5660,7 @@ "x-filename": "job - arangod/HttpServer/AsyncJobManager.cpp, arangod/RestHandler/RestJobHandler.cpp" }, "put": { - "description": "\n\nReturns the result of an async job identified by job-id. If the async job \nresult is present on the server, the result will be removed from the list of\nresult. That means this method can be called for each job-id once.\nThe method will return the original job result's headers and body, plus the \nadditional HTTP header x-arango-async-job-id. If this header is present, then \nthe job was found and the response contains the original job's result. If \nthe header is not present, the job was not found and the response contains \nstatus information from the job manager.\n\n\n
Example: Not providing a job-id:

shell> curl -X PUT --dump - http://localhost:8529/_api/job\n\nHTTP/1.1 400 Bad Request\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"bad parameter\", \n  \"code\" : 400, \n  \"errorNum\" : 400 \n}\n

\n
Example: Providing a job-id for a non-existing job:

shell> curl -X PUT --dump - http://localhost:8529/_api/job/notthere\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"not found\", \n  \"code\" : 404, \n  \"errorNum\" : 404 \n}\n

\n
Example: Fetching the result of an HTTP GET job:

shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:8529/_api/version\n\nHTTP/1.1 202 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 627288494\n\nshell> curl -X PUT --dump - http://localhost:8529/_api/job/627288494\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\nx-arango-async-id: 627288494\n\n{ \n  \"server\" : \"arango\", \n  \"version\" : \"2.8.4\" \n}\n

\n
Example: Fetching the result of an HTTP POST job that failed:

shell> curl -X PUT --header 'x-arango-async: store' --data-binary @- --dump - http://localhost:8529/_api/collection <<EOF\n{ \n  \"name\" : \" this name is invalid \" \n}\nEOF\n\nHTTP/1.1 202 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 627354030\n\nshell> curl -X PUT --dump - http://localhost:8529/_api/job/627354030\n\nHTTP/1.1 400 Bad Request\ncontent-type: application/json; charset=utf-8\nx-arango-async-id: 627354030\n\n{ \n  \"error\" : true, \n  \"code\" : 400, \n  \"errorNum\" : 400, \n  \"errorMessage\" : \"expected PUT /_api/collection/<collection-name>/<action>\" \n}\n

\n\n", + "description": "\n\nReturns the result of an async job identified by job-id. If the async job \nresult is present on the server, the result will be removed from the list of\nresult. That means this method can be called for each job-id once.\nThe method will return the original job result's headers and body, plus the \nadditional HTTP header x-arango-async-job-id. If this header is present, then \nthe job was found and the response contains the original job's result. If \nthe header is not present, the job was not found and the response contains \nstatus information from the job manager.\n\n\n
Example: Not providing a job-id:

shell> curl -X PUT --dump - http://localhost:8529/_api/job\n\nHTTP/1.1 400 Bad Request\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"bad parameter\", \n  \"code\" : 400, \n  \"errorNum\" : 400 \n}\n

\n
Example: Providing a job-id for a non-existing job:

shell> curl -X PUT --dump - http://localhost:8529/_api/job/notthere\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"not found\", \n  \"code\" : 404, \n  \"errorNum\" : 404 \n}\n

\n
Example: Fetching the result of an HTTP GET job:

shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:8529/_api/version\n\nHTTP/1.1 202 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 624211505\n\nshell> curl -X PUT --dump - http://localhost:8529/_api/job/624211505\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\nx-arango-async-id: 624211505\n\n{ \n  \"server\" : \"arango\", \n  \"version\" : \"2.8.5\" \n}\n

\n
Example: Fetching the result of an HTTP POST job that failed:

shell> curl -X PUT --header 'x-arango-async: store' --data-binary @- --dump - http://localhost:8529/_api/collection <<EOF\n{ \n  \"name\" : \" this name is invalid \" \n}\nEOF\n\nHTTP/1.1 202 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 624277041\n\nshell> curl -X PUT --dump - http://localhost:8529/_api/job/624277041\n\nHTTP/1.1 400 Bad Request\ncontent-type: application/json; charset=utf-8\nx-arango-async-id: 624277041\n\n{ \n  \"error\" : true, \n  \"code\" : 400, \n  \"errorNum\" : 400, \n  \"errorMessage\" : \"expected PUT /_api/collection/<collection-name>/<action>\" \n}\n

\n\n", "parameters": [ { "description": "The async job id.\n\n", @@ -5692,7 +5692,7 @@ }, "/_api/job/{job-id}/cancel": { "put": { - "description": "\n\nCancels the currently running job identified by job-id. Note that it still \nmight take some time to actually cancel the running async job.\n\n\n
Example:

shell> curl -X POST --header 'x-arango-async: store' --data-binary @- --dump - http://localhost:8529/_api/cursor <<EOF\n{ \n  \"query\" : \"FOR i IN 1..10 FOR j IN 1..10 LET x = sleep(1.0) FILTER i == 5 && j == 5 RETURN 42\" \n}\nEOF\n\nHTTP/1.1 202 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 626960814\n\nshell> curl --dump - http://localhost:8529/_api/job/pending\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n[ \n  \"626960814\" \n]\nshell> curl -X PUT --dump - http://localhost:8529/_api/job/626960814/cancel\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : true \n}\nshell> curl --dump - http://localhost:8529/_api/job/pending\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n[ \n  \"626960814\" \n]\n

\n\n", + "description": "\n\nCancels the currently running job identified by job-id. Note that it still \nmight take some time to actually cancel the running async job.\n\n\n
Example:

shell> curl -X POST --header 'x-arango-async: store' --data-binary @- --dump - http://localhost:8529/_api/cursor <<EOF\n{ \n  \"query\" : \"FOR i IN 1..10 FOR j IN 1..10 LET x = sleep(1.0) FILTER i == 5 && j == 5 RETURN 42\" \n}\nEOF\n\nHTTP/1.1 202 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 623883825\n\nshell> curl --dump - http://localhost:8529/_api/job/pending\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n[ \n  \"623883825\" \n]\nshell> curl -X PUT --dump - http://localhost:8529/_api/job/623883825/cancel\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : true \n}\nshell> curl --dump - http://localhost:8529/_api/job/pending\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n[ \n  \"623883825\" \n]\n

\n\n", "parameters": [ { "description": "The async job id.\n\n", @@ -5724,7 +5724,7 @@ }, "/_api/job/{type}": { "delete": { - "description": "\n\nDeletes either all job results, expired job results, or the result of a specific job. \nClients can use this method to perform an eventual garbage collection of job results.\n\n\n
Example: Deleting all jobs:

shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:8529/_api/version\n\nHTTP/1.1 202 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 627091886\n\nshell> curl -X DELETE --dump - http://localhost:8529/_api/job/all\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : true \n}\n

\n
Example: Deleting expired jobs:

shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:8529/_api/version\n\nHTTP/1.1 202 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 627157422\n\nshell> curl --dump - http://localhost:8529/_admin/time\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"time\" : 1456862635.666542, \n  \"error\" : false, \n  \"code\" : 200 \n}\nshell> curl -X DELETE --dump - http://localhost:8529/_api/job/expired?stamp=1456862635.666542\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : true \n}\nshell> curl --dump - http://localhost:8529/_api/job/pending\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n[ ]\n

\n
Example: Deleting the result of a specific job:

shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:8529/_api/version\n\nHTTP/1.1 202 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 627222958\n\nshell> curl -X DELETE --dump - http://localhost:8529/_api/job/627222958\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : true \n}\n

\n
Example: Deleting the result of a non-existing job:

shell> curl -X DELETE --dump - http://localhost:8529/_api/job/AreYouThere\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"not found\", \n  \"code\" : 404, \n  \"errorNum\" : 404 \n}\n

\n\n", + "description": "\n\nDeletes either all job results, expired job results, or the result of a specific job. \nClients can use this method to perform an eventual garbage collection of job results.\n\n\n
Example: Deleting all jobs:

shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:8529/_api/version\n\nHTTP/1.1 202 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 624014897\n\nshell> curl -X DELETE --dump - http://localhost:8529/_api/job/all\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : true \n}\n

\n
Example: Deleting expired jobs:

shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:8529/_api/version\n\nHTTP/1.1 202 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 624080433\n\nshell> curl --dump - http://localhost:8529/_admin/time\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"time\" : 1457638698.948053, \n  \"error\" : false, \n  \"code\" : 200 \n}\nshell> curl -X DELETE --dump - http://localhost:8529/_api/job/expired?stamp=1457638698.948053\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : true \n}\nshell> curl --dump - http://localhost:8529/_api/job/pending\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n[ ]\n

\n
Example: Deleting the result of a specific job:

shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:8529/_api/version\n\nHTTP/1.1 202 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 624145969\n\nshell> curl -X DELETE --dump - http://localhost:8529/_api/job/624145969\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : true \n}\n

\n
Example: Deleting the result of a non-existing job:

shell> curl -X DELETE --dump - http://localhost:8529/_api/job/AreYouThere\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"not found\", \n  \"code\" : 404, \n  \"errorNum\" : 404 \n}\n

\n\n", "parameters": [ { "description": "The type of jobs to delete. type can be:\n* *all*: Deletes all jobs results. Currently executing or queued async \n jobs will not be stopped by this call.\n* *expired*: Deletes expired results. To determine the expiration status of a \n result, pass the stamp query parameter. stamp needs to be a UNIX timestamp, \n and all async job results created at a lower timestamp will be deleted.\n* *an actual job-id*: In this case, the call will remove the result of the \n specified async job. If the job is currently executing or queued, it will not be aborted.\n\n", @@ -5754,7 +5754,7 @@ "x-filename": "job - arangod/HttpServer/AsyncJobManager.cpp, arangod/RestHandler/RestJobHandler.cpp" }, "get": { - "description": "\n\nReturns the list of ids of async jobs with a specific status (either done or pending). \nThe list can be used by the client to get an overview of the job system status and \nto retrieve completed job results later.\n\n\n
Example: Fetching the list of done jobs:

shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:8529/_api/version\n\nHTTP/1.1 202 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 627419566\n\nshell> curl --dump - http://localhost:8529/_api/job/done\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n[ \n  \"627419566\" \n]\n

\n
Example: Fetching the list of pending jobs:

shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:8529/_api/version\n\nHTTP/1.1 202 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 627485102\n\nshell> curl --dump - http://localhost:8529/_api/job/pending\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n[ ]\n

\n
Example: Querying the status of a pending job:\n(we create a sleep job therefore...)

shell> curl --header 'x-arango-async: store' --dump - http://localhost:8529/_admin/sleep?duration=30\n\nHTTP/1.1 202 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 627550638\n\nshell> curl --dump - http://localhost:8529/_api/job/pending\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n[ \n  \"627550638\" \n]\nshell> curl -X DELETE --dump - http://localhost:8529/_api/job/627550638\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : true \n}\n

\n\n", + "description": "\n\nReturns the list of ids of async jobs with a specific status (either done or pending). \nThe list can be used by the client to get an overview of the job system status and \nto retrieve completed job results later.\n\n\n
Example: Fetching the list of done jobs:

shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:8529/_api/version\n\nHTTP/1.1 202 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 624342577\n\nshell> curl --dump - http://localhost:8529/_api/job/done\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n[ \n  \"624342577\" \n]\n

\n
Example: Fetching the list of pending jobs:

shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:8529/_api/version\n\nHTTP/1.1 202 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 624408113\n\nshell> curl --dump - http://localhost:8529/_api/job/pending\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n[ ]\n

\n
Example: Querying the status of a pending job:\n(we create a sleep job therefore...)

shell> curl --header 'x-arango-async: store' --dump - http://localhost:8529/_admin/sleep?duration=30\n\nHTTP/1.1 202 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 624473649\n\nshell> curl --dump - http://localhost:8529/_api/job/pending\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n[ \n  \"624473649\" \n]\nshell> curl -X DELETE --dump - http://localhost:8529/_api/job/624473649\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : true \n}\n

\n\n", "parameters": [ { "description": "The type of jobs to return. The type can be either done or pending. Setting \nthe type to done will make the method return the ids of already completed async \njobs for which results can be fetched. Setting the type to pending will return \nthe ids of not yet finished async jobs.\n\n", @@ -6076,7 +6076,7 @@ }, "/_api/replication/applier-start": { "put": { - "description": "\n\nStarts the replication applier. This will return immediately if the\nreplication applier is already running.\n\nIf the replication applier is not already running, the applier configuration\nwill be checked, and if it is complete, the applier will be started in a\nbackground thread. This means that even if the applier will encounter any\nerrors while running, they will not be reported in the response to this\nmethod.\n\nTo detect replication applier errors after the applier was started, use the\n*/_api/replication/applier-state* API instead.\n\n\n
Example:

shell> curl -X PUT --dump - http://localhost:8529/_api/replication/applier-start\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"state\" : { \n    \"running\" : true, \n    \"lastAppliedContinuousTick\" : null, \n    \"lastProcessedContinuousTick\" : null, \n    \"lastAvailableContinuousTick\" : null, \n    \"safeResumeTick\" : null, \n    \"progress\" : { \n      \"time\" : \"2016-03-01T20:03:46Z\", \n      \"message\" : \"applier initially created\", \n      \"failedConnects\" : 0 \n    }, \n    \"totalRequests\" : 0, \n    \"totalFailedConnects\" : 0, \n    \"totalEvents\" : 0, \n    \"totalOperationsExcluded\" : 0, \n    \"lastError\" : { \n      \"errorNum\" : 0 \n    }, \n    \"time\" : \"2016-03-01T20:04:03Z\" \n  }, \n  \"server\" : { \n    \"version\" : \"2.8.4\", \n    \"serverId\" : \"171376674975149\" \n  }, \n  \"endpoint\" : \"tcp://127.0.0.1:8529\", \n  \"database\" : \"_system\" \n}\n

\n\n", + "description": "\n\nStarts the replication applier. This will return immediately if the\nreplication applier is already running.\n\nIf the replication applier is not already running, the applier configuration\nwill be checked, and if it is complete, the applier will be started in a\nbackground thread. This means that even if the applier will encounter any\nerrors while running, they will not be reported in the response to this\nmethod.\n\nTo detect replication applier errors after the applier was started, use the\n*/_api/replication/applier-state* API instead.\n\n\n
Example:

shell> curl -X PUT --dump - http://localhost:8529/_api/replication/applier-start\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"state\" : { \n    \"running\" : true, \n    \"lastAppliedContinuousTick\" : null, \n    \"lastProcessedContinuousTick\" : null, \n    \"lastAvailableContinuousTick\" : null, \n    \"safeResumeTick\" : null, \n    \"progress\" : { \n      \"time\" : \"2016-03-10T19:38:11Z\", \n      \"message\" : \"applier initially created\", \n      \"failedConnects\" : 0 \n    }, \n    \"totalRequests\" : 0, \n    \"totalFailedConnects\" : 0, \n    \"totalEvents\" : 0, \n    \"totalOperationsExcluded\" : 0, \n    \"lastError\" : { \n      \"errorNum\" : 0 \n    }, \n    \"time\" : \"2016-03-10T19:38:26Z\" \n  }, \n  \"server\" : { \n    \"version\" : \"2.8.5\", \n    \"serverId\" : \"259546553666956\" \n  }, \n  \"endpoint\" : \"tcp://127.0.0.1:8529\", \n  \"database\" : \"_system\" \n}\n

\n\n", "parameters": [ { "description": "The remote *lastLogTick* value from which to start applying. If not specified,\nthe last saved tick from the previous applier run is used. If there is no\nprevious applier state saved, the applier will start at the beginning of the\nlogger server's log.\n\n", @@ -6110,7 +6110,7 @@ }, "/_api/replication/applier-state": { "get": { - "description": "\n\nReturns the state of the replication applier, regardless of whether the\napplier is currently running or not.\n\nThe response is a JSON object with the following attributes:\n\n- *state*: a JSON object with the following sub-attributes:\n\n - *running*: whether or not the applier is active and running\n\n - *lastAppliedContinuousTick*: the last tick value from the continuous\n replication log the applier has applied.\n\n - *lastProcessedContinuousTick*: the last tick value from the continuous\n replication log the applier has processed.\n\n Regularly, the last applied and last processed tick values should be\n identical. For transactional operations, the replication applier will first\n process incoming log events before applying them, so the processed tick\n value might be higher than the applied tick value. This will be the case\n until the applier encounters the *transaction commit* log event for the\n transaction.\n\n - *lastAvailableContinuousTick*: the last tick value the logger server can\n provide.\n\n - *time*: the time on the applier server.\n\n - *totalRequests*: the total number of requests the applier has made to the\n endpoint.\n\n - *totalFailedConnects*: the total number of failed connection attempts the\n applier has made.\n\n - *totalEvents*: the total number of log events the applier has processed.\n\n - *totalOperationsExcluded*: the total number of log events excluded because\n of *restrictCollections*.\n\n - *progress*: a JSON object with details about the replication applier progress.\n It contains the following sub-attributes if there is progress to report:\n\n - *message*: a textual description of the progress\n\n - *time*: the date and time the progress was logged\n\n - *failedConnects*: the current number of failed connection attempts\n\n - *lastError*: a JSON object with details about the last error that happened on\n the applier. It contains the following sub-attributes if there was an error:\n\n - *errorNum*: a numerical error code\n\n - *errorMessage*: a textual error description\n\n - *time*: the date and time the error occurred\n\n In case no error has occurred, *lastError* will be empty.\n\n- *server*: a JSON object with the following sub-attributes:\n\n - *version*: the applier server's version\n\n - *serverId*: the applier server's id\n\n- *endpoint*: the endpoint the applier is connected to (if applier is\n active) or will connect to (if applier is currently inactive)\n\n- *database*: the name of the database the applier is connected to (if applier is\n active) or will connect to (if applier is currently inactive)\n\n\n
Example: Fetching the state of an inactive applier:

shell> curl --dump - http://localhost:8529/_api/replication/applier-state\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"state\" : { \n    \"running\" : false, \n    \"lastAppliedContinuousTick\" : null, \n    \"lastProcessedContinuousTick\" : null, \n    \"lastAvailableContinuousTick\" : null, \n    \"safeResumeTick\" : null, \n    \"progress\" : { \n      \"time\" : \"2016-03-01T20:04:03Z\", \n      \"message\" : \"applier shut down\", \n      \"failedConnects\" : 1 \n    }, \n    \"totalRequests\" : 1, \n    \"totalFailedConnects\" : 1, \n    \"totalEvents\" : 0, \n    \"totalOperationsExcluded\" : 0, \n    \"lastError\" : { \n      \"time\" : \"2016-03-01T20:04:04Z\", \n      \"errorMessage\" : \"could not connect to master at tcp://127.0.0.1:8529: Could not connect to 'tcp://127.0.0.1:8529' 'connect() failed with #61 - Connection refused'\", \n      \"errorNum\" : 1412 \n    }, \n    \"time\" : \"2016-03-01T20:04:04Z\" \n  }, \n  \"server\" : { \n    \"version\" : \"2.8.4\", \n    \"serverId\" : \"171376674975149\" \n  }, \n  \"endpoint\" : \"tcp://127.0.0.1:8529\", \n  \"database\" : \"_system\" \n}\n

\n
Example: Fetching the state of an active applier:

shell> curl --dump - http://localhost:8529/_api/replication/applier-state\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"state\" : { \n    \"running\" : true, \n    \"lastAppliedContinuousTick\" : null, \n    \"lastProcessedContinuousTick\" : null, \n    \"lastAvailableContinuousTick\" : null, \n    \"safeResumeTick\" : null, \n    \"progress\" : { \n      \"time\" : \"2016-03-01T20:04:03Z\", \n      \"message\" : \"applier shut down\", \n      \"failedConnects\" : 1 \n    }, \n    \"totalRequests\" : 1, \n    \"totalFailedConnects\" : 1, \n    \"totalEvents\" : 0, \n    \"totalOperationsExcluded\" : 0, \n    \"lastError\" : { \n      \"errorNum\" : 0 \n    }, \n    \"time\" : \"2016-03-01T20:04:04Z\" \n  }, \n  \"server\" : { \n    \"version\" : \"2.8.4\", \n    \"serverId\" : \"171376674975149\" \n  }, \n  \"endpoint\" : \"tcp://127.0.0.1:8529\", \n  \"database\" : \"_system\" \n}\n

\n\n", + "description": "\n\nReturns the state of the replication applier, regardless of whether the\napplier is currently running or not.\n\nThe response is a JSON object with the following attributes:\n\n- *state*: a JSON object with the following sub-attributes:\n\n - *running*: whether or not the applier is active and running\n\n - *lastAppliedContinuousTick*: the last tick value from the continuous\n replication log the applier has applied.\n\n - *lastProcessedContinuousTick*: the last tick value from the continuous\n replication log the applier has processed.\n\n Regularly, the last applied and last processed tick values should be\n identical. For transactional operations, the replication applier will first\n process incoming log events before applying them, so the processed tick\n value might be higher than the applied tick value. This will be the case\n until the applier encounters the *transaction commit* log event for the\n transaction.\n\n - *lastAvailableContinuousTick*: the last tick value the logger server can\n provide.\n\n - *time*: the time on the applier server.\n\n - *totalRequests*: the total number of requests the applier has made to the\n endpoint.\n\n - *totalFailedConnects*: the total number of failed connection attempts the\n applier has made.\n\n - *totalEvents*: the total number of log events the applier has processed.\n\n - *totalOperationsExcluded*: the total number of log events excluded because\n of *restrictCollections*.\n\n - *progress*: a JSON object with details about the replication applier progress.\n It contains the following sub-attributes if there is progress to report:\n\n - *message*: a textual description of the progress\n\n - *time*: the date and time the progress was logged\n\n - *failedConnects*: the current number of failed connection attempts\n\n - *lastError*: a JSON object with details about the last error that happened on\n the applier. It contains the following sub-attributes if there was an error:\n\n - *errorNum*: a numerical error code\n\n - *errorMessage*: a textual error description\n\n - *time*: the date and time the error occurred\n\n In case no error has occurred, *lastError* will be empty.\n\n- *server*: a JSON object with the following sub-attributes:\n\n - *version*: the applier server's version\n\n - *serverId*: the applier server's id\n\n- *endpoint*: the endpoint the applier is connected to (if applier is\n active) or will connect to (if applier is currently inactive)\n\n- *database*: the name of the database the applier is connected to (if applier is\n active) or will connect to (if applier is currently inactive)\n\n\n
Example: Fetching the state of an inactive applier:

shell> curl --dump - http://localhost:8529/_api/replication/applier-state\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"state\" : { \n    \"running\" : false, \n    \"lastAppliedContinuousTick\" : null, \n    \"lastProcessedContinuousTick\" : null, \n    \"lastAvailableContinuousTick\" : null, \n    \"safeResumeTick\" : null, \n    \"progress\" : { \n      \"time\" : \"2016-03-10T19:38:26Z\", \n      \"message\" : \"applier shut down\", \n      \"failedConnects\" : 1 \n    }, \n    \"totalRequests\" : 1, \n    \"totalFailedConnects\" : 1, \n    \"totalEvents\" : 0, \n    \"totalOperationsExcluded\" : 0, \n    \"lastError\" : { \n      \"time\" : \"2016-03-10T19:38:27Z\", \n      \"errorMessage\" : \"could not connect to master at tcp://127.0.0.1:8529: Could not connect to 'tcp://127.0.0.1:8529' 'connect() failed with #61 - Connection refused'\", \n      \"errorNum\" : 1412 \n    }, \n    \"time\" : \"2016-03-10T19:38:27Z\" \n  }, \n  \"server\" : { \n    \"version\" : \"2.8.5\", \n    \"serverId\" : \"259546553666956\" \n  }, \n  \"endpoint\" : \"tcp://127.0.0.1:8529\", \n  \"database\" : \"_system\" \n}\n

\n
Example: Fetching the state of an active applier:

shell> curl --dump - http://localhost:8529/_api/replication/applier-state\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"state\" : { \n    \"running\" : true, \n    \"lastAppliedContinuousTick\" : null, \n    \"lastProcessedContinuousTick\" : null, \n    \"lastAvailableContinuousTick\" : null, \n    \"safeResumeTick\" : null, \n    \"progress\" : { \n      \"time\" : \"2016-03-10T19:38:26Z\", \n      \"message\" : \"applier shut down\", \n      \"failedConnects\" : 1 \n    }, \n    \"totalRequests\" : 1, \n    \"totalFailedConnects\" : 1, \n    \"totalEvents\" : 0, \n    \"totalOperationsExcluded\" : 0, \n    \"lastError\" : { \n      \"errorNum\" : 0 \n    }, \n    \"time\" : \"2016-03-10T19:38:27Z\" \n  }, \n  \"server\" : { \n    \"version\" : \"2.8.5\", \n    \"serverId\" : \"259546553666956\" \n  }, \n  \"endpoint\" : \"tcp://127.0.0.1:8529\", \n  \"database\" : \"_system\" \n}\n

\n\n", "parameters": [], "responses": { "200": { @@ -6133,7 +6133,7 @@ }, "/_api/replication/applier-stop": { "put": { - "description": "\n\nStops the replication applier. This will return immediately if the\nreplication applier is not running.\n\n\n
Example:

shell> curl -X PUT --dump - http://localhost:8529/_api/replication/applier-stop\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"state\" : { \n    \"running\" : false, \n    \"lastAppliedContinuousTick\" : null, \n    \"lastProcessedContinuousTick\" : null, \n    \"lastAvailableContinuousTick\" : null, \n    \"safeResumeTick\" : null, \n    \"progress\" : { \n      \"time\" : \"2016-03-01T20:04:04Z\", \n      \"message\" : \"fetching master state information\", \n      \"failedConnects\" : 1 \n    }, \n    \"totalRequests\" : 3, \n    \"totalFailedConnects\" : 3, \n    \"totalEvents\" : 0, \n    \"totalOperationsExcluded\" : 0, \n    \"lastError\" : { \n      \"time\" : \"2016-03-01T20:04:05Z\", \n      \"errorMessage\" : \"could not connect to master at tcp://127.0.0.1:8529: Could not connect to 'tcp://127.0.0.1:8529' 'connect() failed with #61 - Connection refused'\", \n      \"errorNum\" : 1412 \n    }, \n    \"time\" : \"2016-03-01T20:04:05Z\" \n  }, \n  \"server\" : { \n    \"version\" : \"2.8.4\", \n    \"serverId\" : \"171376674975149\" \n  }, \n  \"endpoint\" : \"tcp://127.0.0.1:8529\", \n  \"database\" : \"_system\" \n}\n

\n\n", + "description": "\n\nStops the replication applier. This will return immediately if the\nreplication applier is not running.\n\n\n
Example:

shell> curl -X PUT --dump - http://localhost:8529/_api/replication/applier-stop\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"state\" : { \n    \"running\" : false, \n    \"lastAppliedContinuousTick\" : null, \n    \"lastProcessedContinuousTick\" : null, \n    \"lastAvailableContinuousTick\" : null, \n    \"safeResumeTick\" : null, \n    \"progress\" : { \n      \"time\" : \"2016-03-10T19:38:27Z\", \n      \"message\" : \"applier shut down\", \n      \"failedConnects\" : 1 \n    }, \n    \"totalRequests\" : 3, \n    \"totalFailedConnects\" : 3, \n    \"totalEvents\" : 0, \n    \"totalOperationsExcluded\" : 0, \n    \"lastError\" : { \n      \"time\" : \"2016-03-10T19:38:28Z\", \n      \"errorMessage\" : \"could not connect to master at tcp://127.0.0.1:8529: Could not connect to 'tcp://127.0.0.1:8529' 'connect() failed with #61 - Connection refused'\", \n      \"errorNum\" : 1412 \n    }, \n    \"time\" : \"2016-03-10T19:38:28Z\" \n  }, \n  \"server\" : { \n    \"version\" : \"2.8.5\", \n    \"serverId\" : \"259546553666956\" \n  }, \n  \"endpoint\" : \"tcp://127.0.0.1:8529\", \n  \"database\" : \"_system\" \n}\n

\n\n", "parameters": [], "responses": { "200": { @@ -6291,7 +6291,7 @@ }, "/_api/replication/dump": { "get": { - "description": "\n\nReturns the data from the collection for the requested range.\n\nWhen the *from* query parameter is not used, collection events are returned from\nthe beginning. When the *from* parameter is used, the result will only contain\ncollection entries which have higher tick values than the specified *from* value\n(note: the log entry with a tick value equal to *from* will be excluded).\n\nThe *to* query parameter can be used to optionally restrict the upper bound of\nthe result to a certain tick value. If used, the result will only contain\ncollection entries with tick values up to (including) *to*.\n\nThe *chunkSize* query parameter can be used to control the size of the result.\nIt must be specified in bytes. The *chunkSize* value will only be honored\napproximately. Otherwise a too low *chunkSize* value could cause the server\nto not be able to put just one entry into the result and return it.\nTherefore, the *chunkSize* value will only be consulted after an entry has\nbeen written into the result. If the result size is then bigger than\n*chunkSize*, the server will respond with as many entries as there are\nin the response already. If the result size is still smaller than *chunkSize*,\nthe server will try to return more data if there's more data left to return.\n\nIf *chunkSize* is not specified, some server-side default value will be used.\n\nThe *Content-Type* of the result is *application/x-arango-dump*. This is an\neasy-to-process format, with all entries going onto separate lines in the\nresponse body.\n\nEach line itself is a JSON object, with at least the following attributes:\n\n- *tick*: the operation's tick attribute\n\n- *key*: the key of the document/edge or the key used in the deletion operation\n\n- *rev*: the revision id of the document/edge or the deletion operation\n\n- *data*: the actual document/edge data for types 2300 and 2301. The full\n document/edge data will be returned even for updates.\n\n- *type*: the type of entry. Possible values for *type* are:\n\n - 2300: document insertion/update\n\n - 2301: edge insertion/update\n\n - 2302: document/edge deletion\n\n**Note**: there will be no distinction between inserts and updates when calling this method.\n\n\n
Example: Empty collection:

shell> curl --dump - http://localhost:8529/_api/replication/dump?collection=testCollection\n\nHTTP/1.1 204 No Content\ncontent-type: application/x-arango-dump; charset=utf-8\nx-arango-replication-checkmore: false\nx-arango-replication-lastincluded: 0\n\n

\n
Example: Non-empty collection:

shell> curl --dump - http://localhost:8529/_api/replication/dump?collection=testCollection\n\nHTTP/1.1 200 OK\ncontent-type: application/x-arango-dump; charset=utf-8\nx-arango-replication-checkmore: false\nx-arango-replication-lastincluded: 789752238\n\n\"{\\\"tick\\\":\\\"789096878\\\",\\\"type\\\":2300,\\\"key\\\":\\\"123456\\\",\\\"rev\\\":\\\"789031342\\\",\\\"data\\\":{\\\"_key\\\":\\\"123456\\\",\\\"_rev\\\":\\\"789031342\\\",\\\"c\\\":false,\\\"b\\\":1,\\\"d\\\":\\\"additional value\\\"}}\\n{\\\"tick\\\":\\\"789555630\\\",\\\"type\\\":2302,\\\"key\\\":\\\"foobar\\\",\\\"rev\\\":\\\"789490094\\\"}\\n{\\\"tick\\\":\\\"789752238\\\",\\\"type\\\":2302,\\\"key\\\":\\\"abcdef\\\",\\\"rev\\\":\\\"789686702\\\"}\\n\"\n

\n\n", + "description": "\n\nReturns the data from the collection for the requested range.\n\nWhen the *from* query parameter is not used, collection events are returned from\nthe beginning. When the *from* parameter is used, the result will only contain\ncollection entries which have higher tick values than the specified *from* value\n(note: the log entry with a tick value equal to *from* will be excluded).\n\nThe *to* query parameter can be used to optionally restrict the upper bound of\nthe result to a certain tick value. If used, the result will only contain\ncollection entries with tick values up to (including) *to*.\n\nThe *chunkSize* query parameter can be used to control the size of the result.\nIt must be specified in bytes. The *chunkSize* value will only be honored\napproximately. Otherwise a too low *chunkSize* value could cause the server\nto not be able to put just one entry into the result and return it.\nTherefore, the *chunkSize* value will only be consulted after an entry has\nbeen written into the result. If the result size is then bigger than\n*chunkSize*, the server will respond with as many entries as there are\nin the response already. If the result size is still smaller than *chunkSize*,\nthe server will try to return more data if there's more data left to return.\n\nIf *chunkSize* is not specified, some server-side default value will be used.\n\nThe *Content-Type* of the result is *application/x-arango-dump*. This is an\neasy-to-process format, with all entries going onto separate lines in the\nresponse body.\n\nEach line itself is a JSON object, with at least the following attributes:\n\n- *tick*: the operation's tick attribute\n\n- *key*: the key of the document/edge or the key used in the deletion operation\n\n- *rev*: the revision id of the document/edge or the deletion operation\n\n- *data*: the actual document/edge data for types 2300 and 2301. The full\n document/edge data will be returned even for updates.\n\n- *type*: the type of entry. Possible values for *type* are:\n\n - 2300: document insertion/update\n\n - 2301: edge insertion/update\n\n - 2302: document/edge deletion\n\n**Note**: there will be no distinction between inserts and updates when calling this method.\n\n\n
Example: Empty collection:

shell> curl --dump - http://localhost:8529/_api/replication/dump?collection=testCollection\n\nHTTP/1.1 204 No Content\ncontent-type: application/x-arango-dump; charset=utf-8\nx-arango-replication-checkmore: false\nx-arango-replication-lastincluded: 0\n\n

\n
Example: Non-empty collection:

shell> curl --dump - http://localhost:8529/_api/replication/dump?collection=testCollection\n\nHTTP/1.1 200 OK\ncontent-type: application/x-arango-dump; charset=utf-8\nx-arango-replication-checkmore: false\nx-arango-replication-lastincluded: 786478641\n\n\"{\\\"tick\\\":\\\"785823281\\\",\\\"type\\\":2300,\\\"key\\\":\\\"123456\\\",\\\"rev\\\":\\\"785757745\\\",\\\"data\\\":{\\\"_key\\\":\\\"123456\\\",\\\"_rev\\\":\\\"785757745\\\",\\\"c\\\":false,\\\"b\\\":1,\\\"d\\\":\\\"additional value\\\"}}\\n{\\\"tick\\\":\\\"786282033\\\",\\\"type\\\":2302,\\\"key\\\":\\\"foobar\\\",\\\"rev\\\":\\\"786216497\\\"}\\n{\\\"tick\\\":\\\"786478641\\\",\\\"type\\\":2302,\\\"key\\\":\\\"abcdef\\\",\\\"rev\\\":\\\"786413105\\\"}\\n\"\n

\n\n", "parameters": [ { "description": "The name or id of the collection to dump.\n\n", @@ -6380,7 +6380,7 @@ }, "/_api/replication/inventory": { "get": { - "description": "\n\nReturns the array of collections and indexes available on the server. This\narray can be used by replication clients to initiate an initial sync with the\nserver.\n\nThe response will contain a JSON object with the *collection* and *state* and\n*tick* attributes.\n\n*collections* is a array of collections with the following sub-attributes:\n\n- *parameters*: the collection properties\n\n- *indexes*: a array of the indexes of a the collection. Primary indexes and edges indexes\n are not included in this array.\n\nThe *state* attribute contains the current state of the replication logger. It\ncontains the following sub-attributes:\n\n- *running*: whether or not the replication logger is currently active. Note:\n since ArangoDB 2.2, the value will always be *true*\n\n- *lastLogTick*: the value of the last tick the replication logger has written\n\n- *time*: the current time on the server\n\nReplication clients should note the *lastLogTick* value returned. They can then\nfetch collections' data using the dump method up to the value of lastLogTick, and\nquery the continuous replication log for log events after this tick value.\n\nTo create a full copy of the collections on the server, a replication client\ncan execute these steps:\n\n- call the */inventory* API method. This returns the *lastLogTick* value and the\n array of collections and indexes from the server.\n\n- for each collection returned by */inventory*, create the collection locally and\n call */dump* to stream the collection data to the client, up to the value of\n *lastLogTick*.\n After that, the client can create the indexes on the collections as they were\n reported by */inventory*.\n\nIf the clients wants to continuously stream replication log events from the logger\nserver, the following additional steps need to be carried out:\n\n- the client should call */logger-follow* initially to fetch the first batch of\n replication events that were logged after the client's call to */inventory*.\n\n The call to */logger-follow* should use a *from* parameter with the value of the\n *lastLogTick* as reported by */inventory*. The call to */logger-follow* will return the\n *x-arango-replication-lastincluded* which will contain the last tick value included\n in the response.\n\n- the client can then continuously call */logger-follow* to incrementally fetch new\n replication events that occurred after the last transfer.\n\n Calls should use a *from* parameter with the value of the *x-arango-replication-lastincluded*\n header of the previous response. If there are no more replication events, the\n response will be empty and clients can go to sleep for a while and try again\n later.\n\n**Note**: on a coordinator, this request must have the query parameter\n*DBserver* which must be an ID of a DBserver.\nThe very same request is forwarded synchronously to that DBserver.\nIt is an error if this attribute is not bound in the coordinator case.\n\n\n
Example:

shell> curl --dump - http://localhost:8529/_api/replication/inventory\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"collections\" : [ \n    { \n      \"parameters\" : { \n        \"version\" : 5, \n        \"type\" : 2, \n        \"cid\" : \"3975598\", \n        \"indexBuckets\" : 8, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"maximalSize\" : 4194304, \n        \"name\" : \"_aqlfunctions\", \n        \"isVolatile\" : false, \n        \"waitForSync\" : false \n      }, \n      \"indexes\" : [ ] \n    }, \n    { \n      \"parameters\" : { \n        \"version\" : 5, \n        \"type\" : 2, \n        \"cid\" : \"2075054\", \n        \"indexBuckets\" : 8, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"maximalSize\" : 1048576, \n        \"name\" : \"_graphs\", \n        \"isVolatile\" : false, \n        \"waitForSync\" : false \n      }, \n      \"indexes\" : [ ] \n    }, \n    { \n      \"parameters\" : { \n        \"version\" : 5, \n        \"type\" : 2, \n        \"cid\" : \"2206126\", \n        \"indexBuckets\" : 8, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"maximalSize\" : 1048576, \n        \"name\" : \"_modules\", \n        \"isVolatile\" : false, \n        \"waitForSync\" : false \n      }, \n      \"indexes\" : [ ] \n    }, \n    { \n      \"parameters\" : { \n        \"version\" : 5, \n        \"type\" : 2, \n        \"cid\" : \"2337198\", \n        \"indexBuckets\" : 8, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"maximalSize\" : 33554432, \n        \"name\" : \"_routing\", \n        \"isVolatile\" : false, \n        \"waitForSync\" : false \n      }, \n      \"indexes\" : [ ] \n    }, \n    { \n      \"parameters\" : { \n        \"version\" : 5, \n        \"type\" : 2, \n        \"cid\" : \"14133678\", \n        \"indexBuckets\" : 8, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"maximalSize\" : 1048576, \n        \"name\" : \"_system_users_users\", \n        \"isVolatile\" : false, \n        \"waitForSync\" : false \n      }, \n      \"indexes\" : [ ] \n    }, \n    { \n      \"parameters\" : { \n        \"version\" : 5, \n        \"type\" : 2, \n        \"cid\" : \"240046\", \n        \"indexBuckets\" : 8, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"maximalSize\" : 4194304, \n        \"name\" : \"_users\", \n        \"isVolatile\" : false, \n        \"waitForSync\" : false \n      }, \n      \"indexes\" : [ \n        { \n          \"id\" : \"567726\", \n          \"type\" : \"hash\", \n          \"fields\" : [ \n            \"user\" \n          ], \n          \"selectivityEstimate\" : 1, \n          \"unique\" : true, \n          \"sparse\" : true \n        } \n      ] \n    }, \n    { \n      \"parameters\" : { \n        \"version\" : 5, \n        \"type\" : 2, \n        \"cid\" : \"21277102\", \n        \"indexBuckets\" : 8, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"maximalSize\" : 1048576, \n        \"name\" : \"animals\", \n        \"isVolatile\" : false, \n        \"waitForSync\" : false \n      }, \n      \"indexes\" : [ ] \n    }, \n    { \n      \"parameters\" : { \n        \"version\" : 5, \n        \"type\" : 2, \n        \"cid\" : \"20425134\", \n        \"indexBuckets\" : 8, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"maximalSize\" : 1048576, \n        \"name\" : \"demo\", \n        \"isVolatile\" : false, \n        \"waitForSync\" : false \n      }, \n      \"indexes\" : [ ] \n    } \n  ], \n  \"state\" : { \n    \"running\" : true, \n    \"lastLogTick\" : \"790342062\", \n    \"totalEvents\" : 4923, \n    \"time\" : \"2016-03-01T20:04:06Z\" \n  }, \n  \"tick\" : \"790407598\" \n}\n

\n
Example: With some additional indexes:

shell> curl --dump - http://localhost:8529/_api/replication/inventory\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"collections\" : [ \n    { \n      \"parameters\" : { \n        \"version\" : 5, \n        \"type\" : 2, \n        \"cid\" : \"3975598\", \n        \"indexBuckets\" : 8, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"maximalSize\" : 4194304, \n        \"name\" : \"_aqlfunctions\", \n        \"isVolatile\" : false, \n        \"waitForSync\" : false \n      }, \n      \"indexes\" : [ ] \n    }, \n    { \n      \"parameters\" : { \n        \"version\" : 5, \n        \"type\" : 2, \n        \"cid\" : \"2075054\", \n        \"indexBuckets\" : 8, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"maximalSize\" : 1048576, \n        \"name\" : \"_graphs\", \n        \"isVolatile\" : false, \n        \"waitForSync\" : false \n      }, \n      \"indexes\" : [ ] \n    }, \n    { \n      \"parameters\" : { \n        \"version\" : 5, \n        \"type\" : 2, \n        \"cid\" : \"2206126\", \n        \"indexBuckets\" : 8, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"maximalSize\" : 1048576, \n        \"name\" : \"_modules\", \n        \"isVolatile\" : false, \n        \"waitForSync\" : false \n      }, \n      \"indexes\" : [ ] \n    }, \n    { \n      \"parameters\" : { \n        \"version\" : 5, \n        \"type\" : 2, \n        \"cid\" : \"2337198\", \n        \"indexBuckets\" : 8, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"maximalSize\" : 33554432, \n        \"name\" : \"_routing\", \n        \"isVolatile\" : false, \n        \"waitForSync\" : false \n      }, \n      \"indexes\" : [ ] \n    }, \n    { \n      \"parameters\" : { \n        \"version\" : 5, \n        \"type\" : 2, \n        \"cid\" : \"14133678\", \n        \"indexBuckets\" : 8, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"maximalSize\" : 1048576, \n        \"name\" : \"_system_users_users\", \n        \"isVolatile\" : false, \n        \"waitForSync\" : false \n      }, \n      \"indexes\" : [ ] \n    }, \n    { \n      \"parameters\" : { \n        \"version\" : 5, \n        \"type\" : 2, \n        \"cid\" : \"240046\", \n        \"indexBuckets\" : 8, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"maximalSize\" : 4194304, \n        \"name\" : \"_users\", \n        \"isVolatile\" : false, \n        \"waitForSync\" : false \n      }, \n      \"indexes\" : [ \n        { \n          \"id\" : \"567726\", \n          \"type\" : \"hash\", \n          \"fields\" : [ \n            \"user\" \n          ], \n          \"selectivityEstimate\" : 1, \n          \"unique\" : true, \n          \"sparse\" : true \n        } \n      ] \n    }, \n    { \n      \"parameters\" : { \n        \"version\" : 5, \n        \"type\" : 2, \n        \"cid\" : \"21277102\", \n        \"indexBuckets\" : 8, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"maximalSize\" : 1048576, \n        \"name\" : \"animals\", \n        \"isVolatile\" : false, \n        \"waitForSync\" : false \n      }, \n      \"indexes\" : [ ] \n    }, \n    { \n      \"parameters\" : { \n        \"version\" : 5, \n        \"type\" : 2, \n        \"cid\" : \"20425134\", \n        \"indexBuckets\" : 8, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"maximalSize\" : 1048576, \n        \"name\" : \"demo\", \n        \"isVolatile\" : false, \n        \"waitForSync\" : false \n      }, \n      \"indexes\" : [ ] \n    }, \n    { \n      \"parameters\" : { \n        \"version\" : 5, \n        \"type\" : 2, \n        \"cid\" : \"790473134\", \n        \"indexBuckets\" : 8, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"maximalSize\" : 1048576, \n        \"name\" : \"IndexedCollection1\", \n        \"isVolatile\" : false, \n        \"waitForSync\" : false \n      }, \n      \"indexes\" : [ \n        { \n          \"id\" : \"790735278\", \n          \"type\" : \"hash\", \n          \"fields\" : [ \n            \"name\" \n          ], \n          \"selectivityEstimate\" : 1, \n          \"unique\" : false, \n          \"sparse\" : false \n        }, \n        { \n          \"id\" : \"791062958\", \n          \"type\" : \"skiplist\", \n          \"fields\" : [ \n            \"a\", \n            \"b\" \n          ], \n          \"unique\" : true, \n          \"sparse\" : false \n        }, \n        { \n          \"id\" : \"791259566\", \n          \"type\" : \"cap\", \n          \"size\" : 500, \n          \"byteSize\" : 0, \n          \"unique\" : false \n        } \n      ] \n    }, \n    { \n      \"parameters\" : { \n        \"version\" : 5, \n        \"type\" : 2, \n        \"cid\" : \"791456174\", \n        \"indexBuckets\" : 8, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"maximalSize\" : 1048576, \n        \"name\" : \"IndexedCollection2\", \n        \"isVolatile\" : false, \n        \"waitForSync\" : false \n      }, \n      \"indexes\" : [ \n        { \n          \"id\" : \"791652782\", \n          \"type\" : \"fulltext\", \n          \"fields\" : [ \n            \"text\" \n          ], \n          \"unique\" : false, \n          \"sparse\" : true, \n          \"minLength\" : 10 \n        }, \n        { \n          \"id\" : \"791980462\", \n          \"type\" : \"skiplist\", \n          \"fields\" : [ \n            \"a\" \n          ], \n          \"unique\" : false, \n          \"sparse\" : false \n        }, \n        { \n          \"id\" : \"792177070\", \n          \"type\" : \"cap\", \n          \"size\" : 0, \n          \"byteSize\" : 1048576, \n          \"unique\" : false \n        } \n      ] \n    } \n  ], \n  \"state\" : { \n    \"running\" : true, \n    \"lastLogTick\" : \"790407598\", \n    \"totalEvents\" : 4936, \n    \"time\" : \"2016-03-01T20:04:06Z\" \n  }, \n  \"tick\" : \"792308142\" \n}\n

\n\n", + "description": "\n\nReturns the array of collections and indexes available on the server. This\narray can be used by replication clients to initiate an initial sync with the\nserver.\n\nThe response will contain a JSON object with the *collection* and *state* and\n*tick* attributes.\n\n*collections* is a array of collections with the following sub-attributes:\n\n- *parameters*: the collection properties\n\n- *indexes*: a array of the indexes of a the collection. Primary indexes and edges indexes\n are not included in this array.\n\nThe *state* attribute contains the current state of the replication logger. It\ncontains the following sub-attributes:\n\n- *running*: whether or not the replication logger is currently active. Note:\n since ArangoDB 2.2, the value will always be *true*\n\n- *lastLogTick*: the value of the last tick the replication logger has written\n\n- *time*: the current time on the server\n\nReplication clients should note the *lastLogTick* value returned. They can then\nfetch collections' data using the dump method up to the value of lastLogTick, and\nquery the continuous replication log for log events after this tick value.\n\nTo create a full copy of the collections on the server, a replication client\ncan execute these steps:\n\n- call the */inventory* API method. This returns the *lastLogTick* value and the\n array of collections and indexes from the server.\n\n- for each collection returned by */inventory*, create the collection locally and\n call */dump* to stream the collection data to the client, up to the value of\n *lastLogTick*.\n After that, the client can create the indexes on the collections as they were\n reported by */inventory*.\n\nIf the clients wants to continuously stream replication log events from the logger\nserver, the following additional steps need to be carried out:\n\n- the client should call */logger-follow* initially to fetch the first batch of\n replication events that were logged after the client's call to */inventory*.\n\n The call to */logger-follow* should use a *from* parameter with the value of the\n *lastLogTick* as reported by */inventory*. The call to */logger-follow* will return the\n *x-arango-replication-lastincluded* which will contain the last tick value included\n in the response.\n\n- the client can then continuously call */logger-follow* to incrementally fetch new\n replication events that occurred after the last transfer.\n\n Calls should use a *from* parameter with the value of the *x-arango-replication-lastincluded*\n header of the previous response. If there are no more replication events, the\n response will be empty and clients can go to sleep for a while and try again\n later.\n\n**Note**: on a coordinator, this request must have the query parameter\n*DBserver* which must be an ID of a DBserver.\nThe very same request is forwarded synchronously to that DBserver.\nIt is an error if this attribute is not bound in the coordinator case.\n\n\n
Example:

shell> curl --dump - http://localhost:8529/_api/replication/inventory\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"collections\" : [ \n    { \n      \"parameters\" : { \n        \"version\" : 5, \n        \"type\" : 2, \n        \"cid\" : \"3978801\", \n        \"indexBuckets\" : 8, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"maximalSize\" : 4194304, \n        \"name\" : \"_aqlfunctions\", \n        \"isVolatile\" : false, \n        \"waitForSync\" : false \n      }, \n      \"indexes\" : [ ] \n    }, \n    { \n      \"parameters\" : { \n        \"version\" : 5, \n        \"type\" : 2, \n        \"cid\" : \"2078257\", \n        \"indexBuckets\" : 8, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"maximalSize\" : 1048576, \n        \"name\" : \"_graphs\", \n        \"isVolatile\" : false, \n        \"waitForSync\" : false \n      }, \n      \"indexes\" : [ ] \n    }, \n    { \n      \"parameters\" : { \n        \"version\" : 5, \n        \"type\" : 2, \n        \"cid\" : \"2209329\", \n        \"indexBuckets\" : 8, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"maximalSize\" : 1048576, \n        \"name\" : \"_modules\", \n        \"isVolatile\" : false, \n        \"waitForSync\" : false \n      }, \n      \"indexes\" : [ ] \n    }, \n    { \n      \"parameters\" : { \n        \"version\" : 5, \n        \"type\" : 2, \n        \"cid\" : \"2340401\", \n        \"indexBuckets\" : 8, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"maximalSize\" : 33554432, \n        \"name\" : \"_routing\", \n        \"isVolatile\" : false, \n        \"waitForSync\" : false \n      }, \n      \"indexes\" : [ ] \n    }, \n    { \n      \"parameters\" : { \n        \"version\" : 5, \n        \"type\" : 2, \n        \"cid\" : \"14136881\", \n        \"indexBuckets\" : 8, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"maximalSize\" : 1048576, \n        \"name\" : \"_system_users_users\", \n        \"isVolatile\" : false, \n        \"waitForSync\" : false \n      }, \n      \"indexes\" : [ ] \n    }, \n    { \n      \"parameters\" : { \n        \"version\" : 5, \n        \"type\" : 2, \n        \"cid\" : \"243249\", \n        \"indexBuckets\" : 8, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"maximalSize\" : 4194304, \n        \"name\" : \"_users\", \n        \"isVolatile\" : false, \n        \"waitForSync\" : false \n      }, \n      \"indexes\" : [ \n        { \n          \"id\" : \"570929\", \n          \"type\" : \"hash\", \n          \"fields\" : [ \n            \"user\" \n          ], \n          \"selectivityEstimate\" : 1, \n          \"unique\" : true, \n          \"sparse\" : true \n        } \n      ] \n    }, \n    { \n      \"parameters\" : { \n        \"version\" : 5, \n        \"type\" : 2, \n        \"cid\" : \"18069041\", \n        \"indexBuckets\" : 8, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"maximalSize\" : 1048576, \n        \"name\" : \"animals\", \n        \"isVolatile\" : false, \n        \"waitForSync\" : false \n      }, \n      \"indexes\" : [ ] \n    }, \n    { \n      \"parameters\" : { \n        \"version\" : 5, \n        \"type\" : 2, \n        \"cid\" : \"17217073\", \n        \"indexBuckets\" : 8, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"maximalSize\" : 1048576, \n        \"name\" : \"demo\", \n        \"isVolatile\" : false, \n        \"waitForSync\" : false \n      }, \n      \"indexes\" : [ ] \n    } \n  ], \n  \"state\" : { \n    \"running\" : true, \n    \"lastLogTick\" : \"787068465\", \n    \"totalEvents\" : 4879, \n    \"time\" : \"2016-03-10T19:38:29Z\" \n  }, \n  \"tick\" : \"787134001\" \n}\n

\n
Example: With some additional indexes:

shell> curl --dump - http://localhost:8529/_api/replication/inventory\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"collections\" : [ \n    { \n      \"parameters\" : { \n        \"version\" : 5, \n        \"type\" : 2, \n        \"cid\" : \"3978801\", \n        \"indexBuckets\" : 8, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"maximalSize\" : 4194304, \n        \"name\" : \"_aqlfunctions\", \n        \"isVolatile\" : false, \n        \"waitForSync\" : false \n      }, \n      \"indexes\" : [ ] \n    }, \n    { \n      \"parameters\" : { \n        \"version\" : 5, \n        \"type\" : 2, \n        \"cid\" : \"2078257\", \n        \"indexBuckets\" : 8, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"maximalSize\" : 1048576, \n        \"name\" : \"_graphs\", \n        \"isVolatile\" : false, \n        \"waitForSync\" : false \n      }, \n      \"indexes\" : [ ] \n    }, \n    { \n      \"parameters\" : { \n        \"version\" : 5, \n        \"type\" : 2, \n        \"cid\" : \"2209329\", \n        \"indexBuckets\" : 8, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"maximalSize\" : 1048576, \n        \"name\" : \"_modules\", \n        \"isVolatile\" : false, \n        \"waitForSync\" : false \n      }, \n      \"indexes\" : [ ] \n    }, \n    { \n      \"parameters\" : { \n        \"version\" : 5, \n        \"type\" : 2, \n        \"cid\" : \"2340401\", \n        \"indexBuckets\" : 8, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"maximalSize\" : 33554432, \n        \"name\" : \"_routing\", \n        \"isVolatile\" : false, \n        \"waitForSync\" : false \n      }, \n      \"indexes\" : [ ] \n    }, \n    { \n      \"parameters\" : { \n        \"version\" : 5, \n        \"type\" : 2, \n        \"cid\" : \"14136881\", \n        \"indexBuckets\" : 8, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"maximalSize\" : 1048576, \n        \"name\" : \"_system_users_users\", \n        \"isVolatile\" : false, \n        \"waitForSync\" : false \n      }, \n      \"indexes\" : [ ] \n    }, \n    { \n      \"parameters\" : { \n        \"version\" : 5, \n        \"type\" : 2, \n        \"cid\" : \"243249\", \n        \"indexBuckets\" : 8, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"maximalSize\" : 4194304, \n        \"name\" : \"_users\", \n        \"isVolatile\" : false, \n        \"waitForSync\" : false \n      }, \n      \"indexes\" : [ \n        { \n          \"id\" : \"570929\", \n          \"type\" : \"hash\", \n          \"fields\" : [ \n            \"user\" \n          ], \n          \"selectivityEstimate\" : 1, \n          \"unique\" : true, \n          \"sparse\" : true \n        } \n      ] \n    }, \n    { \n      \"parameters\" : { \n        \"version\" : 5, \n        \"type\" : 2, \n        \"cid\" : \"18069041\", \n        \"indexBuckets\" : 8, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"maximalSize\" : 1048576, \n        \"name\" : \"animals\", \n        \"isVolatile\" : false, \n        \"waitForSync\" : false \n      }, \n      \"indexes\" : [ ] \n    }, \n    { \n      \"parameters\" : { \n        \"version\" : 5, \n        \"type\" : 2, \n        \"cid\" : \"17217073\", \n        \"indexBuckets\" : 8, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"maximalSize\" : 1048576, \n        \"name\" : \"demo\", \n        \"isVolatile\" : false, \n        \"waitForSync\" : false \n      }, \n      \"indexes\" : [ ] \n    }, \n    { \n      \"parameters\" : { \n        \"version\" : 5, \n        \"type\" : 2, \n        \"cid\" : \"787199537\", \n        \"indexBuckets\" : 8, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"maximalSize\" : 1048576, \n        \"name\" : \"IndexedCollection1\", \n        \"isVolatile\" : false, \n        \"waitForSync\" : false \n      }, \n      \"indexes\" : [ \n        { \n          \"id\" : \"787461681\", \n          \"type\" : \"hash\", \n          \"fields\" : [ \n            \"name\" \n          ], \n          \"selectivityEstimate\" : 1, \n          \"unique\" : false, \n          \"sparse\" : false \n        }, \n        { \n          \"id\" : \"787789361\", \n          \"type\" : \"skiplist\", \n          \"fields\" : [ \n            \"a\", \n            \"b\" \n          ], \n          \"unique\" : true, \n          \"sparse\" : false \n        }, \n        { \n          \"id\" : \"787985969\", \n          \"type\" : \"cap\", \n          \"size\" : 500, \n          \"byteSize\" : 0, \n          \"unique\" : false \n        } \n      ] \n    }, \n    { \n      \"parameters\" : { \n        \"version\" : 5, \n        \"type\" : 2, \n        \"cid\" : \"788182577\", \n        \"indexBuckets\" : 8, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"maximalSize\" : 1048576, \n        \"name\" : \"IndexedCollection2\", \n        \"isVolatile\" : false, \n        \"waitForSync\" : false \n      }, \n      \"indexes\" : [ \n        { \n          \"id\" : \"788379185\", \n          \"type\" : \"fulltext\", \n          \"fields\" : [ \n            \"text\" \n          ], \n          \"unique\" : false, \n          \"sparse\" : true, \n          \"minLength\" : 10 \n        }, \n        { \n          \"id\" : \"788706865\", \n          \"type\" : \"skiplist\", \n          \"fields\" : [ \n            \"a\" \n          ], \n          \"unique\" : false, \n          \"sparse\" : false \n        }, \n        { \n          \"id\" : \"788903473\", \n          \"type\" : \"cap\", \n          \"size\" : 0, \n          \"byteSize\" : 1048576, \n          \"unique\" : false \n        } \n      ] \n    } \n  ], \n  \"state\" : { \n    \"running\" : true, \n    \"lastLogTick\" : \"787134001\", \n    \"totalEvents\" : 4892, \n    \"time\" : \"2016-03-10T19:38:29Z\" \n  }, \n  \"tick\" : \"789034545\" \n}\n

\n\n", "parameters": [ { "description": "Include system collections in the result. The default value is *true*.\n\n", @@ -6411,7 +6411,7 @@ }, "/_api/replication/logger-first-tick": { "get": { - "description": "\n\nReturns the first available tick value that can be served from the server's\nreplication log. This method can be called by replication clients after to\ndetermine if certain data (identified by a tick value) is still available\nfor replication.\n\nThe result is a JSON object containing the attribute *firstTick*. This\nattribute contains the minimum tick value available in the server's replication\nlog. \n\n**Note**: this method is not supported on a coordinator in a cluster.\n\n\n
Example: Returning the first available tick

shell> curl --dump - http://localhost:8529/_api/replication/logger-first-tick\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n\"{\\\"firstTick\\\":\\\"371118\\\"}\"\n

\n\n", + "description": "\n\nReturns the first available tick value that can be served from the server's\nreplication log. This method can be called by replication clients after to\ndetermine if certain data (identified by a tick value) is still available\nfor replication.\n\nThe result is a JSON object containing the attribute *firstTick*. This\nattribute contains the minimum tick value available in the server's replication\nlog. \n\n**Note**: this method is not supported on a coordinator in a cluster.\n\n\n
Example: Returning the first available tick

shell> curl --dump - http://localhost:8529/_api/replication/logger-first-tick\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n\"{\\\"firstTick\\\":\\\"374321\\\"}\"\n

\n\n", "parameters": [], "responses": { "200": { @@ -6437,7 +6437,7 @@ }, "/_api/replication/logger-follow": { "get": { - "description": "\n\nReturns data from the server's replication log. This method can be called\nby replication clients after an initial synchronization of data. The method\nwill return all \"recent\" log entries from the logger server, and the clients\ncan replay and apply these entries locally so they get to the same data\nstate as the logger server.\n\nClients can call this method repeatedly to incrementally fetch all changes\nfrom the logger server. In this case, they should provide the *from* value so\nthey will only get returned the log events since their last fetch.\n\nWhen the *from* query parameter is not used, the logger server will return log\nentries starting at the beginning of its replication log. When the *from*\nparameter is used, the logger server will only return log entries which have\nhigher tick values than the specified *from* value (note: the log entry with a\ntick value equal to *from* will be excluded). Use the *from* value when\nincrementally fetching log data.\n\nThe *to* query parameter can be used to optionally restrict the upper bound of\nthe result to a certain tick value. If used, the result will contain only log events\nwith tick values up to (including) *to*. In incremental fetching, there is no\nneed to use the *to* parameter. It only makes sense in special situations,\nwhen only parts of the change log are required.\n\nThe *chunkSize* query parameter can be used to control the size of the result.\nIt must be specified in bytes. The *chunkSize* value will only be honored\napproximately. Otherwise a too low *chunkSize* value could cause the server\nto not be able to put just one log entry into the result and return it.\nTherefore, the *chunkSize* value will only be consulted after a log entry has\nbeen written into the result. If the result size is then bigger than\n*chunkSize*, the server will respond with as many log entries as there are\nin the response already. If the result size is still smaller than *chunkSize*,\nthe server will try to return more data if there's more data left to return.\n\nIf *chunkSize* is not specified, some server-side default value will be used.\n\nThe *Content-Type* of the result is *application/x-arango-dump*. This is an\neasy-to-process format, with all log events going onto separate lines in the\nresponse body. Each log event itself is a JSON object, with at least the\nfollowing attributes:\n\n- *tick*: the log event tick value\n\n- *type*: the log event type\n\nIndividual log events will also have additional attributes, depending on the\nevent type. A few common attributes which are used for multiple events types\nare:\n\n- *cid*: id of the collection the event was for\n\n- *tid*: id of the transaction the event was contained in\n\n- *key*: document key\n\n- *rev*: document revision id\n\n- *data*: the original document data\n\nA more detailed description of the individual replication event types and their\ndata structures can be found in the manual.\n\nThe response will also contain the following HTTP headers:\n\n- *x-arango-replication-active*: whether or not the logger is active. Clients\n can use this flag as an indication for their polling frequency. If the\n logger is not active and there are no more replication events available, it\n might be sensible for a client to abort, or to go to sleep for a long time\n and try again later to check whether the logger has been activated.\n\n- *x-arango-replication-lastincluded*: the tick value of the last included\n value in the result. In incremental log fetching, this value can be used\n as the *from* value for the following request. **Note** that if the result is\n empty, the value will be *0*. This value should not be used as *from* value\n by clients in the next request (otherwise the server would return the log\n events from the start of the log again).\n\n- *x-arango-replication-lasttick*: the last tick value the logger server has\n logged (not necessarily included in the result). By comparing the the last\n tick and last included tick values, clients have an approximate indication of\n how many events there are still left to fetch.\n\n- *x-arango-replication-checkmore*: whether or not there already exists more\n log data which the client could fetch immediately. If there is more log data\n available, the client could call *logger-follow* again with an adjusted *from*\n value to fetch remaining log entries until there are no more.\n\n If there isn't any more log data to fetch, the client might decide to go\n to sleep for a while before calling the logger again.\n\n**Note**: this method is not supported on a coordinator in a cluster.\n\n\n
Example: No log events available

shell> curl --dump - http://localhost:8529/_api/replication/logger-follow?from=793684398\n\nHTTP/1.1 204 No Content\ncontent-type: application/x-arango-dump; charset=utf-8\nx-arango-replication-active: true\nx-arango-replication-checkmore: false\nx-arango-replication-frompresent: true\nx-arango-replication-lastincluded: 0\nx-arango-replication-lasttick: 793684398\n\n

\n
Example: A few log events

shell> curl --dump - http://localhost:8529/_api/replication/logger-follow?from=793684398\n\nHTTP/1.1 200 OK\ncontent-type: application/x-arango-dump; charset=utf-8\nx-arango-replication-active: true\nx-arango-replication-checkmore: false\nx-arango-replication-frompresent: true\nx-arango-replication-lastincluded: 794929582\nx-arango-replication-lasttick: 794929582\n\n\"{\\\"tick\\\":\\\"793815470\\\",\\\"type\\\":2000,\\\"database\\\":\\\"108974\\\",\\\"cid\\\":\\\"793749934\\\",\\\"collection\\\":{\\\"version\\\":5,\\\"type\\\":2,\\\"cid\\\":\\\"793749934\\\",\\\"indexBuckets\\\":8,\\\"deleted\\\":false,\\\"doCompact\\\":true,\\\"maximalSize\\\":1048576,\\\"name\\\":\\\"products\\\",\\\"isVolatile\\\":false,\\\"waitForSync\\\":false}}\\n{\\\"tick\\\":\\\"794143150\\\",\\\"type\\\":2300,\\\"database\\\":\\\"108974\\\",\\\"cid\\\":\\\"793749934\\\",\\\"tid\\\":\\\"0\\\",\\\"key\\\":\\\"p1\\\",\\\"rev\\\":\\\"794077614\\\",\\\"data\\\":{\\\"_key\\\":\\\"p1\\\",\\\"_rev\\\":\\\"794077614\\\",\\\"name\\\":\\\"flux compensator\\\"}}\\n{\\\"tick\\\":\\\"794470830\\\",\\\"type\\\":2300,\\\"database\\\":\\\"108974\\\",\\\"cid\\\":\\\"793749934\\\",\\\"tid\\\":\\\"0\\\",\\\"key\\\":\\\"p2\\\",\\\"rev\\\":\\\"794405294\\\",\\\"data\\\":{\\\"_key\\\":\\\"p2\\\",\\\"_rev\\\":\\\"794405294\\\",\\\"hp\\\":5100,\\\"name\\\":\\\"hybrid hovercraft\\\"}}\\n{\\\"tick\\\":\\\"794667438\\\",\\\"type\\\":2302,\\\"database\\\":\\\"108974\\\",\\\"cid\\\":\\\"793749934\\\",\\\"tid\\\":\\\"0\\\",\\\"key\\\":\\\"p1\\\",\\\"rev\\\":\\\"794601902\\\"}\\n{\\\"tick\\\":\\\"794864046\\\",\\\"type\\\":2300,\\\"database\\\":\\\"108974\\\",\\\"cid\\\":\\\"793749934\\\",\\\"tid\\\":\\\"0\\\",\\\"key\\\":\\\"p2\\\",\\\"rev\\\":\\\"794798510\\\",\\\"data\\\":{\\\"_key\\\":\\\"p2\\\",\\\"_rev\\\":\\\"794798510\\\"}}\\n{\\\"tick\\\":\\\"794929582\\\",\\\"type\\\":2001,\\\"database\\\":\\\"108974\\\",\\\"cid\\\":\\\"793749934\\\"}\\n\"\n

\n
Example: More events than would fit into the response

shell> curl --dump - http://localhost:8529/_api/replication/logger-follow?from=792439214&chunkSize=400\n\nHTTP/1.1 200 OK\ncontent-type: application/x-arango-dump; charset=utf-8\nx-arango-replication-active: true\nx-arango-replication-checkmore: true\nx-arango-replication-frompresent: true\nx-arango-replication-lastincluded: 792897966\nx-arango-replication-lasttick: 793684398\n\n\"{\\\"tick\\\":\\\"792570286\\\",\\\"type\\\":2000,\\\"database\\\":\\\"108974\\\",\\\"cid\\\":\\\"792504750\\\",\\\"collection\\\":{\\\"version\\\":5,\\\"type\\\":2,\\\"cid\\\":\\\"792504750\\\",\\\"indexBuckets\\\":8,\\\"deleted\\\":false,\\\"doCompact\\\":true,\\\"maximalSize\\\":1048576,\\\"name\\\":\\\"products\\\",\\\"isVolatile\\\":false,\\\"waitForSync\\\":false}}\\n{\\\"tick\\\":\\\"792897966\\\",\\\"type\\\":2300,\\\"database\\\":\\\"108974\\\",\\\"cid\\\":\\\"792504750\\\",\\\"tid\\\":\\\"0\\\",\\\"key\\\":\\\"p1\\\",\\\"rev\\\":\\\"792832430\\\",\\\"data\\\":{\\\"_key\\\":\\\"p1\\\",\\\"_rev\\\":\\\"792832430\\\",\\\"name\\\":\\\"flux compensator\\\"}}\\n\"\n

\n\n", + "description": "\n\nReturns data from the server's replication log. This method can be called\nby replication clients after an initial synchronization of data. The method\nwill return all \"recent\" log entries from the logger server, and the clients\ncan replay and apply these entries locally so they get to the same data\nstate as the logger server.\n\nClients can call this method repeatedly to incrementally fetch all changes\nfrom the logger server. In this case, they should provide the *from* value so\nthey will only get returned the log events since their last fetch.\n\nWhen the *from* query parameter is not used, the logger server will return log\nentries starting at the beginning of its replication log. When the *from*\nparameter is used, the logger server will only return log entries which have\nhigher tick values than the specified *from* value (note: the log entry with a\ntick value equal to *from* will be excluded). Use the *from* value when\nincrementally fetching log data.\n\nThe *to* query parameter can be used to optionally restrict the upper bound of\nthe result to a certain tick value. If used, the result will contain only log events\nwith tick values up to (including) *to*. In incremental fetching, there is no\nneed to use the *to* parameter. It only makes sense in special situations,\nwhen only parts of the change log are required.\n\nThe *chunkSize* query parameter can be used to control the size of the result.\nIt must be specified in bytes. The *chunkSize* value will only be honored\napproximately. Otherwise a too low *chunkSize* value could cause the server\nto not be able to put just one log entry into the result and return it.\nTherefore, the *chunkSize* value will only be consulted after a log entry has\nbeen written into the result. If the result size is then bigger than\n*chunkSize*, the server will respond with as many log entries as there are\nin the response already. If the result size is still smaller than *chunkSize*,\nthe server will try to return more data if there's more data left to return.\n\nIf *chunkSize* is not specified, some server-side default value will be used.\n\nThe *Content-Type* of the result is *application/x-arango-dump*. This is an\neasy-to-process format, with all log events going onto separate lines in the\nresponse body. Each log event itself is a JSON object, with at least the\nfollowing attributes:\n\n- *tick*: the log event tick value\n\n- *type*: the log event type\n\nIndividual log events will also have additional attributes, depending on the\nevent type. A few common attributes which are used for multiple events types\nare:\n\n- *cid*: id of the collection the event was for\n\n- *tid*: id of the transaction the event was contained in\n\n- *key*: document key\n\n- *rev*: document revision id\n\n- *data*: the original document data\n\nA more detailed description of the individual replication event types and their\ndata structures can be found in the manual.\n\nThe response will also contain the following HTTP headers:\n\n- *x-arango-replication-active*: whether or not the logger is active. Clients\n can use this flag as an indication for their polling frequency. If the\n logger is not active and there are no more replication events available, it\n might be sensible for a client to abort, or to go to sleep for a long time\n and try again later to check whether the logger has been activated.\n\n- *x-arango-replication-lastincluded*: the tick value of the last included\n value in the result. In incremental log fetching, this value can be used\n as the *from* value for the following request. **Note** that if the result is\n empty, the value will be *0*. This value should not be used as *from* value\n by clients in the next request (otherwise the server would return the log\n events from the start of the log again).\n\n- *x-arango-replication-lasttick*: the last tick value the logger server has\n logged (not necessarily included in the result). By comparing the the last\n tick and last included tick values, clients have an approximate indication of\n how many events there are still left to fetch.\n\n- *x-arango-replication-checkmore*: whether or not there already exists more\n log data which the client could fetch immediately. If there is more log data\n available, the client could call *logger-follow* again with an adjusted *from*\n value to fetch remaining log entries until there are no more.\n\n If there isn't any more log data to fetch, the client might decide to go\n to sleep for a while before calling the logger again.\n\n**Note**: this method is not supported on a coordinator in a cluster.\n\n\n
Example: No log events available

shell> curl --dump - http://localhost:8529/_api/replication/logger-follow?from=793622065\n\nHTTP/1.1 204 No Content\ncontent-type: application/x-arango-dump; charset=utf-8\nx-arango-replication-active: true\nx-arango-replication-checkmore: false\nx-arango-replication-frompresent: true\nx-arango-replication-lastincluded: 0\nx-arango-replication-lasttick: 793622065\n\n

\n
Example: A few log events

shell> curl --dump - http://localhost:8529/_api/replication/logger-follow?from=793622065\n\nHTTP/1.1 200 OK\ncontent-type: application/x-arango-dump; charset=utf-8\nx-arango-replication-active: true\nx-arango-replication-checkmore: false\nx-arango-replication-frompresent: true\nx-arango-replication-lastincluded: 794867249\nx-arango-replication-lasttick: 794867249\n\n\"{\\\"tick\\\":\\\"793753137\\\",\\\"type\\\":2000,\\\"database\\\":\\\"112177\\\",\\\"cid\\\":\\\"793687601\\\",\\\"collection\\\":{\\\"version\\\":5,\\\"type\\\":2,\\\"cid\\\":\\\"793687601\\\",\\\"indexBuckets\\\":8,\\\"deleted\\\":false,\\\"doCompact\\\":true,\\\"maximalSize\\\":1048576,\\\"name\\\":\\\"products\\\",\\\"isVolatile\\\":false,\\\"waitForSync\\\":false}}\\n{\\\"tick\\\":\\\"794080817\\\",\\\"type\\\":2300,\\\"database\\\":\\\"112177\\\",\\\"cid\\\":\\\"793687601\\\",\\\"tid\\\":\\\"0\\\",\\\"key\\\":\\\"p1\\\",\\\"rev\\\":\\\"794015281\\\",\\\"data\\\":{\\\"_key\\\":\\\"p1\\\",\\\"_rev\\\":\\\"794015281\\\",\\\"name\\\":\\\"flux compensator\\\"}}\\n{\\\"tick\\\":\\\"794408497\\\",\\\"type\\\":2300,\\\"database\\\":\\\"112177\\\",\\\"cid\\\":\\\"793687601\\\",\\\"tid\\\":\\\"0\\\",\\\"key\\\":\\\"p2\\\",\\\"rev\\\":\\\"794342961\\\",\\\"data\\\":{\\\"_key\\\":\\\"p2\\\",\\\"_rev\\\":\\\"794342961\\\",\\\"hp\\\":5100,\\\"name\\\":\\\"hybrid hovercraft\\\"}}\\n{\\\"tick\\\":\\\"794605105\\\",\\\"type\\\":2302,\\\"database\\\":\\\"112177\\\",\\\"cid\\\":\\\"793687601\\\",\\\"tid\\\":\\\"0\\\",\\\"key\\\":\\\"p1\\\",\\\"rev\\\":\\\"794539569\\\"}\\n{\\\"tick\\\":\\\"794801713\\\",\\\"type\\\":2300,\\\"database\\\":\\\"112177\\\",\\\"cid\\\":\\\"793687601\\\",\\\"tid\\\":\\\"0\\\",\\\"key\\\":\\\"p2\\\",\\\"rev\\\":\\\"794736177\\\",\\\"data\\\":{\\\"_key\\\":\\\"p2\\\",\\\"_rev\\\":\\\"794736177\\\"}}\\n{\\\"tick\\\":\\\"794867249\\\",\\\"type\\\":2001,\\\"database\\\":\\\"112177\\\",\\\"cid\\\":\\\"793687601\\\"}\\n\"\n

\n
Example: More events than would fit into the response

shell> curl --dump - http://localhost:8529/_api/replication/logger-follow?from=789100081&chunkSize=400\n\nHTTP/1.1 200 OK\ncontent-type: application/x-arango-dump; charset=utf-8\nx-arango-replication-active: true\nx-arango-replication-checkmore: true\nx-arango-replication-frompresent: true\nx-arango-replication-lastincluded: 789624369\nx-arango-replication-lasttick: 793622065\n\n\"{\\\"tick\\\":\\\"789165617\\\",\\\"type\\\":2001,\\\"database\\\":\\\"112177\\\",\\\"cid\\\":\\\"788182577\\\"}\\n{\\\"tick\\\":\\\"789296689\\\",\\\"type\\\":2000,\\\"database\\\":\\\"112177\\\",\\\"cid\\\":\\\"789231153\\\",\\\"collection\\\":{\\\"version\\\":5,\\\"type\\\":2,\\\"cid\\\":\\\"789231153\\\",\\\"indexBuckets\\\":8,\\\"deleted\\\":false,\\\"doCompact\\\":true,\\\"maximalSize\\\":1048576,\\\"name\\\":\\\"products\\\",\\\"isVolatile\\\":false,\\\"waitForSync\\\":false}}\\n{\\\"tick\\\":\\\"789624369\\\",\\\"type\\\":2300,\\\"database\\\":\\\"112177\\\",\\\"cid\\\":\\\"789231153\\\",\\\"tid\\\":\\\"0\\\",\\\"key\\\":\\\"p1\\\",\\\"rev\\\":\\\"789558833\\\",\\\"data\\\":{\\\"_key\\\":\\\"p1\\\",\\\"_rev\\\":\\\"789558833\\\",\\\"name\\\":\\\"flux compensator\\\"}}\\n\"\n

\n\n", "parameters": [ { "description": "Lower bound tick value for results.\n\n", @@ -6498,7 +6498,7 @@ }, "/_api/replication/logger-state": { "get": { - "description": "\n\nReturns the current state of the server's replication logger. The state will\ninclude information about whether the logger is running and about the last\nlogged tick value. This tick value is important for incremental fetching of\ndata.\n\nThe body of the response contains a JSON object with the following\nattributes:\n\n- *state*: the current logger state as a JSON object with the following\n sub-attributes:\n\n - *running*: whether or not the logger is running\n\n - *lastLogTick*: the tick value of the latest tick the logger has logged.\n This value can be used for incremental fetching of log data.\n\n - *totalEvents*: total number of events logged since the server was started.\n The value is not reset between multiple stops and re-starts of the logger.\n\n - *time*: the current date and time on the logger server\n\n- *server*: a JSON object with the following sub-attributes:\n\n - *version*: the logger server's version\n\n - *serverId*: the logger server's id\n\n- *clients*: returns the last fetch status by replication clients connected to\n the logger. Each client is returned as a JSON object with the following attributes:\n\n - *serverId*: server id of client\n\n - *lastServedTick*: last tick value served to this client via the *logger-follow* API\n\n - *time*: date and time when this client last called the *logger-follow* API\n\n\n
Example: Returns the state of the replication logger.

shell> curl --dump - http://localhost:8529/_api/replication/logger-state\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"state\" : { \n    \"running\" : true, \n    \"lastLogTick\" : \"794929582\", \n    \"totalEvents\" : 4958, \n    \"time\" : \"2016-03-01T20:04:09Z\" \n  }, \n  \"server\" : { \n    \"version\" : \"2.8.4\", \n    \"serverId\" : \"171376674975149\" \n  }, \n  \"clients\" : [ ] \n}\n

\n\n", + "description": "\n\nReturns the current state of the server's replication logger. The state will\ninclude information about whether the logger is running and about the last\nlogged tick value. This tick value is important for incremental fetching of\ndata.\n\nThe body of the response contains a JSON object with the following\nattributes:\n\n- *state*: the current logger state as a JSON object with the following\n sub-attributes:\n\n - *running*: whether or not the logger is running\n\n - *lastLogTick*: the tick value of the latest tick the logger has logged.\n This value can be used for incremental fetching of log data.\n\n - *totalEvents*: total number of events logged since the server was started.\n The value is not reset between multiple stops and re-starts of the logger.\n\n - *time*: the current date and time on the logger server\n\n- *server*: a JSON object with the following sub-attributes:\n\n - *version*: the logger server's version\n\n - *serverId*: the logger server's id\n\n- *clients*: returns the last fetch status by replication clients connected to\n the logger. Each client is returned as a JSON object with the following attributes:\n\n - *serverId*: server id of client\n\n - *lastServedTick*: last tick value served to this client via the *logger-follow* API\n\n - *time*: date and time when this client last called the *logger-follow* API\n\n\n
Example: Returns the state of the replication logger.

shell> curl --dump - http://localhost:8529/_api/replication/logger-state\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"state\" : { \n    \"running\" : true, \n    \"lastLogTick\" : \"794867249\", \n    \"totalEvents\" : 4958, \n    \"time\" : \"2016-03-10T19:38:32Z\" \n  }, \n  \"server\" : { \n    \"version\" : \"2.8.5\", \n    \"serverId\" : \"259546553666956\" \n  }, \n  \"clients\" : [ ] \n}\n

\n\n", "parameters": [], "responses": { "200": { @@ -6521,7 +6521,7 @@ }, "/_api/replication/logger-tick-ranges": { "get": { - "description": "\n\nReturns the currently available ranges of tick values for all currently\navailable WAL logfiles. The tick values can be used to determine if certain\ndata (identified by tick value) are still available for replication.\n\nThe body of the response contains a JSON array. Each array member is an object\nthat describes a single logfile. Each object has the following attributes:\n\n* *datafile*: name of the logfile\n\n* *status*: status of the datafile, in textual form (e.g. \"sealed\", \"open\")\n\n* *tickMin*: minimum tick value contained in logfile\n\n* *tickMax*: maximum tick value contained in logfile\n\n\n
Example: Returns the available tick ranges.

shell> curl --dump - http://localhost:8529/_api/replication/logger-tick-ranges\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n[ \n  { \n    \"datafile\" : \"/tmp/vocdir.40199/journals/logfile-174510.db\", \n    \"status\" : \"collected\", \n    \"tickMin\" : \"371118\", \n    \"tickMax\" : \"666872238\" \n  }, \n  { \n    \"datafile\" : \"/tmp/vocdir.40199/journals/logfile-667003310.db\", \n    \"status\" : \"collected\", \n    \"tickMin\" : \"667330990\", \n    \"tickMax\" : \"669755822\" \n  }, \n  { \n    \"datafile\" : \"/tmp/vocdir.40199/journals/logfile-669886894.db\", \n    \"status\" : \"collected\", \n    \"tickMin\" : \"670214574\", \n    \"tickMax\" : \"789752238\" \n  }, \n  { \n    \"datafile\" : \"/tmp/vocdir.40199/journals/logfile-789883310.db\", \n    \"status\" : \"collected\", \n    \"tickMin\" : \"790014382\", \n    \"tickMax\" : \"790145454\" \n  }, \n  { \n    \"datafile\" : \"/tmp/vocdir.40199/journals/logfile-790276526.db\", \n    \"status\" : \"open\", \n    \"tickMin\" : \"790407598\", \n    \"tickMax\" : \"794929582\" \n  } \n]\n

\n\n", + "description": "\n\nReturns the currently available ranges of tick values for all currently\navailable WAL logfiles. The tick values can be used to determine if certain\ndata (identified by tick value) are still available for replication.\n\nThe body of the response contains a JSON array. Each array member is an object\nthat describes a single logfile. Each object has the following attributes:\n\n* *datafile*: name of the logfile\n\n* *status*: status of the datafile, in textual form (e.g. \"sealed\", \"open\")\n\n* *tickMin*: minimum tick value contained in logfile\n\n* *tickMax*: maximum tick value contained in logfile\n\n\n
Example: Returns the available tick ranges.

shell> curl --dump - http://localhost:8529/_api/replication/logger-tick-ranges\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n[ \n  { \n    \"datafile\" : \"/tmp/vocdir.10518/journals/logfile-177713.db\", \n    \"status\" : \"collected\", \n    \"tickMin\" : \"374321\", \n    \"tickMax\" : \"666809905\" \n  }, \n  { \n    \"datafile\" : \"/tmp/vocdir.10518/journals/logfile-666940977.db\", \n    \"status\" : \"collected\", \n    \"tickMin\" : \"667203121\", \n    \"tickMax\" : \"669627953\" \n  }, \n  { \n    \"datafile\" : \"/tmp/vocdir.10518/journals/logfile-669759025.db\", \n    \"status\" : \"collected\", \n    \"tickMin\" : \"669955633\", \n    \"tickMax\" : \"786478641\" \n  }, \n  { \n    \"datafile\" : \"/tmp/vocdir.10518/journals/logfile-786609713.db\", \n    \"status\" : \"collected\", \n    \"tickMin\" : \"786740785\", \n    \"tickMax\" : \"786871857\" \n  }, \n  { \n    \"datafile\" : \"/tmp/vocdir.10518/journals/logfile-787002929.db\", \n    \"status\" : \"open\", \n    \"tickMin\" : \"787134001\", \n    \"tickMax\" : \"794867249\" \n  } \n]\n

\n\n", "parameters": [], "responses": { "200": { @@ -6586,7 +6586,7 @@ }, "/_api/replication/server-id": { "get": { - "description": "\n\nReturns the servers id. The id is also returned by other replication API\nmethods, and this method is an easy means of determining a server's id.\n\nThe body of the response is a JSON object with the attribute *serverId*. The\nserver id is returned as a string.\n\n\n
Example:

shell> curl --dump - http://localhost:8529/_api/replication/server-id\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"serverId\" : \"171376674975149\" \n}\n

\n\n", + "description": "\n\nReturns the servers id. The id is also returned by other replication API\nmethods, and this method is an easy means of determining a server's id.\n\nThe body of the response is a JSON object with the attribute *serverId*. The\nserver id is returned as a string.\n\n\n
Example:

shell> curl --dump - http://localhost:8529/_api/replication/server-id\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"serverId\" : \"259546553666956\" \n}\n

\n\n", "parameters": [], "responses": { "200": { @@ -6648,7 +6648,7 @@ }, "/_api/simple/all": { "put": { - "description": "\nfree style json body\n\n\n\n\nReturns all documents of a collections. The call expects a JSON object\nas body with the following attributes:\n\n- *collection*: The name of the collection to query.\n\n- *skip*: The number of documents to skip in the query (optional).\n\n- *limit*: The maximal amount of documents to return. The *skip*\n is applied before the *limit* restriction. (optional)\n\nReturns a cursor containing the result, see [Http Cursor](../HttpAqlQueryCursor/README.md) for details.\n\n\n
Example: Limit the amount of documents using *limit*

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/all <<EOF\n{ \"collection\": \"products\", \"skip\": 2, \"limit\" : 2 }\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    { \n      \"Hello1\" : \"World1\", \n      \"_id\" : \"products/797288878\", \n      \"_rev\" : \"797288878\", \n      \"_key\" : \"797288878\" \n    }, \n    { \n      \"Hello3\" : \"World3\", \n      \"_id\" : \"products/797944238\", \n      \"_rev\" : \"797944238\", \n      \"_key\" : \"797944238\" \n    } \n  ], \n  \"hasMore\" : false, \n  \"count\" : 2, \n  \"cached\" : false, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 5, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 0 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n
Example: Using a *batchSize* value

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/all <<EOF\n{ \"collection\": \"products\", \"batchSize\" : 3 }\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    { \n      \"Hello3\" : \"World3\", \n      \"_id\" : \"products/795978158\", \n      \"_rev\" : \"795978158\", \n      \"_key\" : \"795978158\" \n    }, \n    { \n      \"Hello5\" : \"World5\", \n      \"_id\" : \"products/796633518\", \n      \"_rev\" : \"796633518\", \n      \"_key\" : \"796633518\" \n    }, \n    { \n      \"Hello1\" : \"World1\", \n      \"_id\" : \"products/795322798\", \n      \"_rev\" : \"795322798\", \n      \"_key\" : \"795322798\" \n    } \n  ], \n  \"hasMore\" : true, \n  \"id\" : \"796830126\", \n  \"count\" : 5, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 5, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 0 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"cached\" : false, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n\n", + "description": "\nfree style json body\n\n\n\n\nReturns all documents of a collections. The call expects a JSON object\nas body with the following attributes:\n\n- *collection*: The name of the collection to query.\n\n- *skip*: The number of documents to skip in the query (optional).\n\n- *limit*: The maximal amount of documents to return. The *skip*\n is applied before the *limit* restriction. (optional)\n\nReturns a cursor containing the result, see [Http Cursor](../HttpAqlQueryCursor/README.md) for details.\n\n\n
Example: Limit the amount of documents using *limit*

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/all <<EOF\n{ \"collection\": \"products\", \"skip\": 2, \"limit\" : 2 }\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    { \n      \"Hello2\" : \"World2\", \n      \"_id\" : \"products/797554225\", \n      \"_rev\" : \"797554225\", \n      \"_key\" : \"797554225\" \n    }, \n    { \n      \"Hello4\" : \"World4\", \n      \"_id\" : \"products/798209585\", \n      \"_rev\" : \"798209585\", \n      \"_key\" : \"798209585\" \n    } \n  ], \n  \"hasMore\" : false, \n  \"count\" : 2, \n  \"cached\" : false, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 5, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 0, \n      \"executionTime\" : 0.000640869140625 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n
Example: Using a *batchSize* value

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/all <<EOF\n{ \"collection\": \"products\", \"batchSize\" : 3 }\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    { \n      \"Hello1\" : \"World1\", \n      \"_id\" : \"products/795260465\", \n      \"_rev\" : \"795260465\", \n      \"_key\" : \"795260465\" \n    }, \n    { \n      \"Hello3\" : \"World3\", \n      \"_id\" : \"products/795915825\", \n      \"_rev\" : \"795915825\", \n      \"_key\" : \"795915825\" \n    }, \n    { \n      \"Hello5\" : \"World5\", \n      \"_id\" : \"products/796571185\", \n      \"_rev\" : \"796571185\", \n      \"_key\" : \"796571185\" \n    } \n  ], \n  \"hasMore\" : true, \n  \"id\" : \"796767793\", \n  \"count\" : 5, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 5, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 0, \n      \"executionTime\" : 0.00010204315185546875 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"cached\" : false, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n\n", "parameters": [ { "description": "Contains the query.\n\n", @@ -6683,7 +6683,7 @@ }, "/_api/simple/any": { "put": { - "description": "\n\n\nReturns a random document from a collection. The call expects a JSON object\nas body with the following attributes:\n\n**A json post document with these Properties is required:**\n\n - **collection**: The identifier or name of the collection to query.\n Returns a JSON object with the document stored in the attribute\n *document* if the collection contains at least one document. If\n the collection is empty, the *document* attrbute contains null.\n\n\n\n
Example:

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/any <<EOF\n{ \n  \"collection\" : \"products\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"document\" : { \n    \"_id\" : \"products/799517102\", \n    \"_key\" : \"799517102\", \n    \"_rev\" : \"799517102\", \n    \"Hello2\" : \"World2\" \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", + "description": "\n\n\nReturns a random document from a collection. The call expects a JSON object\nas body with the following attributes:\n\n**A json post document with these Properties is required:**\n\n - **collection**: The identifier or name of the collection to query.\n Returns a JSON object with the document stored in the attribute\n *document* if the collection contains at least one document. If\n the collection is empty, the *document* attrbute contains null.\n\n\n\n
Example:

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/any <<EOF\n{ \n  \"collection\" : \"products\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"document\" : { \n    \"_id\" : \"products/799454769\", \n    \"_key\" : \"799454769\", \n    \"_rev\" : \"799454769\", \n    \"Hello2\" : \"World2\" \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", "parameters": [ { "in": "body", @@ -6716,7 +6716,7 @@ }, "/_api/simple/by-example": { "put": { - "description": "**A json post document with these Properties is required:**\n\n - **skip**: The number of documents to skip in the query (optional).\n - **limit**: The maximal amount of documents to return. The *skip*\n is applied before the *limit* restriction. (optional)\n - **example**: The example document.\n - **collection**: The name of the collection to query.\n\n\n\n\n\nThis will find all documents matching a given example.\n\nReturns a cursor containing the result, see [Http Cursor](../HttpAqlQueryCursor/README.md) for details.\n\n\n
Example: Matching an attribute

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/by-example <<EOF\n{ \n  \"collection\" : \"products\", \n  \"example\" : { \n    \"i\" : 1 \n  } \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    { \n      \"_id\" : \"products/801679790\", \n      \"_key\" : \"801679790\", \n      \"_rev\" : \"801679790\", \n      \"i\" : 1, \n      \"a\" : { \n        \"j\" : 1 \n      } \n    }, \n    { \n      \"_id\" : \"products/801941934\", \n      \"_key\" : \"801941934\", \n      \"_rev\" : \"801941934\", \n      \"i\" : 1 \n    }, \n    { \n      \"_id\" : \"products/801352110\", \n      \"_key\" : \"801352110\", \n      \"_rev\" : \"801352110\", \n      \"i\" : 1, \n      \"a\" : { \n        \"k\" : 1, \n        \"j\" : 1 \n      } \n    }, \n    { \n      \"_id\" : \"products/802138542\", \n      \"_key\" : \"802138542\", \n      \"_rev\" : \"802138542\", \n      \"i\" : 1, \n      \"a\" : { \n        \"k\" : 2, \n        \"j\" : 2 \n      } \n    } \n  ], \n  \"hasMore\" : false, \n  \"count\" : 4, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n
Example: Matching an attribute which is a sub-document

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/by-example <<EOF\n{ \n  \"collection\" : \"products\", \n  \"example\" : { \n    \"a.j\" : 1 \n  } \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    { \n      \"_id\" : \"products/803318190\", \n      \"_key\" : \"803318190\", \n      \"_rev\" : \"803318190\", \n      \"i\" : 1, \n      \"a\" : { \n        \"k\" : 1, \n        \"j\" : 1 \n      } \n    }, \n    { \n      \"_id\" : \"products/803645870\", \n      \"_key\" : \"803645870\", \n      \"_rev\" : \"803645870\", \n      \"i\" : 1, \n      \"a\" : { \n        \"j\" : 1 \n      } \n    } \n  ], \n  \"hasMore\" : false, \n  \"count\" : 2, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n
Example: Matching an attribute within a sub-document

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/by-example <<EOF\n{ \n  \"collection\" : \"products\", \n  \"example\" : { \n    \"a\" : { \n      \"j\" : 1 \n    } \n  } \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    { \n      \"_id\" : \"products/805611950\", \n      \"_key\" : \"805611950\", \n      \"_rev\" : \"805611950\", \n      \"i\" : 1, \n      \"a\" : { \n        \"j\" : 1 \n      } \n    } \n  ], \n  \"hasMore\" : false, \n  \"count\" : 1, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n\n", + "description": "**A json post document with these Properties is required:**\n\n - **skip**: The number of documents to skip in the query (optional).\n - **limit**: The maximal amount of documents to return. The *skip*\n is applied before the *limit* restriction. (optional)\n - **example**: The example document.\n - **collection**: The name of the collection to query.\n\n\n\n\n\nThis will find all documents matching a given example.\n\nReturns a cursor containing the result, see [Http Cursor](../HttpAqlQueryCursor/README.md) for details.\n\n\n
Example: Matching an attribute

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/by-example <<EOF\n{ \n  \"collection\" : \"products\", \n  \"example\" : { \n    \"i\" : 1 \n  } \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    { \n      \"_id\" : \"products/801617457\", \n      \"_key\" : \"801617457\", \n      \"_rev\" : \"801617457\", \n      \"i\" : 1, \n      \"a\" : { \n        \"j\" : 1 \n      } \n    }, \n    { \n      \"_id\" : \"products/802076209\", \n      \"_key\" : \"802076209\", \n      \"_rev\" : \"802076209\", \n      \"i\" : 1, \n      \"a\" : { \n        \"k\" : 2, \n        \"j\" : 2 \n      } \n    }, \n    { \n      \"_id\" : \"products/801289777\", \n      \"_key\" : \"801289777\", \n      \"_rev\" : \"801289777\", \n      \"i\" : 1, \n      \"a\" : { \n        \"k\" : 1, \n        \"j\" : 1 \n      } \n    }, \n    { \n      \"_id\" : \"products/801879601\", \n      \"_key\" : \"801879601\", \n      \"_rev\" : \"801879601\", \n      \"i\" : 1 \n    } \n  ], \n  \"hasMore\" : false, \n  \"count\" : 4, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n
Example: Matching an attribute which is a sub-document

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/by-example <<EOF\n{ \n  \"collection\" : \"products\", \n  \"example\" : { \n    \"a.j\" : 1 \n  } \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    { \n      \"_id\" : \"products/803583537\", \n      \"_key\" : \"803583537\", \n      \"_rev\" : \"803583537\", \n      \"i\" : 1, \n      \"a\" : { \n        \"j\" : 1 \n      } \n    }, \n    { \n      \"_id\" : \"products/803255857\", \n      \"_key\" : \"803255857\", \n      \"_rev\" : \"803255857\", \n      \"i\" : 1, \n      \"a\" : { \n        \"k\" : 1, \n        \"j\" : 1 \n      } \n    } \n  ], \n  \"hasMore\" : false, \n  \"count\" : 2, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n
Example: Matching an attribute within a sub-document

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/by-example <<EOF\n{ \n  \"collection\" : \"products\", \n  \"example\" : { \n    \"a\" : { \n      \"j\" : 1 \n    } \n  } \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    { \n      \"_id\" : \"products/805549617\", \n      \"_key\" : \"805549617\", \n      \"_rev\" : \"805549617\", \n      \"i\" : 1, \n      \"a\" : { \n        \"j\" : 1 \n      } \n    } \n  ], \n  \"hasMore\" : false, \n  \"count\" : 1, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n\n", "parameters": [ { "in": "body", @@ -6749,7 +6749,7 @@ }, "/_api/simple/first": { "put": { - "description": "**A json post document with these Properties is required:**\n\n - **count**: the number of documents to return at most. Specifying count is\n optional. If it is not specified, it defaults to 1.\n - **collection**: the name of the collection\n\n\n\n\n\nThis will return the first document(s) from the collection, in the order of\ninsertion/update time. When the *count* argument is supplied, the result\nwill be an array of documents, with the \"oldest\" document being first in the\nresult array.\nIf the *count* argument is not supplied, the result is the \"oldest\" document\nof the collection, or *null* if the collection is empty.\n\nNote: this method is not supported for sharded collections with more than\none shard.\n\n\n
Example: Retrieving the first n documents

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/first <<EOF\n{ \n  \"collection\" : \"products\", \n  \"count\" : 2 \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    { \n      \"_id\" : \"products/807250350\", \n      \"_key\" : \"807250350\", \n      \"_rev\" : \"807250350\", \n      \"i\" : 1, \n      \"a\" : { \n        \"k\" : 1, \n        \"j\" : 1 \n      } \n    }, \n    { \n      \"_id\" : \"products/807578030\", \n      \"_key\" : \"807578030\", \n      \"_rev\" : \"807578030\", \n      \"i\" : 1, \n      \"a\" : { \n        \"j\" : 1 \n      } \n    } \n  ], \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Retrieving the first document

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/first <<EOF\n{ \n  \"collection\" : \"products\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : { \n    \"_id\" : \"products/812689838\", \n    \"_key\" : \"812689838\", \n    \"_rev\" : \"812689838\", \n    \"i\" : 1, \n    \"a\" : { \n      \"k\" : 1, \n      \"j\" : 1 \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", + "description": "**A json post document with these Properties is required:**\n\n - **count**: the number of documents to return at most. Specifying count is\n optional. If it is not specified, it defaults to 1.\n - **collection**: the name of the collection\n\n\n\n\n\nThis will return the first document(s) from the collection, in the order of\ninsertion/update time. When the *count* argument is supplied, the result\nwill be an array of documents, with the \"oldest\" document being first in the\nresult array.\nIf the *count* argument is not supplied, the result is the \"oldest\" document\nof the collection, or *null* if the collection is empty.\n\nNote: this method is not supported for sharded collections with more than\none shard.\n\n\n
Example: Retrieving the first n documents

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/first <<EOF\n{ \n  \"collection\" : \"products\", \n  \"count\" : 2 \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    { \n      \"_id\" : \"products/807188017\", \n      \"_key\" : \"807188017\", \n      \"_rev\" : \"807188017\", \n      \"i\" : 1, \n      \"a\" : { \n        \"k\" : 1, \n        \"j\" : 1 \n      } \n    }, \n    { \n      \"_id\" : \"products/807515697\", \n      \"_key\" : \"807515697\", \n      \"_rev\" : \"807515697\", \n      \"i\" : 1, \n      \"a\" : { \n        \"j\" : 1 \n      } \n    } \n  ], \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Retrieving the first document

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/first <<EOF\n{ \n  \"collection\" : \"products\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : { \n    \"_id\" : \"products/812627505\", \n    \"_key\" : \"812627505\", \n    \"_rev\" : \"812627505\", \n    \"i\" : 1, \n    \"a\" : { \n      \"k\" : 1, \n      \"j\" : 1 \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", "parameters": [ { "in": "body", @@ -6782,7 +6782,7 @@ }, "/_api/simple/first-example": { "put": { - "description": "**A json post document with these Properties is required:**\n\n - **example**: The example document.\n - **collection**: The name of the collection to query.\n\n\n\n\n\nThis will return the first document matching a given example.\n\nReturns a result containing the document or *HTTP 404* if no\ndocument matched the example.\n\nIf more than one document in the collection matches the specified example, only\none of these documents will be returned, and it is undefined which of the matching\ndocuments is returned.\n\n\n
Example: If a matching document was found

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/first-example <<EOF\n{ \n  \"collection\" : \"products\", \n  \"example\" : { \n    \"i\" : 1 \n  } \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"document\" : { \n    \"_id\" : \"products/809216430\", \n    \"_key\" : \"809216430\", \n    \"_rev\" : \"809216430\", \n    \"i\" : 1, \n    \"a\" : { \n      \"j\" : 1 \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: If no document was found

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/first-example <<EOF\n{ \n  \"collection\" : \"products\", \n  \"example\" : { \n    \"l\" : 1 \n  } \n}\nEOF\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"error\" : true, \n  \"code\" : 404, \n  \"errorNum\" : 404, \n  \"errorMessage\" : \"no match\" \n}\n

\n\n", + "description": "**A json post document with these Properties is required:**\n\n - **example**: The example document.\n - **collection**: The name of the collection to query.\n\n\n\n\n\nThis will return the first document matching a given example.\n\nReturns a result containing the document or *HTTP 404* if no\ndocument matched the example.\n\nIf more than one document in the collection matches the specified example, only\none of these documents will be returned, and it is undefined which of the matching\ndocuments is returned.\n\n\n
Example: If a matching document was found

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/first-example <<EOF\n{ \n  \"collection\" : \"products\", \n  \"example\" : { \n    \"i\" : 1 \n  } \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"document\" : { \n    \"_id\" : \"products/809416241\", \n    \"_key\" : \"809416241\", \n    \"_rev\" : \"809416241\", \n    \"i\" : 1 \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: If no document was found

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/first-example <<EOF\n{ \n  \"collection\" : \"products\", \n  \"example\" : { \n    \"l\" : 1 \n  } \n}\nEOF\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"error\" : true, \n  \"code\" : 404, \n  \"errorNum\" : 404, \n  \"errorMessage\" : \"no match\" \n}\n

\n\n", "parameters": [ { "in": "body", @@ -6815,7 +6815,7 @@ }, "/_api/simple/fulltext": { "put": { - "description": "**A json post document with these Properties is required:**\n\n - **index**: The identifier of the fulltext-index to use.\n - **attribute**: The attribute that contains the texts.\n - **collection**: The name of the collection to query.\n - **limit**: The maximal amount of documents to return. The *skip*\n is applied before the *limit* restriction. (optional)\n - **skip**: The number of documents to skip in the query (optional).\n - **query**: The fulltext query. Please refer to [Fulltext queries](../SimpleQueries/FulltextQueries.md)\n for details.\n\n\n\n\n\nThis will find all documents from the collection that match the fulltext\nquery specified in *query*.\n\nIn order to use the *fulltext* operator, a fulltext index must be defined\nfor the collection and the specified attribute.\n\nReturns a cursor containing the result, see [Http Cursor](../HttpAqlQueryCursor/README.md) for details.\n\nNote: the *fulltext* simple query is **deprecated** as of ArangoDB 2.6. \nThis API may be removed in future versions of ArangoDB. The preferred\nway for retrieving documents from a collection using the near operator is\nto issue an AQL query using the *FULLTEXT* [AQL function](../Aql/FulltextFunctions.md) \nas follows:\n\n\n FOR doc IN FULLTEXT(@@collection, @attributeName, @queryString, @limit) \n RETURN doc\n\n\n
Example:

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/fulltext <<EOF\n{ \n  \"collection\" : \"products\", \n  \"attribute\" : \"text\", \n  \"query\" : \"word\" \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    { \n      \"_id\" : \"products/814066094\", \n      \"_key\" : \"814066094\", \n      \"_rev\" : \"814066094\", \n      \"text\" : \"this text contains word\" \n    }, \n    { \n      \"_id\" : \"products/814262702\", \n      \"_key\" : \"814262702\", \n      \"_rev\" : \"814262702\", \n      \"text\" : \"this text also has a word\" \n    } \n  ], \n  \"hasMore\" : false, \n  \"count\" : 2, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n\n", + "description": "**A json post document with these Properties is required:**\n\n - **index**: The identifier of the fulltext-index to use.\n - **attribute**: The attribute that contains the texts.\n - **collection**: The name of the collection to query.\n - **limit**: The maximal amount of documents to return. The *skip*\n is applied before the *limit* restriction. (optional)\n - **skip**: The number of documents to skip in the query (optional).\n - **query**: The fulltext query. Please refer to [Fulltext queries](../SimpleQueries/FulltextQueries.md)\n for details.\n\n\n\n\n\nThis will find all documents from the collection that match the fulltext\nquery specified in *query*.\n\nIn order to use the *fulltext* operator, a fulltext index must be defined\nfor the collection and the specified attribute.\n\nReturns a cursor containing the result, see [Http Cursor](../HttpAqlQueryCursor/README.md) for details.\n\nNote: the *fulltext* simple query is **deprecated** as of ArangoDB 2.6. \nThis API may be removed in future versions of ArangoDB. The preferred\nway for retrieving documents from a collection using the near operator is\nto issue an AQL query using the *FULLTEXT* [AQL function](../Aql/FulltextFunctions.md) \nas follows:\n\n\n FOR doc IN FULLTEXT(@@collection, @attributeName, @queryString, @limit) \n RETURN doc\n\n\n
Example:

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/fulltext <<EOF\n{ \n  \"collection\" : \"products\", \n  \"attribute\" : \"text\", \n  \"query\" : \"word\" \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    { \n      \"_id\" : \"products/814200369\", \n      \"_key\" : \"814200369\", \n      \"_rev\" : \"814200369\", \n      \"text\" : \"this text also has a word\" \n    }, \n    { \n      \"_id\" : \"products/814003761\", \n      \"_key\" : \"814003761\", \n      \"_rev\" : \"814003761\", \n      \"text\" : \"this text contains word\" \n    } \n  ], \n  \"hasMore\" : false, \n  \"count\" : 2, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n\n", "parameters": [ { "in": "body", @@ -6848,7 +6848,7 @@ }, "/_api/simple/last": { "put": { - "description": "**A json post document with these Properties is required:**\n\n - **count**: the number of documents to return at most. Specifying count is\n optional. If it is not specified, it defaults to 1.\n - **collection**: the name of the collection\n\n\n\n\n\nThis will return the last documents from the collection, in the order of\ninsertion/update time. When the *count* argument is supplied, the result\nwill be an array of documents, with the \"latest\" document being first in the\nresult array.\n\nIf the *count* argument is not supplied, the result is the \"latest\" document\nof the collection, or *null* if the collection is empty.\n\nNote: this method is not supported for sharded collections with more than\none shard.\n\n\n
Example: Retrieving the last n documents

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/last <<EOF\n{ \n  \"collection\" : \"products\", \n  \"count\" : 2 \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    { \n      \"_id\" : \"products/816425390\", \n      \"_key\" : \"816425390\", \n      \"_rev\" : \"816425390\", \n      \"i\" : 1, \n      \"a\" : { \n        \"k\" : 2, \n        \"j\" : 2 \n      } \n    }, \n    { \n      \"_id\" : \"products/816228782\", \n      \"_key\" : \"816228782\", \n      \"_rev\" : \"816228782\", \n      \"i\" : 1 \n    } \n  ], \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Retrieving the first document

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/last <<EOF\n{ \n  \"collection\" : \"products\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : { \n    \"_id\" : \"products/818063790\", \n    \"_key\" : \"818063790\", \n    \"_rev\" : \"818063790\", \n    \"i\" : 1, \n    \"a\" : { \n      \"k\" : 2, \n      \"j\" : 2 \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", + "description": "**A json post document with these Properties is required:**\n\n - **count**: the number of documents to return at most. Specifying count is\n optional. If it is not specified, it defaults to 1.\n - **collection**: the name of the collection\n\n\n\n\n\nThis will return the last documents from the collection, in the order of\ninsertion/update time. When the *count* argument is supplied, the result\nwill be an array of documents, with the \"latest\" document being first in the\nresult array.\n\nIf the *count* argument is not supplied, the result is the \"latest\" document\nof the collection, or *null* if the collection is empty.\n\nNote: this method is not supported for sharded collections with more than\none shard.\n\n\n
Example: Retrieving the last n documents

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/last <<EOF\n{ \n  \"collection\" : \"products\", \n  \"count\" : 2 \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    { \n      \"_id\" : \"products/816363057\", \n      \"_key\" : \"816363057\", \n      \"_rev\" : \"816363057\", \n      \"i\" : 1, \n      \"a\" : { \n        \"k\" : 2, \n        \"j\" : 2 \n      } \n    }, \n    { \n      \"_id\" : \"products/816166449\", \n      \"_key\" : \"816166449\", \n      \"_rev\" : \"816166449\", \n      \"i\" : 1 \n    } \n  ], \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Retrieving the first document

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/last <<EOF\n{ \n  \"collection\" : \"products\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : { \n    \"_id\" : \"products/818001457\", \n    \"_key\" : \"818001457\", \n    \"_rev\" : \"818001457\", \n    \"i\" : 1, \n    \"a\" : { \n      \"k\" : 2, \n      \"j\" : 2 \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", "parameters": [ { "in": "body", @@ -6881,7 +6881,7 @@ }, "/_api/simple/lookup-by-keys": { "put": { - "description": "**A json post document with these Properties is required:**\n\n - **keys**: array with the _keys of documents to remove. of type string\n - **collection**: The name of the collection to look in for the documents\n\n\n\n\nLooks up the documents in the specified collection using the array of keys\nprovided. All documents for which a matching key was specified in the *keys*\narray and that exist in the collection will be returned. \nKeys for which no document can be found in the underlying collection are ignored, \nand no exception will be thrown for them.\n\nThe body of the response contains a JSON object with a *documents* attribute. The\n*documents* attribute is an array containing the matching documents. The order in\nwhich matching documents are present in the result array is unspecified.\n\n\n
Example: Looking up existing documents

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/lookup-by-keys <<EOF\n{ \n  \"keys\" : [ \n    \"test0\", \n    \"test1\", \n    \"test2\", \n    \"test3\", \n    \"test4\", \n    \"test5\", \n    \"test6\", \n    \"test7\", \n    \"test8\", \n    \"test9\" \n  ], \n  \"collection\" : \"test\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"documents\" : [ \n    { \n      \"value\" : 0, \n      \"_id\" : \"test/test0\", \n      \"_rev\" : \"818653614\", \n      \"_key\" : \"test0\" \n    }, \n    { \n      \"value\" : 1, \n      \"_id\" : \"test/test1\", \n      \"_rev\" : \"818850222\", \n      \"_key\" : \"test1\" \n    }, \n    { \n      \"value\" : 2, \n      \"_id\" : \"test/test2\", \n      \"_rev\" : \"819046830\", \n      \"_key\" : \"test2\" \n    }, \n    { \n      \"value\" : 3, \n      \"_id\" : \"test/test3\", \n      \"_rev\" : \"819243438\", \n      \"_key\" : \"test3\" \n    }, \n    { \n      \"value\" : 4, \n      \"_id\" : \"test/test4\", \n      \"_rev\" : \"819440046\", \n      \"_key\" : \"test4\" \n    }, \n    { \n      \"value\" : 5, \n      \"_id\" : \"test/test5\", \n      \"_rev\" : \"819636654\", \n      \"_key\" : \"test5\" \n    }, \n    { \n      \"value\" : 6, \n      \"_id\" : \"test/test6\", \n      \"_rev\" : \"819833262\", \n      \"_key\" : \"test6\" \n    }, \n    { \n      \"value\" : 7, \n      \"_id\" : \"test/test7\", \n      \"_rev\" : \"820029870\", \n      \"_key\" : \"test7\" \n    }, \n    { \n      \"value\" : 8, \n      \"_id\" : \"test/test8\", \n      \"_rev\" : \"820226478\", \n      \"_key\" : \"test8\" \n    }, \n    { \n      \"value\" : 9, \n      \"_id\" : \"test/test9\", \n      \"_rev\" : \"820423086\", \n      \"_key\" : \"test9\" \n    } \n  ], \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Looking up non-existing documents

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/lookup-by-keys <<EOF\n{ \n  \"keys\" : [ \n    \"foo\", \n    \"bar\", \n    \"baz\" \n  ], \n  \"collection\" : \"test\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"documents\" : [ ], \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n\n", + "description": "**A json post document with these Properties is required:**\n\n - **keys**: array with the _keys of documents to remove. of type string\n - **collection**: The name of the collection to look in for the documents\n\n\n\n\nLooks up the documents in the specified collection using the array of keys\nprovided. All documents for which a matching key was specified in the *keys*\narray and that exist in the collection will be returned. \nKeys for which no document can be found in the underlying collection are ignored, \nand no exception will be thrown for them.\n\nThe body of the response contains a JSON object with a *documents* attribute. The\n*documents* attribute is an array containing the matching documents. The order in\nwhich matching documents are present in the result array is unspecified.\n\n\n
Example: Looking up existing documents

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/lookup-by-keys <<EOF\n{ \n  \"keys\" : [ \n    \"test0\", \n    \"test1\", \n    \"test2\", \n    \"test3\", \n    \"test4\", \n    \"test5\", \n    \"test6\", \n    \"test7\", \n    \"test8\", \n    \"test9\" \n  ], \n  \"collection\" : \"test\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"documents\" : [ \n    { \n      \"value\" : 0, \n      \"_id\" : \"test/test0\", \n      \"_rev\" : \"818591281\", \n      \"_key\" : \"test0\" \n    }, \n    { \n      \"value\" : 1, \n      \"_id\" : \"test/test1\", \n      \"_rev\" : \"818787889\", \n      \"_key\" : \"test1\" \n    }, \n    { \n      \"value\" : 2, \n      \"_id\" : \"test/test2\", \n      \"_rev\" : \"818984497\", \n      \"_key\" : \"test2\" \n    }, \n    { \n      \"value\" : 3, \n      \"_id\" : \"test/test3\", \n      \"_rev\" : \"819181105\", \n      \"_key\" : \"test3\" \n    }, \n    { \n      \"value\" : 4, \n      \"_id\" : \"test/test4\", \n      \"_rev\" : \"819377713\", \n      \"_key\" : \"test4\" \n    }, \n    { \n      \"value\" : 5, \n      \"_id\" : \"test/test5\", \n      \"_rev\" : \"819574321\", \n      \"_key\" : \"test5\" \n    }, \n    { \n      \"value\" : 6, \n      \"_id\" : \"test/test6\", \n      \"_rev\" : \"819770929\", \n      \"_key\" : \"test6\" \n    }, \n    { \n      \"value\" : 7, \n      \"_id\" : \"test/test7\", \n      \"_rev\" : \"819967537\", \n      \"_key\" : \"test7\" \n    }, \n    { \n      \"value\" : 8, \n      \"_id\" : \"test/test8\", \n      \"_rev\" : \"820164145\", \n      \"_key\" : \"test8\" \n    }, \n    { \n      \"value\" : 9, \n      \"_id\" : \"test/test9\", \n      \"_rev\" : \"820360753\", \n      \"_key\" : \"test9\" \n    } \n  ], \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Looking up non-existing documents

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/lookup-by-keys <<EOF\n{ \n  \"keys\" : [ \n    \"foo\", \n    \"bar\", \n    \"baz\" \n  ], \n  \"collection\" : \"test\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"documents\" : [ ], \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n\n", "parameters": [ { "in": "body", @@ -6914,7 +6914,7 @@ }, "/_api/simple/near": { "put": { - "description": "**A json post document with these Properties is required:**\n\n - **distance**: If given, the attribute key used to return the distance to\n the given coordinate. (optional). If specified, distances are returned in meters.\n - **skip**: The number of documents to skip in the query. (optional)\n - **longitude**: The longitude of the coordinate.\n - **limit**: The maximal amount of documents to return. The *skip* is\n applied before the *limit* restriction. The default is 100. (optional)\n - **collection**: The name of the collection to query.\n - **latitude**: The latitude of the coordinate.\n - **geo**: If given, the identifier of the geo-index to use. (optional)\n\n\n\n\n\nThe default will find at most 100 documents near the given coordinate. The\nreturned array is sorted according to the distance, with the nearest document\nbeing first in the return array. If there are near documents of equal distance, documents\nare chosen randomly from this set until the limit is reached.\n\nIn order to use the *near* operator, a geo index must be defined for the\ncollection. This index also defines which attribute holds the coordinates\nfor the document. If you have more than one geo-spatial index, you can use\nthe *geo* field to select a particular index.\n\n\nReturns a cursor containing the result, see [Http Cursor](../HttpAqlQueryCursor/README.md) for details.\n\nNote: the *near* simple query is **deprecated** as of ArangoDB 2.6. \nThis API may be removed in future versions of ArangoDB. The preferred\nway for retrieving documents from a collection using the near operator is\nto issue an [AQL query](../Aql/GeoFunctions.md) using the *NEAR* function as follows: \n\n\n FOR doc IN NEAR(@@collection, @latitude, @longitude, @limit)\n RETURN doc`\n\n\n
Example: Without distance

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/near <<EOF\n{ \n  \"collection\" : \"products\", \n  \"latitude\" : 0, \n  \"longitude\" : 0, \n  \"skip\" : 1, \n  \"limit\" : 2 \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    { \n      \"_id\" : \"products/824879534\", \n      \"_key\" : \"824879534\", \n      \"_rev\" : \"824879534\", \n      \"name\" : \"Name/0.002/\", \n      \"loc\" : [ \n        0.002, \n        0 \n      ] \n    }, \n    { \n      \"_id\" : \"products/824486318\", \n      \"_key\" : \"824486318\", \n      \"_rev\" : \"824486318\", \n      \"name\" : \"Name/-0.002/\", \n      \"loc\" : [ \n        -0.002, \n        0 \n      ] \n    } \n  ], \n  \"hasMore\" : false, \n  \"count\" : 2, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n
Example: With distance

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/near <<EOF\n{ \n  \"collection\" : \"products\", \n  \"latitude\" : 0, \n  \"longitude\" : 0, \n  \"skip\" : 1, \n  \"limit\" : 3, \n  \"distance\" : \"distance\" \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    { \n      \"_id\" : \"products/827500974\", \n      \"_key\" : \"827500974\", \n      \"_rev\" : \"827500974\", \n      \"name\" : \"Name/-0.002/\", \n      \"loc\" : [ \n        -0.002, \n        0 \n      ], \n      \"distance\" : 222.38985328911744 \n    }, \n    { \n      \"_id\" : \"products/827894190\", \n      \"_key\" : \"827894190\", \n      \"_rev\" : \"827894190\", \n      \"name\" : \"Name/0.002/\", \n      \"loc\" : [ \n        0.002, \n        0 \n      ], \n      \"distance\" : 222.38985328911744 \n    }, \n    { \n      \"_id\" : \"products/827304366\", \n      \"_key\" : \"827304366\", \n      \"_rev\" : \"827304366\", \n      \"name\" : \"Name/-0.004/\", \n      \"loc\" : [ \n        -0.004, \n        0 \n      ], \n      \"distance\" : 444.779706578235 \n    } \n  ], \n  \"hasMore\" : false, \n  \"count\" : 3, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n\n", + "description": "**A json post document with these Properties is required:**\n\n - **distance**: If given, the attribute key used to return the distance to\n the given coordinate. (optional). If specified, distances are returned in meters.\n - **skip**: The number of documents to skip in the query. (optional)\n - **longitude**: The longitude of the coordinate.\n - **limit**: The maximal amount of documents to return. The *skip* is\n applied before the *limit* restriction. The default is 100. (optional)\n - **collection**: The name of the collection to query.\n - **latitude**: The latitude of the coordinate.\n - **geo**: If given, the identifier of the geo-index to use. (optional)\n\n\n\n\n\nThe default will find at most 100 documents near the given coordinate. The\nreturned array is sorted according to the distance, with the nearest document\nbeing first in the return array. If there are near documents of equal distance, documents\nare chosen randomly from this set until the limit is reached.\n\nIn order to use the *near* operator, a geo index must be defined for the\ncollection. This index also defines which attribute holds the coordinates\nfor the document. If you have more than one geo-spatial index, you can use\nthe *geo* field to select a particular index.\n\n\nReturns a cursor containing the result, see [Http Cursor](../HttpAqlQueryCursor/README.md) for details.\n\nNote: the *near* simple query is **deprecated** as of ArangoDB 2.6. \nThis API may be removed in future versions of ArangoDB. The preferred\nway for retrieving documents from a collection using the near operator is\nto issue an [AQL query](../Aql/GeoFunctions.md) using the *NEAR* function as follows: \n\n\n FOR doc IN NEAR(@@collection, @latitude, @longitude, @limit)\n RETURN doc`\n\n\n
Example: Without distance

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/near <<EOF\n{ \n  \"collection\" : \"products\", \n  \"latitude\" : 0, \n  \"longitude\" : 0, \n  \"skip\" : 1, \n  \"limit\" : 2 \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    { \n      \"_id\" : \"products/824817201\", \n      \"_key\" : \"824817201\", \n      \"_rev\" : \"824817201\", \n      \"name\" : \"Name/0.002/\", \n      \"loc\" : [ \n        0.002, \n        0 \n      ] \n    }, \n    { \n      \"_id\" : \"products/824423985\", \n      \"_key\" : \"824423985\", \n      \"_rev\" : \"824423985\", \n      \"name\" : \"Name/-0.002/\", \n      \"loc\" : [ \n        -0.002, \n        0 \n      ] \n    } \n  ], \n  \"hasMore\" : false, \n  \"count\" : 2, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n
Example: With distance

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/near <<EOF\n{ \n  \"collection\" : \"products\", \n  \"latitude\" : 0, \n  \"longitude\" : 0, \n  \"skip\" : 1, \n  \"limit\" : 3, \n  \"distance\" : \"distance\" \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    { \n      \"_id\" : \"products/827438641\", \n      \"_key\" : \"827438641\", \n      \"_rev\" : \"827438641\", \n      \"name\" : \"Name/-0.002/\", \n      \"loc\" : [ \n        -0.002, \n        0 \n      ], \n      \"distance\" : 222.38985328911744 \n    }, \n    { \n      \"_id\" : \"products/827831857\", \n      \"_key\" : \"827831857\", \n      \"_rev\" : \"827831857\", \n      \"name\" : \"Name/0.002/\", \n      \"loc\" : [ \n        0.002, \n        0 \n      ], \n      \"distance\" : 222.38985328911744 \n    }, \n    { \n      \"_id\" : \"products/827242033\", \n      \"_key\" : \"827242033\", \n      \"_rev\" : \"827242033\", \n      \"name\" : \"Name/-0.004/\", \n      \"loc\" : [ \n        -0.004, \n        0 \n      ], \n      \"distance\" : 444.779706578235 \n    } \n  ], \n  \"hasMore\" : false, \n  \"count\" : 3, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n\n", "parameters": [ { "in": "body", @@ -6947,7 +6947,7 @@ }, "/_api/simple/range": { "put": { - "description": "**A json post document with these Properties is required:**\n\n - **right**: The upper bound.\n - **attribute**: The attribute path to check.\n - **collection**: The name of the collection to query.\n - **limit**: The maximal amount of documents to return. The *skip*\n is applied before the *limit* restriction. (optional)\n - **closed**: If *true*, use interval including *left* and *right*,\n otherwise exclude *right*, but include *left*.\n - **skip**: The number of documents to skip in the query (optional).\n - **left**: The lower bound.\n\n\n\n\n\nThis will find all documents within a given range. In order to execute a\nrange query, a skip-list index on the queried attribute must be present.\n\nReturns a cursor containing the result, see [Http Cursor](../HttpAqlQueryCursor/README.md) for details.\n\nNote: the *range* simple query is **deprecated** as of ArangoDB 2.6. \nThe function may be removed in future versions of ArangoDB. The preferred\nway for retrieving documents from a collection within a specific range\nis to use an AQL query as follows: \n\n\n FOR doc IN @@collection \n FILTER doc.value >= @left && doc.value < @right \n LIMIT @skip, @limit \n RETURN doc`\n\n\n
Example:

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/range <<EOF\n{ \n  \"collection\" : \"products\", \n  \"attribute\" : \"i\", \n  \"left\" : 2, \n  \"right\" : 4 \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    { \n      \"_id\" : \"products/829794734\", \n      \"_key\" : \"829794734\", \n      \"_rev\" : \"829794734\", \n      \"i\" : 2 \n    }, \n    { \n      \"_id\" : \"products/829991342\", \n      \"_key\" : \"829991342\", \n      \"_rev\" : \"829991342\", \n      \"i\" : 3 \n    } \n  ], \n  \"hasMore\" : false, \n  \"count\" : 2, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n\n", + "description": "**A json post document with these Properties is required:**\n\n - **right**: The upper bound.\n - **attribute**: The attribute path to check.\n - **collection**: The name of the collection to query.\n - **limit**: The maximal amount of documents to return. The *skip*\n is applied before the *limit* restriction. (optional)\n - **closed**: If *true*, use interval including *left* and *right*,\n otherwise exclude *right*, but include *left*.\n - **skip**: The number of documents to skip in the query (optional).\n - **left**: The lower bound.\n\n\n\n\n\nThis will find all documents within a given range. In order to execute a\nrange query, a skip-list index on the queried attribute must be present.\n\nReturns a cursor containing the result, see [Http Cursor](../HttpAqlQueryCursor/README.md) for details.\n\nNote: the *range* simple query is **deprecated** as of ArangoDB 2.6. \nThe function may be removed in future versions of ArangoDB. The preferred\nway for retrieving documents from a collection within a specific range\nis to use an AQL query as follows: \n\n\n FOR doc IN @@collection \n FILTER doc.value >= @left && doc.value < @right \n LIMIT @skip, @limit \n RETURN doc`\n\n\n
Example:

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/range <<EOF\n{ \n  \"collection\" : \"products\", \n  \"attribute\" : \"i\", \n  \"left\" : 2, \n  \"right\" : 4 \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    { \n      \"_id\" : \"products/829732401\", \n      \"_key\" : \"829732401\", \n      \"_rev\" : \"829732401\", \n      \"i\" : 2 \n    }, \n    { \n      \"_id\" : \"products/829929009\", \n      \"_key\" : \"829929009\", \n      \"_rev\" : \"829929009\", \n      \"i\" : 3 \n    } \n  ], \n  \"hasMore\" : false, \n  \"count\" : 2, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n\n", "parameters": [ { "in": "body", @@ -7112,7 +7112,7 @@ }, "/_api/simple/within": { "put": { - "description": "**A json post document with these Properties is required:**\n\n - **distance**: If given, the attribute key used to return the distance to\n the given coordinate. (optional). If specified, distances are returned in meters.\n - **skip**: The number of documents to skip in the query. (optional)\n - **longitude**: The longitude of the coordinate.\n - **radius**: The maximal radius (in meters).\n - **collection**: The name of the collection to query.\n - **latitude**: The latitude of the coordinate.\n - **limit**: The maximal amount of documents to return. The *skip* is\n applied before the *limit* restriction. The default is 100. (optional)\n - **geo**: If given, the identifier of the geo-index to use. (optional)\n\n\n\n\n\nThis will find all documents within a given radius around the coordinate\n(*latitude*, *longitude*). The returned list is sorted by distance.\n\nIn order to use the *within* operator, a geo index must be defined for\nthe collection. This index also defines which attribute holds the\ncoordinates for the document. If you have more than one geo-spatial index,\nyou can use the *geo* field to select a particular index.\n\n\nReturns a cursor containing the result, see [Http Cursor](../HttpAqlQueryCursor/README.md) for details.\n\nNote: the *within* simple query is **deprecated** as of ArangoDB 2.6. \nThis API may be removed in future versions of ArangoDB. The preferred\nway for retrieving documents from a collection using the near operator is\nto issue an [AQL query](../Aql/GeoFunctions.md) using the *WITHIN* function as follows: \n\n\n FOR doc IN WITHIN(@@collection, @latitude, @longitude, @radius, @distanceAttributeName)\n RETURN doc\n\n\n
Example: Without distance

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/near <<EOF\n{ \n  \"collection\" : \"products\", \n  \"latitude\" : 0, \n  \"longitude\" : 0, \n  \"skip\" : 1, \n  \"limit\" : 2, \n  \"radius\" : 500 \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    { \n      \"_id\" : \"products/852208046\", \n      \"_key\" : \"852208046\", \n      \"_rev\" : \"852208046\", \n      \"name\" : \"Name/0.002/\", \n      \"loc\" : [ \n        0.002, \n        0 \n      ] \n    }, \n    { \n      \"_id\" : \"products/851814830\", \n      \"_key\" : \"851814830\", \n      \"_rev\" : \"851814830\", \n      \"name\" : \"Name/-0.002/\", \n      \"loc\" : [ \n        -0.002, \n        0 \n      ] \n    } \n  ], \n  \"hasMore\" : false, \n  \"count\" : 2, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n
Example: With distance

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/near <<EOF\n{ \n  \"collection\" : \"products\", \n  \"latitude\" : 0, \n  \"longitude\" : 0, \n  \"skip\" : 1, \n  \"limit\" : 3, \n  \"distance\" : \"distance\", \n  \"radius\" : 300 \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    { \n      \"_id\" : \"products/854829486\", \n      \"_key\" : \"854829486\", \n      \"_rev\" : \"854829486\", \n      \"name\" : \"Name/-0.002/\", \n      \"loc\" : [ \n        -0.002, \n        0 \n      ], \n      \"distance\" : 222.38985328911744 \n    }, \n    { \n      \"_id\" : \"products/855222702\", \n      \"_key\" : \"855222702\", \n      \"_rev\" : \"855222702\", \n      \"name\" : \"Name/0.002/\", \n      \"loc\" : [ \n        0.002, \n        0 \n      ], \n      \"distance\" : 222.38985328911744 \n    }, \n    { \n      \"_id\" : \"products/854632878\", \n      \"_key\" : \"854632878\", \n      \"_rev\" : \"854632878\", \n      \"name\" : \"Name/-0.004/\", \n      \"loc\" : [ \n        -0.004, \n        0 \n      ], \n      \"distance\" : 444.779706578235 \n    } \n  ], \n  \"hasMore\" : false, \n  \"count\" : 3, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n\n", + "description": "**A json post document with these Properties is required:**\n\n - **distance**: If given, the attribute key used to return the distance to\n the given coordinate. (optional). If specified, distances are returned in meters.\n - **skip**: The number of documents to skip in the query. (optional)\n - **longitude**: The longitude of the coordinate.\n - **radius**: The maximal radius (in meters).\n - **collection**: The name of the collection to query.\n - **latitude**: The latitude of the coordinate.\n - **limit**: The maximal amount of documents to return. The *skip* is\n applied before the *limit* restriction. The default is 100. (optional)\n - **geo**: If given, the identifier of the geo-index to use. (optional)\n\n\n\n\n\nThis will find all documents within a given radius around the coordinate\n(*latitude*, *longitude*). The returned list is sorted by distance.\n\nIn order to use the *within* operator, a geo index must be defined for\nthe collection. This index also defines which attribute holds the\ncoordinates for the document. If you have more than one geo-spatial index,\nyou can use the *geo* field to select a particular index.\n\n\nReturns a cursor containing the result, see [Http Cursor](../HttpAqlQueryCursor/README.md) for details.\n\nNote: the *within* simple query is **deprecated** as of ArangoDB 2.6. \nThis API may be removed in future versions of ArangoDB. The preferred\nway for retrieving documents from a collection using the near operator is\nto issue an [AQL query](../Aql/GeoFunctions.md) using the *WITHIN* function as follows: \n\n\n FOR doc IN WITHIN(@@collection, @latitude, @longitude, @radius, @distanceAttributeName)\n RETURN doc\n\n\n
Example: Without distance

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/near <<EOF\n{ \n  \"collection\" : \"products\", \n  \"latitude\" : 0, \n  \"longitude\" : 0, \n  \"skip\" : 1, \n  \"limit\" : 2, \n  \"radius\" : 500 \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    { \n      \"_id\" : \"products/852145713\", \n      \"_key\" : \"852145713\", \n      \"_rev\" : \"852145713\", \n      \"name\" : \"Name/0.002/\", \n      \"loc\" : [ \n        0.002, \n        0 \n      ] \n    }, \n    { \n      \"_id\" : \"products/851752497\", \n      \"_key\" : \"851752497\", \n      \"_rev\" : \"851752497\", \n      \"name\" : \"Name/-0.002/\", \n      \"loc\" : [ \n        -0.002, \n        0 \n      ] \n    } \n  ], \n  \"hasMore\" : false, \n  \"count\" : 2, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n
Example: With distance

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/near <<EOF\n{ \n  \"collection\" : \"products\", \n  \"latitude\" : 0, \n  \"longitude\" : 0, \n  \"skip\" : 1, \n  \"limit\" : 3, \n  \"distance\" : \"distance\", \n  \"radius\" : 300 \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    { \n      \"_id\" : \"products/854767153\", \n      \"_key\" : \"854767153\", \n      \"_rev\" : \"854767153\", \n      \"name\" : \"Name/-0.002/\", \n      \"loc\" : [ \n        -0.002, \n        0 \n      ], \n      \"distance\" : 222.38985328911744 \n    }, \n    { \n      \"_id\" : \"products/855160369\", \n      \"_key\" : \"855160369\", \n      \"_rev\" : \"855160369\", \n      \"name\" : \"Name/0.002/\", \n      \"loc\" : [ \n        0.002, \n        0 \n      ], \n      \"distance\" : 222.38985328911744 \n    }, \n    { \n      \"_id\" : \"products/854570545\", \n      \"_key\" : \"854570545\", \n      \"_rev\" : \"854570545\", \n      \"name\" : \"Name/-0.004/\", \n      \"loc\" : [ \n        -0.004, \n        0 \n      ], \n      \"distance\" : 444.779706578235 \n    } \n  ], \n  \"hasMore\" : false, \n  \"count\" : 3, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n\n", "parameters": [ { "in": "body", @@ -7145,7 +7145,7 @@ }, "/_api/simple/within-rectangle": { "put": { - "description": "**A json post document with these Properties is required:**\n\n - **latitude1**: The latitude of the first rectangle coordinate.\n - **skip**: The number of documents to skip in the query. (optional)\n - **latitude2**: The latitude of the second rectangle coordinate.\n - **longitude2**: The longitude of the second rectangle coordinate.\n - **longitude1**: The longitude of the first rectangle coordinate.\n - **limit**: The maximal amount of documents to return. The *skip* is\n applied before the *limit* restriction. The default is 100. (optional)\n - **collection**: The name of the collection to query.\n - **geo**: If given, the identifier of the geo-index to use. (optional)\n\n\n\n\n\nThis will find all documents within the specified rectangle (determined by\nthe given coordinates (*latitude1*, *longitude1*, *latitude2*, *longitude2*). \n\nIn order to use the *within-rectangle* query, a geo index must be defined for\nthe collection. This index also defines which attribute holds the\ncoordinates for the document. If you have more than one geo-spatial index,\nyou can use the *geo* field to select a particular index.\n\nReturns a cursor containing the result, see [Http Cursor](../HttpAqlQueryCursor/README.md) for details.\n\n\n
Example:

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/within-rectangle <<EOF\n{ \n  \"collection\" : \"products\", \n  \"latitude1\" : 0, \n  \"longitude1\" : 0, \n  \"latitude2\" : 0.2, \n  \"longitude2\" : 0.2, \n  \"skip\" : 1, \n  \"limit\" : 2 \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    { \n      \"_id\" : \"products/858827182\", \n      \"_key\" : \"858827182\", \n      \"_rev\" : \"858827182\", \n      \"name\" : \"Name/0.008/\", \n      \"loc\" : [ \n        0.008, \n        0 \n      ] \n    }, \n    { \n      \"_id\" : \"products/858630574\", \n      \"_key\" : \"858630574\", \n      \"_rev\" : \"858630574\", \n      \"name\" : \"Name/0.006/\", \n      \"loc\" : [ \n        0.006, \n        0 \n      ] \n    } \n  ], \n  \"hasMore\" : false, \n  \"count\" : 2, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n\n", + "description": "**A json post document with these Properties is required:**\n\n - **latitude1**: The latitude of the first rectangle coordinate.\n - **skip**: The number of documents to skip in the query. (optional)\n - **latitude2**: The latitude of the second rectangle coordinate.\n - **longitude2**: The longitude of the second rectangle coordinate.\n - **longitude1**: The longitude of the first rectangle coordinate.\n - **limit**: The maximal amount of documents to return. The *skip* is\n applied before the *limit* restriction. The default is 100. (optional)\n - **collection**: The name of the collection to query.\n - **geo**: If given, the identifier of the geo-index to use. (optional)\n\n\n\n\n\nThis will find all documents within the specified rectangle (determined by\nthe given coordinates (*latitude1*, *longitude1*, *latitude2*, *longitude2*). \n\nIn order to use the *within-rectangle* query, a geo index must be defined for\nthe collection. This index also defines which attribute holds the\ncoordinates for the document. If you have more than one geo-spatial index,\nyou can use the *geo* field to select a particular index.\n\nReturns a cursor containing the result, see [Http Cursor](../HttpAqlQueryCursor/README.md) for details.\n\n\n
Example:

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/within-rectangle <<EOF\n{ \n  \"collection\" : \"products\", \n  \"latitude1\" : 0, \n  \"longitude1\" : 0, \n  \"latitude2\" : 0.2, \n  \"longitude2\" : 0.2, \n  \"skip\" : 1, \n  \"limit\" : 2 \n}\nEOF\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    { \n      \"_id\" : \"products/858764849\", \n      \"_key\" : \"858764849\", \n      \"_rev\" : \"858764849\", \n      \"name\" : \"Name/0.008/\", \n      \"loc\" : [ \n        0.008, \n        0 \n      ] \n    }, \n    { \n      \"_id\" : \"products/858568241\", \n      \"_key\" : \"858568241\", \n      \"_rev\" : \"858568241\", \n      \"name\" : \"Name/0.006/\", \n      \"loc\" : [ \n        0.006, \n        0 \n      ] \n    } \n  ], \n  \"hasMore\" : false, \n  \"count\" : 2, \n  \"error\" : false, \n  \"code\" : 201 \n}\n

\n\n", "parameters": [ { "in": "body", @@ -7178,7 +7178,7 @@ }, "/_api/tasks": { "post": { - "description": "**A json post document with these Properties is required:**\n\n - **params**: The parameters to be passed into command\n - **offset**: Number of seconds initial delay \n - **command**: The JavaScript code to be executed\n - **name**: The name of the task\n - **period**: number of seconds between the executions\n\n\n\n\ncreates a new task with a generated id\n\n\n
Example:

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/tasks/ <<EOF\n{ \n  \"name\" : \"SampleTask\", \n  \"command\" : \"(function(params) { require('internal').print(params); })(params)\", \n  \"params\" : { \n    \"foo\" : \"bar\", \n    \"bar\" : \"foo\" \n  }, \n  \"period\" : 2 \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"859482542\", \n  \"name\" : \"SampleTask\", \n  \"type\" : \"periodic\", \n  \"period\" : 2, \n  \"created\" : 1456862649.78425, \n  \"command\" : \"(function(params) { require('internal').print(params); })(params)\", \n  \"database\" : \"_system\", \n  \"error\" : false, \n  \"code\" : 200 \n}\nshell> curl -X DELETE --dump - http://localhost:8529/_api/tasks/859482542\n\n

\n\n", + "description": "**A json post document with these Properties is required:**\n\n - **params**: The parameters to be passed into command\n - **offset**: Number of seconds initial delay \n - **command**: The JavaScript code to be executed\n - **name**: The name of the task\n - **period**: number of seconds between the executions\n\n\n\n\ncreates a new task with a generated id\n\n\n
Example:

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/tasks/ <<EOF\n{ \n  \"name\" : \"SampleTask\", \n  \"command\" : \"(function(params) { require('internal').print(params); })(params)\", \n  \"params\" : { \n    \"foo\" : \"bar\", \n    \"bar\" : \"foo\" \n  }, \n  \"period\" : 2 \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"859420209\", \n  \"name\" : \"SampleTask\", \n  \"type\" : \"periodic\", \n  \"period\" : 2, \n  \"created\" : 1457638712.799695, \n  \"command\" : \"(function(params) { require('internal').print(params); })(params)\", \n  \"database\" : \"_system\", \n  \"error\" : false, \n  \"code\" : 200 \n}\nshell> curl -X DELETE --dump - http://localhost:8529/_api/tasks/859420209\n\n

\n\n", "parameters": [ { "in": "body", @@ -7205,7 +7205,7 @@ }, "/_api/tasks/": { "get": { - "description": "\n\nfetches all existing tasks on the server\n\n\n
Example: Fetching all tasks

shell> curl --dump - http://localhost:8529/_api/tasks\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n[ \n  { \n    \"id\" : \"16165294\", \n    \"name\" : \"user-defined task\", \n    \"type\" : \"periodic\", \n    \"period\" : 1, \n    \"created\" : 1456862627.363498, \n    \"command\" : \"(function () {\\n      require('org/arangodb/foxx/queues/manager').manage();\\n    })(params)\", \n    \"database\" : \"_system\" \n  }, \n  { \n    \"id\" : \"statistics-gc\", \n    \"name\" : \"statistics-gc\", \n    \"type\" : \"periodic\", \n    \"period\" : 450, \n    \"created\" : 1456862627.243386, \n    \"command\" : \"require('org/arangodb/statistics').garbageCollector();\", \n    \"database\" : \"_system\" \n  }, \n  { \n    \"id\" : \"statistics-average-collector\", \n    \"name\" : \"statistics-average-collector\", \n    \"type\" : \"periodic\", \n    \"period\" : 900, \n    \"created\" : 1456862627.242818, \n    \"command\" : \"require('org/arangodb/statistics').historianAverage();\", \n    \"database\" : \"_system\" \n  }, \n  { \n    \"id\" : \"statistics-collector\", \n    \"name\" : \"statistics-collector\", \n    \"type\" : \"periodic\", \n    \"period\" : 10, \n    \"created\" : 1456862627.242682, \n    \"command\" : \"require('org/arangodb/statistics').historian();\", \n    \"database\" : \"_system\" \n  } \n]\n

\n\n", + "description": "\n\nfetches all existing tasks on the server\n\n\n
Example: Fetching all tasks

shell> curl --dump - http://localhost:8529/_api/tasks\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n[ \n  { \n    \"id\" : \"16168497\", \n    \"name\" : \"user-defined task\", \n    \"type\" : \"periodic\", \n    \"period\" : 1, \n    \"created\" : 1457638692.671135, \n    \"command\" : \"(function () {\\n      require('org/arangodb/foxx/queues/manager').manage();\\n    })(params)\", \n    \"database\" : \"_system\" \n  }, \n  { \n    \"id\" : \"statistics-average-collector\", \n    \"name\" : \"statistics-average-collector\", \n    \"type\" : \"periodic\", \n    \"period\" : 900, \n    \"created\" : 1457638692.545466, \n    \"command\" : \"require('org/arangodb/statistics').historianAverage();\", \n    \"database\" : \"_system\" \n  }, \n  { \n    \"id\" : \"statistics-gc\", \n    \"name\" : \"statistics-gc\", \n    \"type\" : \"periodic\", \n    \"period\" : 450, \n    \"created\" : 1457638692.546552, \n    \"command\" : \"require('org/arangodb/statistics').garbageCollector();\", \n    \"database\" : \"_system\" \n  }, \n  { \n    \"id\" : \"statistics-collector\", \n    \"name\" : \"statistics-collector\", \n    \"type\" : \"periodic\", \n    \"period\" : 10, \n    \"created\" : 1457638692.545289, \n    \"command\" : \"require('org/arangodb/statistics').historian();\", \n    \"database\" : \"_system\" \n  } \n]\n

\n\n", "parameters": [], "responses": { "200": { @@ -7246,7 +7246,7 @@ "x-filename": "Administration - js/actions/_admin/app.js, js/actions/_admin/routing/app.js, js/actions/_admin/server/app.js, js/actions/_admin/database/app.js, arangod/RestHandler/RestShutdownHandler.cpp, arangod/RestHandler/RestAdminLogHandler.cpp, js/actions/api-tasks.js, js/actions/api-endpoint.js, arangod/RestHandler/RestVersionHandler.cpp, js/actions/api-system.js" }, "get": { - "description": "\n\nfetches one existing tasks on the server specified by *id*\n\n\n
Example: Fetching a single task by its id

shell> curl --dump - http://localhost:8529/_api/tasks/statistics-average-collector\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"statistics-average-collector\", \n  \"name\" : \"statistics-average-collector\", \n  \"type\" : \"periodic\", \n  \"period\" : 900, \n  \"created\" : 1456862627.242818, \n  \"command\" : \"require('org/arangodb/statistics').historianAverage();\", \n  \"database\" : \"_system\", \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: trying to fetch a non-existing task

shell> curl --dump - http://localhost:8529/_api/tasks/non-existing-task\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"error\" : true, \n  \"code\" : 404, \n  \"errorNum\" : 1852, \n  \"errorMessage\" : \"task not found\" \n}\n

\n\n", + "description": "\n\nfetches one existing tasks on the server specified by *id*\n\n\n
Example: Fetching a single task by its id

shell> curl --dump - http://localhost:8529/_api/tasks/statistics-average-collector\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"statistics-average-collector\", \n  \"name\" : \"statistics-average-collector\", \n  \"type\" : \"periodic\", \n  \"period\" : 900, \n  \"created\" : 1457638692.545466, \n  \"command\" : \"require('org/arangodb/statistics').historianAverage();\", \n  \"database\" : \"_system\", \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: trying to fetch a non-existing task

shell> curl --dump - http://localhost:8529/_api/tasks/non-existing-task\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"error\" : true, \n  \"code\" : 404, \n  \"errorNum\" : 1852, \n  \"errorMessage\" : \"task not found\" \n}\n

\n\n", "parameters": [ { "description": "The id of the task to fetch.\n\n", @@ -7270,7 +7270,7 @@ "x-filename": "Administration - js/actions/_admin/app.js, js/actions/_admin/routing/app.js, js/actions/_admin/server/app.js, js/actions/_admin/database/app.js, arangod/RestHandler/RestShutdownHandler.cpp, arangod/RestHandler/RestAdminLogHandler.cpp, js/actions/api-tasks.js, js/actions/api-endpoint.js, arangod/RestHandler/RestVersionHandler.cpp, js/actions/api-system.js" }, "put": { - "description": "**A json post document with these Properties is required:**\n\n - **params**: The parameters to be passed into command\n - **offset**: Number of seconds initial delay \n - **command**: The JavaScript code to be executed\n - **name**: The name of the task\n - **period**: number of seconds between the executions\n\n\n\n\nregisters a new task with the specified id\n\n\n
Example:

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/tasks/sampleTask <<EOF\n{ \n  \"id\" : \"SampleTask\", \n  \"name\" : \"SampleTask\", \n  \"command\" : \"(function(params) { require('internal').print(params); })(params)\", \n  \"params\" : { \n    \"foo\" : \"bar\", \n    \"bar\" : \"foo\" \n  }, \n  \"period\" : 2 \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"sampleTask\", \n  \"name\" : \"SampleTask\", \n  \"type\" : \"periodic\", \n  \"period\" : 2, \n  \"created\" : 1456862649.837428, \n  \"command\" : \"(function(params) { require('internal').print(params); })(params)\", \n  \"database\" : \"_system\", \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", + "description": "**A json post document with these Properties is required:**\n\n - **params**: The parameters to be passed into command\n - **offset**: Number of seconds initial delay \n - **command**: The JavaScript code to be executed\n - **name**: The name of the task\n - **period**: number of seconds between the executions\n\n\n\n\nregisters a new task with the specified id\n\n\n
Example:

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/tasks/sampleTask <<EOF\n{ \n  \"id\" : \"SampleTask\", \n  \"name\" : \"SampleTask\", \n  \"command\" : \"(function(params) { require('internal').print(params); })(params)\", \n  \"params\" : { \n    \"foo\" : \"bar\", \n    \"bar\" : \"foo\" \n  }, \n  \"period\" : 2 \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"id\" : \"sampleTask\", \n  \"name\" : \"SampleTask\", \n  \"type\" : \"periodic\", \n  \"period\" : 2, \n  \"created\" : 1457638712.851435, \n  \"command\" : \"(function(params) { require('internal').print(params); })(params)\", \n  \"database\" : \"_system\", \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n\n", "parameters": [ { "description": "The id of the task to create\n\n", @@ -7341,7 +7341,7 @@ }, "/_api/traversal": { "post": { - "description": "\n\nStarts a traversal starting from a given vertex and following.\nedges contained in a given edgeCollection. The request must\ncontain the following attributes.\n\n**A json post document with these Properties is required:**\n\n - **sort**: body (JavaScript) code of a custom comparison function\n for the edges. The signature of this function is\n *(l, r) -> integer* (where l and r are edges) and must\n return -1 if l is smaller than, +1 if l is greater than,\n and 0 if l and r are equal. The reason for this is the\n following: The order of edges returned for a certain\n vertex is undefined. This is because there is no natural\n order of edges for a vertex with multiple connected edges.\n To explicitly define the order in which edges on the\n vertex are followed, you can specify an edge comparator\n function with this attribute. Note that the value here has\n to be a string to conform to the JSON standard, which in\n turn is parsed as function body on the server side. Furthermore\n note that this attribute is only used for the standard\n expanders. If you use your custom expander you have to\n do the sorting yourself within the expander code.\n - **direction**: direction for traversal\n - *if set*, must be either *\"outbound\"*, *\"inbound\"*, or *\"any\"*\n - *if not set*, the *expander* attribute must be specified\n - **minDepth**: ANDed with any existing filters):\n visits only nodes in at least the given depth\n - **startVertex**: id of the startVertex, e.g. *\"users/foo\"*.\n - **visitor**: body (JavaScript) code of custom visitor function\n function signature: *(config, result, vertex, path, connected) -> void*\n The visitor function can do anything, but its return value is ignored. To\n populate a result, use the *result* variable by reference. Note that the\n *connected* argument is only populated when the *order* attribute is set\n to *\"preorder-expander\"*.\n - **itemOrder**: item iteration order can be *\"forward\"* or *\"backward\"*\n - **strategy**: traversal strategy can be *\"depthfirst\"* or *\"breadthfirst\"*\n - **filter**: default is to include all nodes:\n body (JavaScript code) of custom filter function\n function signature: *(config, vertex, path) -> mixed*\n can return four different string values:\n - *\"exclude\"* -> this vertex will not be visited.\n - *\"prune\"* -> the edges of this vertex will not be followed.\n - *\"\"* or *undefined* -> visit the vertex and follow it's edges.\n - *Array* -> containing any combination of the above.\n If there is at least one *\"exclude\"* or *\"prune\"* respectivly\n is contained, it's effect will occur.\n - **init**: body (JavaScript) code of custom result initialization function\n function signature: *(config, result) -> void*\n initialize any values in result with what is required\n - **maxIterations**: Maximum number of iterations in each traversal. This number can be\n set to prevent endless loops in traversal of cyclic graphs. When a traversal performs\n as many iterations as the *maxIterations* value, the traversal will abort with an\n error. If *maxIterations* is not set, a server-defined value may be used.\n - **maxDepth**: ANDed with any existing filters visits only nodes in at most the given depth\n - **uniqueness**: specifies uniqueness for vertices and edges visited\n if set, must be an object like this:\n *\"uniqueness\": {\"vertices\": \"none\"|\"global\"|\"path\", \"edges\": \"none\"|\"global\"|\"path\"}*\n - **order**: traversal order can be *\"preorder\"*, *\"postorder\"* or *\"preorder-expander\"*\n - **graphName**: name of the graph that contains the edges.\n Either *edgeCollection* or *graphName* has to be given.\n In case both values are set the *graphName* is prefered.\n - **expander**: body (JavaScript) code of custom expander function\n *must* be set if *direction* attribute is **not** set\n function signature: *(config, vertex, path) -> array*\n expander must return an array of the connections for *vertex*\n each connection is an object with the attributes *edge* and *vertex*\n - **edgeCollection**: name of the collection that contains the edges.\n\n\n\n\n\nIf the Traversal is successfully executed *HTTP 200* will be returned.\nAdditionally the *result* object will be returned by the traversal.\n\nFor successful traversals, the returned JSON object has the\nfollowing properties:\n\n- *error*: boolean flag to indicate if an error occurred (*false*\n in this case)\n\n- *code*: the HTTP status code\n\n- *result*: the return value of the traversal\n\nIf the traversal specification is either missing or malformed, the server\nwill respond with *HTTP 400*.\n\nThe body of the response will then contain a JSON object with additional error\ndetails. The object has the following attributes:\n\n- *error*: boolean flag to indicate that an error occurred (*true* in this case)\n\n- *code*: the HTTP status code\n\n- *errorNum*: the server error number\n\n- *errorMessage*: a descriptive error message\n\n\n
Example: In the following examples the underlying graph will contain five persons\n*Alice*, *Bob*, *Charlie*, *Dave* and *Eve*.\nWe will have the following directed relations:\n - *Alice* knows *Bob*\n - *Bob* knows *Charlie*\n - *Bob* knows *Dave*\n - *Eve* knows *Alice*\n - *Eve* knows *Bob*\n\nThe starting vertex will always be Alice.\n\nFollow only outbound edges

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal <<EOF\n{ \n  \"startVertex\" : \"persons/alice\", \n  \"graphName\" : \"knows_graph\", \n  \"direction\" : \"outbound\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_id\" : \"persons/alice\", \n          \"_key\" : \"alice\", \n          \"_rev\" : \"912435630\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_id\" : \"persons/bob\", \n          \"_key\" : \"bob\", \n          \"_rev\" : \"912632238\", \n          \"name\" : \"Bob\" \n        }, \n        { \n          \"_id\" : \"persons/charlie\", \n          \"_key\" : \"charlie\", \n          \"_rev\" : \"912894382\", \n          \"name\" : \"Charlie\" \n        }, \n        { \n          \"_id\" : \"persons/dave\", \n          \"_key\" : \"dave\", \n          \"_rev\" : \"913090990\", \n          \"name\" : \"Dave\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"912435630\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/913549742\", \n              \"_key\" : \"913549742\", \n              \"_rev\" : \"913549742\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"912435630\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"912632238\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/913549742\", \n              \"_key\" : \"913549742\", \n              \"_rev\" : \"913549742\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/913746350\", \n              \"_key\" : \"913746350\", \n              \"_rev\" : \"913746350\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"912435630\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"912632238\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/charlie\", \n              \"_key\" : \"charlie\", \n              \"_rev\" : \"912894382\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/913549742\", \n              \"_key\" : \"913549742\", \n              \"_rev\" : \"913549742\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/913942958\", \n              \"_key\" : \"913942958\", \n              \"_rev\" : \"913942958\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"912435630\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"912632238\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/dave\", \n              \"_key\" : \"dave\", \n              \"_rev\" : \"913090990\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Follow only inbound edges

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal <<EOF\n{ \n  \"startVertex\" : \"persons/alice\", \n  \"graphName\" : \"knows_graph\", \n  \"direction\" : \"inbound\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_id\" : \"persons/alice\", \n          \"_key\" : \"alice\", \n          \"_rev\" : \"893954478\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_id\" : \"persons/eve\", \n          \"_key\" : \"eve\", \n          \"_rev\" : \"894806446\", \n          \"name\" : \"Eve\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"893954478\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/895658414\", \n              \"_key\" : \"895658414\", \n              \"_rev\" : \"895658414\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"893954478\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"894806446\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Follow any direction of edges

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal <<EOF\n{ \n  \"startVertex\" : \"persons/alice\", \n  \"graphName\" : \"knows_graph\", \n  \"direction\" : \"any\", \n  \"uniqueness\" : { \n    \"vertices\" : \"none\", \n    \"edges\" : \"global\" \n  } \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_id\" : \"persons/alice\", \n          \"_key\" : \"alice\", \n          \"_rev\" : \"863873454\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_id\" : \"persons/eve\", \n          \"_key\" : \"eve\", \n          \"_rev\" : \"864725422\", \n          \"name\" : \"Eve\" \n        }, \n        { \n          \"_id\" : \"persons/bob\", \n          \"_key\" : \"bob\", \n          \"_rev\" : \"864070062\", \n          \"name\" : \"Bob\" \n        }, \n        { \n          \"_id\" : \"persons/alice\", \n          \"_key\" : \"alice\", \n          \"_rev\" : \"863873454\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_id\" : \"persons/charlie\", \n          \"_key\" : \"charlie\", \n          \"_rev\" : \"864332206\", \n          \"name\" : \"Charlie\" \n        }, \n        { \n          \"_id\" : \"persons/dave\", \n          \"_key\" : \"dave\", \n          \"_rev\" : \"864528814\", \n          \"name\" : \"Dave\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"863873454\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/865577390\", \n              \"_key\" : \"865577390\", \n              \"_rev\" : \"865577390\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"863873454\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"864725422\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/865577390\", \n              \"_key\" : \"865577390\", \n              \"_rev\" : \"865577390\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/865773998\", \n              \"_key\" : \"865773998\", \n              \"_rev\" : \"865773998\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"863873454\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"864725422\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"864070062\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/865577390\", \n              \"_key\" : \"865577390\", \n              \"_rev\" : \"865577390\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/865773998\", \n              \"_key\" : \"865773998\", \n              \"_rev\" : \"865773998\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/864987566\", \n              \"_key\" : \"864987566\", \n              \"_rev\" : \"864987566\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"863873454\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"864725422\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"864070062\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"863873454\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/865577390\", \n              \"_key\" : \"865577390\", \n              \"_rev\" : \"865577390\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/865773998\", \n              \"_key\" : \"865773998\", \n              \"_rev\" : \"865773998\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/865184174\", \n              \"_key\" : \"865184174\", \n              \"_rev\" : \"865184174\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"863873454\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"864725422\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"864070062\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/charlie\", \n              \"_key\" : \"charlie\", \n              \"_rev\" : \"864332206\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/865577390\", \n              \"_key\" : \"865577390\", \n              \"_rev\" : \"865577390\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/865773998\", \n              \"_key\" : \"865773998\", \n              \"_rev\" : \"865773998\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/865380782\", \n              \"_key\" : \"865380782\", \n              \"_rev\" : \"865380782\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"863873454\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"864725422\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"864070062\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/dave\", \n              \"_key\" : \"dave\", \n              \"_rev\" : \"864528814\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Excluding *Charlie* and *Bob*

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal <<EOF\n{ \n  \"startVertex\" : \"persons/alice\", \n  \"graphName\" : \"knows_graph\", \n  \"direction\" : \"outbound\", \n  \"filter\" : \"if (vertex.name === \\\"Bob\\\" ||     vertex.name === \\\"Charlie\\\") {  return \\\"exclude\\\";}return;\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_id\" : \"persons/alice\", \n          \"_key\" : \"alice\", \n          \"_rev\" : \"885762478\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_id\" : \"persons/dave\", \n          \"_key\" : \"dave\", \n          \"_rev\" : \"886417838\", \n          \"name\" : \"Dave\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"885762478\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/886876590\", \n              \"_key\" : \"886876590\", \n              \"_rev\" : \"886876590\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/887269806\", \n              \"_key\" : \"887269806\", \n              \"_rev\" : \"887269806\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"885762478\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"885959086\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/dave\", \n              \"_key\" : \"dave\", \n              \"_rev\" : \"886417838\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Do not follow edges from *Bob*

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal <<EOF\n{ \n  \"startVertex\" : \"persons/alice\", \n  \"graphName\" : \"knows_graph\", \n  \"direction\" : \"outbound\", \n  \"filter\" : \"if (vertex.name === \\\"Bob\\\") {return \\\"prune\\\";}return;\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_id\" : \"persons/alice\", \n          \"_key\" : \"alice\", \n          \"_rev\" : \"890022318\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_id\" : \"persons/bob\", \n          \"_key\" : \"bob\", \n          \"_rev\" : \"890218926\", \n          \"name\" : \"Bob\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"890022318\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/891136430\", \n              \"_key\" : \"891136430\", \n              \"_rev\" : \"891136430\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"890022318\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"890218926\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Visit only nodes in a depth of at least 2

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal <<EOF\n{ \n  \"startVertex\" : \"persons/alice\", \n  \"graphName\" : \"knows_graph\", \n  \"direction\" : \"outbound\", \n  \"minDepth\" : 2 \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_id\" : \"persons/charlie\", \n          \"_key\" : \"charlie\", \n          \"_rev\" : \"908634542\", \n          \"name\" : \"Charlie\" \n        }, \n        { \n          \"_id\" : \"persons/dave\", \n          \"_key\" : \"dave\", \n          \"_rev\" : \"908831150\", \n          \"name\" : \"Dave\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/909289902\", \n              \"_key\" : \"909289902\", \n              \"_rev\" : \"909289902\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/909486510\", \n              \"_key\" : \"909486510\", \n              \"_rev\" : \"909486510\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"908175790\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"908372398\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/charlie\", \n              \"_key\" : \"charlie\", \n              \"_rev\" : \"908634542\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/909289902\", \n              \"_key\" : \"909289902\", \n              \"_rev\" : \"909289902\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/909683118\", \n              \"_key\" : \"909683118\", \n              \"_rev\" : \"909683118\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"908175790\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"908372398\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/dave\", \n              \"_key\" : \"dave\", \n              \"_rev\" : \"908831150\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Visit only nodes in a depth of at most 1

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal <<EOF\n{ \n  \"startVertex\" : \"persons/alice\", \n  \"graphName\" : \"knows_graph\", \n  \"direction\" : \"outbound\", \n  \"maxDepth\" : 1 \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_id\" : \"persons/alice\", \n          \"_key\" : \"alice\", \n          \"_rev\" : \"897952174\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_id\" : \"persons/bob\", \n          \"_key\" : \"bob\", \n          \"_rev\" : \"898148782\", \n          \"name\" : \"Bob\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"897952174\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/899066286\", \n              \"_key\" : \"899066286\", \n              \"_rev\" : \"899066286\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"897952174\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"898148782\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Using a visitor function to return vertex ids only

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal <<EOF\n{ \n  \"startVertex\" : \"persons/alice\", \n  \"graphName\" : \"knows_graph\", \n  \"direction\" : \"outbound\", \n  \"visitor\" : \"result.visited.vertices.push(vertex._id);\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        \"persons/alice\", \n        \"persons/bob\", \n        \"persons/charlie\", \n        \"persons/dave\" \n      ], \n      \"paths\" : [ ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Count all visited nodes and return a list of nodes only

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal <<EOF\n{ \n  \"startVertex\" : \"persons/alice\", \n  \"graphName\" : \"knows_graph\", \n  \"direction\" : \"outbound\", \n  \"init\" : \"result.visited = 0; result.myVertices = [ ];\", \n  \"visitor\" : \"result.visited++; result.myVertices.push(vertex);\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : { \n    \"visited\" : 4, \n    \"myVertices\" : [ \n      { \n        \"_id\" : \"persons/alice\", \n        \"_key\" : \"alice\", \n        \"_rev\" : \"922659246\", \n        \"name\" : \"Alice\" \n      }, \n      { \n        \"_id\" : \"persons/bob\", \n        \"_key\" : \"bob\", \n        \"_rev\" : \"922855854\", \n        \"name\" : \"Bob\" \n      }, \n      { \n        \"_id\" : \"persons/charlie\", \n        \"_key\" : \"charlie\", \n        \"_rev\" : \"923117998\", \n        \"name\" : \"Charlie\" \n      }, \n      { \n        \"_id\" : \"persons/dave\", \n        \"_key\" : \"dave\", \n        \"_rev\" : \"923314606\", \n        \"name\" : \"Dave\" \n      } \n    ] \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Expand only inbound edges of *Alice* and outbound edges of *Eve*

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal <<EOF\n{ \n  \"startVertex\" : \"persons/alice\", \n  \"graphName\" : \"knows_graph\", \n  \"expander\" : \"var connections = [ ];if (vertex.name === \\\"Alice\\\") {config.datasource.getInEdges(vertex).forEach(function (e) {connections.push({ vertex: require(\\\"internal\\\").db._document(e._from), edge: e});});}if (vertex.name === \\\"Eve\\\") {config.datasource.getOutEdges(vertex).forEach(function (e) {connections.push({vertex: require(\\\"internal\\\").db._document(e._to), edge: e});});}return connections;\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_id\" : \"persons/alice\", \n          \"_key\" : \"alice\", \n          \"_rev\" : \"926919086\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_id\" : \"persons/eve\", \n          \"_key\" : \"eve\", \n          \"_rev\" : \"927771054\", \n          \"name\" : \"Eve\" \n        }, \n        { \n          \"_id\" : \"persons/bob\", \n          \"_key\" : \"bob\", \n          \"_rev\" : \"927115694\", \n          \"name\" : \"Bob\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"926919086\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/928623022\", \n              \"_key\" : \"928623022\", \n              \"_rev\" : \"928623022\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"926919086\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"927771054\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/928623022\", \n              \"_key\" : \"928623022\", \n              \"_rev\" : \"928623022\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/928819630\", \n              \"_key\" : \"928819630\", \n              \"_rev\" : \"928819630\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"926919086\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"927771054\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"927115694\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Follow the *depthfirst* strategy

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal <<EOF\n{ \n  \"startVertex\" : \"persons/alice\", \n  \"graphName\" : \"knows_graph\", \n  \"direction\" : \"any\", \n  \"strategy\" : \"depthfirst\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_id\" : \"persons/alice\", \n          \"_key\" : \"alice\", \n          \"_rev\" : \"874817966\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_id\" : \"persons/eve\", \n          \"_key\" : \"eve\", \n          \"_rev\" : \"875669934\", \n          \"name\" : \"Eve\" \n        }, \n        { \n          \"_id\" : \"persons/bob\", \n          \"_key\" : \"bob\", \n          \"_rev\" : \"875014574\", \n          \"name\" : \"Bob\" \n        }, \n        { \n          \"_id\" : \"persons/alice\", \n          \"_key\" : \"alice\", \n          \"_rev\" : \"874817966\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_id\" : \"persons/charlie\", \n          \"_key\" : \"charlie\", \n          \"_rev\" : \"875276718\", \n          \"name\" : \"Charlie\" \n        }, \n        { \n          \"_id\" : \"persons/dave\", \n          \"_key\" : \"dave\", \n          \"_rev\" : \"875473326\", \n          \"name\" : \"Dave\" \n        }, \n        { \n          \"_id\" : \"persons/bob\", \n          \"_key\" : \"bob\", \n          \"_rev\" : \"875014574\", \n          \"name\" : \"Bob\" \n        }, \n        { \n          \"_id\" : \"persons/eve\", \n          \"_key\" : \"eve\", \n          \"_rev\" : \"875669934\", \n          \"name\" : \"Eve\" \n        }, \n        { \n          \"_id\" : \"persons/alice\", \n          \"_key\" : \"alice\", \n          \"_rev\" : \"874817966\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_id\" : \"persons/charlie\", \n          \"_key\" : \"charlie\", \n          \"_rev\" : \"875276718\", \n          \"name\" : \"Charlie\" \n        }, \n        { \n          \"_id\" : \"persons/dave\", \n          \"_key\" : \"dave\", \n          \"_rev\" : \"875473326\", \n          \"name\" : \"Dave\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"874817966\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/876521902\", \n              \"_key\" : \"876521902\", \n              \"_rev\" : \"876521902\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"874817966\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"875669934\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/876521902\", \n              \"_key\" : \"876521902\", \n              \"_rev\" : \"876521902\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/876718510\", \n              \"_key\" : \"876718510\", \n              \"_rev\" : \"876718510\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"874817966\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"875669934\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"875014574\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/876521902\", \n              \"_key\" : \"876521902\", \n              \"_rev\" : \"876521902\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/876718510\", \n              \"_key\" : \"876718510\", \n              \"_rev\" : \"876718510\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/875932078\", \n              \"_key\" : \"875932078\", \n              \"_rev\" : \"875932078\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"874817966\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"875669934\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"875014574\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"874817966\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/876521902\", \n              \"_key\" : \"876521902\", \n              \"_rev\" : \"876521902\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/876718510\", \n              \"_key\" : \"876718510\", \n              \"_rev\" : \"876718510\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/876128686\", \n              \"_key\" : \"876128686\", \n              \"_rev\" : \"876128686\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"874817966\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"875669934\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"875014574\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/charlie\", \n              \"_key\" : \"charlie\", \n              \"_rev\" : \"875276718\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/876521902\", \n              \"_key\" : \"876521902\", \n              \"_rev\" : \"876521902\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/876718510\", \n              \"_key\" : \"876718510\", \n              \"_rev\" : \"876718510\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/876325294\", \n              \"_key\" : \"876325294\", \n              \"_rev\" : \"876325294\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"874817966\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"875669934\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"875014574\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/dave\", \n              \"_key\" : \"dave\", \n              \"_rev\" : \"875473326\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/875932078\", \n              \"_key\" : \"875932078\", \n              \"_rev\" : \"875932078\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"874817966\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"875014574\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/875932078\", \n              \"_key\" : \"875932078\", \n              \"_rev\" : \"875932078\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/876718510\", \n              \"_key\" : \"876718510\", \n              \"_rev\" : \"876718510\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"874817966\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"875014574\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"875669934\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/875932078\", \n              \"_key\" : \"875932078\", \n              \"_rev\" : \"875932078\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/876718510\", \n              \"_key\" : \"876718510\", \n              \"_rev\" : \"876718510\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/876521902\", \n              \"_key\" : \"876521902\", \n              \"_rev\" : \"876521902\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"874817966\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"875014574\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"875669934\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"874817966\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/875932078\", \n              \"_key\" : \"875932078\", \n              \"_rev\" : \"875932078\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/876128686\", \n              \"_key\" : \"876128686\", \n              \"_rev\" : \"876128686\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"874817966\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"875014574\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/charlie\", \n              \"_key\" : \"charlie\", \n              \"_rev\" : \"875276718\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/875932078\", \n              \"_key\" : \"875932078\", \n              \"_rev\" : \"875932078\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/876325294\", \n              \"_key\" : \"876325294\", \n              \"_rev\" : \"876325294\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"874817966\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"875014574\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/dave\", \n              \"_key\" : \"dave\", \n              \"_rev\" : \"875473326\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Using *postorder* ordering

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal <<EOF\n{ \n  \"startVertex\" : \"persons/alice\", \n  \"graphName\" : \"knows_graph\", \n  \"direction\" : \"any\", \n  \"order\" : \"postorder\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_id\" : \"persons/alice\", \n          \"_key\" : \"alice\", \n          \"_rev\" : \"916695470\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_id\" : \"persons/charlie\", \n          \"_key\" : \"charlie\", \n          \"_rev\" : \"917154222\", \n          \"name\" : \"Charlie\" \n        }, \n        { \n          \"_id\" : \"persons/dave\", \n          \"_key\" : \"dave\", \n          \"_rev\" : \"917350830\", \n          \"name\" : \"Dave\" \n        }, \n        { \n          \"_id\" : \"persons/bob\", \n          \"_key\" : \"bob\", \n          \"_rev\" : \"916892078\", \n          \"name\" : \"Bob\" \n        }, \n        { \n          \"_id\" : \"persons/eve\", \n          \"_key\" : \"eve\", \n          \"_rev\" : \"917547438\", \n          \"name\" : \"Eve\" \n        }, \n        { \n          \"_id\" : \"persons/alice\", \n          \"_key\" : \"alice\", \n          \"_rev\" : \"916695470\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_id\" : \"persons/eve\", \n          \"_key\" : \"eve\", \n          \"_rev\" : \"917547438\", \n          \"name\" : \"Eve\" \n        }, \n        { \n          \"_id\" : \"persons/charlie\", \n          \"_key\" : \"charlie\", \n          \"_rev\" : \"917154222\", \n          \"name\" : \"Charlie\" \n        }, \n        { \n          \"_id\" : \"persons/dave\", \n          \"_key\" : \"dave\", \n          \"_rev\" : \"917350830\", \n          \"name\" : \"Dave\" \n        }, \n        { \n          \"_id\" : \"persons/bob\", \n          \"_key\" : \"bob\", \n          \"_rev\" : \"916892078\", \n          \"name\" : \"Bob\" \n        }, \n        { \n          \"_id\" : \"persons/alice\", \n          \"_key\" : \"alice\", \n          \"_rev\" : \"916695470\", \n          \"name\" : \"Alice\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/918399406\", \n              \"_key\" : \"918399406\", \n              \"_rev\" : \"918399406\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/918596014\", \n              \"_key\" : \"918596014\", \n              \"_rev\" : \"918596014\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/917809582\", \n              \"_key\" : \"917809582\", \n              \"_rev\" : \"917809582\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"916695470\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"917547438\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"916892078\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"916695470\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/918399406\", \n              \"_key\" : \"918399406\", \n              \"_rev\" : \"918399406\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/918596014\", \n              \"_key\" : \"918596014\", \n              \"_rev\" : \"918596014\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/918006190\", \n              \"_key\" : \"918006190\", \n              \"_rev\" : \"918006190\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"916695470\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"917547438\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"916892078\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/charlie\", \n              \"_key\" : \"charlie\", \n              \"_rev\" : \"917154222\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/918399406\", \n              \"_key\" : \"918399406\", \n              \"_rev\" : \"918399406\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/918596014\", \n              \"_key\" : \"918596014\", \n              \"_rev\" : \"918596014\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/918202798\", \n              \"_key\" : \"918202798\", \n              \"_rev\" : \"918202798\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"916695470\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"917547438\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"916892078\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/dave\", \n              \"_key\" : \"dave\", \n              \"_rev\" : \"917350830\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/918399406\", \n              \"_key\" : \"918399406\", \n              \"_rev\" : \"918399406\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/918596014\", \n              \"_key\" : \"918596014\", \n              \"_rev\" : \"918596014\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"916695470\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"917547438\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"916892078\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/918399406\", \n              \"_key\" : \"918399406\", \n              \"_rev\" : \"918399406\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"916695470\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"917547438\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/917809582\", \n              \"_key\" : \"917809582\", \n              \"_rev\" : \"917809582\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/918596014\", \n              \"_key\" : \"918596014\", \n              \"_rev\" : \"918596014\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/918399406\", \n              \"_key\" : \"918399406\", \n              \"_rev\" : \"918399406\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"916695470\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"916892078\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"917547438\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"916695470\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/917809582\", \n              \"_key\" : \"917809582\", \n              \"_rev\" : \"917809582\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/918596014\", \n              \"_key\" : \"918596014\", \n              \"_rev\" : \"918596014\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"916695470\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"916892078\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"917547438\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/917809582\", \n              \"_key\" : \"917809582\", \n              \"_rev\" : \"917809582\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/918006190\", \n              \"_key\" : \"918006190\", \n              \"_rev\" : \"918006190\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"916695470\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"916892078\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/charlie\", \n              \"_key\" : \"charlie\", \n              \"_rev\" : \"917154222\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/917809582\", \n              \"_key\" : \"917809582\", \n              \"_rev\" : \"917809582\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/918202798\", \n              \"_key\" : \"918202798\", \n              \"_rev\" : \"918202798\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"916695470\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"916892078\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/dave\", \n              \"_key\" : \"dave\", \n              \"_rev\" : \"917350830\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/917809582\", \n              \"_key\" : \"917809582\", \n              \"_rev\" : \"917809582\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"916695470\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"916892078\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"916695470\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Using *backward* item-ordering:

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal <<EOF\n{ \n  \"startVertex\" : \"persons/alice\", \n  \"graphName\" : \"knows_graph\", \n  \"direction\" : \"any\", \n  \"itemOrder\" : \"backward\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_id\" : \"persons/alice\", \n          \"_key\" : \"alice\", \n          \"_rev\" : \"868854190\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_id\" : \"persons/bob\", \n          \"_key\" : \"bob\", \n          \"_rev\" : \"869050798\", \n          \"name\" : \"Bob\" \n        }, \n        { \n          \"_id\" : \"persons/dave\", \n          \"_key\" : \"dave\", \n          \"_rev\" : \"869509550\", \n          \"name\" : \"Dave\" \n        }, \n        { \n          \"_id\" : \"persons/charlie\", \n          \"_key\" : \"charlie\", \n          \"_rev\" : \"869312942\", \n          \"name\" : \"Charlie\" \n        }, \n        { \n          \"_id\" : \"persons/eve\", \n          \"_key\" : \"eve\", \n          \"_rev\" : \"869706158\", \n          \"name\" : \"Eve\" \n        }, \n        { \n          \"_id\" : \"persons/alice\", \n          \"_key\" : \"alice\", \n          \"_rev\" : \"868854190\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_id\" : \"persons/eve\", \n          \"_key\" : \"eve\", \n          \"_rev\" : \"869706158\", \n          \"name\" : \"Eve\" \n        }, \n        { \n          \"_id\" : \"persons/bob\", \n          \"_key\" : \"bob\", \n          \"_rev\" : \"869050798\", \n          \"name\" : \"Bob\" \n        }, \n        { \n          \"_id\" : \"persons/dave\", \n          \"_key\" : \"dave\", \n          \"_rev\" : \"869509550\", \n          \"name\" : \"Dave\" \n        }, \n        { \n          \"_id\" : \"persons/charlie\", \n          \"_key\" : \"charlie\", \n          \"_rev\" : \"869312942\", \n          \"name\" : \"Charlie\" \n        }, \n        { \n          \"_id\" : \"persons/alice\", \n          \"_key\" : \"alice\", \n          \"_rev\" : \"868854190\", \n          \"name\" : \"Alice\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"868854190\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/869968302\", \n              \"_key\" : \"869968302\", \n              \"_rev\" : \"869968302\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"868854190\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"869050798\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/869968302\", \n              \"_key\" : \"869968302\", \n              \"_rev\" : \"869968302\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/870361518\", \n              \"_key\" : \"870361518\", \n              \"_rev\" : \"870361518\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"868854190\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"869050798\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/dave\", \n              \"_key\" : \"dave\", \n              \"_rev\" : \"869509550\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/869968302\", \n              \"_key\" : \"869968302\", \n              \"_rev\" : \"869968302\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/870164910\", \n              \"_key\" : \"870164910\", \n              \"_rev\" : \"870164910\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"868854190\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"869050798\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/charlie\", \n              \"_key\" : \"charlie\", \n              \"_rev\" : \"869312942\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/869968302\", \n              \"_key\" : \"869968302\", \n              \"_rev\" : \"869968302\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/870754734\", \n              \"_key\" : \"870754734\", \n              \"_rev\" : \"870754734\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"868854190\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"869050798\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"869706158\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/869968302\", \n              \"_key\" : \"869968302\", \n              \"_rev\" : \"869968302\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/870754734\", \n              \"_key\" : \"870754734\", \n              \"_rev\" : \"870754734\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/870558126\", \n              \"_key\" : \"870558126\", \n              \"_rev\" : \"870558126\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"868854190\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"869050798\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"869706158\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"868854190\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/870558126\", \n              \"_key\" : \"870558126\", \n              \"_rev\" : \"870558126\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"868854190\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"869706158\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/870558126\", \n              \"_key\" : \"870558126\", \n              \"_rev\" : \"870558126\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/870754734\", \n              \"_key\" : \"870754734\", \n              \"_rev\" : \"870754734\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"868854190\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"869706158\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"869050798\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/870558126\", \n              \"_key\" : \"870558126\", \n              \"_rev\" : \"870558126\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/870754734\", \n              \"_key\" : \"870754734\", \n              \"_rev\" : \"870754734\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/870361518\", \n              \"_key\" : \"870361518\", \n              \"_rev\" : \"870361518\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"868854190\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"869706158\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"869050798\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/dave\", \n              \"_key\" : \"dave\", \n              \"_rev\" : \"869509550\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/870558126\", \n              \"_key\" : \"870558126\", \n              \"_rev\" : \"870558126\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/870754734\", \n              \"_key\" : \"870754734\", \n              \"_rev\" : \"870754734\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/870164910\", \n              \"_key\" : \"870164910\", \n              \"_rev\" : \"870164910\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"868854190\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"869706158\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"869050798\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/charlie\", \n              \"_key\" : \"charlie\", \n              \"_rev\" : \"869312942\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/870558126\", \n              \"_key\" : \"870558126\", \n              \"_rev\" : \"870558126\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/870754734\", \n              \"_key\" : \"870754734\", \n              \"_rev\" : \"870754734\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/869968302\", \n              \"_key\" : \"869968302\", \n              \"_rev\" : \"869968302\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"868854190\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"869706158\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"869050798\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"868854190\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Edges should only be included once globally,\nbut nodes are included every time they are visited

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal <<EOF\n{ \n  \"startVertex\" : \"persons/alice\", \n  \"graphName\" : \"knows_graph\", \n  \"direction\" : \"any\", \n  \"uniqueness\" : { \n    \"vertices\" : \"none\", \n    \"edges\" : \"global\" \n  } \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_id\" : \"persons/alice\", \n          \"_key\" : \"alice\", \n          \"_rev\" : \"880781742\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_id\" : \"persons/eve\", \n          \"_key\" : \"eve\", \n          \"_rev\" : \"881633710\", \n          \"name\" : \"Eve\" \n        }, \n        { \n          \"_id\" : \"persons/bob\", \n          \"_key\" : \"bob\", \n          \"_rev\" : \"880978350\", \n          \"name\" : \"Bob\" \n        }, \n        { \n          \"_id\" : \"persons/alice\", \n          \"_key\" : \"alice\", \n          \"_rev\" : \"880781742\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_id\" : \"persons/charlie\", \n          \"_key\" : \"charlie\", \n          \"_rev\" : \"881240494\", \n          \"name\" : \"Charlie\" \n        }, \n        { \n          \"_id\" : \"persons/dave\", \n          \"_key\" : \"dave\", \n          \"_rev\" : \"881437102\", \n          \"name\" : \"Dave\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"880781742\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/882485678\", \n              \"_key\" : \"882485678\", \n              \"_rev\" : \"882485678\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"880781742\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"881633710\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/882485678\", \n              \"_key\" : \"882485678\", \n              \"_rev\" : \"882485678\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/882682286\", \n              \"_key\" : \"882682286\", \n              \"_rev\" : \"882682286\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"880781742\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"881633710\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"880978350\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/882485678\", \n              \"_key\" : \"882485678\", \n              \"_rev\" : \"882485678\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/882682286\", \n              \"_key\" : \"882682286\", \n              \"_rev\" : \"882682286\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/881895854\", \n              \"_key\" : \"881895854\", \n              \"_rev\" : \"881895854\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"880781742\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"881633710\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"880978350\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"880781742\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/882485678\", \n              \"_key\" : \"882485678\", \n              \"_rev\" : \"882485678\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/882682286\", \n              \"_key\" : \"882682286\", \n              \"_rev\" : \"882682286\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/882092462\", \n              \"_key\" : \"882092462\", \n              \"_rev\" : \"882092462\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"880781742\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"881633710\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"880978350\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/charlie\", \n              \"_key\" : \"charlie\", \n              \"_rev\" : \"881240494\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/882485678\", \n              \"_key\" : \"882485678\", \n              \"_rev\" : \"882485678\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/882682286\", \n              \"_key\" : \"882682286\", \n              \"_rev\" : \"882682286\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/882289070\", \n              \"_key\" : \"882289070\", \n              \"_rev\" : \"882289070\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"880781742\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"881633710\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"880978350\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/dave\", \n              \"_key\" : \"dave\", \n              \"_rev\" : \"881437102\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: If the underlying graph is cyclic, *maxIterations* should be set\n\nThe underlying graph has two vertices *Alice* and *Bob*.\nWith the directed edges:\n- *Alice* knows *Bob*\n_ *Bob* knows *Alice*

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal <<EOF\n{ \n  \"startVertex\" : \"persons/alice\", \n  \"graphName\" : \"knows_graph\", \n  \"direction\" : \"any\", \n  \"uniqueness\" : { \n    \"vertices\" : \"none\", \n    \"edges\" : \"none\" \n  }, \n  \"maxIterations\" : 5 \n}\nEOF\n\nHTTP/1.1 500 Internal Server Error\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"error\" : true, \n  \"code\" : 500, \n  \"errorNum\" : 1909, \n  \"errorMessage\" : \"too many iterations - try increasing the value of 'maxIterations'\" \n}\n

\n\n\n", + "description": "\n\nStarts a traversal starting from a given vertex and following.\nedges contained in a given edgeCollection. The request must\ncontain the following attributes.\n\n**A json post document with these Properties is required:**\n\n - **sort**: body (JavaScript) code of a custom comparison function\n for the edges. The signature of this function is\n *(l, r) -> integer* (where l and r are edges) and must\n return -1 if l is smaller than, +1 if l is greater than,\n and 0 if l and r are equal. The reason for this is the\n following: The order of edges returned for a certain\n vertex is undefined. This is because there is no natural\n order of edges for a vertex with multiple connected edges.\n To explicitly define the order in which edges on the\n vertex are followed, you can specify an edge comparator\n function with this attribute. Note that the value here has\n to be a string to conform to the JSON standard, which in\n turn is parsed as function body on the server side. Furthermore\n note that this attribute is only used for the standard\n expanders. If you use your custom expander you have to\n do the sorting yourself within the expander code.\n - **direction**: direction for traversal\n - *if set*, must be either *\"outbound\"*, *\"inbound\"*, or *\"any\"*\n - *if not set*, the *expander* attribute must be specified\n - **minDepth**: ANDed with any existing filters):\n visits only nodes in at least the given depth\n - **startVertex**: id of the startVertex, e.g. *\"users/foo\"*.\n - **visitor**: body (JavaScript) code of custom visitor function\n function signature: *(config, result, vertex, path, connected) -> void*\n The visitor function can do anything, but its return value is ignored. To\n populate a result, use the *result* variable by reference. Note that the\n *connected* argument is only populated when the *order* attribute is set\n to *\"preorder-expander\"*.\n - **itemOrder**: item iteration order can be *\"forward\"* or *\"backward\"*\n - **strategy**: traversal strategy can be *\"depthfirst\"* or *\"breadthfirst\"*\n - **filter**: default is to include all nodes:\n body (JavaScript code) of custom filter function\n function signature: *(config, vertex, path) -> mixed*\n can return four different string values:\n - *\"exclude\"* -> this vertex will not be visited.\n - *\"prune\"* -> the edges of this vertex will not be followed.\n - *\"\"* or *undefined* -> visit the vertex and follow it's edges.\n - *Array* -> containing any combination of the above.\n If there is at least one *\"exclude\"* or *\"prune\"* respectivly\n is contained, it's effect will occur.\n - **init**: body (JavaScript) code of custom result initialization function\n function signature: *(config, result) -> void*\n initialize any values in result with what is required\n - **maxIterations**: Maximum number of iterations in each traversal. This number can be\n set to prevent endless loops in traversal of cyclic graphs. When a traversal performs\n as many iterations as the *maxIterations* value, the traversal will abort with an\n error. If *maxIterations* is not set, a server-defined value may be used.\n - **maxDepth**: ANDed with any existing filters visits only nodes in at most the given depth\n - **uniqueness**: specifies uniqueness for vertices and edges visited\n if set, must be an object like this:\n *\"uniqueness\": {\"vertices\": \"none\"|\"global\"|\"path\", \"edges\": \"none\"|\"global\"|\"path\"}*\n - **order**: traversal order can be *\"preorder\"*, *\"postorder\"* or *\"preorder-expander\"*\n - **graphName**: name of the graph that contains the edges.\n Either *edgeCollection* or *graphName* has to be given.\n In case both values are set the *graphName* is prefered.\n - **expander**: body (JavaScript) code of custom expander function\n *must* be set if *direction* attribute is **not** set\n function signature: *(config, vertex, path) -> array*\n expander must return an array of the connections for *vertex*\n each connection is an object with the attributes *edge* and *vertex*\n - **edgeCollection**: name of the collection that contains the edges.\n\n\n\n\n\nIf the Traversal is successfully executed *HTTP 200* will be returned.\nAdditionally the *result* object will be returned by the traversal.\n\nFor successful traversals, the returned JSON object has the\nfollowing properties:\n\n- *error*: boolean flag to indicate if an error occurred (*false*\n in this case)\n\n- *code*: the HTTP status code\n\n- *result*: the return value of the traversal\n\nIf the traversal specification is either missing or malformed, the server\nwill respond with *HTTP 400*.\n\nThe body of the response will then contain a JSON object with additional error\ndetails. The object has the following attributes:\n\n- *error*: boolean flag to indicate that an error occurred (*true* in this case)\n\n- *code*: the HTTP status code\n\n- *errorNum*: the server error number\n\n- *errorMessage*: a descriptive error message\n\n\n
Example: In the following examples the underlying graph will contain five persons\n*Alice*, *Bob*, *Charlie*, *Dave* and *Eve*.\nWe will have the following directed relations:\n - *Alice* knows *Bob*\n - *Bob* knows *Charlie*\n - *Bob* knows *Dave*\n - *Eve* knows *Alice*\n - *Eve* knows *Bob*\n\nThe starting vertex will always be Alice.\n\nFollow only outbound edges

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal <<EOF\n{ \n  \"startVertex\" : \"persons/alice\", \n  \"graphName\" : \"knows_graph\", \n  \"direction\" : \"outbound\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_id\" : \"persons/alice\", \n          \"_key\" : \"alice\", \n          \"_rev\" : \"912373297\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_id\" : \"persons/bob\", \n          \"_key\" : \"bob\", \n          \"_rev\" : \"912569905\", \n          \"name\" : \"Bob\" \n        }, \n        { \n          \"_id\" : \"persons/charlie\", \n          \"_key\" : \"charlie\", \n          \"_rev\" : \"912832049\", \n          \"name\" : \"Charlie\" \n        }, \n        { \n          \"_id\" : \"persons/dave\", \n          \"_key\" : \"dave\", \n          \"_rev\" : \"913028657\", \n          \"name\" : \"Dave\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"912373297\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/913487409\", \n              \"_key\" : \"913487409\", \n              \"_rev\" : \"913487409\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"912373297\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"912569905\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/913487409\", \n              \"_key\" : \"913487409\", \n              \"_rev\" : \"913487409\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/913684017\", \n              \"_key\" : \"913684017\", \n              \"_rev\" : \"913684017\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"912373297\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"912569905\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/charlie\", \n              \"_key\" : \"charlie\", \n              \"_rev\" : \"912832049\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/913487409\", \n              \"_key\" : \"913487409\", \n              \"_rev\" : \"913487409\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/913880625\", \n              \"_key\" : \"913880625\", \n              \"_rev\" : \"913880625\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"912373297\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"912569905\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/dave\", \n              \"_key\" : \"dave\", \n              \"_rev\" : \"913028657\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Follow only inbound edges

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal <<EOF\n{ \n  \"startVertex\" : \"persons/alice\", \n  \"graphName\" : \"knows_graph\", \n  \"direction\" : \"inbound\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_id\" : \"persons/alice\", \n          \"_key\" : \"alice\", \n          \"_rev\" : \"893892145\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_id\" : \"persons/eve\", \n          \"_key\" : \"eve\", \n          \"_rev\" : \"894744113\", \n          \"name\" : \"Eve\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"893892145\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/895596081\", \n              \"_key\" : \"895596081\", \n              \"_rev\" : \"895596081\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"893892145\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"894744113\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Follow any direction of edges

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal <<EOF\n{ \n  \"startVertex\" : \"persons/alice\", \n  \"graphName\" : \"knows_graph\", \n  \"direction\" : \"any\", \n  \"uniqueness\" : { \n    \"vertices\" : \"none\", \n    \"edges\" : \"global\" \n  } \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_id\" : \"persons/alice\", \n          \"_key\" : \"alice\", \n          \"_rev\" : \"863811121\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_id\" : \"persons/eve\", \n          \"_key\" : \"eve\", \n          \"_rev\" : \"864663089\", \n          \"name\" : \"Eve\" \n        }, \n        { \n          \"_id\" : \"persons/bob\", \n          \"_key\" : \"bob\", \n          \"_rev\" : \"864007729\", \n          \"name\" : \"Bob\" \n        }, \n        { \n          \"_id\" : \"persons/alice\", \n          \"_key\" : \"alice\", \n          \"_rev\" : \"863811121\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_id\" : \"persons/charlie\", \n          \"_key\" : \"charlie\", \n          \"_rev\" : \"864269873\", \n          \"name\" : \"Charlie\" \n        }, \n        { \n          \"_id\" : \"persons/dave\", \n          \"_key\" : \"dave\", \n          \"_rev\" : \"864466481\", \n          \"name\" : \"Dave\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"863811121\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/865515057\", \n              \"_key\" : \"865515057\", \n              \"_rev\" : \"865515057\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"863811121\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"864663089\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/865515057\", \n              \"_key\" : \"865515057\", \n              \"_rev\" : \"865515057\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/865711665\", \n              \"_key\" : \"865711665\", \n              \"_rev\" : \"865711665\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"863811121\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"864663089\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"864007729\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/865515057\", \n              \"_key\" : \"865515057\", \n              \"_rev\" : \"865515057\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/865711665\", \n              \"_key\" : \"865711665\", \n              \"_rev\" : \"865711665\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/864925233\", \n              \"_key\" : \"864925233\", \n              \"_rev\" : \"864925233\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"863811121\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"864663089\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"864007729\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"863811121\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/865515057\", \n              \"_key\" : \"865515057\", \n              \"_rev\" : \"865515057\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/865711665\", \n              \"_key\" : \"865711665\", \n              \"_rev\" : \"865711665\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/865121841\", \n              \"_key\" : \"865121841\", \n              \"_rev\" : \"865121841\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"863811121\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"864663089\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"864007729\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/charlie\", \n              \"_key\" : \"charlie\", \n              \"_rev\" : \"864269873\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/865515057\", \n              \"_key\" : \"865515057\", \n              \"_rev\" : \"865515057\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/865711665\", \n              \"_key\" : \"865711665\", \n              \"_rev\" : \"865711665\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/865318449\", \n              \"_key\" : \"865318449\", \n              \"_rev\" : \"865318449\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"863811121\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"864663089\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"864007729\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/dave\", \n              \"_key\" : \"dave\", \n              \"_rev\" : \"864466481\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Excluding *Charlie* and *Bob*

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal <<EOF\n{ \n  \"startVertex\" : \"persons/alice\", \n  \"graphName\" : \"knows_graph\", \n  \"direction\" : \"outbound\", \n  \"filter\" : \"if (vertex.name === \\\"Bob\\\" ||     vertex.name === \\\"Charlie\\\") {  return \\\"exclude\\\";}return;\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_id\" : \"persons/alice\", \n          \"_key\" : \"alice\", \n          \"_rev\" : \"885700145\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_id\" : \"persons/dave\", \n          \"_key\" : \"dave\", \n          \"_rev\" : \"886355505\", \n          \"name\" : \"Dave\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"885700145\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/886814257\", \n              \"_key\" : \"886814257\", \n              \"_rev\" : \"886814257\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/887207473\", \n              \"_key\" : \"887207473\", \n              \"_rev\" : \"887207473\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"885700145\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"885896753\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/dave\", \n              \"_key\" : \"dave\", \n              \"_rev\" : \"886355505\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Do not follow edges from *Bob*

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal <<EOF\n{ \n  \"startVertex\" : \"persons/alice\", \n  \"graphName\" : \"knows_graph\", \n  \"direction\" : \"outbound\", \n  \"filter\" : \"if (vertex.name === \\\"Bob\\\") {return \\\"prune\\\";}return;\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_id\" : \"persons/alice\", \n          \"_key\" : \"alice\", \n          \"_rev\" : \"889959985\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_id\" : \"persons/bob\", \n          \"_key\" : \"bob\", \n          \"_rev\" : \"890156593\", \n          \"name\" : \"Bob\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"889959985\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/891074097\", \n              \"_key\" : \"891074097\", \n              \"_rev\" : \"891074097\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"889959985\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"890156593\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Visit only nodes in a depth of at least 2

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal <<EOF\n{ \n  \"startVertex\" : \"persons/alice\", \n  \"graphName\" : \"knows_graph\", \n  \"direction\" : \"outbound\", \n  \"minDepth\" : 2 \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_id\" : \"persons/charlie\", \n          \"_key\" : \"charlie\", \n          \"_rev\" : \"908572209\", \n          \"name\" : \"Charlie\" \n        }, \n        { \n          \"_id\" : \"persons/dave\", \n          \"_key\" : \"dave\", \n          \"_rev\" : \"908768817\", \n          \"name\" : \"Dave\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/909227569\", \n              \"_key\" : \"909227569\", \n              \"_rev\" : \"909227569\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/909424177\", \n              \"_key\" : \"909424177\", \n              \"_rev\" : \"909424177\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"908113457\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"908310065\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/charlie\", \n              \"_key\" : \"charlie\", \n              \"_rev\" : \"908572209\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/909227569\", \n              \"_key\" : \"909227569\", \n              \"_rev\" : \"909227569\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/909620785\", \n              \"_key\" : \"909620785\", \n              \"_rev\" : \"909620785\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"908113457\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"908310065\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/dave\", \n              \"_key\" : \"dave\", \n              \"_rev\" : \"908768817\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Visit only nodes in a depth of at most 1

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal <<EOF\n{ \n  \"startVertex\" : \"persons/alice\", \n  \"graphName\" : \"knows_graph\", \n  \"direction\" : \"outbound\", \n  \"maxDepth\" : 1 \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_id\" : \"persons/alice\", \n          \"_key\" : \"alice\", \n          \"_rev\" : \"897889841\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_id\" : \"persons/bob\", \n          \"_key\" : \"bob\", \n          \"_rev\" : \"898086449\", \n          \"name\" : \"Bob\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"897889841\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/899003953\", \n              \"_key\" : \"899003953\", \n              \"_rev\" : \"899003953\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"897889841\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"898086449\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Using a visitor function to return vertex ids only

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal <<EOF\n{ \n  \"startVertex\" : \"persons/alice\", \n  \"graphName\" : \"knows_graph\", \n  \"direction\" : \"outbound\", \n  \"visitor\" : \"result.visited.vertices.push(vertex._id);\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        \"persons/alice\", \n        \"persons/bob\", \n        \"persons/charlie\", \n        \"persons/dave\" \n      ], \n      \"paths\" : [ ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Count all visited nodes and return a list of nodes only

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal <<EOF\n{ \n  \"startVertex\" : \"persons/alice\", \n  \"graphName\" : \"knows_graph\", \n  \"direction\" : \"outbound\", \n  \"init\" : \"result.visited = 0; result.myVertices = [ ];\", \n  \"visitor\" : \"result.visited++; result.myVertices.push(vertex);\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : { \n    \"visited\" : 4, \n    \"myVertices\" : [ \n      { \n        \"_id\" : \"persons/alice\", \n        \"_key\" : \"alice\", \n        \"_rev\" : \"922596913\", \n        \"name\" : \"Alice\" \n      }, \n      { \n        \"_id\" : \"persons/bob\", \n        \"_key\" : \"bob\", \n        \"_rev\" : \"922793521\", \n        \"name\" : \"Bob\" \n      }, \n      { \n        \"_id\" : \"persons/charlie\", \n        \"_key\" : \"charlie\", \n        \"_rev\" : \"923055665\", \n        \"name\" : \"Charlie\" \n      }, \n      { \n        \"_id\" : \"persons/dave\", \n        \"_key\" : \"dave\", \n        \"_rev\" : \"923252273\", \n        \"name\" : \"Dave\" \n      } \n    ] \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Expand only inbound edges of *Alice* and outbound edges of *Eve*

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal <<EOF\n{ \n  \"startVertex\" : \"persons/alice\", \n  \"graphName\" : \"knows_graph\", \n  \"expander\" : \"var connections = [ ];if (vertex.name === \\\"Alice\\\") {config.datasource.getInEdges(vertex).forEach(function (e) {connections.push({ vertex: require(\\\"internal\\\").db._document(e._from), edge: e});});}if (vertex.name === \\\"Eve\\\") {config.datasource.getOutEdges(vertex).forEach(function (e) {connections.push({vertex: require(\\\"internal\\\").db._document(e._to), edge: e});});}return connections;\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_id\" : \"persons/alice\", \n          \"_key\" : \"alice\", \n          \"_rev\" : \"926856753\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_id\" : \"persons/eve\", \n          \"_key\" : \"eve\", \n          \"_rev\" : \"927708721\", \n          \"name\" : \"Eve\" \n        }, \n        { \n          \"_id\" : \"persons/bob\", \n          \"_key\" : \"bob\", \n          \"_rev\" : \"927053361\", \n          \"name\" : \"Bob\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"926856753\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/928560689\", \n              \"_key\" : \"928560689\", \n              \"_rev\" : \"928560689\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"926856753\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"927708721\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/928560689\", \n              \"_key\" : \"928560689\", \n              \"_rev\" : \"928560689\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/928757297\", \n              \"_key\" : \"928757297\", \n              \"_rev\" : \"928757297\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"926856753\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"927708721\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"927053361\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Follow the *depthfirst* strategy

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal <<EOF\n{ \n  \"startVertex\" : \"persons/alice\", \n  \"graphName\" : \"knows_graph\", \n  \"direction\" : \"any\", \n  \"strategy\" : \"depthfirst\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_id\" : \"persons/alice\", \n          \"_key\" : \"alice\", \n          \"_rev\" : \"874755633\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_id\" : \"persons/eve\", \n          \"_key\" : \"eve\", \n          \"_rev\" : \"875607601\", \n          \"name\" : \"Eve\" \n        }, \n        { \n          \"_id\" : \"persons/bob\", \n          \"_key\" : \"bob\", \n          \"_rev\" : \"874952241\", \n          \"name\" : \"Bob\" \n        }, \n        { \n          \"_id\" : \"persons/alice\", \n          \"_key\" : \"alice\", \n          \"_rev\" : \"874755633\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_id\" : \"persons/charlie\", \n          \"_key\" : \"charlie\", \n          \"_rev\" : \"875214385\", \n          \"name\" : \"Charlie\" \n        }, \n        { \n          \"_id\" : \"persons/dave\", \n          \"_key\" : \"dave\", \n          \"_rev\" : \"875410993\", \n          \"name\" : \"Dave\" \n        }, \n        { \n          \"_id\" : \"persons/bob\", \n          \"_key\" : \"bob\", \n          \"_rev\" : \"874952241\", \n          \"name\" : \"Bob\" \n        }, \n        { \n          \"_id\" : \"persons/eve\", \n          \"_key\" : \"eve\", \n          \"_rev\" : \"875607601\", \n          \"name\" : \"Eve\" \n        }, \n        { \n          \"_id\" : \"persons/alice\", \n          \"_key\" : \"alice\", \n          \"_rev\" : \"874755633\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_id\" : \"persons/charlie\", \n          \"_key\" : \"charlie\", \n          \"_rev\" : \"875214385\", \n          \"name\" : \"Charlie\" \n        }, \n        { \n          \"_id\" : \"persons/dave\", \n          \"_key\" : \"dave\", \n          \"_rev\" : \"875410993\", \n          \"name\" : \"Dave\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"874755633\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/876459569\", \n              \"_key\" : \"876459569\", \n              \"_rev\" : \"876459569\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"874755633\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"875607601\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/876459569\", \n              \"_key\" : \"876459569\", \n              \"_rev\" : \"876459569\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/876656177\", \n              \"_key\" : \"876656177\", \n              \"_rev\" : \"876656177\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"874755633\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"875607601\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"874952241\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/876459569\", \n              \"_key\" : \"876459569\", \n              \"_rev\" : \"876459569\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/876656177\", \n              \"_key\" : \"876656177\", \n              \"_rev\" : \"876656177\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/875869745\", \n              \"_key\" : \"875869745\", \n              \"_rev\" : \"875869745\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"874755633\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"875607601\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"874952241\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"874755633\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/876459569\", \n              \"_key\" : \"876459569\", \n              \"_rev\" : \"876459569\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/876656177\", \n              \"_key\" : \"876656177\", \n              \"_rev\" : \"876656177\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/876066353\", \n              \"_key\" : \"876066353\", \n              \"_rev\" : \"876066353\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"874755633\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"875607601\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"874952241\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/charlie\", \n              \"_key\" : \"charlie\", \n              \"_rev\" : \"875214385\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/876459569\", \n              \"_key\" : \"876459569\", \n              \"_rev\" : \"876459569\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/876656177\", \n              \"_key\" : \"876656177\", \n              \"_rev\" : \"876656177\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/876262961\", \n              \"_key\" : \"876262961\", \n              \"_rev\" : \"876262961\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"874755633\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"875607601\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"874952241\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/dave\", \n              \"_key\" : \"dave\", \n              \"_rev\" : \"875410993\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/875869745\", \n              \"_key\" : \"875869745\", \n              \"_rev\" : \"875869745\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"874755633\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"874952241\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/875869745\", \n              \"_key\" : \"875869745\", \n              \"_rev\" : \"875869745\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/876656177\", \n              \"_key\" : \"876656177\", \n              \"_rev\" : \"876656177\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"874755633\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"874952241\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"875607601\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/875869745\", \n              \"_key\" : \"875869745\", \n              \"_rev\" : \"875869745\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/876656177\", \n              \"_key\" : \"876656177\", \n              \"_rev\" : \"876656177\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/876459569\", \n              \"_key\" : \"876459569\", \n              \"_rev\" : \"876459569\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"874755633\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"874952241\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"875607601\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"874755633\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/875869745\", \n              \"_key\" : \"875869745\", \n              \"_rev\" : \"875869745\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/876066353\", \n              \"_key\" : \"876066353\", \n              \"_rev\" : \"876066353\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"874755633\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"874952241\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/charlie\", \n              \"_key\" : \"charlie\", \n              \"_rev\" : \"875214385\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/875869745\", \n              \"_key\" : \"875869745\", \n              \"_rev\" : \"875869745\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/876262961\", \n              \"_key\" : \"876262961\", \n              \"_rev\" : \"876262961\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"874755633\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"874952241\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/dave\", \n              \"_key\" : \"dave\", \n              \"_rev\" : \"875410993\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Using *postorder* ordering

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal <<EOF\n{ \n  \"startVertex\" : \"persons/alice\", \n  \"graphName\" : \"knows_graph\", \n  \"direction\" : \"any\", \n  \"order\" : \"postorder\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_id\" : \"persons/alice\", \n          \"_key\" : \"alice\", \n          \"_rev\" : \"916633137\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_id\" : \"persons/charlie\", \n          \"_key\" : \"charlie\", \n          \"_rev\" : \"917091889\", \n          \"name\" : \"Charlie\" \n        }, \n        { \n          \"_id\" : \"persons/dave\", \n          \"_key\" : \"dave\", \n          \"_rev\" : \"917288497\", \n          \"name\" : \"Dave\" \n        }, \n        { \n          \"_id\" : \"persons/bob\", \n          \"_key\" : \"bob\", \n          \"_rev\" : \"916829745\", \n          \"name\" : \"Bob\" \n        }, \n        { \n          \"_id\" : \"persons/eve\", \n          \"_key\" : \"eve\", \n          \"_rev\" : \"917485105\", \n          \"name\" : \"Eve\" \n        }, \n        { \n          \"_id\" : \"persons/alice\", \n          \"_key\" : \"alice\", \n          \"_rev\" : \"916633137\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_id\" : \"persons/eve\", \n          \"_key\" : \"eve\", \n          \"_rev\" : \"917485105\", \n          \"name\" : \"Eve\" \n        }, \n        { \n          \"_id\" : \"persons/charlie\", \n          \"_key\" : \"charlie\", \n          \"_rev\" : \"917091889\", \n          \"name\" : \"Charlie\" \n        }, \n        { \n          \"_id\" : \"persons/dave\", \n          \"_key\" : \"dave\", \n          \"_rev\" : \"917288497\", \n          \"name\" : \"Dave\" \n        }, \n        { \n          \"_id\" : \"persons/bob\", \n          \"_key\" : \"bob\", \n          \"_rev\" : \"916829745\", \n          \"name\" : \"Bob\" \n        }, \n        { \n          \"_id\" : \"persons/alice\", \n          \"_key\" : \"alice\", \n          \"_rev\" : \"916633137\", \n          \"name\" : \"Alice\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/918337073\", \n              \"_key\" : \"918337073\", \n              \"_rev\" : \"918337073\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/918533681\", \n              \"_key\" : \"918533681\", \n              \"_rev\" : \"918533681\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/917747249\", \n              \"_key\" : \"917747249\", \n              \"_rev\" : \"917747249\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"916633137\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"917485105\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"916829745\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"916633137\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/918337073\", \n              \"_key\" : \"918337073\", \n              \"_rev\" : \"918337073\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/918533681\", \n              \"_key\" : \"918533681\", \n              \"_rev\" : \"918533681\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/917943857\", \n              \"_key\" : \"917943857\", \n              \"_rev\" : \"917943857\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"916633137\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"917485105\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"916829745\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/charlie\", \n              \"_key\" : \"charlie\", \n              \"_rev\" : \"917091889\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/918337073\", \n              \"_key\" : \"918337073\", \n              \"_rev\" : \"918337073\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/918533681\", \n              \"_key\" : \"918533681\", \n              \"_rev\" : \"918533681\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/918140465\", \n              \"_key\" : \"918140465\", \n              \"_rev\" : \"918140465\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"916633137\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"917485105\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"916829745\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/dave\", \n              \"_key\" : \"dave\", \n              \"_rev\" : \"917288497\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/918337073\", \n              \"_key\" : \"918337073\", \n              \"_rev\" : \"918337073\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/918533681\", \n              \"_key\" : \"918533681\", \n              \"_rev\" : \"918533681\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"916633137\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"917485105\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"916829745\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/918337073\", \n              \"_key\" : \"918337073\", \n              \"_rev\" : \"918337073\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"916633137\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"917485105\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/917747249\", \n              \"_key\" : \"917747249\", \n              \"_rev\" : \"917747249\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/918533681\", \n              \"_key\" : \"918533681\", \n              \"_rev\" : \"918533681\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/918337073\", \n              \"_key\" : \"918337073\", \n              \"_rev\" : \"918337073\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"916633137\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"916829745\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"917485105\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"916633137\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/917747249\", \n              \"_key\" : \"917747249\", \n              \"_rev\" : \"917747249\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/918533681\", \n              \"_key\" : \"918533681\", \n              \"_rev\" : \"918533681\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"916633137\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"916829745\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"917485105\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/917747249\", \n              \"_key\" : \"917747249\", \n              \"_rev\" : \"917747249\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/917943857\", \n              \"_key\" : \"917943857\", \n              \"_rev\" : \"917943857\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"916633137\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"916829745\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/charlie\", \n              \"_key\" : \"charlie\", \n              \"_rev\" : \"917091889\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/917747249\", \n              \"_key\" : \"917747249\", \n              \"_rev\" : \"917747249\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/918140465\", \n              \"_key\" : \"918140465\", \n              \"_rev\" : \"918140465\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"916633137\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"916829745\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/dave\", \n              \"_key\" : \"dave\", \n              \"_rev\" : \"917288497\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/917747249\", \n              \"_key\" : \"917747249\", \n              \"_rev\" : \"917747249\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"916633137\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"916829745\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"916633137\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Using *backward* item-ordering:

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal <<EOF\n{ \n  \"startVertex\" : \"persons/alice\", \n  \"graphName\" : \"knows_graph\", \n  \"direction\" : \"any\", \n  \"itemOrder\" : \"backward\" \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_id\" : \"persons/alice\", \n          \"_key\" : \"alice\", \n          \"_rev\" : \"868791857\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_id\" : \"persons/bob\", \n          \"_key\" : \"bob\", \n          \"_rev\" : \"868988465\", \n          \"name\" : \"Bob\" \n        }, \n        { \n          \"_id\" : \"persons/dave\", \n          \"_key\" : \"dave\", \n          \"_rev\" : \"869447217\", \n          \"name\" : \"Dave\" \n        }, \n        { \n          \"_id\" : \"persons/charlie\", \n          \"_key\" : \"charlie\", \n          \"_rev\" : \"869250609\", \n          \"name\" : \"Charlie\" \n        }, \n        { \n          \"_id\" : \"persons/eve\", \n          \"_key\" : \"eve\", \n          \"_rev\" : \"869643825\", \n          \"name\" : \"Eve\" \n        }, \n        { \n          \"_id\" : \"persons/alice\", \n          \"_key\" : \"alice\", \n          \"_rev\" : \"868791857\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_id\" : \"persons/eve\", \n          \"_key\" : \"eve\", \n          \"_rev\" : \"869643825\", \n          \"name\" : \"Eve\" \n        }, \n        { \n          \"_id\" : \"persons/bob\", \n          \"_key\" : \"bob\", \n          \"_rev\" : \"868988465\", \n          \"name\" : \"Bob\" \n        }, \n        { \n          \"_id\" : \"persons/dave\", \n          \"_key\" : \"dave\", \n          \"_rev\" : \"869447217\", \n          \"name\" : \"Dave\" \n        }, \n        { \n          \"_id\" : \"persons/charlie\", \n          \"_key\" : \"charlie\", \n          \"_rev\" : \"869250609\", \n          \"name\" : \"Charlie\" \n        }, \n        { \n          \"_id\" : \"persons/alice\", \n          \"_key\" : \"alice\", \n          \"_rev\" : \"868791857\", \n          \"name\" : \"Alice\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"868791857\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/869905969\", \n              \"_key\" : \"869905969\", \n              \"_rev\" : \"869905969\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"868791857\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"868988465\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/869905969\", \n              \"_key\" : \"869905969\", \n              \"_rev\" : \"869905969\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/870299185\", \n              \"_key\" : \"870299185\", \n              \"_rev\" : \"870299185\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"868791857\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"868988465\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/dave\", \n              \"_key\" : \"dave\", \n              \"_rev\" : \"869447217\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/869905969\", \n              \"_key\" : \"869905969\", \n              \"_rev\" : \"869905969\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/870102577\", \n              \"_key\" : \"870102577\", \n              \"_rev\" : \"870102577\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"868791857\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"868988465\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/charlie\", \n              \"_key\" : \"charlie\", \n              \"_rev\" : \"869250609\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/869905969\", \n              \"_key\" : \"869905969\", \n              \"_rev\" : \"869905969\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/870692401\", \n              \"_key\" : \"870692401\", \n              \"_rev\" : \"870692401\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"868791857\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"868988465\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"869643825\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/869905969\", \n              \"_key\" : \"869905969\", \n              \"_rev\" : \"869905969\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/870692401\", \n              \"_key\" : \"870692401\", \n              \"_rev\" : \"870692401\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/870495793\", \n              \"_key\" : \"870495793\", \n              \"_rev\" : \"870495793\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"868791857\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"868988465\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"869643825\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"868791857\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/870495793\", \n              \"_key\" : \"870495793\", \n              \"_rev\" : \"870495793\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"868791857\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"869643825\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/870495793\", \n              \"_key\" : \"870495793\", \n              \"_rev\" : \"870495793\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/870692401\", \n              \"_key\" : \"870692401\", \n              \"_rev\" : \"870692401\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"868791857\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"869643825\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"868988465\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/870495793\", \n              \"_key\" : \"870495793\", \n              \"_rev\" : \"870495793\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/870692401\", \n              \"_key\" : \"870692401\", \n              \"_rev\" : \"870692401\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/870299185\", \n              \"_key\" : \"870299185\", \n              \"_rev\" : \"870299185\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"868791857\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"869643825\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"868988465\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/dave\", \n              \"_key\" : \"dave\", \n              \"_rev\" : \"869447217\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/870495793\", \n              \"_key\" : \"870495793\", \n              \"_rev\" : \"870495793\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/870692401\", \n              \"_key\" : \"870692401\", \n              \"_rev\" : \"870692401\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/870102577\", \n              \"_key\" : \"870102577\", \n              \"_rev\" : \"870102577\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"868791857\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"869643825\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"868988465\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/charlie\", \n              \"_key\" : \"charlie\", \n              \"_rev\" : \"869250609\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/870495793\", \n              \"_key\" : \"870495793\", \n              \"_rev\" : \"870495793\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/870692401\", \n              \"_key\" : \"870692401\", \n              \"_rev\" : \"870692401\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/869905969\", \n              \"_key\" : \"869905969\", \n              \"_rev\" : \"869905969\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"868791857\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"869643825\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"868988465\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"868791857\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: Edges should only be included once globally,\nbut nodes are included every time they are visited

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal <<EOF\n{ \n  \"startVertex\" : \"persons/alice\", \n  \"graphName\" : \"knows_graph\", \n  \"direction\" : \"any\", \n  \"uniqueness\" : { \n    \"vertices\" : \"none\", \n    \"edges\" : \"global\" \n  } \n}\nEOF\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_id\" : \"persons/alice\", \n          \"_key\" : \"alice\", \n          \"_rev\" : \"880719409\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_id\" : \"persons/eve\", \n          \"_key\" : \"eve\", \n          \"_rev\" : \"881571377\", \n          \"name\" : \"Eve\" \n        }, \n        { \n          \"_id\" : \"persons/bob\", \n          \"_key\" : \"bob\", \n          \"_rev\" : \"880916017\", \n          \"name\" : \"Bob\" \n        }, \n        { \n          \"_id\" : \"persons/alice\", \n          \"_key\" : \"alice\", \n          \"_rev\" : \"880719409\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_id\" : \"persons/charlie\", \n          \"_key\" : \"charlie\", \n          \"_rev\" : \"881178161\", \n          \"name\" : \"Charlie\" \n        }, \n        { \n          \"_id\" : \"persons/dave\", \n          \"_key\" : \"dave\", \n          \"_rev\" : \"881374769\", \n          \"name\" : \"Dave\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"880719409\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/882423345\", \n              \"_key\" : \"882423345\", \n              \"_rev\" : \"882423345\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"880719409\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"881571377\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/882423345\", \n              \"_key\" : \"882423345\", \n              \"_rev\" : \"882423345\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/882619953\", \n              \"_key\" : \"882619953\", \n              \"_rev\" : \"882619953\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"880719409\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"881571377\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"880916017\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/882423345\", \n              \"_key\" : \"882423345\", \n              \"_rev\" : \"882423345\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/882619953\", \n              \"_key\" : \"882619953\", \n              \"_rev\" : \"882619953\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/881833521\", \n              \"_key\" : \"881833521\", \n              \"_rev\" : \"881833521\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"880719409\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"881571377\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"880916017\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"880719409\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/882423345\", \n              \"_key\" : \"882423345\", \n              \"_rev\" : \"882423345\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/882619953\", \n              \"_key\" : \"882619953\", \n              \"_rev\" : \"882619953\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/882030129\", \n              \"_key\" : \"882030129\", \n              \"_rev\" : \"882030129\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"880719409\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"881571377\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"880916017\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/charlie\", \n              \"_key\" : \"charlie\", \n              \"_rev\" : \"881178161\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_id\" : \"knows/882423345\", \n              \"_key\" : \"882423345\", \n              \"_rev\" : \"882423345\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\" \n            }, \n            { \n              \"_id\" : \"knows/882619953\", \n              \"_key\" : \"882619953\", \n              \"_rev\" : \"882619953\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\" \n            }, \n            { \n              \"_id\" : \"knows/882226737\", \n              \"_key\" : \"882226737\", \n              \"_rev\" : \"882226737\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_id\" : \"persons/alice\", \n              \"_key\" : \"alice\", \n              \"_rev\" : \"880719409\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_id\" : \"persons/eve\", \n              \"_key\" : \"eve\", \n              \"_rev\" : \"881571377\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_id\" : \"persons/bob\", \n              \"_key\" : \"bob\", \n              \"_rev\" : \"880916017\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_id\" : \"persons/dave\", \n              \"_key\" : \"dave\", \n              \"_rev\" : \"881374769\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n

\n
Example: If the underlying graph is cyclic, *maxIterations* should be set\n\nThe underlying graph has two vertices *Alice* and *Bob*.\nWith the directed edges:\n- *Alice* knows *Bob*\n_ *Bob* knows *Alice*

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal <<EOF\n{ \n  \"startVertex\" : \"persons/alice\", \n  \"graphName\" : \"knows_graph\", \n  \"direction\" : \"any\", \n  \"uniqueness\" : { \n    \"vertices\" : \"none\", \n    \"edges\" : \"none\" \n  }, \n  \"maxIterations\" : 5 \n}\nEOF\n\nHTTP/1.1 500 Internal Server Error\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"error\" : true, \n  \"code\" : 500, \n  \"errorNum\" : 1909, \n  \"errorMessage\" : \"too many iterations - try increasing the value of 'maxIterations'\" \n}\n

\n\n\n", "parameters": [ { "in": "body", @@ -7530,7 +7530,7 @@ }, "/_api/version": { "get": { - "description": "\n\nReturns the server name and version number. The response is a JSON object\nwith the following attributes:\n\n**A json document with these Properties is returned:**\n\n##HTTP 200\nis returned in all cases.\n\n - **version**: the server version string. The string has the format\n\"*major*.*minor*.*sub*\". *major* and *minor* will be numeric, and *sub*\nmay contain a number or a textual version.\n - **details**: an optional JSON object with additional details. This is\nreturned only if the *details* query parameter is set to *true* in the\nrequest.\n - **server**: will always contain *arango*\n\n\n
Example: Return the version information

shell> curl --dump - http://localhost:8529/_api/version\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"server\" : \"arango\", \n  \"version\" : \"2.8.4\" \n}\n

\n
Example: Return the version information with details

shell> curl --dump - http://localhost:8529/_api/version?details=true\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"server\" : \"arango\", \n  \"version\" : \"2.8.4\", \n  \"details\" : { \n    \"architecture\" : \"64bit\", \n    \"build-date\" : \"2016-03-01 20:56:35\", \n    \"configure\" : \"'./configure' '--enable-maintainer-mode' 'CPPFLAGS=-I/usr/local/include -I/usr/local/opt/openssl/include' 'LDFLAGS=-L/usr/local/opt/openssl/lib -L/usr/local/Cellar/boost/1.58.0/lib'\", \n    \"env\" : \"CPPFLAGS='-I/usr/local/include -I/usr/local/opt/openssl/include' LDFLAGS='-L/usr/local/opt/openssl/lib -L/usr/local/Cellar/boost/1.58.0/lib'\", \n    \"fd-client-event-handler\" : \"poll\", \n    \"fd-setsize\" : \"1024\", \n    \"icu-version\" : \"54.1\", \n    \"libev-version\" : \"4.11\", \n    \"maintainer-mode\" : \"true\", \n    \"openssl-version\" : \"OpenSSL 1.0.2f  28 Jan 2016\", \n    \"repository-version\" : \"heads/2.8-0-g8cf8e2618adc33ff34fc04b2e5fb99afb84b9708-dirty\", \n    \"server-version\" : \"2.8.4\", \n    \"sizeof int\" : \"4\", \n    \"sizeof void*\" : \"8\", \n    \"tcmalloc\" : \"false\", \n    \"v8-version\" : \"4.3.61\", \n    \"mode\" : \"standalone\" \n  } \n}\n

\n\n", + "description": "\n\nReturns the server name and version number. The response is a JSON object\nwith the following attributes:\n\n**A json document with these Properties is returned:**\n\n##HTTP 200\nis returned in all cases.\n\n - **version**: the server version string. The string has the format\n\"*major*.*minor*.*sub*\". *major* and *minor* will be numeric, and *sub*\nmay contain a number or a textual version.\n - **details**: an optional JSON object with additional details. This is\nreturned only if the *details* query parameter is set to *true* in the\nrequest.\n - **server**: will always contain *arango*\n\n\n
Example: Return the version information

shell> curl --dump - http://localhost:8529/_api/version\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"server\" : \"arango\", \n  \"version\" : \"2.8.5\" \n}\n

\n
Example: Return the version information with details

shell> curl --dump - http://localhost:8529/_api/version?details=true\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"server\" : \"arango\", \n  \"version\" : \"2.8.5\", \n  \"details\" : { \n    \"architecture\" : \"64bit\", \n    \"build-date\" : \"2016-03-10 20:29:36\", \n    \"configure\" : \"'./configure' '--enable-maintainer-mode' 'CPPFLAGS=-I/usr/local/include -I/usr/local/opt/openssl/include' 'LDFLAGS=-L/usr/local/opt/openssl/lib -L/usr/local/Cellar/boost/1.58.0/lib'\", \n    \"env\" : \"CPPFLAGS='-I/usr/local/include -I/usr/local/opt/openssl/include' LDFLAGS='-L/usr/local/opt/openssl/lib -L/usr/local/Cellar/boost/1.58.0/lib'\", \n    \"fd-client-event-handler\" : \"poll\", \n    \"fd-setsize\" : \"1024\", \n    \"icu-version\" : \"54.1\", \n    \"libev-version\" : \"4.11\", \n    \"maintainer-mode\" : \"true\", \n    \"openssl-version\" : \"OpenSSL 1.0.2f  28 Jan 2016\", \n    \"repository-version\" : \"heads/2.8-0-g0cdc3aa1f772ec54f03096f5367e92b51e4e2997-dirty\", \n    \"server-version\" : \"2.8.5\", \n    \"sizeof int\" : \"4\", \n    \"sizeof void*\" : \"8\", \n    \"tcmalloc\" : \"false\", \n    \"v8-version\" : \"4.3.61\", \n    \"mode\" : \"standalone\" \n  } \n}\n

\n\n", "parameters": [ { "description": "If set to *true*, the response will contain a *details* attribute with\nadditional information about included components and their versions. The\nattribute names and internals of the *details* object may vary depending on\nplatform and ArangoDB version.\n\n", diff --git a/js/apps/system/_admin/aardvark/APP/frontend/build/app.min.js b/js/apps/system/_admin/aardvark/APP/frontend/build/app.min.js index 6ff7041f01..b5c15a159d 100644 --- a/js/apps/system/_admin/aardvark/APP/frontend/build/app.min.js +++ b/js/apps/system/_admin/aardvark/APP/frontend/build/app.min.js @@ -1,14 +1,14 @@ function JSONAdapter(a,b,c,d,e,f){"use strict";var g=this,h={},i={},j=new AbstractAdapter(b,c,this,d);h.range=e/2,h.start=e/4,h.getStart=function(){return this.start+Math.random()*this.range},i.range=f/2,i.start=f/4,i.getStart=function(){return this.start+Math.random()*this.range},g.loadNode=function(a,b){g.loadNodeFromTreeById(a,b)},g.loadInitialNode=function(b,c){var d=a+b+".json";j.cleanUp(),d3.json(d,function(a,d){void 0!==a&&null!==a&&console.log(a);var e=j.insertInitialNode(d);g.requestCentralityChildren(b,function(a){e._centrality=a}),_.each(d.children,function(a){var b=j.insertNode(a),c={_from:e._id,_to:b._id,_id:e._id+"-"+b._id};j.insertEdge(c),g.requestCentralityChildren(b._id,function(a){b._centrality=a}),delete b._data.children}),delete e._data.children,c&&c(e)})},g.loadNodeFromTreeById=function(b,c){var d=a+b+".json";d3.json(d,function(a,d){void 0!==a&&null!==a&&console.log(a);var e=j.insertNode(d);g.requestCentralityChildren(b,function(a){e._centrality=a}),_.each(d.children,function(a){var b=j.insertNode(a),c={_from:e._id,_to:b._id,_id:e._id+"-"+b._id};j.insertEdge(c),g.requestCentralityChildren(b._id,function(a){e._centrality=a}),delete b._data.children}),delete e._data.children,c&&c(e)})},g.requestCentralityChildren=function(b,c){var d=a+b+".json";d3.json(d,function(a,b){void 0!==a&&null!==a&&console.log(a),void 0!==c&&c(void 0!==b.children?b.children.length:0)})},g.loadNodeFromTreeByAttributeValue=function(a,b,c){throw"Sorry this adapter is read-only"},g.loadInitialNodeByAttributeValue=function(a,b,c){throw"Sorry this adapter is read-only"},g.createEdge=function(a,b){throw"Sorry this adapter is read-only"},g.deleteEdge=function(a,b){throw"Sorry this adapter is read-only"},g.patchEdge=function(a,b,c){throw"Sorry this adapter is read-only"},g.createNode=function(a,b){throw"Sorry this adapter is read-only"},g.deleteNode=function(a,b){throw"Sorry this adapter is read-only"},g.patchNode=function(a,b,c){throw"Sorry this adapter is read-only"},g.setNodeLimit=function(a,b){},g.setChildLimit=function(a){},g.expandCommunity=function(a,b){},g.setWidth=function(){},g.explore=j.explore}function AbstractAdapter(a,b,c,d,e){"use strict";if(void 0===a)throw"The nodes have to be given.";if(void 0===b)throw"The edges have to be given.";if(void 0===c)throw"An inheriting class has to be given.";if(void 0===d)throw"A reference to the graph viewer has to be given.";e=e||{};var f,g,h,i,j,k=this,l=!1,m={},n={},o={},p={},q=0,r={},s={},t=function(a){void 0!==a.prioList&&g.changePrioList(a.prioList||[])},u=function(a){m.range=a/2,m.start=a/4,m.getStart=function(){return this.start+Math.random()*this.range}},v=function(a){n.range=a/2,n.start=a/4,n.getStart=function(){return this.start+Math.random()*this.range}},w=function(b){var c=p[b]||b,d=$.grep(a,function(a){return a._id===c});if(0===d.length)return!1;if(1===d.length)return d[0];throw"Too many nodes with the same ID, should never happen"},x=function(a){var c=$.grep(b,function(b){return b._id===a});if(0===c.length)return!1;if(1===c.length)return c[0];throw"Too many edges with the same ID, should never happen"},y=function(b,c,d){var e={_data:b,_id:b._id},f=w(e._id);return f?f:(e.x=c||m.getStart(),e.y=d||n.getStart(),e.weight=1,a.push(e),e._outboundCounter=0,e._inboundCounter=0,e)},z=function(a){var b=y(a);return b.x=2*m.start,b.y=2*n.start,b.fixed=!0,b},A=function(){a.length=0,b.length=0,p={},o={},d.cleanUp()},B=function(a){var c,d,e,f=!0,g={_data:a,_id:a._id},i=x(g._id);if(i)return i;if(c=w(a._from),d=w(a._to),!c)throw"Unable to insert Edge, source node not existing "+a._from;if(!d)throw"Unable to insert Edge, target node not existing "+a._to;return g.source=c,g.source._isCommunity?(e=o[g.source._id],g.source=e.getNode(a._from),g.source._outboundCounter++,e.insertOutboundEdge(g),f=!1):c._outboundCounter++,g.target=d,g.target._isCommunity?(e=o[g.target._id],g.target=e.getNode(a._to),g.target._inboundCounter++,e.insertInboundEdge(g),f=!1):d._inboundCounter++,b.push(g),f&&h.call("insertEdge",c._id,d._id),g},C=function(b){var c;for(c=0;c0){var c,d=[];for(c=0;cf&&(c?c.collapse():K(b))},M=function(c){var d=c.getDissolveInfo(),e=d.nodes,g=d.edges.both,i=d.edges.inbound,j=d.edges.outbound;C(c),fi){var b=g.bucketNodes(_.values(a),i);_.each(b,function(a){if(a.nodes.length>1){var b=_.map(a.nodes,function(a){return a._id});I(b,a.reason)}})}},P=function(a,b){f=a,L(),void 0!==b&&b()},Q=function(a){i=a},R=function(a,b){a._expanded=!1;var c=b.removeOutboundEdgesFromNode(a);_.each(c,function(a){j(a),E(a,!0)})},S=function(a){a._expanded=!1,p[a._id]&&o[p[a._id]].collapseNode(a);var b=H(a),c=[];_.each(b,function(b){0===q?(r=b,s=a,c.push(b)):void 0!==a&&(a._id===r.target._id?b.target._id===s._id&&c.push(r):c.push(b),r=b,s=a),q++}),_.each(c,j),q=0},T=function(a){var b=a.getDissolveInfo();C(a),_.each(b.nodes,function(a){delete p[a._id]}),_.each(b.edges.outbound,function(a){j(a),E(a,!0)}),delete o[a._id]},U=function(a,b){a._isCommunity?k.expandCommunity(a,b):(a._expanded=!0,c.loadNode(a._id,b))},V=function(a,b){a._expanded?S(a):U(a,b)};j=function(a){var b,c=a.target;return c._isCommunity?(b=a._target,c.removeInboundEdge(a),b._inboundCounter--,0===b._inboundCounter&&(R(b,c),c.removeNode(b),delete p[b._id]),void(0===c._inboundCounter&&T(c))):(c._inboundCounter--,void(0===c._inboundCounter&&(S(c),C(c))))},i=Number.POSITIVE_INFINITY,g=e.prioList?new NodeReducer(e.prioList):new NodeReducer,h=new WebWorkerWrapper(ModularityJoiner,J),m.getStart=function(){return 0},n.getStart=function(){return 0},this.cleanUp=A,this.setWidth=u,this.setHeight=v,this.insertNode=y,this.insertInitialNode=z,this.insertEdge=B,this.removeNode=C,this.removeEdge=E,this.removeEdgesForNode=F,this.expandCommunity=N,this.setNodeLimit=P,this.setChildLimit=Q,this.checkSizeOfInserted=O,this.checkNodeLimit=L,this.explore=V,this.changeTo=t,this.getPrioList=g.getPrioList,this.dissolveCommunity=M}function ArangoAdapter(a,b,c,d){"use strict";if(void 0===a)throw"The nodes have to be given.";if(void 0===b)throw"The edges have to be given.";if(void 0===c)throw"A reference to the graph viewer has to be given.";if(void 0===d)throw"A configuration with node- and edgeCollection has to be given.";if(void 0===d.graph){if(void 0===d.nodeCollection)throw"The nodeCollection or a graphname has to be given.";if(void 0===d.edgeCollection)throw"The edgeCollection or a graphname has to be given."}var e,f,g,h,i,j=this,k={},l={},m={},n=function(a){h=a},o=function(a){f=a,l.node=l.base+"document?collection="+f},p=function(a){g=a,l.edge=l.base+"edge?collection="+g},q=function(a){$.ajax({cache:!1,type:"GET",async:!1,url:l.graph+"/"+a,contentType:"application/json",success:function(a){o(a.graph.vertices),p(a.graph.edges)}})},r=function(a){var b=a.baseUrl||"";void 0!==a.width&&e.setWidth(a.width),void 0!==a.height&&e.setHeight(a.height),i=void 0!==a.undirected&&a.undirected===!0?"any":"outbound",l.base=b+"_api/",l.cursor=l.base+"cursor",l.graph=l.base+"graph",l.collection=l.base+"collection/",l.document=l.base+"document/",l.any=l.base+"simple/any",a.graph?(q(a.graph),n(a.graph)):(o(a.nodeCollection),p(a.edgeCollection),n(void 0))},s=function(a,b,c){a!==m.getAllGraphs&&(a!==m.connectedEdges&&(b["@nodes"]=f,a!==m.childrenCentrality&&(b.dir=i)),b["@edges"]=g);var d={query:a,bindVars:b};$.ajax({type:"POST",url:l.cursor,data:JSON.stringify(d),contentType:"application/json",dataType:"json",processData:!1,success:function(a){c(a.result)},error:function(a){try{throw console.log(a.statusText),"["+a.errorNum+"] "+a.errorMessage}catch(b){throw"Undefined ERROR"}}})},t=function(a,b){var c=[],d=0,e=function(d){c.push(d.document||{}),c.length===a&&b(c)};for(d=0;a>d;d++)$.ajax({cache:!1,type:"PUT",url:l.any,data:JSON.stringify({collection:f}),contentType:"application/json",success:e})},u=function(b,c){if(0===b.length)return void(c&&c({errorCode:404}));b=b[0];var d={},f=e.insertNode(b[0].vertex),g=a.length;_.each(b,function(b){var c=e.insertNode(b.vertex),f=b.path;g=2&&$.ajax({cache:!1,type:"GET",url:l.collection,contentType:"application/json",dataType:"json",processData:!1,success:function(b){var c=b.collections,d=[],e=[];_.each(c,function(a){a.name.match(/^_/)||(3===a.type?e.push(a.name):2===a.type&&d.push(a.name))}),a(d,e)},error:function(a){throw a.statusText}})},j.getGraphs=function(a){a&&a.length>=1&&s(m.getAllGraphs,{},a)},j.getAttributeExamples=function(a){a&&a.length>=1&&t(10,function(b){var c=_.sortBy(_.uniq(_.flatten(_.map(b,function(a){return _.keys(a)}))),function(a){return a.toLowerCase()});a(c)})},j.getNodeCollection=function(){return f},j.getEdgeCollection=function(){return g},j.getDirection=function(){return i},j.getGraphName=function(){return h},j.setWidth=e.setWidth,j.changeTo=e.changeTo,j.getPrioList=e.getPrioList}function ColourMapper(){"use strict";var a,b={},c={},d=[],e=this,f=0;d.push({back:"#C8E6C9",front:"black"}),d.push({back:"#8aa249",front:"white"}),d.push({back:"#8BC34A",front:"black"}),d.push({back:"#388E3C",front:"white"}),d.push({back:"#4CAF50",front:"white"}),d.push({back:"#212121",front:"white"}),d.push({back:"#727272",front:"white"}),d.push({back:"#B6B6B6",front:"black"}),d.push({back:"#e5f0a3",front:"black"}),d.push({back:"#6c4313",front:"white"}),d.push({back:"#9d8564",front:"white"}),this.getColour=function(g){return void 0===b[g]&&(b[g]=d[f],void 0===c[d[f].back]&&(c[d[f].back]={front:d[f].front,list:[]}),c[d[f].back].list.push(g),f++,f===d.length&&(f=0)),void 0!==a&&a(e.getList()),b[g].back},this.getCommunityColour=function(){return"#333333"},this.getForegroundColour=function(g){return void 0===b[g]&&(b[g]=d[f],void 0===c[d[f].back]&&(c[d[f].back]={front:d[f].front,list:[]}),c[d[f].back].list.push(g),f++,f===d.length&&(f=0)),void 0!==a&&a(e.getList()),b[g].front},this.getForegroundCommunityColour=function(){return"white"},this.reset=function(){b={},c={},f=0,void 0!==a&&a(e.getList())},this.getList=function(){return c},this.setChangeListener=function(b){a=b},this.reset()}function CommunityNode(a,b){"use strict";if(_.isUndefined(a)||!_.isFunction(a.dissolveCommunity)||!_.isFunction(a.checkNodeLimit))throw"A parent element has to be given.";b=b||[];var c,d,e,f,g,h=this,i={},j=[],k=[],l={},m={},n={},o={},p=function(a){return h._expanded?2*a*Math.sqrt(j.length):a},q=function(a){return h._expanded?4*a*Math.sqrt(j.length):a},r=function(a){var b=h.position,c=a.x*b.z+b.x,d=a.y*b.z+b.y,e=a.z*b.z;return{x:c,y:d,z:e}},s=function(a){return h._expanded?r(a._source.position):h.position},t=function(a){return h._expanded?r(a._target.position):h.position},u=function(){var a=document.getElementById(h._id).getBBox();c.attr("transform","translate("+(a.x-5)+","+(a.y-25)+")"),d.attr("width",a.width+10).attr("height",a.height+30),e.attr("width",a.width+10)},v=function(){if(!f){var a=new DomObserverFactory;f=a.createObserver(function(a){_.any(a,function(a){return"transform"===a.attributeName})&&(u(),f.disconnect())})}return f},w=function(){g.stop(),j.length=0,_.each(i,function(a){j.push(a)}),g.start()},x=function(){g.stop(),k.length=0,_.each(l,function(a){k.push(a)}),g.start()},y=function(a){var b=[];return _.each(a,function(a){b.push(a)}),b},z=function(a){return!!i[a]},A=function(){return j},B=function(a){return i[a]},C=function(a){i[a._id]=a,w(),h._size++},D=function(a){_.each(a,function(a){i[a._id]=a,h._size++}),w()},E=function(a){var b=a._id||a;delete i[b],w(),h._size--},F=function(a){var b;return _.has(a,"_id")?b=a._id:(b=a,a=l[b]||m[b]),a.target=a._target,delete a._target,l[b]?(delete l[b],h._outboundCounter++,n[b]=a,void x()):(delete m[b],void h._inboundCounter--)},G=function(a){var b;return _.has(a,"_id")?b=a._id:(b=a,a=l[b]||n[b]),a.source=a._source,delete a._source,delete o[a.source._id][b],l[b]?(delete l[b],h._inboundCounter++,m[b]=a,void x()):(delete n[b],void h._outboundCounter--)},H=function(a){var b=a._id||a,c=[];return _.each(o[b],function(a){G(a),c.push(a)}),delete o[b],c},I=function(a){return a._target=a.target,a.target=h,n[a._id]?(delete n[a._id],h._outboundCounter--,l[a._id]=a,x(),!0):(m[a._id]=a,h._inboundCounter++,!1)},J=function(a){var b=a.source._id;return a._source=a.source,a.source=h,o[b]=o[b]||{},o[b][a._id]=a,m[a._id]?(delete m[a._id],h._inboundCounter--,l[a._id]=a,x(),!0):(h._outboundCounter++,n[a._id]=a,!1)},K=function(){return{nodes:j,edges:{both:k,inbound:y(m),outbound:y(n)}}},L=function(){this._expanded=!0},M=function(){a.dissolveCommunity(h)},N=function(){this._expanded=!1},O=function(a,b){var c=a.select("rect").attr("width"),d=a.append("text").attr("text-anchor","middle").attr("fill",b.getForegroundCommunityColour()).attr("stroke","none");c*=2,c/=3,h._reason&&h._reason.key&&(d.append("tspan").attr("x","0").attr("dy","-4").text(h._reason.key+":"),d.append("tspan").attr("x","0").attr("dy","16").text(h._reason.value)),d.append("tspan").attr("x",c).attr("y","0").attr("fill",b.getCommunityColour()).text(h._size)},P=function(b,c,d,e){var f=b.append("g").attr("stroke",e.getForegroundCommunityColour()).attr("fill",e.getCommunityColour());c(f,9),c(f,6),c(f,3),c(f),f.on("click",function(){h.expand(),a.checkNodeLimit(h),d()}),O(f,e)},Q=function(a,b){var c=a.selectAll(".node").data(j,function(a){return a._id});c.enter().append("g").attr("class","node").attr("id",function(a){return a._id}),c.exit().remove(),c.selectAll("* > *").remove(),b(c)},R=function(a,b){c=a.append("g"),d=c.append("rect").attr("rx","8").attr("ry","8").attr("fill","none").attr("stroke","black"),e=c.append("rect").attr("rx","8").attr("ry","8").attr("height","20").attr("fill","#686766").attr("stroke","none"),c.append("image").attr("id",h._id+"_dissolve").attr("xlink:href","img/icon_delete.png").attr("width","16").attr("height","16").attr("x","5").attr("y","2").attr("style","cursor:pointer").on("click",function(){h.dissolve(),b()}),c.append("image").attr("id",h._id+"_collapse").attr("xlink:href","img/gv_collapse.png").attr("width","16").attr("height","16").attr("x","25").attr("y","2").attr("style","cursor:pointer").on("click",function(){h.collapse(),b()});var f=c.append("text").attr("x","45").attr("y","15").attr("fill","white").attr("stroke","none").attr("text-anchor","left");h._reason&&f.text(h._reason.text),v().observe(document.getElementById(h._id),{subtree:!0,attributes:!0})},S=function(a){if(h._expanded){var b=a.focus(),c=[b[0]-h.position.x,b[1]-h.position.y];a.focus(c),_.each(j,function(b){b.position=a(b),b.position.x/=h.position.z,b.position.y/=h.position.z,b.position.z/=h.position.z}),a.focus(b)}},T=function(a,b,c,d,e){return a.on("click",null),h._expanded?(R(a,d),void Q(a,c,d,e)):void P(a,b,d,e)},U=function(a,b,c){if(h._expanded){var d=a.selectAll(".link"),e=d.select("line");b(e,d),c(d)}},V=function(a,b){var c,d,e=function(a){return a._id};h._expanded&&(d=a.selectAll(".link").data(k,e),d.enter().append("g").attr("class","link").attr("id",e),d.exit().remove(),d.selectAll("* > *").remove(),c=d.append("line"),b(c,d))},W=function(a){H(a)};g=new ForceLayouter({distance:100,gravity:.1,charge:-500,width:1,height:1,nodes:j,links:k}),this._id="*community_"+Math.floor(1e6*Math.random()),b.length>0?(this.x=b[0].x,this.y=b[0].y):(this.x=0,this.y=0),this._size=0,this._inboundCounter=0,this._outboundCounter=0,this._expanded=!1,this._isCommunity=!0,D(b),this.hasNode=z,this.getNodes=A,this.getNode=B,this.getDistance=p,this.getCharge=q,this.insertNode=C,this.insertInboundEdge=I,this.insertOutboundEdge=J,this.removeNode=E,this.removeInboundEdge=F,this.removeOutboundEdge=G,this.removeOutboundEdgesFromNode=H,this.collapseNode=W,this.dissolve=M,this.getDissolveInfo=K,this.collapse=N,this.expand=L,this.shapeNodes=T,this.shapeInnerEdges=V,this.updateInnerEdges=U,this.addDistortion=S,this.getSourcePosition=s,this.getTargetPosition=t}function DomObserverFactory(){"use strict";var a=window.WebKitMutationObserver||window.MutationObserver;this.createObserver=function(b){if(!a)throw"Observer not supported";return new a(b)}}function EdgeShaper(a,b,c){"use strict";var d,e,f,g=this,h=[],i={},j=new ContextMenu("gv_edge_cm"),k=function(a,b){return _.isArray(a)?b[_.find(a,function(a){return b[a]})]:b[a]},l=function(a){if(void 0===a)return[""];"string"!=typeof a&&(a=String(a));var b=a.match(/[\w\W]{1,10}(\s|$)|\S+?(\s|$)/g);return b[0]=$.trim(b[0]),b[1]=$.trim(b[1]),b[0].length>12&&(b[0]=$.trim(a.substring(0,10))+"-",b[1]=$.trim(a.substring(10)),b[1].length>12&&(b[1]=b[1].split(/\W/)[0],b[1].length>12&&(b[1]=b[1].substring(0,10)+"...")),b.length=2),b.length>2&&(b.length=2,b[1]+="..."),b},m=!0,n={},o=function(a){return a._id},p=function(a,b){},q=new ColourMapper,r=function(){q.reset()},s=p,t=p,u=p,v=p,w=function(){f={click:p,dblclick:p,mousedown:p,mouseup:p,mousemove:p,mouseout:p,mouseover:p}},x=function(a,b){return 180*Math.atan2(b.y-a.y,b.x-a.x)/Math.PI},y=function(a,b){var c,d=Math.sqrt((b.y-a.y)*(b.y-a.y)+(b.x-a.x)*(b.x-a.x));return a.x===b.x?d-=18*b.z:(c=Math.abs((b.y-a.y)/(b.x-a.x)),d-=.4>c?Math.abs(d*b.z*45/(b.x-a.x)):Math.abs(d*b.z*18/(b.y-a.y))),d},z=function(a,b){_.each(f,function(a,c){b.on(c,a)})},A=function(a,b){if("update"===a)s=b;else{if(void 0===f[a])throw"Sorry Unknown Event "+a+" cannot be bound.";f[a]=b}},B=function(a){var b,c,d,e;return d=a.source,e=a.target,d._isCommunity?(i[d._id]=d,b=d.getSourcePosition(a)):b=d.position,e._isCommunity?(i[e._id]=e,c=e.getTargetPosition(a)):c=e.position,{s:b,t:c}},C=function(a,b){i={},b.attr("transform",function(a){var b=B(a);return"translate("+b.s.x+", "+b.s.y+")rotate("+x(b.s,b.t)+")"}),a.attr("x2",function(a){var b=B(a);return y(b.s,b.t)})},D=function(a,b){t(a,b),m&&u(a,b),v(a,b),z(a,b),C(a,b)},E=function(a){void 0!==a&&(h=a);var b,c=g.parent.selectAll(".link").data(h,o);c.enter().append("g").attr("class","link").attr("id",o),c.exit().remove(),c.selectAll("* > *").remove(),b=c.append("line"),D(b,c),_.each(i,function(a){a.shapeInnerEdges(d3.select(this),D)}),j.bindMenu($(".link"))},F=function(){var a=g.parent.selectAll(".link"),b=a.select("line");C(b,a),s(a),_.each(i,function(a){a.updateInnerEdges(d3.select(this),C,s)})},G=function(a){switch($("svg defs marker#arrow").remove(),a.type){case EdgeShaper.shapes.NONE:t=p;break;case EdgeShaper.shapes.ARROW:t=function(a,b){a.attr("marker-end","url(#arrow)")},0===d.selectAll("defs")[0].length&&d.append("defs"),d.select("defs").append("marker").attr("id","arrow").attr("refX","10").attr("refY","5").attr("markerUnits","strokeWidth").attr("markerHeight","10").attr("markerWidth","10").attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z");break;default:throw"Sorry given Shape not known!"}},H=function(a){u=_.isFunction(a)?function(b,c){c.append("text").attr("text-anchor","middle").text(a)}:function(b,c){c.append("text").attr("text-anchor","middle").text(function(b){var c=l(k(a,b._data));return c[0]||""})},s=function(a){a.select("text").attr("transform",function(a){var b=B(a);return"translate("+y(b.s,b.t)/2+", -3)"})}},I=function(a){void 0!==a.reset&&a.reset&&w(),_.each(a,function(a,b){"reset"!==b&&A(b,a)})},J=function(a){switch($("svg defs #gradientEdgeColor").remove(),r(),a.type){case"single":v=function(b,c){b.attr("stroke",a.stroke)};break;case"gradient":0===d.selectAll("defs")[0].length&&d.append("defs");var b=d.select("defs").append("linearGradient").attr("id","gradientEdgeColor");b.append("stop").attr("offset","0").attr("stop-color",a.source),b.append("stop").attr("offset","0.4").attr("stop-color",a.source),b.append("stop").attr("offset","0.6").attr("stop-color",a.target),b.append("stop").attr("offset","1").attr("stop-color",a.target),v=function(a,b){a.attr("stroke","url(#gradientEdgeColor)"),a.attr("y2","0.0000000000000001")};break;case"attribute":v=function(b,c){c.attr("stroke",function(b){return q.getColour(b._data[a.key])})};break;default:throw"Sorry given colour-scheme not known"}},K=function(a){void 0!==a.shape&&G(a.shape),void 0!==a.label&&(H(a.label),g.label=a.label),void 0!==a.actions&&I(a.actions),void 0!==a.color&&J(a.color)};for(g.parent=a,w(),d=a;d[0][0]&&d[0][0].ownerSVGElement;)d=d3.select(d[0][0].ownerSVGElement);void 0===b&&(b={color:{type:"single",stroke:"#686766"}}),void 0===b.color&&(b.color={type:"single",stroke:"#686766"}),K(b),_.isFunction(c)&&(o=c),e=d.append("g"),g.changeTo=function(a){K(a),E(),F()},g.drawEdges=function(a){E(a),F()},g.updateEdges=function(){F()},g.reshapeEdges=function(){E()},g.activateLabel=function(a){m=a?!0:!1,E()},g.addAnEdgeFollowingTheCursor=function(a,b){return n=e.append("line"),n.attr("stroke","black").attr("id","connectionLine").attr("x1",a).attr("y1",b).attr("x2",a).attr("y2",b),function(a,b){n.attr("x2",a).attr("y2",b)}},g.removeCursorFollowingEdge=function(){n.remove&&(n.remove(),n={})},g.addMenuEntry=function(a,b){j.addEntry(a,b)},g.getLabel=function(){return g.label||""},g.resetColourMap=r}function EventDispatcher(a,b,c){"use strict";var d,e,f,g,h=this,i=function(b){if(void 0===b.shaper&&(b.shaper=a),d.checkNodeEditorConfig(b)){var c=new d.InsertNode(b),e=new d.PatchNode(b),f=new d.DeleteNode(b);h.events.CREATENODE=function(a,b,d,e){var f;return f=_.isFunction(a)?a():a,function(){c(f,b,d,e)}},h.events.PATCHNODE=function(a,b,c){if(!_.isFunction(b))throw"Please give a function to extract the new node data";return function(){e(a,b(),c)}},h.events.DELETENODE=function(a){return function(b){f(b,a)}}}},j=function(a){if(void 0===a.shaper&&(a.shaper=b),d.checkEdgeEditorConfig(a)){var c=new d.InsertEdge(a),e=new d.PatchEdge(a),f=new d.DeleteEdge(a),g=null,i=!1;h.events.STARTCREATEEDGE=function(a){return function(b){var c=d3.event||window.event;g=b,i=!1,void 0!==a&&a(b,c),c.stopPropagation()}},h.events.CANCELCREATEEDGE=function(a){return function(){g=null,void 0===a||i||a()}},h.events.FINISHCREATEEDGE=function(a){return function(b){null!==g&&b!==g&&(c(g,b,a),i=!0)}},h.events.PATCHEDGE=function(a,b,c){if(!_.isFunction(b))throw"Please give a function to extract the new node data";return function(){e(a,b(),c)}},h.events.DELETEEDGE=function(a){return function(b){f(b,a)}}}},k=function(){g=g||$("svg"),g.unbind(),_.each(e,function(a,b){g.bind(b,function(c){_.each(a,function(a){a(c)}),f[b]&&f[b](c)})})};if(void 0===a)throw"NodeShaper has to be given.";if(void 0===b)throw"EdgeShaper has to be given.";d=new EventLibrary,e={click:[],dblclick:[],mousedown:[],mouseup:[],mousemove:[],mouseout:[],mouseover:[]},f={},h.events={},void 0!==c&&(void 0!==c.expand&&d.checkExpandConfig(c.expand)&&(h.events.EXPAND=new d.Expand(c.expand),a.setGVStartFunction(function(){c.expand.reshapeNodes(),c.expand.startCallback()})),void 0!==c.drag&&d.checkDragConfig(c.drag)&&(h.events.DRAG=d.Drag(c.drag)),void 0!==c.nodeEditor&&i(c.nodeEditor),void 0!==c.edgeEditor&&j(c.edgeEditor)),Object.freeze(h.events),h.bind=function(c,d,e){if(void 0===e||!_.isFunction(e))throw"You have to give a function that should be bound as a third argument";var g={};switch(c){case"nodes":g[d]=e,a.changeTo({actions:g});break;case"edges":g[d]=e,b.changeTo({actions:g});break;case"svg":f[d]=e,k();break;default:if(void 0===c.bind)throw'Sorry cannot bind to object. Please give either "nodes", "edges" or a jQuery-selected DOM-Element';c.unbind(d),c.bind(d,e)}},h.rebind=function(c,d){switch(d=d||{},d.reset=!0,c){case"nodes":a.changeTo({actions:d});break;case"edges":b.changeTo({actions:d});break;case"svg":f={},_.each(d,function(a,b){"reset"!==b&&(f[b]=a)}),k();break;default:throw'Sorry cannot rebind to object. Please give either "nodes", "edges" or "svg"'}},h.fixSVG=function(a,b){if(void 0===e[a])throw"Sorry unkown event";e[a].push(b),k()},Object.freeze(h.events)}function EventLibrary(){"use strict";var a=this;this.checkExpandConfig=function(a){if(void 0===a.startCallback)throw"A callback to the Start-method has to be defined";if(void 0===a.adapter||void 0===a.adapter.explore)throw"An adapter to load data has to be defined";if(void 0===a.reshapeNodes)throw"A callback to reshape nodes has to be defined";return!0},this.Expand=function(b){a.checkExpandConfig(b);var c=b.startCallback,d=b.adapter.explore,e=b.reshapeNodes;return function(a){d(a,c),e(),c()}},this.checkDragConfig=function(a){if(void 0===a.layouter)throw"A layouter has to be defined";if(void 0===a.layouter.drag||!_.isFunction(a.layouter.drag))throw"The layouter has to offer a drag function";return!0},this.Drag=function(b){return a.checkDragConfig(b),b.layouter.drag},this.checkNodeEditorConfig=function(a){if(void 0===a.adapter)throw"An adapter has to be defined";if(void 0===a.shaper)throw"A node shaper has to be defined";return!0},this.checkEdgeEditorConfig=function(a){if(void 0===a.adapter)throw"An adapter has to be defined";if(void 0===a.shaper)throw"An edge Shaper has to be defined";return!0},this.InsertNode=function(b){a.checkNodeEditorConfig(b);var c=b.adapter,d=b.shaper;return function(a,b,e,f){var g,h;_.isFunction(a)&&!b?(g=a,h={}):(g=b,h=a),c.createNode(h,function(a){d.reshapeNodes(),g(a)},e,f)}},this.PatchNode=function(b){a.checkNodeEditorConfig(b);var c=b.adapter,d=b.shaper;return function(a,b,e){c.patchNode(a,b,function(a){d.reshapeNodes(),e(a)})}},this.DeleteNode=function(b){a.checkNodeEditorConfig(b);var c=b.adapter,d=b.shaper;return function(a,b){c.deleteNode(a,function(){d.reshapeNodes(),b()})}},this.SelectNodeCollection=function(b){a.checkNodeEditorConfig(b);var c=b.adapter;if(!_.isFunction(c.useNodeCollection))throw"The adapter has to support collection changes";return function(a,b){c.useNodeCollection(a),b()}},this.InsertEdge=function(b){a.checkEdgeEditorConfig(b);var c=b.adapter,d=b.shaper;return function(a,b,e){c.createEdge({source:a,target:b},function(a){d.reshapeEdges(),e(a)})}},this.PatchEdge=function(b){a.checkEdgeEditorConfig(b);var c=b.adapter,d=b.shaper;return function(a,b,e){c.patchEdge(a,b,function(a){d.reshapeEdges(),e(a)})}},this.DeleteEdge=function(b){a.checkEdgeEditorConfig(b);var c=b.adapter,d=b.shaper;return function(a,b){c.deleteEdge(a,function(){d.reshapeEdges(),b()})}}}function ForceLayouter(a){"use strict";var b=this,c=d3.layout.force(),d=a.charge||-600,e=a.distance||80,f=a.gravity||.01,g=function(a){ var b=0;return b+=a.source._isCommunity?a.source.getDistance(e):e,b+=a.target._isCommunity?a.target.getDistance(e):e},h=function(a){return a._isCommunity?a.getCharge(d):d},i=a.onUpdate||function(){},j=a.width||880,k=a.height||680,l=function(a){a.distance&&(e=a.distance),a.gravity&&c.gravity(a.gravity),a.charge&&(d=a.charge)};if(void 0===a.nodes)throw"No nodes defined";if(void 0===a.links)throw"No links defined";c.nodes(a.nodes),c.links(a.links),c.size([j,k]),c.linkDistance(g),c.gravity(f),c.charge(h),c.on("tick",function(){}),b.start=function(){c.start()},b.stop=function(){c.stop()},b.drag=c.drag,b.setCombinedUpdateFunction=function(a,d,e){void 0!==e?(i=function(){c.alpha()<.1&&(a.updateNodes(),d.updateEdges(),e(),c.alpha()<.05&&b.stop())},c.on("tick",i)):(i=function(){c.alpha()<.1&&(a.updateNodes(),d.updateEdges(),c.alpha()<.05&&b.stop())},c.on("tick",i))},b.changeTo=function(a){l(a)},b.changeWidth=function(a){j=a,c.size([j,k])}}function FoxxAdapter(a,b,c,d,e){"use strict";if(void 0===a)throw"The nodes have to be given.";if(void 0===b)throw"The edges have to be given.";if(void 0===c)throw"The route has to be given.";if(void 0===d)throw"A reference to the graph viewer has to be given.";e=e||{};var f,g=this,h={},i={},j=c,k={cache:!1,contentType:"application/json",dataType:"json",processData:!1,error:function(a){try{throw console.log(a.statusText),"["+a.errorNum+"] "+a.errorMessage}catch(b){throw console.log(b),"Undefined ERROR"}}},l=function(){i.query={get:function(a,b){var c=$.extend(k,{type:"GET",url:j+"/query/"+a,success:b});$.ajax(c)}},i.nodes={post:function(a,b){var c=$.extend(k,{type:"POST",url:j+"/nodes",data:JSON.stringify(a),success:b});$.ajax(c)},put:function(a,b,c){var d=$.extend(k,{type:"PUT",url:j+"/nodes/"+a,data:JSON.stringify(b),success:c});$.ajax(d)},del:function(a,b){var c=$.extend(k,{type:"DELETE",url:j+"/nodes/"+a,success:b});$.ajax(c)}},i.edges={post:function(a,b){var c=$.extend(k,{type:"POST",url:j+"/edges",data:JSON.stringify(a),success:b});$.ajax(c)},put:function(a,b,c){var d=$.extend(k,{type:"PUT",url:j+"/edges/"+a,data:JSON.stringify(b),success:c});$.ajax(d)},del:function(a,b){var c=$.extend(k,{type:"DELETE",url:j+"/edges/"+a,success:b});$.ajax(c)}},i.forNode={del:function(a,b){var c=$.extend(k,{type:"DELETE",url:j+"/edges/forNode/"+a,success:b});$.ajax(c)}}},m=function(a,b,c){i[a].get(b,c)},n=function(a,b,c){i[a].post(b,c)},o=function(a,b,c){i[a].del(b,c)},p=function(a,b,c,d){i[a].put(b,c,d)},q=function(a){void 0!==a.width&&f.setWidth(a.width),void 0!==a.height&&f.setHeight(a.height)},r=function(b,c){var d={},e=b.first,g=a.length;e=f.insertNode(e),_.each(b.nodes,function(b){b=f.insertNode(b),g=l.TOTAL_NODES?$(".infoField").hide():$(".infoField").show());var e=t(l.NODES_TO_DISPLAY,d[c]);if(e.length>0){return _.each(e,function(a){l.randomNodes.push(a)}),void l.loadInitialNode(e[0]._id,a)}}a({errorCode:404})},l.loadInitialNode=function(a,b){e.cleanUp(),l.loadNode(a,v(b))},l.getRandomNodes=function(){var a=[],b=[];l.definedNodes.length>0&&_.each(l.definedNodes,function(a){b.push(a)}),l.randomNodes.length>0&&_.each(l.randomNodes,function(a){b.push(a)});var c=0;return _.each(b,function(b){c0?_.each(d,function(a){s(o.traversal,{example:a.vertex._id},function(a){_.each(a[0][0],function(a){c[0][0].push(a)}),u(c,b)})}):s(o.traversal,{example:a},function(a){u(a,b)})})},l.loadNodeFromTreeByAttributeValue=function(a,b,c){var d={};d[a]=b,s(o.traversal,{example:d},function(a){u(a,c)})},l.getNodeExampleFromTreeByAttributeValue=function(a,b,c){var d={};d[a]=b,s(o.traversal,{example:d},function(d){if(void 0===d[0][0])throw arangoHelper.arangoError("Graph error","no nodes found"),"No suitable nodes have been found.";_.each(d[0][0],function(d){if(d.vertex[a]===b){var f={};f._key=d.vertex._key,f._id=d.vertex._id,f._rev=d.vertex._rev,e.insertNode(f),c(f)}})})},l.loadAdditionalNodeByAttributeValue=function(a,b,c){l.getNodeExampleFromTreeByAttributeValue(a,b,c)},l.loadInitialNodeByAttributeValue=function(a,b,c){e.cleanUp(),l.loadNodeFromTreeByAttributeValue(a,b,v(c))},l.requestCentralityChildren=function(a,b){s(o.childrenCentrality,{id:a},function(a){b(a[0])})},l.createEdge=function(a,b){var c={};c._from=a.source._id,c._to=a.target._id,$.ajax({cache:!1,type:"POST",url:n.edges+i,data:JSON.stringify(c),dataType:"json",contentType:"application/json",processData:!1,success:function(a){if(a.error===!1){var d,f=a.edge;f._from=c._from,f._to=c._to,d=e.insertEdge(f),b(d)}},error:function(a){var b="";try{b=JSON.parse(a.responseText).errorMessage+" ("+JSON.parse(a.responseText).errorNum+")",arangoHelper.arangoError(a.statusText,b)}catch(c){throw a.statusText}}})},l.deleteEdge=function(a,b){$.ajax({cache:!1,type:"DELETE",url:n.edges+a._id,contentType:"application/json",dataType:"json",processData:!1,success:function(){e.removeEdge(a),void 0!==b&&_.isFunction(b)&&b()},error:function(a){var b="";try{b=JSON.parse(a.responseText).errorMessage+" ("+JSON.parse(a.responseText).errorNum+")",arangoHelper.arangoError(a.statusText,b)}catch(c){throw a.statusText}}})},l.patchEdge=function(a,b,c){$.ajax({cache:!1,type:"PUT",url:n.edges+a._id,data:JSON.stringify(b),dataType:"json",contentType:"application/json",processData:!1,success:function(){a._data=$.extend(a._data,b),c()},error:function(a){var b="";try{b=JSON.parse(a.responseText).errorMessage+" ("+JSON.parse(a.responseText).errorNum+")",arangoHelper.arangoError(a.statusText,b)}catch(c){throw a.statusText}}})},l.createNode=function(a,b){$.ajax({cache:!1,type:"POST",url:n.vertices+g,data:JSON.stringify(a),dataType:"json",contentType:"application/json",processData:!1,success:function(c){c.error===!1&&(a._key=c.vertex._key,a._id=c.vertex._id,a._rev=c.vertex._rev,e.insertNode(a),b(a))},error:function(a){var b="";try{b=JSON.parse(a.responseText).errorMessage+" ("+JSON.parse(a.responseText).errorNum+")",arangoHelper.arangoError(a.statusText,b)}catch(c){throw a.statusText}}})},l.deleteNode=function(a,b){$.ajax({cache:!1,type:"DELETE",url:n.vertices+a._id,dataType:"json",contentType:"application/json",processData:!1,success:function(){e.removeEdgesForNode(a),e.removeNode(a),void 0!==b&&_.isFunction(b)&&b()},error:function(a){var b="";try{b=JSON.parse(a.responseText).errorMessage+" ("+JSON.parse(a.responseText).errorNum+")",arangoHelper.arangoError(a.statusText,b)}catch(c){throw a.statusText}}})},l.patchNode=function(a,b,c){$.ajax({cache:!1,type:"PUT",url:n.vertices+a._id,data:JSON.stringify(b),dataType:"json",contentType:"application/json",processData:!1,success:function(){a._data=$.extend(a._data,b),c(a)},error:function(a){throw a.statusText}})},l.changeToGraph=function(a,b){e.cleanUp(),q(a),void 0!==b&&(k=b===!0?"any":"outbound")},l.setNodeLimit=function(a,b){e.setNodeLimit(a,b)},l.setChildLimit=function(a){e.setChildLimit(a)},l.expandCommunity=function(a,b){e.expandCommunity(a),void 0!==b&&b()},l.getGraphs=function(a){a&&a.length>=1&&s(o.getAllGraphs,{},a)},l.getAttributeExamples=function(a){if(a&&a.length>=1){var b,c=[],d=_.shuffle(l.getNodeCollections());for(b=0;b0&&(c=c.concat(_.flatten(_.map(e,function(a){return _.keys(a)}))))}var c=_.sortBy(_.uniq(c),function(a){return a.toLowerCase()});a(c)}},l.getEdgeCollections=function(){return h},l.getSelectedEdgeCollection=function(){return i},l.useEdgeCollection=function(a){if(!_.contains(h,a))throw"Collection "+a+" is not available in the graph.";i=a},l.getNodeCollections=function(){return f},l.getSelectedNodeCollection=function(){return g},l.useNodeCollection=function(a){if(!_.contains(f,a))throw"Collection "+a+" is not available in the graph.";g=a},l.getDirection=function(){return k},l.getGraphName=function(){return j},l.setWidth=e.setWidth,l.changeTo=e.changeTo,l.getPrioList=e.getPrioList}function ModularityJoiner(){"use strict";var a={},b=Array.prototype.forEach,c=Object.keys,d=Array.isArray,e=Object.prototype.toString,f=Array.prototype.indexOf,g=Array.prototype.map,h=Array.prototype.some,i={isArray:d||function(a){return"[object Array]"===e.call(a)},isFunction:function(a){return"function"==typeof a},isString:function(a){return"[object String]"===e.call(a)},each:function(c,d,e){if(null!==c&&void 0!==c){var f,g,h;if(b&&c.forEach===b)c.forEach(d,e);else if(c.length===+c.length){for(f=0,g=c.length;g>f;f++)if(d.call(e,c[f],f,c)===a)return}else for(h in c)if(c.hasOwnProperty(h)&&d.call(e,c[h],h,c)===a)return}},keys:c||function(a){if("object"!=typeof a||Array.isArray(a))throw new TypeError("Invalid object");var b,c=[];for(b in a)a.hasOwnProperty(b)&&(c[c.length]=b);return c},min:function(a,b,c){if(!b&&i.isArray(a)&&a[0]===+a[0]&&a.length<65535)return Math.min.apply(Math,a);if(!b&&i.isEmpty(a))return 1/0;var d={computed:1/0,value:1/0};return i.each(a,function(a,e,f){var g=b?b.call(c,a,e,f):a;gc&&(c=a,b=d)}),0>c?void delete q[a]:void(q[a]=b)},t=function(a,b){s(b)},u=function(a,b){return b>a?p[a]&&p[a][b]:p[b]&&p[b][a]},v=function(a,b){return b>a?p[a][b]:p[b][a]},w=function(a,b,c){return b>a?(p[a]=p[a]||{},void(p[a][b]=c)):(p[b]=p[b]||{},void(p[b][a]=c))},x=function(a,b){if(b>a){if(!p[a])return;return delete p[a][b],void(i.isEmpty(p[a])&&delete p[a])}a!==b&&x(b,a)},y=function(a,b){var c,d;return b>a?u(a,b)?(d=v(a,b),q[a]===b?void s(a):u(a,q[a])?(c=v(a,q[a]),void(d>c&&(q[a]=b))):void s(a)):void s(a):void(a!==b&&y(b,a))},z=function(a,b){o[a]._in+=o[b]._in,o[a]._out+=o[b]._out,delete o[b]},A=function(a,b){j[a]=j[a]||{},j[a][b]=(j[a][b]||0)+1,k[b]=k[b]||{},k[b][a]=(k[b][a]||0)+1,l[a]=l[a]||{_in:0,_out:0},l[b]=l[b]||{_in:0,_out:0},l[a]._out++,l[b]._in++,m++,n=Math.pow(m,-1)},B=function(a,b){j[a]&&(j[a][b]--,0===j[a][b]&&delete j[a][b],k[b][a]--,0===k[b][a]&&delete k[b][a],l[a]._out--,l[b]._in--,m--,n=m>0?Math.pow(m,-1):0,i.isEmpty(j[a])&&delete j[a],i.isEmpty(k[b])&&delete k[b],0===l[a]._in&&0===l[a]._out&&delete l[a],0===l[b]._in&&0===l[b]._out&&delete l[b])},C=function(){return o={},i.each(l,function(a,b){o[b]={_in:a._in/m,_out:a._out/m}}),o},D=function(a,b){return o[a]._out*o[b]._in+o[a]._in*o[b]._out},E=function(a){var b=i.keys(j[a]||{}),c=i.keys(k[a]||{});return i.union(b,c)},F=function(){p={},i.each(j,function(a,b){var c=k[b]||{},d=E(b);i.each(d,function(d){var e,f=a[d]||0;f+=c[d]||0,e=f*n-D(b,d),e>0&&w(b,d,e)})})},G=function(){return q={},i.each(p,t),q},H=function(a,b,c){var d;return u(c,a)?(d=v(c,a),u(c,b)?(d+=v(c,b),w(c,a,d),x(c,b),y(c,a),void y(c,b)):(d-=D(c,b),0>d&&x(c,a),void y(c,a))):void(u(c,b)&&(d=v(c,b),d-=D(c,a),d>0&&w(c,a,d),y(c,a),x(c,b),y(c,b)))},I=function(a,b){i.each(p,function(c,d){return d===a||d===b?void i.each(c,function(c,d){return d===b?(x(a,b),void y(a,b)):void H(a,b,d)}):void H(a,b,d)})},J=function(){return j},K=function(){return q},L=function(){return p},M=function(){return o},N=function(){return r},O=function(){var a,b,c=Number.NEGATIVE_INFINITY;return i.each(q,function(d,e){c=c?null:{sID:b,lID:a,val:c}},P=function(a){var b,c=Number.NEGATIVE_INFINITY;return i.each(a,function(a){a.q>c&&(c=a.q,b=a.nodes)}),b},Q=function(){C(),F(),G(),r={}},R=function(a){var b=a.sID,c=a.lID,d=a.val;r[b]=r[b]||{nodes:[b],q:0},r[c]?(r[b].nodes=r[b].nodes.concat(r[c].nodes),r[b].q+=r[c].q,delete r[c]):r[b].nodes.push(c),r[b].q+=d,I(b,c),z(b,c)},S=function(a,b,c){if(0===c.length)return!0;var d=[];return i.each(c,function(c){a[c]===Number.POSITIVE_INFINITY&&(a[c]=b,d=d.concat(E(c)))}),S(a,b+1,d)},T=function(a){var b={};if(i.each(j,function(a,c){b[c]=Number.POSITIVE_INFINITY}),b[a]=0,S(b,1,E(a)))return b;throw"FAIL!"},U=function(a){return function(b){return a[b]}},V=function(a,b){var c,d={},e=[],f={},g=function(a,b){var c=f[i.min(a,U(f))],e=f[i.min(b,U(f))],g=e-c;return 0===g&&(g=d[b[b.length-1]].q-d[a[a.length-1]].q),g};for(Q(),c=O();null!==c;)R(c),c=O();return d=N(),void 0!==b?(i.each(d,function(a,c){i.contains(a.nodes,b)&&delete d[c]}),e=i.pluck(i.values(d),"nodes"),f=T(b),e.sort(g),e[0]):P(d)};this.insertEdge=A,this.deleteEdge=B,this.getAdjacencyMatrix=J,this.getHeap=K,this.getDQ=L,this.getDegrees=M,this.getCommunities=N,this.getBest=O,this.setup=Q,this.joinCommunity=R,this.getCommunity=V}function NodeReducer(a){"use strict";a=a||[];var b=function(a,b){a.push(b)},c=function(a,b){if(!a.reason.example)return a.reason.example=b,1;var c=b._data||{},d=a.reason.example._data||{},e=_.union(_.keys(d),_.keys(c)),f=0,g=0;return _.each(e,function(a){void 0!==d[a]&&void 0!==c[a]&&(f++,d[a]===c[a]&&(f+=4))}),g=5*e.length,g++,f++,f/g},d=function(){return a},e=function(b){a=b},f=function(b,c){var d={},e=[];return _.each(b,function(b){var c,e,f=b._data,g=0;for(g=0;gd;d++){if(g[d]=g[d]||{reason:{type:"similar",text:"Similar Nodes"},nodes:[]},c(g[d],a)>h)return void b(g[d].nodes,a);i>g[d].nodes.length&&(f=d,i=g[d].nodes.length)}b(g[f].nodes,a)}),g):f(d,e)};this.bucketNodes=g,this.changePrioList=e,this.getPrioList=d}function NodeShaper(a,b,c){"use strict";var d,e,f=this,g=[],h=!0,i=new ContextMenu("gv_node_cm"),j=function(a,b){return _.isArray(a)?b[_.find(a,function(a){return b[a]})]:b[a]},k=function(a){if(void 0===a)return[""];"string"!=typeof a&&(a=String(a));var b=a.match(/[\w\W]{1,10}(\s|$)|\S+?(\s|$)/g);return b[0]=$.trim(b[0]),b[1]=$.trim(b[1]),b[0].length>12&&(b[0]=$.trim(a.substring(0,10)),b[1]=$.trim(a.substring(10)),b[1].length>12&&(b[1]=b[1].split(/\W/)[0],b[1].length>2&&(b[1]=b[1].substring(0,5)+"...")),b.length=2),b.length>2&&(b.length=2,b[1]+="..."),b},l=function(a){},m=l,n=function(a){return{x:a.x,y:a.y,z:1}},o=n,p=function(){_.each(g,function(a){a.position=o(a),a._isCommunity&&a.addDistortion(o)})},q=new ColourMapper,r=function(){q.reset()},s=function(a){return a._id},t=l,u=l,v=l,w=function(){return"black"},x=function(){f.parent.selectAll(".node").on("mousedown.drag",null),d={click:l,dblclick:l,drag:l,mousedown:l,mouseup:l,mousemove:l,mouseout:l,mouseover:l},e=l},y=function(a){_.each(d,function(b,c){"drag"===c?a.call(b):a.on(c,b)})},z=function(a){var b=a.filter(function(a){return a._isCommunity}),c=a.filter(function(a){return!a._isCommunity});u(c),b.each(function(a){a.shapeNodes(d3.select(this),u,z,m,q)}),h&&v(c),t(c),y(c),p()},A=function(a,b){if("update"===a)e=b;else{if(void 0===d[a])throw"Sorry Unknown Event "+a+" cannot be bound.";d[a]=b}},B=function(){var a=f.parent.selectAll(".node");p(),a.attr("transform",function(a){return"translate("+a.position.x+","+a.position.y+")scale("+a.position.z+")"}),e(a)},C=function(a){void 0!==a&&(g=a);var b=f.parent.selectAll(".node").data(g,s);b.enter().append("g").attr("class",function(a){return a._isCommunity?"node communitynode":"node"}).attr("id",s),b.exit().remove(),b.selectAll("* > *").remove(),z(b),B(),i.bindMenu($(".node"))},D=function(a){var b,c,d,e,f,g,h;switch(a.type){case NodeShaper.shapes.NONE:u=l;break;case NodeShaper.shapes.CIRCLE:b=a.radius||25,u=function(a,c){a.append("circle").attr("r",b),c&&a.attr("cx",-c).attr("cy",-c)};break;case NodeShaper.shapes.RECT:c=a.width||90,d=a.height||36,e=_.isFunction(c)?function(a){return-(c(a)/2)}:function(a){return-(c/2)},f=_.isFunction(d)?function(a){return-(d(a)/2)}:function(){return-(d/2)},u=function(a,b){b=b||0,a.append("rect").attr("width",c).attr("height",d).attr("x",function(a){return e(a)-b}).attr("y",function(a){return f(a)-b}).attr("rx","8").attr("ry","8")};break;case NodeShaper.shapes.IMAGE:c=a.width||32,d=a.height||32,g=a.fallback||"",h=a.source||g,e=_.isFunction(c)?function(a){return-(c(a)/2)}:-(c/2),f=_.isFunction(d)?function(a){return-(d(a)/2)}:-(d/2),u=function(a){var b=a.append("image").attr("width",c).attr("height",d).attr("x",e).attr("y",f);_.isFunction(h)?b.attr("xlink:href",h):b.attr("xlink:href",function(a){return a._data[h]?a._data[h]:g})};break;case void 0:break;default:throw"Sorry given Shape not known!"}},E=function(a){var b=[];_.each(a,function(a){b=$(a).find("text"),$(a).css("width","90px"),$(a).css("height","36px"),$(a).textfill({innerTag:"text",maxFontPixels:16,minFontPixels:10,explicitWidth:90,explicitHeight:36})})},F=function(a){v=_.isFunction(a)?function(b){var c=b.append("text").attr("text-anchor","middle").attr("fill",w).attr("stroke","none");c.each(function(b){var c=k(a(b)),d=c[0];2===c.length&&(d+=c[1]),d.length>15&&(d=d.substring(0,13)+"..."),(void 0===d||""===d)&&(d="ATTR NOT SET"),d3.select(this).append("tspan").attr("x","0").attr("dy","5").text(d)}),E(b)}:function(b){var c=b.append("text").attr("text-anchor","middle").attr("fill",w).attr("stroke","none");c.each(function(b){var c=k(j(a,b._data)),d=c[0];2===c.length&&(d+=c[1]),d.length>15&&(d=d.substring(0,13)+"..."),(void 0===d||""===d)&&(d="ATTR NOT SET"),d3.select(this).append("tspan").attr("x","0").attr("dy","5").text(d)}),E(b)}},G=function(a){void 0!==a.reset&&a.reset&&x(),_.each(a,function(a,b){"reset"!==b&&A(b,a)})},H=function(a){switch(r(),a.type){case"single":t=function(b){b.attr("fill",a.fill)},w=function(b){return a.stroke};break;case"expand":t=function(b){b.attr("fill",function(b){return b._expanded?a.expanded:a.collapsed})},w=function(a){return"white"};break;case"attribute":t=function(b){b.attr("fill",function(b){return void 0===b._data?q.getCommunityColour():q.getColour(j(a.key,b._data))}).attr("stroke",function(a){return a._expanded?"#fff":"transparent"}).attr("fill-opacity",function(a){return a._expanded?"1":"0.3"})},w=function(b){return void 0===b._data?q.getForegroundCommunityColour():q.getForegroundColour(j(a.key,b._data))};break;default:throw"Sorry given colour-scheme not known"}},I=function(a){if("reset"===a)o=n;else{if(!_.isFunction(a))throw"Sorry distortion cannot be parsed.";o=a}},J=function(a){void 0!==a.shape&&D(a.shape),void 0!==a.label&&(F(a.label),f.label=a.label),void 0!==a.actions&&G(a.actions),void 0!==a.color&&(H(a.color),f.color=a.color),void 0!==a.distortion&&I(a.distortion)};f.parent=a,x(),void 0===b&&(b={}),void 0===b.shape&&(b.shape={type:NodeShaper.shapes.RECT}),void 0===b.color&&(b.color={type:"single",fill:"#333333",stroke:"white"}),void 0===b.distortion&&(b.distortion="reset"),J(b),_.isFunction(c)&&(s=c),f.changeTo=function(a){J(a),C()},f.drawNodes=function(a){C(a)},f.updateNodes=function(){B()},f.reshapeNodes=function(){C()},f.activateLabel=function(a){h=a?!0:!1,C()},f.getColourMapping=function(){return q.getList()},f.setColourMappingListener=function(a){q.setChangeListener(a)},f.setGVStartFunction=function(a){m=a},f.getLabel=function(){return f.label||""},f.getColor=function(){return f.color.key||""},f.addMenuEntry=function(a,b){i.addEntry(a,b)},f.resetColourMap=r}function PreviewAdapter(a,b,c,d){"use strict";if(void 0===a)throw"The nodes have to be given.";if(void 0===b)throw"The edges have to be given.";if(void 0===c)throw"A reference to the graph viewer has to be given.";var e=this,f=new AbstractAdapter(a,b,this,c),g=function(a){void 0!==a.width&&f.setWidth(a.width),void 0!==a.height&&f.setHeight(a.height)},h=function(a,b){var c={},d=a.first;d=f.insertNode(d),_.each(a.nodes,function(a){a=f.insertNode(a),c[a._id]=a}),_.each(a.edges,function(a){f.insertEdge(a)}),delete c[d._id],void 0!==b&&_.isFunction(b)&&b(d)};d=d||{},g(d),e.loadInitialNode=function(a,b){f.cleanUp();var c=function(a){b(f.insertInitialNode(a))};e.loadNode(a,c)},e.loadNode=function(a,b){var c=[],d=[],e={},f={_id:1,label:"Node 1",image:"img/stored.png"},g={_id:2,label:"Node 2"},i={_id:3,label:"Node 3"},j={_id:4,label:"Node 4"},k={_id:5,label:"Node 5"},l={_id:"1-2",_from:1,_to:2,label:"Edge 1"},m={_id:"1-3",_from:1,_to:3,label:"Edge 2"},n={_id:"1-4",_from:1,_to:4,label:"Edge 3"},o={_id:"1-5",_from:1,_to:5,label:"Edge 4"},p={_id:"2-3",_from:2,_to:3,label:"Edge 5"};c.push(f),c.push(g),c.push(i),c.push(j),c.push(k),d.push(l),d.push(m),d.push(n),d.push(o),d.push(p),e.first=f,e.nodes=c,e.edges=d,h(e,b)},e.explore=f.explore,e.requestCentralityChildren=function(a,b){},e.createEdge=function(a,b){window.alert("Server-side: createEdge was triggered.")},e.deleteEdge=function(a,b){window.alert("Server-side: deleteEdge was triggered.")},e.patchEdge=function(a,b,c){window.alert("Server-side: patchEdge was triggered.")},e.createNode=function(a,b){window.alert("Server-side: createNode was triggered.")},e.deleteNode=function(a,b){window.alert("Server-side: deleteNode was triggered."),window.alert("Server-side: onNodeDelete was triggered.")},e.patchNode=function(a,b,c){window.alert("Server-side: patchNode was triggered.")},e.setNodeLimit=function(a,b){f.setNodeLimit(a,b)},e.setChildLimit=function(a){f.setChildLimit(a)},e.setWidth=f.setWidth,e.expandCommunity=function(a,b){f.expandCommunity(a),void 0!==b&&b()}}function WebWorkerWrapper(a,b){"use strict";if(void 0===a)throw"A class has to be given.";if(void 0===b)throw"A callback has to be given.";var c,d=Array.prototype.slice.call(arguments),e={},f=function(){var c,d=function(a){switch(a.data.cmd){case"construct":try{w=new(Function.prototype.bind.apply(Construct,[null].concat(a.data.args))),w?self.postMessage({cmd:"construct",result:!0}):self.postMessage({cmd:"construct",result:!1})}catch(b){self.postMessage({cmd:"construct",result:!1,error:b.message||b})}break;default:var c,d={cmd:a.data.cmd};if(w&&"function"==typeof w[a.data.cmd])try{c=w[a.data.cmd].apply(w,a.data.args),c&&(d.result=c),self.postMessage(d)}catch(e){d.error=e.message||e,self.postMessage(d)}else d.error="Method not known",self.postMessage(d)}},e=function(a){var b="var w, Construct = "+a.toString()+";self.onmessage = "+d.toString();return new window.Blob(b.split())},f=window.webkitURL||window.URL,g=new e(a);return c=new window.Worker(f.createObjectURL(g)),c.onmessage=b,c},g=function(){return a.apply(this,d)};try{return c=f(),e.call=function(a){var b=Array.prototype.slice.call(arguments);b.shift(),c.postMessage({cmd:a,args:b})},d.shift(),d.shift(),d.unshift("construct"),e.call.apply(this,d),e}catch(h){d.shift(),d.shift(),g.prototype=a.prototype;try{c=new g}catch(i){return void b({data:{cmd:"construct",error:i}})}return e.call=function(a){var d=Array.prototype.slice.call(arguments),e={data:{cmd:a}};if(!_.isFunction(c[a]))return e.data.error="Method not known",void b(e);d.shift();try{e.data.result=c[a].apply(c,d),b(e)}catch(f){e.data.error=f,b(e)}},b({data:{cmd:"construct",result:!0}}),e}}function ZoomManager(a,b,c,d,e,f,g,h){"use strict";if(void 0===a||0>a)throw"A width has to be given.";if(void 0===b||0>b)throw"A height has to be given.";if(void 0===c||void 0===c.node||"svg"!==c.node().tagName.toLowerCase())throw"A svg has to be given.";if(void 0===d||void 0===d.node||"g"!==d.node().tagName.toLowerCase())throw"A group has to be given.";if(void 0===e||void 0===e.activateLabel||void 0===e.changeTo||void 0===e.updateNodes)throw"The Node shaper has to be given.";if(void 0===f||void 0===f.activateLabel||void 0===f.updateEdges)throw"The Edge shaper has to be given.";var i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x=this,y=a*b,z=h||function(){},A=function(){var a,b;return l>=k?(b=i*l,b*=b,a=60*b):(b=j*l,b*=b,a=4*Math.PI*b),Math.floor(y/a)},B=function(){q=s/l-.99999999,r=t/l,p.distortion(q),p.radius(r)},C=function(a,b,c,g){g?null!==a&&(l=a):l=a,null!==b&&(m[0]+=b),null!==c&&(m[1]+=c),o=A(),z(o),e.activateLabel(l>=k),f.activateLabel(l>=k),B();var h="translate("+m+")",i=" scale("+l+")";d._isCommunity?d.attr("transform",h):d.attr("transform",h+i),v&&v.slider("option","value",l)},D=function(a){var b=[];return b[0]=a[0]-n[0],b[1]=a[1]-n[1],n[0]=a[0],n[1]=a[1],b},E=function(a){void 0===a&&(a={});var b=a.maxFont||16,c=a.minFont||6,d=a.maxRadius||25,e=a.minRadius||4;s=a.focusZoom||1,t=a.focusRadius||100,w=e/d,i=b,j=d,k=c/b,l=1,m=[0,0],n=[0,0],B(),o=A(),u=d3.behavior.zoom().scaleExtent([w,1]).on("zoom",function(){var a,b=d3.event.sourceEvent,c=l;"mousewheel"===b.type||"DOMMouseScroll"===b.type?(b.wheelDelta?b.wheelDelta>0?(c+=.01,c>1&&(c=1)):(c-=.01,w>c&&(c=w)):b.detail>0?(c+=.01,c>1&&(c=1)):(c-=.01,w>c&&(c=w)),a=[0,0]):a=D(d3.event.translate),C(c,a[0],a[1])})},F=function(){};p=d3.fisheye.circular(),E(g),c.call(u),e.changeTo({distortion:p}),c.on("mousemove",F),x.translation=function(){return null},x.scaleFactor=function(){return l},x.scaledMouse=function(){return null},x.getDistortion=function(){return q},x.getDistortionRadius=function(){return r},x.getNodeLimit=function(){return o},x.getMinimalZoomFactor=function(){return w},x.registerSlider=function(a){v=a},x.triggerScale=function(a){C(a,null,null,!0)},x.triggerTranslation=function(a,b){C(null,a,b,!0)},x.changeWidth=function(c){y=a*b}}function ArangoAdapterControls(a,b){"use strict";if(void 0===a)throw"A list element has to be given.";if(void 0===b)throw"The ArangoAdapter has to be given.";this.addControlChangeCollections=function(c){var d="control_adapter_collections",e=d+"_";b.getCollections(function(f,g){b.getGraphs(function(h){uiComponentsHelper.createButton(a,"Collections",d,function(){modalDialogHelper.createModalDialog("Switch Collections",e,[{type:"decission",id:"collections",group:"loadtype",text:"Select existing collections",isDefault:void 0===b.getGraphName(),interior:[{type:"list",id:"node_collection",text:"Vertex collection",objects:f,selected:b.getNodeCollection()},{type:"list",id:"edge_collection",text:"Edge collection",objects:g,selected:b.getEdgeCollection()}]},{type:"decission",id:"graphs",group:"loadtype",text:"Select existing graph",isDefault:void 0!==b.getGraphName(), -interior:[{type:"list",id:"graph",objects:h,selected:b.getGraphName()}]},{type:"checkbox",text:"Start with random vertex",id:"random",selected:!0},{type:"checkbox",id:"undirected",selected:"any"===b.getDirection()}],function(){var a=$("#"+e+"node_collection").children("option").filter(":selected").text(),d=$("#"+e+"edge_collection").children("option").filter(":selected").text(),f=$("#"+e+"graph").children("option").filter(":selected").text(),g=!!$("#"+e+"undirected").prop("checked"),h=!!$("#"+e+"random").prop("checked"),i=$("input[type='radio'][name='loadtype']:checked").prop("id");return i===e+"collections"?b.changeToCollections(a,d,g):b.changeToGraph(f,g),h?void b.loadRandomNode(c):void(_.isFunction(c)&&c())})})})})},this.addControlChangePriority=function(){var c="control_adapter_priority",d=c+"_",e=(b.getPrioList(),"Group vertices");uiComponentsHelper.createButton(a,e,c,function(){modalDialogHelper.createModalChangeDialog(e,d,[{type:"extendable",id:"attribute",objects:b.getPrioList()}],function(){var a=$("input[id^="+d+"attribute_]"),c=[];a.each(function(a,b){var d=$(b).val();""!==d&&c.push(d)}),b.changeTo({prioList:c})})})},this.addAll=function(){this.addControlChangeCollections(),this.addControlChangePriority()}}function ContextMenu(a){"use strict";if(void 0===a)throw"An id has to be given.";var b,c,d="#"+a,e=function(a,d){var e,f;e=document.createElement("div"),e.className="context-menu-item",f=document.createElement("div"),f.className="context-menu-item-inner",f.appendChild(document.createTextNode(a)),f.onclick=function(){d(d3.select(c.target).data()[0])},e.appendChild(f),b.appendChild(e)},f=function(a){c=$.contextMenu.create(d,{shadow:!1}),a.each(function(){$(this).bind("contextmenu",function(a){return c.show(this,a),!1})})},g=function(){return b=document.getElementById(a),b&&b.parentElement.removeChild(b),b=document.createElement("div"),b.className="context-menu context-menu-theme-osx",b.id=a,document.body.appendChild(b),b};g(),this.addEntry=e,this.bindMenu=f}function EdgeShaperControls(a,b){"use strict";if(void 0===a)throw"A list element has to be given.";if(void 0===b)throw"The EdgeShaper has to be given.";var c=this;this.addControlOpticShapeNone=function(){var c="control_edge_none";uiComponentsHelper.createButton(a,"None",c,function(){b.changeTo({shape:{type:EdgeShaper.shapes.NONE}})})},this.addControlOpticShapeArrow=function(){var c="control_edge_arrow";uiComponentsHelper.createButton(a,"Arrow",c,function(){b.changeTo({shape:{type:EdgeShaper.shapes.ARROW}})})},this.addControlOpticLabel=function(){var c="control_edge_label",d=c+"_";uiComponentsHelper.createButton(a,"Configure Label",c,function(){modalDialogHelper.createModalDialog("Switch Label Attribute",d,[{type:"text",id:"key",text:"Edge label attribute",value:b.getLabel()}],function(){var a=$("#"+d+"key").attr("value");b.changeTo({label:a})})})},this.addControlOpticLabelList=function(){var d="control_edge_label",e=d+"_";uiComponentsHelper.createButton(a,"Configure Label",d,function(){modalDialogHelper.createModalDialog("Change Label Attribute",e,[{type:"extendable",id:"label",text:"Edge label attribute",objects:b.getLabel()}],function(){var a=$("input[id^="+e+"label_]"),d=[];a.each(function(a,b){var c=$(b).val();""!==c&&d.push(c)});var f={label:d};c.applyLocalStorage(f),b.changeTo(f)})})},this.applyLocalStorage=function(a){if("undefined"!==Storage)try{var b=JSON.parse(localStorage.getItem("graphSettings")),c=window.location.hash.split("/")[1];_.each(a,function(a,d){void 0!==d&&(b[c].viewer.hasOwnProperty("edgeShaper")||(b[c].viewer.edgeShaper={}),b[c].viewer.edgeShaper[d]=a)}),localStorage.setItem("graphSettings",JSON.stringify(b))}catch(d){console.log(d)}},this.addControlOpticSingleColour=function(){var c="control_edge_singlecolour",d=c+"_";uiComponentsHelper.createButton(a,"Single Colour",c,function(){modalDialogHelper.createModalDialog("Switch to Colour",d,[{type:"text",id:"stroke"}],function(){var a=$("#"+d+"stroke").attr("value");b.changeTo({color:{type:"single",stroke:a}})})})},this.addControlOpticAttributeColour=function(){var c="control_edge_attributecolour",d=c+"_";uiComponentsHelper.createButton(a,"Colour by Attribute",c,function(){modalDialogHelper.createModalDialog("Display colour by attribute",d,[{type:"text",id:"key"}],function(){var a=$("#"+d+"key").attr("value");b.changeTo({color:{type:"attribute",key:a}})})})},this.addControlOpticGradientColour=function(){var c="control_edge_gradientcolour",d=c+"_";uiComponentsHelper.createButton(a,"Gradient Colour",c,function(){modalDialogHelper.createModalDialog("Change colours for gradient",d,[{type:"text",id:"source"},{type:"text",id:"target"}],function(){var a=$("#"+d+"source").attr("value"),c=$("#"+d+"target").attr("value");b.changeTo({color:{type:"gradient",source:a,target:c}})})})},this.addAllOptics=function(){c.addControlOpticShapeNone(),c.addControlOpticShapeArrow(),c.addControlOpticLabel(),c.addControlOpticSingleColour(),c.addControlOpticAttributeColour(),c.addControlOpticGradientColour()},this.addAllActions=function(){},this.addAll=function(){c.addAllOptics(),c.addAllActions()}}function EventDispatcherControls(a,b,c,d,e){"use strict";if(void 0===a)throw"A list element has to be given.";if(void 0===b)throw"The NodeShaper has to be given.";if(void 0===c)throw"The EdgeShaper has to be given.";if(void 0===d)throw"The Start callback has to be given.";var f=this,g={expand:{icon:"hand-pointer-o",title:"Expand a node."},add:{icon:"plus-square",title:"Add a node."},trash:{icon:"minus-square",title:"Remove a node/edge."},drag:{icon:"hand-rock-o",title:"Drag a node."},edge:{icon:"external-link-square",title:"Create an edge between two nodes."},edit:{icon:"pencil-square",title:"Edit attributes of a node."},view:{icon:"search",title:"View attributes of a node."}},h=new EventDispatcher(b,c,e),i=e.edgeEditor.adapter,j=!!i&&_.isFunction(i.useNodeCollection)&&_.isFunction(i.useEdgeCollection),k=function(b){a.appendChild(b)},l=function(a,b,c){var d=uiComponentsHelper.createIconButton(a,"control_event_"+b,c);k(d)},m=function(a){h.rebind("nodes",a)},n=function(a){h.rebind("edges",a)},o=function(a){h.rebind("svg",a)},p=function(a){var b=a||window.event,c={};return c.x=b.clientX,c.y=b.clientY,c.x+=document.body.scrollLeft,c.y+=document.body.scrollTop,c},q=function(a){var b,c,d,e=p(a),f=$("svg#graphViewerSVG").offset();return b=d3.select("svg#graphViewerSVG").node(),d=b.getBoundingClientRect(),$("svg#graphViewerSVG").height()<=d.height?{x:e.x-f.left,y:e.y-f.top}:(c=b.getBBox(),{x:e.x-(d.left-c.x),y:e.y-(d.top-c.y)})},r={nodes:{},edges:{},svg:{}},s=function(){var a="control_event_new_node",c=a+"_",e=function(a){var e=q(a);modalDialogHelper.createModalCreateDialog("Create New Node",c,{},function(a){h.events.CREATENODE(a,function(a){$("#"+c+"modal").modal("hide"),b.reshapeNodes(),d()},e.x,e.y)()})};r.nodes.newNode=e},t=function(){var a=function(a){modalDialogHelper.createModalViewDialog("View Node "+a._id,"control_event_node_view_",a._data,function(){modalDialogHelper.createModalEditDialog("Edit Node "+a._id,"control_event_node_edit_",a._data,function(b){h.events.PATCHNODE(a,b,function(){$("#control_event_node_edit_modal").modal("hide")})()})})},b=function(a){modalDialogHelper.createModalViewDialog("View Edge "+a._id,"control_event_edge_view_",a._data,function(){modalDialogHelper.createModalEditDialog("Edit Edge "+a._id,"control_event_edge_edit_",a._data,function(b){h.events.PATCHEDGE(a,b,function(){$("#control_event_edge_edit_modal").modal("hide")})()})})};r.nodes.view=a,r.edges.view=b},u=function(){var a=h.events.STARTCREATEEDGE(function(a,b){var d=q(b),e=c.addAnEdgeFollowingTheCursor(d.x,d.y);h.bind("svg","mousemove",function(a){var b=q(a);e(b.x,b.y)})}),b=h.events.FINISHCREATEEDGE(function(a){c.removeCursorFollowingEdge(),h.bind("svg","mousemove",function(){}),d()}),e=function(){h.events.CANCELCREATEEDGE(),c.removeCursorFollowingEdge(),h.bind("svg","mousemove",function(){})};r.nodes.startEdge=a,r.nodes.endEdge=b,r.svg.cancelEdge=e},v=function(){var a=function(a){arangoHelper.openDocEditor(a._id,"document")},b=function(a){arangoHelper.openDocEditor(a._id,"edge")};r.nodes.edit=a,r.edges.edit=b},w=function(){var a=function(a){modalDialogHelper.createModalDeleteDialog("Delete Node "+a._id,"control_event_node_delete_",a,function(a){h.events.DELETENODE(function(){$("#control_event_node_delete_modal").modal("hide"),b.reshapeNodes(),c.reshapeEdges(),d()})(a)})},e=function(a){modalDialogHelper.createModalDeleteDialog("Delete Edge "+a._id,"control_event_edge_delete_",a,function(a){h.events.DELETEEDGE(function(){$("#control_event_edge_delete_modal").modal("hide"),b.reshapeNodes(),c.reshapeEdges(),d()})(a)})};r.nodes.del=a,r.edges.del=e},x=function(){r.nodes.spot=h.events.EXPAND};s(),t(),u(),v(),w(),x(),this.dragRebinds=function(){return{nodes:{drag:h.events.DRAG}}},this.newNodeRebinds=function(){return{svg:{click:r.nodes.newNode}}},this.viewRebinds=function(){return{nodes:{click:r.nodes.view},edges:{click:r.edges.view}}},this.connectNodesRebinds=function(){return{nodes:{mousedown:r.nodes.startEdge,mouseup:r.nodes.endEdge},svg:{mouseup:r.svg.cancelEdge}}},this.editRebinds=function(){return{nodes:{click:r.nodes.edit},edges:{click:r.edges.edit}}},this.expandRebinds=function(){return{nodes:{click:r.nodes.spot}}},this.deleteRebinds=function(){return{nodes:{click:r.nodes.del},edges:{click:r.edges.del}}},this.rebindAll=function(a){m(a.nodes),n(a.edges),o(a.svg)},b.addMenuEntry("Edit",r.nodes.edit),b.addMenuEntry("Spot",r.nodes.spot),b.addMenuEntry("Trash",r.nodes.del),c.addMenuEntry("Edit",r.edges.edit),c.addMenuEntry("Trash",r.edges.del),this.addControlNewNode=function(){var a=g.add,b="select_node_collection",c=function(){j&&i.getNodeCollections().length>1&&modalDialogHelper.createModalDialog("Select Vertex Collection",b,[{type:"list",id:"vertex",objects:i.getNodeCollections(),text:"Select collection",selected:i.getSelectedNodeCollection()}],function(){var a=$("#"+b+"vertex").children("option").filter(":selected").text();i.useNodeCollection(a)},"Select"),f.rebindAll(f.newNodeRebinds())};l(a,"new_node",c)},this.addControlView=function(){var a=g.view,b=function(){f.rebindAll(f.viewRebinds())};l(a,"view",b)},this.addControlDrag=function(){var a=g.drag,b=function(){f.rebindAll(f.dragRebinds())};l(a,"drag",b)},this.addControlEdit=function(){var a=g.edit,b=function(){f.rebindAll(f.editRebinds())};l(a,"edit",b)},this.addControlExpand=function(){var a=g.expand,b=function(){f.rebindAll(f.expandRebinds())};l(a,"expand",b)},this.addControlDelete=function(){var a=g.trash,b=function(){f.rebindAll(f.deleteRebinds())};l(a,"delete",b)},this.addControlConnect=function(){var a=g.edge,b="select_edge_collection",c=function(){j&&i.getEdgeCollections().length>1&&modalDialogHelper.createModalDialog("Select Edge Collection",b,[{type:"list",id:"edge",objects:i.getEdgeCollections(),text:"Select collection",selected:i.getSelectedEdgeCollection()}],function(){var a=$("#"+b+"edge").children("option").filter(":selected").text();i.useEdgeCollection(a)},"Select"),f.rebindAll(f.connectNodesRebinds())};l(a,"connect",c)},this.addAll=function(){f.addControlExpand(),f.addControlDrag(),f.addControlEdit(),f.addControlConnect(),f.addControlNewNode(),f.addControlDelete()}}function GharialAdapterControls(a,b){"use strict";if(void 0===a)throw"A list element has to be given.";if(void 0===b)throw"The GharialAdapter has to be given.";this.addControlChangeGraph=function(c){var d="control_adapter_graph",e=d+"_";b.getGraphs(function(f){uiComponentsHelper.createButton(a,"Switch Graph",d,function(){modalDialogHelper.createModalDialog("Switch Graph",e,[{type:"list",id:"graph",objects:f,text:"Select graph",selected:b.getGraphName()},{type:"checkbox",text:"Start with random vertex",id:"random",selected:!0}],function(){var a=$("#"+e+"graph").children("option").filter(":selected").text(),d=!!$("#"+e+"undirected").prop("checked"),f=!!$("#"+e+"random").prop("checked");return b.changeToGraph(a,d),f?void b.loadRandomNode(c):void(_.isFunction(c)&&c())})})})},this.addControlChangePriority=function(){var c="control_adapter_priority",d=c+"_",e="Group vertices";uiComponentsHelper.createButton(a,e,c,function(){modalDialogHelper.createModalChangeDialog(e+" by attribute",d,[{type:"extendable",id:"attribute",objects:b.getPrioList()}],function(){var a=$("input[id^="+d+"attribute_]"),c=[];_.each(a,function(a){var b=$(a).val();""!==b&&c.push(b)}),b.changeTo({prioList:c})})})},this.addAll=function(){this.addControlChangeGraph(),this.addControlChangePriority()}}function GraphViewerPreview(a,b){"use strict";var c,d,e,f,g,h,i,j=function(){return d3.select(a).append("svg").attr("id","graphViewerSVG").attr("width",d).attr("height",e).attr("class","graph-viewer").attr("style","width:"+d+"px;height:"+e+";")},k=function(a){var b=0;return _.each(a,function(c,d){c===!1?delete a[d]:b++}),b>0},l=function(a,b){_.each(b,function(b,c){a[c]=a[c]||{},_.each(b,function(b,d){a[c][d]=b})})},m=function(a){if(a){var b={};a.drag&&l(b,i.dragRebinds()),a.create&&(l(b,i.newNodeRebinds()),l(b,i.connectNodesRebinds())),a.remove&&l(b,i.deleteRebinds()),a.expand&&l(b,i.expandRebinds()),a.edit&&l(b,i.editRebinds()),i.rebindAll(b)}},n=function(b){var c=document.createElement("div");i=new EventDispatcherControls(c,f.nodeShaper,f.edgeShaper,f.start,f.dispatcherConfig),c.id="toolbox",c.className="btn-group btn-group-vertical pull-left toolbox",a.appendChild(c),_.each(b,function(a,b){switch(b){case"expand":i.addControlExpand();break;case"create":i.addControlNewNode(),i.addControlConnect();break;case"drag":i.addControlDrag();break;case"edit":i.addControlEdit();break;case"remove":i.addControlDelete()}})},o=function(a){var b=document.createElement("div");i=new EventDispatcherControls(b,f.nodeShaper,f.edgeShaper,f.start,f.dispatcherConfig)},p=function(){b&&(b.nodeShaper&&(b.nodeShaper.label&&(b.nodeShaper.label="label"),b.nodeShaper.shape&&b.nodeShaper.shape.type===NodeShaper.shapes.IMAGE&&b.nodeShaper.shape.source&&(b.nodeShaper.shape.source="image")),b.edgeShaper&&b.edgeShaper.label&&(b.edgeShaper.label="label"))},q=function(){return p(),new GraphViewer(c,d,e,h,b)};d=a.offsetWidth,e=a.offsetHeight,h={type:"preview"},b=b||{},g=k(b.toolbox),g&&(d-=43),c=j(),f=q(),g?n(b.toolbox):o(),f.loadGraph("1"),m(b.actions)}function GraphViewerUI(a,b,c,d,e,f){"use strict";if(void 0===a)throw"A parent element has to be given.";if(!a.id)throw"The parent element needs an unique id.";if(void 0===b)throw"An adapter configuration has to be given";var g,h,i,j,k,l,m,n,o,p=c+20||a.offsetWidth-81+20,q=d||a.offsetHeight,r=document.createElement("ul"),s=document.createElement("div"),t=function(){g.adapter.NODES_TO_DISPLAYGraph too big. A random section is rendered.
'),$(".infoField .fa-info-circle").attr("title","You can display additional/other vertices by using the toolbar buttons.").tooltip())},u=function(){var a,b=document.createElement("div"),c=document.createElement("div"),d=document.createElement("div"),e=document.createElement("div"),f=document.createElement("button"),h=document.createElement("span"),i=document.createElement("input"),j=document.createElement("i"),k=document.createElement("span"),l=function(){$(s).css("cursor","progress")},n=function(){$(s).css("cursor","")},o=function(a){return n(),a&&a.errorCode&&404===a.errorCode?void arangoHelper.arangoError("Graph error","could not find a matching node."):void 0},p=function(){l(),""===a.value||void 0===a.value?g.loadGraph(i.value,o):g.loadGraphWithAttributeValue(a.value,i.value,o)};b.id="filterDropdown",b.className="headerDropdown smallDropdown",c.className="dropdownInner",d.className="queryline",a=document.createElement("input"),m=document.createElement("ul"),e.className="pull-left input-append searchByAttribute",a.id="attribute",a.type="text",a.placeholder="Attribute name",f.id="attribute_example_toggle",f.className="button-neutral gv_example_toggle",h.className="caret gv_caret",m.className="gv-dropdown-menu",i.id="value",i.className="searchInput gv_searchInput",i.type="text",i.placeholder="Attribute value",j.id="loadnode",j.className="fa fa-search",k.className="searchEqualsLabel",k.appendChild(document.createTextNode("==")),c.appendChild(d),d.appendChild(e),e.appendChild(a),e.appendChild(f),e.appendChild(m),f.appendChild(h),d.appendChild(k),d.appendChild(i),d.appendChild(j),j.onclick=p,$(i).keypress(function(a){return 13===a.keyCode||13===a.which?(p(),!1):void 0}),f.onclick=function(){$(m).slideToggle(200)};var q=document.createElement("p");return q.className="dropdown-title",q.innerHTML="Filter graph by attribute:",b.appendChild(q),b.appendChild(c),b},v=function(){var a,b=document.createElement("div"),c=document.createElement("div"),d=document.createElement("div"),e=document.createElement("div"),f=document.createElement("button"),h=document.createElement("span"),i=document.createElement("input"),j=document.createElement("i"),k=document.createElement("span"),l=function(){$(s).css("cursor","progress")},m=function(){$(s).css("cursor","")},o=function(a){return m(),a&&a.errorCode&&404===a.errorCode?void arangoHelper.arangoError("Graph error","could not find a matching node."):void 0},p=function(){l(),""!==a.value&&g.loadGraphWithAdditionalNode(a.value,i.value,o)};b.id="nodeDropdown",b.className="headerDropdown smallDropdown",c.className="dropdownInner",d.className="queryline",a=document.createElement("input"),n=document.createElement("ul"),e.className="pull-left input-append searchByAttribute",a.id="attribute",a.type="text",a.placeholder="Attribute name",f.id="attribute_example_toggle2",f.className="button-neutral gv_example_toggle",h.className="caret gv_caret",n.className="gv-dropdown-menu",i.id="value",i.className="searchInput gv_searchInput",i.type="text",i.placeholder="Attribute value",j.id="loadnode",j.className="fa fa-search",k.className="searchEqualsLabel",k.appendChild(document.createTextNode("==")),c.appendChild(d),d.appendChild(e),e.appendChild(a),e.appendChild(f),e.appendChild(n),f.appendChild(h),d.appendChild(k),d.appendChild(i),d.appendChild(j),C(n),j.onclick=p,$(i).keypress(function(a){return 13===a.keyCode||13===a.which?(p(),!1):void 0}),f.onclick=function(){$(n).slideToggle(200)};var q=document.createElement("p");return q.className="dropdown-title",q.innerHTML="Add specific node by attribute:",b.appendChild(q),b.appendChild(c),b},w=function(){var a,b,c,d,e,f,g,h;return a=document.createElement("div"),a.id="configureDropdown",a.className="headerDropdown",b=document.createElement("div"),b.className="dropdownInner",c=document.createElement("ul"),d=document.createElement("li"),d.className="nav-header",d.appendChild(document.createTextNode("Vertices")),g=document.createElement("ul"),h=document.createElement("li"),h.className="nav-header",h.appendChild(document.createTextNode("Edges")),e=document.createElement("ul"),f=document.createElement("li"),f.className="nav-header",f.appendChild(document.createTextNode("Connection")),c.appendChild(d),g.appendChild(h),e.appendChild(f),b.appendChild(c),b.appendChild(g),b.appendChild(e),a.appendChild(b),{configure:a,nodes:c,edges:g,col:e}},x=function(a,b,c,d){var e,f,g,h,i,j,k,l,m,n,o;return a.className="headerButtonBar",e=document.createElement("ul"),e.className="headerButtonList",a.appendChild(e),g=document.createElement("li"),g.className="enabled",h=document.createElement("a"),h.id=b,h.className="headerButton",i=document.createElement("span"),i.className="icon_arangodb_settings2",$(i).attr("title","Configure"),e.appendChild(g),g.appendChild(h),h.appendChild(i),j=document.createElement("li"),j.className="enabled",k=document.createElement("a"),k.id=d,k.className="headerButton",l=document.createElement("span"),l.className="fa fa-search-plus",$(l).attr("title","Show additional vertices"),e.appendChild(j),j.appendChild(k),k.appendChild(l),m=document.createElement("li"),m.className="enabled",n=document.createElement("a"),n.id=c,n.className="headerButton",o=document.createElement("span"),o.className="icon_arangodb_filter",$(o).attr("title","Filter"),e.appendChild(m),m.appendChild(n),n.appendChild(o),f=w(),f.filter=u(),f.node=v(),h.onclick=function(){$("#filterdropdown").removeClass("activated"),$("#nodedropdown").removeClass("activated"),$("#configuredropdown").toggleClass("activated"),$(f.configure).slideToggle(200),$(f.filter).hide(),$(f.node).hide()},k.onclick=function(){$("#filterdropdown").removeClass("activated"),$("#configuredropdown").removeClass("activated"),$("#nodedropdown").toggleClass("activated"),$(f.node).slideToggle(200),$(f.filter).hide(),$(f.configure).hide()},n.onclick=function(){$("#configuredropdown").removeClass("activated"),$("#nodedropdown").removeClass("activated"),$("#filterdropdown").toggleClass("activated"),$(f.filter).slideToggle(200),$(f.node).hide(),$(f.configure).hide()},f},y=function(){return d3.select("#"+a.id+" #background").append("svg").attr("id","graphViewerSVG").attr("width",p).attr("height",q).attr("class","graph-viewer").style("width",p+"px").style("height",q+"px")},z=function(){var a=document.createElement("div"),b=document.createElement("div"),c=document.createElement("button"),d=document.createElement("button"),e=document.createElement("button"),f=document.createElement("button");a.className="gv_zoom_widget",b.className="gv_zoom_buttons_bg",c.className="btn btn-icon btn-zoom btn-zoom-top gv-zoom-btn pan-top",d.className="btn btn-icon btn-zoom btn-zoom-left gv-zoom-btn pan-left",e.className="btn btn-icon btn-zoom btn-zoom-right gv-zoom-btn pan-right",f.className="btn btn-icon btn-zoom btn-zoom-bottom gv-zoom-btn pan-bottom",c.onclick=function(){g.zoomManager.triggerTranslation(0,-10)},d.onclick=function(){g.zoomManager.triggerTranslation(-10,0)},e.onclick=function(){g.zoomManager.triggerTranslation(10,0)},f.onclick=function(){g.zoomManager.triggerTranslation(0,10)},b.appendChild(c),b.appendChild(d),b.appendChild(e),b.appendChild(f),l=document.createElement("div"),l.id="gv_zoom_slider",l.className="gv_zoom_slider",s.appendChild(a),s.insertBefore(a,o[0][0]),a.appendChild(b),a.appendChild(l),$("#gv_zoom_slider").slider({orientation:"vertical",min:g.zoomManager.getMinimalZoomFactor(),max:1,value:1,step:.01,slide:function(a,b){g.zoomManager.triggerScale(b.value)}}),g.zoomManager.registerSlider($("#gv_zoom_slider"))},A=function(){var a=document.createElement("div"),b=new EventDispatcherControls(a,g.nodeShaper,g.edgeShaper,g.start,g.dispatcherConfig);a.id="toolbox",a.className="btn-group btn-group-vertical toolbox",s.insertBefore(a,o[0][0]),b.addAll(),$("#control_event_expand").click()},B=function(){var a='
  • ';$(".headerBar .headerButtonList").prepend(a)},C=function(a){var b;b=a?$(a):$(m),b.innerHTML="";var c=document.createElement("li"),d=document.createElement("img");$(c).append(d),d.className="gv-throbber",b.append(c),g.adapter.getAttributeExamples(function(a){$(b).html(""),_.each(a,function(a){var c=document.createElement("li"),d=document.createElement("a"),e=document.createElement("label");$(c).append(d),$(d).append(e),$(e).append(document.createTextNode(a)),e.className="gv_dropdown_label",b.append(c),c.onclick=function(){b.value=a,$(b).parent().find("input").val(a),$(b).slideToggle(200)}})})},D=function(){var a=document.createElement("div"),b=document.createElement("div"),c=document.createElement("a"),d=x(b,"configuredropdown","filterdropdown","nodedropdown");i=new NodeShaperControls(d.nodes,g.nodeShaper),j=new EdgeShaperControls(d.edges,g.edgeShaper),k=new GharialAdapterControls(d.col,g.adapter),r.id="menubar",a.className="headerBar",b.id="modifiers",c.appendChild(document.createTextNode("Graph Viewer")),c.className="arangoHeader",r.appendChild(a),r.appendChild(d.configure),r.appendChild(d.filter),r.appendChild(d.node),a.appendChild(b),a.appendChild(c),k.addControlChangeGraph(function(){C(),g.start(!0)}),k.addControlChangePriority(),i.addControlOpticLabelAndColourList(g.adapter),j.addControlOpticLabelList(),C()},E=function(){h=i.createColourMappingList(),h.className="gv-colour-list",s.insertBefore(h,o[0][0])};a.appendChild(r),a.appendChild(s),s.className="contentDiv gv-background ",s.id="background",e=e||{},e.zoom=!0,o=y(),"undefined"!==Storage&&(this.graphSettings={},this.loadLocalStorage=function(){var a=b.graphName;if(null===localStorage.getItem("graphSettings")||"null"===localStorage.getItem("graphSettings")){var c={};c[a]={viewer:e,adapter:b},localStorage.setItem("graphSettings",JSON.stringify(c))}else try{var d=JSON.parse(localStorage.getItem("graphSettings"));this.graphSettings=d,void 0!==d[a].viewer&&(e=d[a].viewer),void 0!==d[a].adapter&&(b=d[a].adapter)}catch(f){console.log("Could not load graph settings, resetting graph settings."),this.graphSettings[a]={viewer:e,adapter:b},localStorage.setItem("graphSettings",JSON.stringify(this.graphSettings))}},this.loadLocalStorage(),this.writeLocalStorage=function(){}),g=new GraphViewer(o,p,q,b,e),A(),z(),D(),E(),t(),B(),$("#graphSize").on("change",function(){var a=$("#graphSize").find(":selected").val();g.loadGraphWithRandomStart(function(a){a&&a.errorCode&&window.alert("Sorry your graph seems to be empty")},a)}),f&&("string"==typeof f?g.loadGraph(f):g.loadGraphWithRandomStart(function(a){a&&a.errorCode&&window.alert("Sorry your graph seems to be empty")})),this.changeWidth=function(a){g.changeWidth(a);var b=a-55;o.attr("width",b).style("width",b+"px")}}function GraphViewerWidget(a,b){"use strict";var c,d,e,f,g,h,i,j,k=function(){return d3.select(d).append("svg").attr("id","graphViewerSVG").attr("width",e).attr("height",f).attr("class","graph-viewer").attr("style","width:"+e+"px;height:"+f+"px;")},l=function(a){var b=0;return _.each(a,function(c,d){c===!1?delete a[d]:b++}),b>0},m=function(a,b){_.each(b,function(b,c){a[c]=a[c]||{},_.each(b,function(b,d){a[c][d]=b})})},n=function(a){if(a){var b={};a.drag&&m(b,j.dragRebinds()),a.create&&(m(b,j.newNodeRebinds()),m(b,j.connectNodesRebinds())),a.remove&&m(b,j.deleteRebinds()),a.expand&&m(b,j.expandRebinds()),a.edit&&m(b,j.editRebinds()),j.rebindAll(b)}},o=function(a){var b=document.createElement("div");j=new EventDispatcherControls(b,g.nodeShaper,g.edgeShaper,g.start,g.dispatcherConfig),b.id="toolbox",b.className="btn-group btn-group-vertical pull-left toolbox",d.appendChild(b),_.each(a,function(a,b){switch(b){case"expand":j.addControlExpand();break;case"create":j.addControlNewNode(),j.addControlConnect();break;case"drag":j.addControlDrag();break;case"edit":j.addControlEdit();break;case"remove":j.addControlDelete()}})},p=function(a){var b=document.createElement("div");j=new EventDispatcherControls(b,g.nodeShaper,g.edgeShaper,g.start,g.dispatcherConfig)},q=function(){return new GraphViewer(c,e,f,i,a)};d=document.body,e=d.offsetWidth,f=d.offsetHeight,i={type:"foxx",route:"."},a=a||{},h=l(a.toolbox),h&&(e-=43),c=k(),g=q(),h?o(a.toolbox):p(),b&&g.loadGraph(b),n(a.actions)}function LayouterControls(a,b){"use strict";if(void 0===a)throw"A list element has to be given.";if(void 0===b)throw"The Layouter has to be given.";var c=this;this.addControlGravity=function(){var c="control_layout_gravity",d=c+"_";uiComponentsHelper.createButton(a,"Gravity",c,function(){modalDialogHelper.createModalDialog("Switch Gravity Strength",d,[{type:"text",id:"value"}],function(){var a=$("#"+d+"value").attr("value");b.changeTo({gravity:a})})})},this.addControlCharge=function(){var c="control_layout_charge",d=c+"_";uiComponentsHelper.createButton(a,"Charge",c,function(){modalDialogHelper.createModalDialog("Switch Charge Strength",d,[{type:"text",id:"value"}],function(){var a=$("#"+d+"value").attr("value");b.changeTo({charge:a})})})},this.addControlDistance=function(){var c="control_layout_distance",d=c+"_";uiComponentsHelper.createButton(a,"Distance",c,function(){modalDialogHelper.createModalDialog("Switch Distance Strength",d,[{type:"text",id:"value"}],function(){var a=$("#"+d+"value").attr("value");b.changeTo({distance:a})})})},this.addAll=function(){c.addControlDistance(),c.addControlGravity(),c.addControlCharge()}}function NodeShaperControls(a,b){"use strict";if(void 0===a)throw"A list element has to be given.";if(void 0===b)throw"The NodeShaper has to be given.";var c,d=this,e=function(a){for(;c.hasChildNodes();)c.removeChild(c.lastChild);var b=document.createElement("ul");c.appendChild(b),_.each(a,function(a,c){var d=document.createElement("ul"),e=a.list,f=a.front;d.style.backgroundColor=c,d.style.color=f,_.each(e,function(a){var b=document.createElement("li");b.appendChild(document.createTextNode(a)),d.appendChild(b)}),b.appendChild(d)})};this.addControlOpticShapeNone=function(){uiComponentsHelper.createButton(a,"None","control_node_none",function(){b.changeTo({shape:{type:NodeShaper.shapes.NONE}})})},this.applyLocalStorage=function(a){if("undefined"!==Storage)try{var b=JSON.parse(localStorage.getItem("graphSettings")),c=window.location.hash.split("/")[1];_.each(a,function(a,d){void 0!==d&&(b[c].viewer.nodeShaper[d]=a)}),localStorage.setItem("graphSettings",JSON.stringify(b))}catch(d){console.log(d)}},this.addControlOpticShapeCircle=function(){var c="control_node_circle",d=c+"_";uiComponentsHelper.createButton(a,"Circle",c,function(){modalDialogHelper.createModalDialog("Switch to Circle",d,[{type:"text",id:"radius"}],function(){var a=$("#"+d+"radius").attr("value");b.changeTo({shape:{type:NodeShaper.shapes.CIRCLE,radius:a}})})})},this.addControlOpticShapeRect=function(){var c="control_node_rect",d=c+"_";uiComponentsHelper.createButton(a,"Rectangle",c,function(){modalDialogHelper.createModalDialog("Switch to Rectangle","control_node_rect_",[{type:"text",id:"width"},{type:"text",id:"height"}],function(){var a=$("#"+d+"width").attr("value"),c=$("#"+d+"height").attr("value");b.changeTo({shape:{type:NodeShaper.shapes.RECT,width:a,height:c}})})})},this.addControlOpticLabel=function(){var c="control_node_label",e=c+"_";uiComponentsHelper.createButton(a,"Configure Label",c,function(){modalDialogHelper.createModalChangeDialog("Change label attribute",e,[{type:"text",id:"key"}],function(){var a=$("#"+e+"key").attr("value"),c={label:a};d.applyLocalStorage(c),b.changeTo(c)})})},this.addControlOpticSingleColour=function(){var c="control_node_singlecolour",d=c+"_";uiComponentsHelper.createButton(a,"Single Colour",c,function(){modalDialogHelper.createModalDialog("Switch to Colour",d,[{type:"text",id:"fill"},{type:"text",id:"stroke"}],function(){var a=$("#"+d+"fill").attr("value"),c=$("#"+d+"stroke").attr("value");b.changeTo({color:{type:"single",fill:a,stroke:c}})})})},this.addControlOpticAttributeColour=function(){var c="control_node_attributecolour",d=c+"_";uiComponentsHelper.createButton(a,"Colour by Attribute",c,function(){modalDialogHelper.createModalDialog("Display colour by attribute",d,[{type:"text",id:"key"}],function(){var a=$("#"+d+"key").attr("value");b.changeTo({color:{type:"attribute",key:a}})})})},this.addControlOpticExpandColour=function(){var c="control_node_expandcolour",d=c+"_";uiComponentsHelper.createButton(a,"Expansion Colour",c,function(){modalDialogHelper.createModalDialog("Display colours for expansion",d,[{type:"text",id:"expanded"},{type:"text",id:"collapsed"}],function(){var a=$("#"+d+"expanded").attr("value"),c=$("#"+d+"collapsed").attr("value");b.changeTo({color:{type:"expand",expanded:a,collapsed:c}})})})},this.addControlOpticLabelAndColour=function(e){var f="control_node_labelandcolour",g=f+"_";uiComponentsHelper.createButton(a,"Configure Label",f,function(){ -modalDialogHelper.createModalChangeDialog("Change label attribute",g,[{type:"text",id:"label-attribute",text:"Vertex label attribute",value:b.getLabel()||""},{type:"decission",id:"samecolour",group:"colour",text:"Use this attribute for coloring, too",isDefault:b.getLabel()===b.getColor()},{type:"decission",id:"othercolour",group:"colour",text:"Use different attribute for coloring",isDefault:b.getLabel()!==b.getColor(),interior:[{type:"text",id:"colour-attribute",text:"Color attribute",value:b.getColor()||""}]}],function(){var a=$("#"+g+"label-attribute").attr("value"),e=$("#"+g+"colour-attribute").attr("value"),f=$("input[type='radio'][name='colour']:checked").attr("id");f===g+"samecolour"&&(e=a);var h={label:a,color:{type:"attribute",key:e}};d.applyLocalStorage(h),b.changeTo(h),void 0===c&&(c=d.createColourMappingList())})})},this.addControlOpticLabelAndColourList=function(e){var f="control_node_labelandcolourlist",g=f+"_";uiComponentsHelper.createButton(a,"Configure Label",f,function(){modalDialogHelper.createModalChangeDialog("Change label attribute",g,[{type:"extendable",id:"label",text:"Vertex label attribute",objects:b.getLabel()},{type:"decission",id:"samecolour",group:"colour",text:"Use this attribute for coloring, too",isDefault:b.getLabel()===b.getColor()},{type:"decission",id:"othercolour",group:"colour",text:"Use different attribute for coloring",isDefault:b.getLabel()!==b.getColor(),interior:[{type:"extendable",id:"colour",text:"Color attribute",objects:b.getColor()||""}]}],function(){var a=$("input[id^="+g+"label_]"),e=$("input[id^="+g+"colour_]"),f=$("input[type='radio'][name='colour']:checked").attr("id"),h=[],i=[];a.each(function(a,b){var c=$(b).val();""!==c&&h.push(c)}),e.each(function(a,b){var c=$(b).val();""!==c&&i.push(c)}),f===g+"samecolour"&&(i=h);var j={label:h,color:{type:"attribute",key:i}};d.applyLocalStorage(j),b.changeTo(j),void 0===c&&(c=d.createColourMappingList())})})},this.addAllOptics=function(){d.addControlOpticShapeNone(),d.addControlOpticShapeCircle(),d.addControlOpticShapeRect(),d.addControlOpticLabel(),d.addControlOpticSingleColour(),d.addControlOpticAttributeColour(),d.addControlOpticExpandColour()},this.addAllActions=function(){},this.addAll=function(){d.addAllOptics(),d.addAllActions()},this.createColourMappingList=function(){return void 0!==c?c:(c=document.createElement("div"),c.id="node_colour_list",e(b.getColourMapping()),b.setColourMappingListener(e),c)}}function GraphViewer(a,b,c,d,e){"use strict";if($("html").attr("xmlns:xlink","http://www.w3.org/1999/xlink"),void 0===a||void 0===a.append)throw"SVG has to be given and has to be selected using d3.select";if(void 0===b||0>=b)throw"A width greater 0 has to be given";if(void 0===c||0>=c)throw"A height greater 0 has to be given";if(void 0===d||void 0===d.type)throw"An adapter configuration has to be given";var f,g,h,i,j,k,l,m,n=this,o=[],p=[],q=function(a){if(!a)return a={},a.nodes=p,a.links=o,a.width=b,a.height=c,void(i=new ForceLayouter(a));switch(a.type.toLowerCase()){case"force":a.nodes=p,a.links=o,a.width=b,a.height=c,i=new ForceLayouter(a);break;default:throw"Sorry unknown layout type."}},r=function(a){f.setNodeLimit(a,n.start)},s=function(d){d&&(j=new ZoomManager(b,c,a,k,g,h,{},r))},t=function(a){var b=a.edgeShaper||{},c=a.nodeShaper||{},d=c.idfunc||void 0,e=a.zoom||!1;b.shape=b.shape||{type:EdgeShaper.shapes.ARROW},q(a.layouter),m=k.append("g"),h=new EdgeShaper(m,b),l=k.append("g"),g=new NodeShaper(l,c,d),i.setCombinedUpdateFunction(g,h),s(e)};switch(d.type.toLowerCase()){case"arango":d.width=b,d.height=c,f=new ArangoAdapter(p,o,this,d),f.setChildLimit(10);break;case"gharial":d.width=b,d.height=c,f=new GharialAdapter(p,o,this,d),f.setChildLimit(10);break;case"foxx":d.width=b,d.height=c,f=new FoxxAdapter(p,o,d.route,this,d);break;case"json":f=new JSONAdapter(d.path,p,o,this,b,c);break;case"preview":d.width=b,d.height=c,f=new PreviewAdapter(p,o,this,d);break;default:throw"Sorry unknown adapter type."}k=a.append("g"),t(e||{}),this.start=function(a){i.stop(),a&&(""!==$(".infoField").text()?_.each(p,function(a){_.each(f.randomNodes,function(b){a._id===b._id&&(a._expanded=!0)})}):_.each(p,function(a){a._expanded=!0})),g.drawNodes(p),h.drawEdges(o),i.start()},this.loadGraph=function(a,b){f.loadInitialNode(a,function(a){return a.errorCode?void b(a):(a._expanded=!0,n.start(),void(_.isFunction(b)&&b()))})},this.loadGraphWithRandomStart=function(a,b){f.loadRandomNode(function(b){return b.errorCode&&404===b.errorCode?void a(b):(b._expanded=!0,n.start(!0),void(_.isFunction(a)&&a()))},b)},this.loadGraphWithAdditionalNode=function(a,b,c){f.loadAdditionalNodeByAttributeValue(a,b,function(a){return a.errorCode?void c(a):(a._expanded=!0,n.start(),void(_.isFunction(c)&&c()))})},this.loadGraphWithAttributeValue=function(a,b,c){f.randomNodes=[],f.definedNodes=[],f.loadInitialNodeByAttributeValue(a,b,function(a){return a.errorCode?void c(a):(a._expanded=!0,n.start(),void(_.isFunction(c)&&c()))})},this.cleanUp=function(){g.resetColourMap(),h.resetColourMap()},this.changeWidth=function(a){i.changeWidth(a),j.changeWidth(a),f.setWidth(a)},this.dispatcherConfig={expand:{edges:o,nodes:p,startCallback:n.start,adapter:f,reshapeNodes:g.reshapeNodes},drag:{layouter:i},nodeEditor:{nodes:p,adapter:f},edgeEditor:{edges:o,adapter:f}},this.adapter=f,this.nodeShaper=g,this.edgeShaper=h,this.layouter=i,this.zoomManager=j}function Module(a){this.id=a,this.exports={},this.definition=null}function require(a){return global.module.require(a)}function print(){var a=require("internal");a.print.apply(a.print,arguments)}function ArangoConnection(){this._databaseName="_system";var a=global.document.location.pathname;if("/_db/"===a.substr(0,5)){for(var b=5,c=a.length;c>b&&"/"!==a[b];)b++;b>5&&(this._databaseName=a.substring(5,b))}}EdgeShaper.shapes=Object.freeze({NONE:0,ARROW:1}),NodeShaper.shapes=Object.freeze({NONE:0,CIRCLE:1,RECT:2,IMAGE:3});var modalDialogHelper=modalDialogHelper||{};!function(){"use strict";var a,b=function(a){$(document).bind("keypress.key13",function(b){b.which&&13===b.which&&$(a).click()})},c=function(){$(document).unbind("keypress.key13")},d=function(a,b,c,d,e){var f,g,h=function(){e(f)},i=modalDialogHelper.modalDivTemplate(a,b,c,h),j=document.createElement("tr"),k=document.createElement("th"),l=document.createElement("th"),m=document.createElement("th"),n=document.createElement("button"),o=1;f=function(){var a={};return _.each($("#"+c+"table tr:not(#first_row)"),function(b){var c=$(".keyCell input",b).val(),d=$(".valueCell input",b).val();a[c]=d}),a},i.appendChild(j),j.id="first_row",j.appendChild(k),k.className="keyCell",j.appendChild(l),l.className="valueCell",j.appendChild(m),m.className="actionCell",m.appendChild(n),n.id=c+"new",n.className="graphViewer-icon-button gv-icon-small add",g=function(a,b){var d,e,f,g=/^_(id|rev|key|from|to)/,h=document.createElement("tr"),j=document.createElement("th"),k=document.createElement("th"),l=document.createElement("th");g.test(b)||(i.appendChild(h),h.appendChild(k),k.className="keyCell",e=document.createElement("input"),e.type="text",e.id=c+b+"_key",e.value=b,k.appendChild(e),h.appendChild(l),l.className="valueCell",f=document.createElement("input"),f.type="text",f.id=c+b+"_value","object"==typeof a?f.value=JSON.stringify(a):f.value=a,l.appendChild(f),h.appendChild(j),j.className="actionCell",d=document.createElement("button"),d.id=c+b+"_delete",d.className="graphViewer-icon-button gv-icon-small delete",j.appendChild(d),d.onclick=function(){i.removeChild(h)})},n.onclick=function(){g("","new_"+o),o++},_.each(d,g),$("#"+c+"modal").modal("show")},e=function(a,b,c,d,e){var f=modalDialogHelper.modalDivTemplate(a,b,c,e),g=document.createElement("tr"),h=document.createElement("th"),i=document.createElement("pre");f.appendChild(g),g.appendChild(h),h.appendChild(i),i.className="gv-object-view",i.innerHTML=JSON.stringify(d,null,2),$("#"+c+"modal").modal("show")},f=function(a,b){var c=document.createElement("input");return c.type="text",c.id=a,c.value=b,c},g=function(a,b){var c=document.createElement("input");return c.type="checkbox",c.id=a,c.checked=b,c},h=function(a,b,c){var d=document.createElement("select");return d.id=a,_.each(_.sortBy(b,function(a){return a.toLowerCase()}),function(a){var b=document.createElement("option");b.value=a,b.selected=a===c,b.appendChild(document.createTextNode(a)),d.appendChild(b)}),d},i=function(a){var b=$(".decission_"+a),c=$("input[type='radio'][name='"+a+"']:checked").attr("id");b.each(function(){$(this).attr("decider")===c?$(this).css("display",""):$(this).css("display","none")})},j=function(b,c,d,e,f,g,h,j){var k=document.createElement("input"),l=b+c,m=document.createElement("label"),n=document.createElement("tbody");k.id=l,k.type="radio",k.name=d,k.className="gv-radio-button",m.className="radio",h.appendChild(m),m.appendChild(k),m.appendChild(document.createTextNode(e)),j.appendChild(n),$(n).toggleClass("decission_"+d,!0),$(n).attr("decider",l),_.each(g,function(c){a(n,b,c)}),f?k.checked=!0:k.checked=!1,m.onclick=function(a){i(d),a.stopPropagation()},i(d)},k=function(a,b,c,d,e,f){var g,h=[],i=a+b,j=1,k=document.createElement("th"),l=document.createElement("button"),m=document.createElement("input"),n=function(a){j++;var c,d=document.createElement("tr"),g=document.createElement("th"),k=document.createElement("th"),l=document.createElement("th"),m=document.createElement("input"),n=document.createElement("button");m.type="text",m.id=i+"_"+j,m.value=a||"",c=0===h.length?$(f):$(h[h.length-1]),c.after(d),d.appendChild(g),g.className="collectionTh capitalize",g.appendChild(document.createTextNode(b+" "+j+":")),d.appendChild(k),k.className="collectionTh",k.appendChild(m),n.id=i+"_"+j+"_remove",n.className="graphViewer-icon-button gv-icon-small delete",n.onclick=function(){e.removeChild(d),h.splice(h.indexOf(d),1)},l.appendChild(n),d.appendChild(l),h.push(d)};for(m.type="text",m.id=i+"_1",d.appendChild(m),k.appendChild(l),f.appendChild(k),l.onclick=function(){n()},l.id=i+"_addLine",l.className="graphViewer-icon-button gv-icon-small add","string"==typeof c&&c.length>0&&(c=[c]),c.length>0&&(m.value=c[0]),g=1;g'),$(".arangoFrame .outerDiv").click(function(){e.closeDocEditor()}),$(".arangoFrame .innerDiv").click(function(a){a.stopPropagation()}),$(".fa-times").click(function(){e.closeDocEditor()}),$(".arangoFrame").show(),f.customView=!0,f.customDeleteFunction=function(){window.modalView.hide(),$(".arangoFrame").hide()},$(".arangoFrame #deleteDocumentButton").click(function(){f.deleteDocumentModal()}),$(".arangoFrame #saveDocumentButton").click(function(){f.saveDocument()}),$(".arangoFrame #deleteDocumentButton").css("display","none")},closeDocEditor:function(){$(".arangoFrame .outerDiv .fa-times").remove(),$(".arangoFrame").hide()},getRandomToken:function(){return Math.round((new Date).getTime())},isSystemAttribute:function(a){var b=this.systemAttributes();return b[a]},isSystemCollection:function(a){return"_"===a.name.substr(0,1)},setDocumentStore:function(a){this.arangoDocumentStore=a},collectionApiType:function(a,b){return(b||void 0===this.CollectionTypes[a])&&(this.CollectionTypes[a]=this.arangoDocumentStore.getCollectionInfo(a).type),3===this.CollectionTypes[a]?"edge":"document"},collectionType:function(a){if(!a||""===a.name)return"-";var b;return b=2===a.type?"document":3===a.type?"edge":"unknown",this.isSystemCollection(a)&&(b+=" (system)"),b},formatDT:function(a){var b=function(a){return 10>a?"0"+a:a};return a.getUTCFullYear()+"-"+b(a.getUTCMonth()+1)+"-"+b(a.getUTCDate())+" "+b(a.getUTCHours())+":"+b(a.getUTCMinutes())+":"+b(a.getUTCSeconds())},escapeHtml:function(a){return String(a).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}}}(),function(){"use strict";if(!window.hasOwnProperty("TEST_BUILD")){var a=function(){var a={};return a.createTemplate=function(a){var b=$("#"+a.replace(".","\\.")).html();return{render:function(a){return _.template(b,a)}}},a};window.templateEngine=new a}}(),Module.prototype.moduleCache={},Module.prototype.moduleCache["/internal"]=new Module("/internal"),"undefined"==typeof global&&"undefined"!=typeof window&&(global=window),global.module=Module.prototype.moduleCache["/"]=new Module("/"),Module.prototype.normalise=function(a){var b,c,d,e,f;if(""===a)return this.id;for(d=a.split("/"),"."===d[0]||".."===d[0]?(e=this.id.split("/"),e.pop(),e=e.concat(d)):e=d,c=[],b=0;b "+require("internal").browserOutputBuffer,"jssuccess"),require("internal").browserOutputBuffer=""},$(global.document).ajaxSend(function(a,b,c){c.url=require("internal").arango.databasePrefix(c.url)}),global.DEFINE_MODULE=function(a,b){var c=Module.prototype.normalise(a),d=Module.prototype.moduleCache[c];d?Object.keys(d.exports).forEach(function(a){b[a]=d.exports[a]}):(d=new Module(c),Module.prototype.moduleCache[c]=d),d.exports=b}}(),module.define("underscore",function(a,b){(function(){function c(a){function b(b,c,d,e,f,g){for(;f>=0&&g>f;f+=a){var h=e?e[f]:f;d=c(d,b[h],h,b)}return d}return function(c,d,e,f){d=v(d,f,4);var g=!C(c)&&u.keys(c),h=(g||c).length,i=a>0?0:h-1;return arguments.length<3&&(e=c[g?g[i]:i],i+=a),b(c,d,e,g,i,h)}}function d(a){return function(b,c,d){c=w(c,d);for(var e=B(b),f=a>0?0:e-1;f>=0&&e>f;f+=a)if(c(b[f],f,b))return f;return-1}}function e(a,b,c){return function(d,e,f){var g=0,h=B(d);if("number"==typeof f)a>0?g=f>=0?f:Math.max(f+h,g):h=f>=0?Math.min(f+1,h):f+h+1;else if(c&&f&&h)return f=c(d,e),d[f]===e?f:-1;if(e!==e)return f=b(m.call(d,g,h),u.isNaN),f>=0?f+g:-1;for(f=a>0?g:h-1;f>=0&&h>f;f+=a)if(d[f]===e)return f;return-1}}function f(a,b){var c=H.length,d=a.constructor,e=u.isFunction(d)&&d.prototype||j,f="constructor";for(u.has(a,f)&&!u.contains(b,f)&&b.push(f);c--;)f=H[c],f in a&&a[f]!==e[f]&&!u.contains(b,f)&&b.push(f)}var g=this,h=g._,i=Array.prototype,j=Object.prototype,k=Function.prototype,l=i.push,m=i.slice,n=j.toString,o=j.hasOwnProperty,p=Array.isArray,q=Object.keys,r=k.bind,s=Object.create,t=function(){},u=function(a){return a instanceof u?a:this instanceof u?void(this._wrapped=a):new u(a)};"undefined"!=typeof a?("undefined"!=typeof b&&b.exports&&(a=b.exports=u),a._=u):g._=u,u.VERSION="1.8.3";var v=function(a,b,c){if(void 0===b)return a;switch(null==c?3:c){case 1:return function(c){return a.call(b,c)};case 2:return function(c,d){return a.call(b,c,d)};case 3:return function(c,d,e){return a.call(b,c,d,e)};case 4:return function(c,d,e,f){return a.call(b,c,d,e,f)}}return function(){return a.apply(b,arguments)}},w=function(a,b,c){return null==a?u.identity:u.isFunction(a)?v(a,b,c):u.isObject(a)?u.matcher(a):u.property(a)};u.iteratee=function(a,b){return w(a,b,1/0)};var x=function(a,b){return function(c){var d=arguments.length;if(2>d||null==c)return c;for(var e=1;d>e;e++)for(var f=arguments[e],g=a(f),h=g.length,i=0;h>i;i++){var j=g[i];b&&void 0!==c[j]||(c[j]=f[j])}return c}},y=function(a){if(!u.isObject(a))return{};if(s)return s(a);t.prototype=a;var b=new t;return t.prototype=null,b},z=function(a){return function(b){return null==b?void 0:b[a]}},A=Math.pow(2,53)-1,B=z("length"),C=function(a){var b=B(a);return"number"==typeof b&&b>=0&&A>=b};u.each=u.forEach=function(a,b,c){b=v(b,c);var d,e;if(C(a))for(d=0,e=a.length;e>d;d++)b(a[d],d,a);else{var f=u.keys(a);for(d=0,e=f.length;e>d;d++)b(a[f[d]],f[d],a)}return a},u.map=u.collect=function(a,b,c){b=w(b,c);for(var d=!C(a)&&u.keys(a),e=(d||a).length,f=Array(e),g=0;e>g;g++){var h=d?d[g]:g;f[g]=b(a[h],h,a)}return f},u.reduce=u.foldl=u.inject=c(1),u.reduceRight=u.foldr=c(-1),u.find=u.detect=function(a,b,c){var d;return d=C(a)?u.findIndex(a,b,c):u.findKey(a,b,c),void 0!==d&&-1!==d?a[d]:void 0},u.filter=u.select=function(a,b,c){var d=[];return b=w(b,c),u.each(a,function(a,c,e){b(a,c,e)&&d.push(a)}),d},u.reject=function(a,b,c){return u.filter(a,u.negate(w(b)),c)},u.every=u.all=function(a,b,c){b=w(b,c);for(var d=!C(a)&&u.keys(a),e=(d||a).length,f=0;e>f;f++){var g=d?d[f]:f;if(!b(a[g],g,a))return!1}return!0},u.some=u.any=function(a,b,c){b=w(b,c);for(var d=!C(a)&&u.keys(a),e=(d||a).length,f=0;e>f;f++){var g=d?d[f]:f;if(b(a[g],g,a))return!0}return!1},u.contains=u.includes=u.include=function(a,b,c,d){return C(a)||(a=u.values(a)),("number"!=typeof c||d)&&(c=0),u.indexOf(a,b,c)>=0},u.invoke=function(a,b){var c=m.call(arguments,2),d=u.isFunction(b);return u.map(a,function(a){var e=d?b:a[b];return null==e?e:e.apply(a,c)})},u.pluck=function(a,b){return u.map(a,u.property(b))},u.where=function(a,b){return u.filter(a,u.matcher(b))},u.findWhere=function(a,b){return u.find(a,u.matcher(b))},u.max=function(a,b,c){var d,e,f=-(1/0),g=-(1/0);if(null==b&&null!=a){a=C(a)?a:u.values(a);for(var h=0,i=a.length;i>h;h++)d=a[h],d>f&&(f=d)}else b=w(b,c),u.each(a,function(a,c,d){e=b(a,c,d),(e>g||e===-(1/0)&&f===-(1/0))&&(f=a,g=e)});return f},u.min=function(a,b,c){var d,e,f=1/0,g=1/0;if(null==b&&null!=a){a=C(a)?a:u.values(a);for(var h=0,i=a.length;i>h;h++)d=a[h],f>d&&(f=d)}else b=w(b,c),u.each(a,function(a,c,d){e=b(a,c,d),(g>e||e===1/0&&f===1/0)&&(f=a,g=e)});return f},u.shuffle=function(a){for(var b,c=C(a)?a:u.values(a),d=c.length,e=Array(d),f=0;d>f;f++)b=u.random(0,f),b!==f&&(e[f]=e[b]),e[b]=c[f];return e},u.sample=function(a,b,c){return null==b||c?(C(a)||(a=u.values(a)),a[u.random(a.length-1)]):u.shuffle(a).slice(0,Math.max(0,b))},u.sortBy=function(a,b,c){return b=w(b,c),u.pluck(u.map(a,function(a,c,d){return{value:a,index:c,criteria:b(a,c,d)}}).sort(function(a,b){var c=a.criteria,d=b.criteria;if(c!==d){if(c>d||void 0===c)return 1;if(d>c||void 0===d)return-1}return a.index-b.index}),"value")};var D=function(a){return function(b,c,d){var e={};return c=w(c,d),u.each(b,function(d,f){var g=c(d,f,b);a(e,d,g)}),e}};u.groupBy=D(function(a,b,c){u.has(a,c)?a[c].push(b):a[c]=[b]}),u.indexBy=D(function(a,b,c){a[c]=b}),u.countBy=D(function(a,b,c){u.has(a,c)?a[c]++:a[c]=1}),u.toArray=function(a){return a?u.isArray(a)?m.call(a):C(a)?u.map(a,u.identity):u.values(a):[]},u.size=function(a){return null==a?0:C(a)?a.length:u.keys(a).length},u.partition=function(a,b,c){b=w(b,c);var d=[],e=[];return u.each(a,function(a,c,f){(b(a,c,f)?d:e).push(a)}),[d,e]},u.first=u.head=u.take=function(a,b,c){return null!=a?null==b||c?a[0]:u.initial(a,a.length-b):void 0},u.initial=function(a,b,c){return m.call(a,0,Math.max(0,a.length-(null==b||c?1:b)))},u.last=function(a,b,c){return null!=a?null==b||c?a[a.length-1]:u.rest(a,Math.max(0,a.length-b)):void 0},u.rest=u.tail=u.drop=function(a,b,c){return m.call(a,null==b||c?1:b)},u.compact=function(a){return u.filter(a,u.identity)};var E=function(a,b,c,d){for(var e=[],f=0,g=d||0,h=B(a);h>g;g++){var i=a[g];if(C(i)&&(u.isArray(i)||u.isArguments(i))){b||(i=E(i,b,c));var j=0,k=i.length;for(e.length+=k;k>j;)e[f++]=i[j++]}else c||(e[f++]=i)}return e};u.flatten=function(a,b){return E(a,b,!1)},u.without=function(a){return u.difference(a,m.call(arguments,1))},u.uniq=u.unique=function(a,b,c,d){u.isBoolean(b)||(d=c,c=b,b=!1),null!=c&&(c=w(c,d));for(var e=[],f=[],g=0,h=B(a);h>g;g++){var i=a[g],j=c?c(i,g,a):i;b?(g&&f===j||e.push(i),f=j):c?u.contains(f,j)||(f.push(j),e.push(i)):u.contains(e,i)||e.push(i)}return e},u.union=function(){return u.uniq(E(arguments,!0,!0))},u.intersection=function(a){for(var b=[],c=arguments.length,d=0,e=B(a);e>d;d++){var f=a[d];if(!u.contains(b,f)){for(var g=1;c>g&&u.contains(arguments[g],f);g++);g===c&&b.push(f)}}return b},u.difference=function(a){var b=E(arguments,!0,!0,1);return u.filter(a,function(a){return!u.contains(b,a)})},u.zip=function(){return u.unzip(arguments)},u.unzip=function(a){for(var b=a&&u.max(a,B).length||0,c=Array(b),d=0;b>d;d++)c[d]=u.pluck(a,d);return c},u.object=function(a,b){for(var c={},d=0,e=B(a);e>d;d++)b?c[a[d]]=b[d]:c[a[d][0]]=a[d][1];return c},u.findIndex=d(1),u.findLastIndex=d(-1),u.sortedIndex=function(a,b,c,d){c=w(c,d,1);for(var e=c(b),f=0,g=B(a);g>f;){var h=Math.floor((f+g)/2);c(a[h])1&&modalDialogHelper.createModalDialog("Select Vertex Collection",b,[{type:"list",id:"vertex",objects:i.getNodeCollections(),text:"Select collection",selected:i.getSelectedNodeCollection()}],function(){var a=$("#"+b+"vertex").children("option").filter(":selected").text();i.useNodeCollection(a)},"Select"),f.rebindAll(f.newNodeRebinds())};l(a,"new_node",c)},this.addControlView=function(){var a=g.view,b=function(){f.rebindAll(f.viewRebinds())};l(a,"view",b)},this.addControlDrag=function(){var a=g.drag,b=function(){f.rebindAll(f.dragRebinds())};l(a,"drag",b)},this.addControlEdit=function(){var a=g.edit,b=function(){f.rebindAll(f.editRebinds())};l(a,"edit",b)},this.addControlExpand=function(){var a=g.expand,b=function(){f.rebindAll(f.expandRebinds())};l(a,"expand",b)},this.addControlDelete=function(){var a=g.trash,b=function(){f.rebindAll(f.deleteRebinds())};l(a,"delete",b)},this.addControlConnect=function(){var a=g.edge,b="select_edge_collection",c=function(){j&&i.getEdgeCollections().length>1&&modalDialogHelper.createModalDialog("Select Edge Collection",b,[{type:"list",id:"edge",objects:i.getEdgeCollections(),text:"Select collection",selected:i.getSelectedEdgeCollection()}],function(){var a=$("#"+b+"edge").children("option").filter(":selected").text();i.useEdgeCollection(a)},"Select"),f.rebindAll(f.connectNodesRebinds())};l(a,"connect",c)},this.addAll=function(){f.addControlExpand(),f.addControlDrag(),f.addControlEdit(),f.addControlConnect(),f.addControlNewNode(),f.addControlDelete()}}function GharialAdapterControls(a,b){"use strict";if(void 0===a)throw"A list element has to be given.";if(void 0===b)throw"The GharialAdapter has to be given.";this.addControlChangeGraph=function(c){var d="control_adapter_graph",e=d+"_";b.getGraphs(function(f){uiComponentsHelper.createButton(a,"Switch Graph",d,function(){modalDialogHelper.createModalDialog("Switch Graph",e,[{type:"list",id:"graph",objects:f,text:"Select graph",selected:b.getGraphName()},{type:"checkbox",text:"Start with random vertex",id:"random",selected:!0}],function(){var a=$("#"+e+"graph").children("option").filter(":selected").text(),d=!!$("#"+e+"undirected").prop("checked"),f=!!$("#"+e+"random").prop("checked");return b.changeToGraph(a,d),f?void b.loadRandomNode(c):void(_.isFunction(c)&&c())})})})},this.addControlChangePriority=function(){var c="control_adapter_priority",d=c+"_",e="Group vertices";uiComponentsHelper.createButton(a,e,c,function(){modalDialogHelper.createModalChangeDialog(e+" by attribute",d,[{type:"extendable",id:"attribute",objects:b.getPrioList()}],function(){var a=$("input[id^="+d+"attribute_]"),c=[];_.each(a,function(a){var b=$(a).val();""!==b&&c.push(b)}),b.changeTo({prioList:c})})})},this.addAll=function(){this.addControlChangeGraph(),this.addControlChangePriority()}}function GraphViewerPreview(a,b){"use strict";var c,d,e,f,g,h,i,j=function(){return d3.select(a).append("svg").attr("id","graphViewerSVG").attr("width",d).attr("height",e).attr("class","graph-viewer").attr("style","width:"+d+"px;height:"+e+";")},k=function(a){var b=0;return _.each(a,function(c,d){c===!1?delete a[d]:b++}),b>0},l=function(a,b){_.each(b,function(b,c){a[c]=a[c]||{},_.each(b,function(b,d){a[c][d]=b})})},m=function(a){if(a){var b={};a.drag&&l(b,i.dragRebinds()),a.create&&(l(b,i.newNodeRebinds()),l(b,i.connectNodesRebinds())),a.remove&&l(b,i.deleteRebinds()),a.expand&&l(b,i.expandRebinds()),a.edit&&l(b,i.editRebinds()),i.rebindAll(b)}},n=function(b){var c=document.createElement("div");i=new EventDispatcherControls(c,f.nodeShaper,f.edgeShaper,f.start,f.dispatcherConfig),c.id="toolbox",c.className="btn-group btn-group-vertical pull-left toolbox",a.appendChild(c),_.each(b,function(a,b){switch(b){case"expand":i.addControlExpand();break;case"create":i.addControlNewNode(),i.addControlConnect();break;case"drag":i.addControlDrag();break;case"edit":i.addControlEdit();break;case"remove":i.addControlDelete()}})},o=function(a){var b=document.createElement("div");i=new EventDispatcherControls(b,f.nodeShaper,f.edgeShaper,f.start,f.dispatcherConfig)},p=function(){b&&(b.nodeShaper&&(b.nodeShaper.label&&(b.nodeShaper.label="label"),b.nodeShaper.shape&&b.nodeShaper.shape.type===NodeShaper.shapes.IMAGE&&b.nodeShaper.shape.source&&(b.nodeShaper.shape.source="image")),b.edgeShaper&&b.edgeShaper.label&&(b.edgeShaper.label="label"))},q=function(){return p(),new GraphViewer(c,d,e,h,b)};d=a.offsetWidth,e=a.offsetHeight,h={type:"preview"},b=b||{},g=k(b.toolbox),g&&(d-=43),c=j(),f=q(),g?n(b.toolbox):o(),f.loadGraph("1"),m(b.actions)}function GraphViewerUI(a,b,c,d,e,f){"use strict";if(void 0===a)throw"A parent element has to be given.";if(!a.id)throw"The parent element needs an unique id.";if(void 0===b)throw"An adapter configuration has to be given";var g,h,i,j,k,l,m,n,o,p=c+20||a.offsetWidth-81+20,q=d||a.offsetHeight,r=document.createElement("ul"),s=document.createElement("div"),t=function(){g.adapter.NODES_TO_DISPLAYGraph too big. A random section is rendered.
    '),$(".infoField .fa-info-circle").attr("title","You can display additional/other vertices by using the toolbar buttons.").tooltip())},u=function(){var a,b=document.createElement("div"),c=document.createElement("div"),d=document.createElement("div"),e=document.createElement("div"),f=document.createElement("button"),h=document.createElement("span"),i=document.createElement("input"),j=document.createElement("i"),k=document.createElement("span"),l=function(){$(s).css("cursor","progress")},n=function(){$(s).css("cursor","")},o=function(a){return n(),a&&a.errorCode&&404===a.errorCode?void arangoHelper.arangoError("Graph error","could not find a matching node."):void 0},p=function(){l(),""===a.value||void 0===a.value?g.loadGraph(i.value,o):g.loadGraphWithAttributeValue(a.value,i.value,o)};b.id="filterDropdown",b.className="headerDropdown smallDropdown",c.className="dropdownInner",d.className="queryline",a=document.createElement("input"),m=document.createElement("ul"),e.className="pull-left input-append searchByAttribute",a.id="attribute",a.type="text",a.placeholder="Attribute name",f.id="attribute_example_toggle",f.className="button-neutral gv_example_toggle",h.className="caret gv_caret",m.className="gv-dropdown-menu",i.id="value",i.className="searchInput gv_searchInput",i.type="text",i.placeholder="Attribute value",j.id="loadnode",j.className="fa fa-search",k.className="searchEqualsLabel",k.appendChild(document.createTextNode("==")),c.appendChild(d),d.appendChild(e),e.appendChild(a),e.appendChild(f),e.appendChild(m),f.appendChild(h),d.appendChild(k),d.appendChild(i),d.appendChild(j),j.onclick=p,$(i).keypress(function(a){return 13===a.keyCode||13===a.which?(p(),!1):void 0}),f.onclick=function(){$(m).slideToggle(200)};var q=document.createElement("p");return q.className="dropdown-title",q.innerHTML="Filter graph by attribute:",b.appendChild(q),b.appendChild(c),b},v=function(){var a,b=document.createElement("div"),c=document.createElement("div"),d=document.createElement("div"),e=document.createElement("div"),f=document.createElement("button"),h=document.createElement("span"),i=document.createElement("input"),j=document.createElement("i"),k=document.createElement("span"),l=function(){$(s).css("cursor","progress")},m=function(){$(s).css("cursor","")},o=function(a){return m(),a&&a.errorCode&&404===a.errorCode?void arangoHelper.arangoError("Graph error","could not find a matching node."):void 0},p=function(){l(),""!==a.value&&g.loadGraphWithAdditionalNode(a.value,i.value,o)};b.id="nodeDropdown",b.className="headerDropdown smallDropdown",c.className="dropdownInner",d.className="queryline",a=document.createElement("input"),n=document.createElement("ul"),e.className="pull-left input-append searchByAttribute",a.id="attribute",a.type="text",a.placeholder="Attribute name",f.id="attribute_example_toggle2",f.className="button-neutral gv_example_toggle",h.className="caret gv_caret",n.className="gv-dropdown-menu",i.id="value",i.className="searchInput gv_searchInput",i.type="text",i.placeholder="Attribute value",j.id="loadnode",j.className="fa fa-search",k.className="searchEqualsLabel",k.appendChild(document.createTextNode("==")),c.appendChild(d),d.appendChild(e),e.appendChild(a),e.appendChild(f),e.appendChild(n),f.appendChild(h),d.appendChild(k),d.appendChild(i),d.appendChild(j),C(n),j.onclick=p,$(i).keypress(function(a){return 13===a.keyCode||13===a.which?(p(),!1):void 0}),f.onclick=function(){$(n).slideToggle(200)};var q=document.createElement("p");return q.className="dropdown-title",q.innerHTML="Add specific node by attribute:",b.appendChild(q),b.appendChild(c),b},w=function(){var a,b,c,d,e,f,g,h;return a=document.createElement("div"),a.id="configureDropdown",a.className="headerDropdown",b=document.createElement("div"),b.className="dropdownInner",c=document.createElement("ul"),d=document.createElement("li"),d.className="nav-header",d.appendChild(document.createTextNode("Vertices")),g=document.createElement("ul"),h=document.createElement("li"),h.className="nav-header",h.appendChild(document.createTextNode("Edges")),e=document.createElement("ul"),f=document.createElement("li"),f.className="nav-header",f.appendChild(document.createTextNode("Connection")),c.appendChild(d),g.appendChild(h),e.appendChild(f),b.appendChild(c),b.appendChild(g),b.appendChild(e),a.appendChild(b),{configure:a,nodes:c,edges:g,col:e}},x=function(a,b,c,d){var e,f,g,h,i,j,k,l,m,n,o;return a.className="headerButtonBar",e=document.createElement("ul"),e.className="headerButtonList",a.appendChild(e),g=document.createElement("li"),g.className="enabled",h=document.createElement("a"),h.id=b,h.className="headerButton",i=document.createElement("span"),i.className="icon_arangodb_settings2",$(i).attr("title","Configure"),e.appendChild(g),g.appendChild(h),h.appendChild(i),j=document.createElement("li"),j.className="enabled",k=document.createElement("a"),k.id=d,k.className="headerButton",l=document.createElement("span"),l.className="fa fa-search-plus",$(l).attr("title","Show additional vertices"),e.appendChild(j),j.appendChild(k),k.appendChild(l),m=document.createElement("li"),m.className="enabled",n=document.createElement("a"),n.id=c,n.className="headerButton",o=document.createElement("span"),o.className="icon_arangodb_filter",$(o).attr("title","Filter"),e.appendChild(m),m.appendChild(n),n.appendChild(o),f=w(),f.filter=u(),f.node=v(),h.onclick=function(){$("#filterdropdown").removeClass("activated"),$("#nodedropdown").removeClass("activated"),$("#configuredropdown").toggleClass("activated"),$(f.configure).slideToggle(200),$(f.filter).hide(),$(f.node).hide()},k.onclick=function(){$("#filterdropdown").removeClass("activated"),$("#configuredropdown").removeClass("activated"),$("#nodedropdown").toggleClass("activated"),$(f.node).slideToggle(200),$(f.filter).hide(),$(f.configure).hide()},n.onclick=function(){$("#configuredropdown").removeClass("activated"),$("#nodedropdown").removeClass("activated"),$("#filterdropdown").toggleClass("activated"),$(f.filter).slideToggle(200),$(f.node).hide(),$(f.configure).hide()},f},y=function(){return d3.select("#"+a.id+" #background").append("svg").attr("id","graphViewerSVG").attr("width",p).attr("height",q).attr("class","graph-viewer").style("width",p+"px").style("height",q+"px")},z=function(){var a=document.createElement("div"),b=document.createElement("div"),c=document.createElement("button"),d=document.createElement("button"),e=document.createElement("button"),f=document.createElement("button");a.className="gv_zoom_widget",b.className="gv_zoom_buttons_bg",c.className="btn btn-icon btn-zoom btn-zoom-top gv-zoom-btn pan-top",d.className="btn btn-icon btn-zoom btn-zoom-left gv-zoom-btn pan-left",e.className="btn btn-icon btn-zoom btn-zoom-right gv-zoom-btn pan-right",f.className="btn btn-icon btn-zoom btn-zoom-bottom gv-zoom-btn pan-bottom",c.onclick=function(){g.zoomManager.triggerTranslation(0,-10)},d.onclick=function(){g.zoomManager.triggerTranslation(-10,0)},e.onclick=function(){g.zoomManager.triggerTranslation(10,0)},f.onclick=function(){g.zoomManager.triggerTranslation(0,10)},b.appendChild(c),b.appendChild(d),b.appendChild(e),b.appendChild(f),l=document.createElement("div"),l.id="gv_zoom_slider",l.className="gv_zoom_slider",s.appendChild(a),s.insertBefore(a,o[0][0]),a.appendChild(b),a.appendChild(l),$("#gv_zoom_slider").slider({orientation:"vertical",min:g.zoomManager.getMinimalZoomFactor(),max:1,value:1,step:.01,slide:function(a,b){g.zoomManager.triggerScale(b.value)}}),g.zoomManager.registerSlider($("#gv_zoom_slider"))},A=function(){var a=document.createElement("div"),b=new EventDispatcherControls(a,g.nodeShaper,g.edgeShaper,g.start,g.dispatcherConfig);a.id="toolbox",a.className="btn-group btn-group-vertical toolbox",s.insertBefore(a,o[0][0]),b.addAll(),$("#control_event_expand").click()},B=function(){var a='
  • ';$(".headerBar .headerButtonList").prepend(a)},C=function(a){var b;b=a?$(a):$(m),b.innerHTML="";var c=document.createElement("li"),d=document.createElement("img");$(c).append(d),d.className="gv-throbber",b.append(c),g.adapter.getAttributeExamples(function(a){$(b).html(""),_.each(a,function(a){var c=document.createElement("li"),d=document.createElement("a"),e=document.createElement("label");$(c).append(d),$(d).append(e),$(e).append(document.createTextNode(a)),e.className="gv_dropdown_label",b.append(c),c.onclick=function(){b.value=a,$(b).parent().find("input").val(a),$(b).slideToggle(200)}})})},D=function(){var a=document.createElement("div"),b=document.createElement("div"),c=document.createElement("a"),d=x(b,"configuredropdown","filterdropdown","nodedropdown");i=new NodeShaperControls(d.nodes,g.nodeShaper),j=new EdgeShaperControls(d.edges,g.edgeShaper),k=new GharialAdapterControls(d.col,g.adapter),r.id="menubar",a.className="headerBar",b.id="modifiers",c.appendChild(document.createTextNode("Graph Viewer")),c.className="arangoHeader",r.appendChild(a),r.appendChild(d.configure),r.appendChild(d.filter),r.appendChild(d.node),a.appendChild(b),a.appendChild(c),k.addControlChangeGraph(function(){C(),g.start(!0)}),k.addControlChangePriority(),i.addControlOpticLabelAndColourList(g.adapter),j.addControlOpticLabelList(),C()},E=function(){h=i.createColourMappingList(),h.className="gv-colour-list",s.insertBefore(h,o[0][0])};a.appendChild(r),a.appendChild(s),s.className="contentDiv gv-background ",s.id="background",e=e||{},e.zoom=!0,o=y(),"undefined"!==Storage&&(this.graphSettings={},this.loadLocalStorage=function(){var a=b.graphName;if(null===localStorage.getItem("graphSettings")||"null"===localStorage.getItem("graphSettings")){var c={};c[a]={viewer:e,adapter:b},localStorage.setItem("graphSettings",JSON.stringify(c))}else try{var d=JSON.parse(localStorage.getItem("graphSettings"));this.graphSettings=d,void 0!==d[a].viewer&&(e=d[a].viewer),void 0!==d[a].adapter&&(b=d[a].adapter)}catch(f){console.log("Could not load graph settings, resetting graph settings."),this.graphSettings[a]={viewer:e,adapter:b},localStorage.setItem("graphSettings",JSON.stringify(this.graphSettings))}},this.loadLocalStorage(),this.writeLocalStorage=function(){}),g=new GraphViewer(o,p,q,b,e),A(),z(),D(),E(),t(),B(),$("#graphSize").on("change",function(){var a=$("#graphSize").find(":selected").val();g.loadGraphWithRandomStart(function(a){a&&a.errorCode&&window.alert("Sorry your graph seems to be empty")},a)}),f&&("string"==typeof f?g.loadGraph(f):g.loadGraphWithRandomStart(function(a){a&&a.errorCode&&window.alert("Sorry your graph seems to be empty")})),this.changeWidth=function(a){g.changeWidth(a);var b=a-55;o.attr("width",b).style("width",b+"px")}}function GraphViewerWidget(a,b){"use strict";var c,d,e,f,g,h,i,j,k=function(){return d3.select(d).append("svg").attr("id","graphViewerSVG").attr("width",e).attr("height",f).attr("class","graph-viewer").attr("style","width:"+e+"px;height:"+f+"px;")},l=function(a){var b=0;return _.each(a,function(c,d){c===!1?delete a[d]:b++}),b>0},m=function(a,b){_.each(b,function(b,c){a[c]=a[c]||{},_.each(b,function(b,d){a[c][d]=b})})},n=function(a){if(a){var b={};a.drag&&m(b,j.dragRebinds()),a.create&&(m(b,j.newNodeRebinds()),m(b,j.connectNodesRebinds())),a.remove&&m(b,j.deleteRebinds()),a.expand&&m(b,j.expandRebinds()),a.edit&&m(b,j.editRebinds()),j.rebindAll(b)}},o=function(a){var b=document.createElement("div");j=new EventDispatcherControls(b,g.nodeShaper,g.edgeShaper,g.start,g.dispatcherConfig),b.id="toolbox",b.className="btn-group btn-group-vertical pull-left toolbox",d.appendChild(b),_.each(a,function(a,b){switch(b){case"expand":j.addControlExpand();break;case"create":j.addControlNewNode(),j.addControlConnect();break;case"drag":j.addControlDrag();break;case"edit":j.addControlEdit();break;case"remove":j.addControlDelete()}})},p=function(a){var b=document.createElement("div");j=new EventDispatcherControls(b,g.nodeShaper,g.edgeShaper,g.start,g.dispatcherConfig)},q=function(){return new GraphViewer(c,e,f,i,a)};d=document.body,e=d.offsetWidth,f=d.offsetHeight,i={type:"foxx",route:"."},a=a||{},h=l(a.toolbox),h&&(e-=43),c=k(),g=q(),h?o(a.toolbox):p(),b&&g.loadGraph(b),n(a.actions)}function LayouterControls(a,b){"use strict";if(void 0===a)throw"A list element has to be given.";if(void 0===b)throw"The Layouter has to be given.";var c=this;this.addControlGravity=function(){var c="control_layout_gravity",d=c+"_";uiComponentsHelper.createButton(a,"Gravity",c,function(){modalDialogHelper.createModalDialog("Switch Gravity Strength",d,[{type:"text",id:"value"}],function(){var a=$("#"+d+"value").attr("value");b.changeTo({gravity:a})})})},this.addControlCharge=function(){var c="control_layout_charge",d=c+"_";uiComponentsHelper.createButton(a,"Charge",c,function(){modalDialogHelper.createModalDialog("Switch Charge Strength",d,[{type:"text",id:"value"}],function(){var a=$("#"+d+"value").attr("value");b.changeTo({charge:a})})})},this.addControlDistance=function(){var c="control_layout_distance",d=c+"_";uiComponentsHelper.createButton(a,"Distance",c,function(){modalDialogHelper.createModalDialog("Switch Distance Strength",d,[{type:"text",id:"value"}],function(){var a=$("#"+d+"value").attr("value");b.changeTo({distance:a})})})},this.addAll=function(){c.addControlDistance(),c.addControlGravity(),c.addControlCharge()}}function NodeShaperControls(a,b){"use strict";if(void 0===a)throw"A list element has to be given.";if(void 0===b)throw"The NodeShaper has to be given.";var c,d=this,e=function(a){for(;c.hasChildNodes();)c.removeChild(c.lastChild);var b=document.createElement("ul");c.appendChild(b),_.each(a,function(a,c){var d=document.createElement("ul"),e=a.list,f=a.front;d.style.backgroundColor=c,d.style.color=f,_.each(e,function(a){var b=document.createElement("li");b.appendChild(document.createTextNode(a)),d.appendChild(b)}),b.appendChild(d)})};this.addControlOpticShapeNone=function(){uiComponentsHelper.createButton(a,"None","control_node_none",function(){b.changeTo({shape:{type:NodeShaper.shapes.NONE}})})},this.applyLocalStorage=function(a){if("undefined"!==Storage)try{var b=JSON.parse(localStorage.getItem("graphSettings")),c=window.location.hash.split("/")[1];_.each(a,function(a,d){void 0!==d&&(b[c].viewer.nodeShaper[d]=a)}),localStorage.setItem("graphSettings",JSON.stringify(b))}catch(d){console.log(d)}},this.addControlOpticShapeCircle=function(){var c="control_node_circle",d=c+"_";uiComponentsHelper.createButton(a,"Circle",c,function(){modalDialogHelper.createModalDialog("Switch to Circle",d,[{type:"text",id:"radius"}],function(){var a=$("#"+d+"radius").attr("value");b.changeTo({shape:{type:NodeShaper.shapes.CIRCLE,radius:a}})})})},this.addControlOpticShapeRect=function(){var c="control_node_rect",d=c+"_";uiComponentsHelper.createButton(a,"Rectangle",c,function(){modalDialogHelper.createModalDialog("Switch to Rectangle","control_node_rect_",[{type:"text",id:"width"},{type:"text",id:"height"}],function(){var a=$("#"+d+"width").attr("value"),c=$("#"+d+"height").attr("value");b.changeTo({shape:{type:NodeShaper.shapes.RECT,width:a,height:c}})})})},this.addControlOpticLabel=function(){var c="control_node_label",e=c+"_";uiComponentsHelper.createButton(a,"Configure Label",c,function(){modalDialogHelper.createModalChangeDialog("Change label attribute",e,[{type:"text",id:"key"}],function(){var a=$("#"+e+"key").attr("value"),c={label:a};d.applyLocalStorage(c),b.changeTo(c)})})},this.addControlOpticSingleColour=function(){var c="control_node_singlecolour",d=c+"_";uiComponentsHelper.createButton(a,"Single Colour",c,function(){modalDialogHelper.createModalDialog("Switch to Colour",d,[{type:"text",id:"fill"},{type:"text",id:"stroke"}],function(){var a=$("#"+d+"fill").attr("value"),c=$("#"+d+"stroke").attr("value");b.changeTo({color:{type:"single",fill:a,stroke:c}})})})},this.addControlOpticAttributeColour=function(){var c="control_node_attributecolour",d=c+"_";uiComponentsHelper.createButton(a,"Colour by Attribute",c,function(){modalDialogHelper.createModalDialog("Display colour by attribute",d,[{type:"text",id:"key"}],function(){var a=$("#"+d+"key").attr("value");b.changeTo({color:{type:"attribute",key:a}})})})},this.addControlOpticExpandColour=function(){var c="control_node_expandcolour",d=c+"_";uiComponentsHelper.createButton(a,"Expansion Colour",c,function(){modalDialogHelper.createModalDialog("Display colours for expansion",d,[{type:"text",id:"expanded"},{type:"text",id:"collapsed"}],function(){var a=$("#"+d+"expanded").attr("value"),c=$("#"+d+"collapsed").attr("value");b.changeTo({color:{type:"expand",expanded:a,collapsed:c}})})})},this.addControlOpticLabelAndColour=function(e){var f="control_node_labelandcolour",g=f+"_";uiComponentsHelper.createButton(a,"Configure Label",f,function(){ +modalDialogHelper.createModalChangeDialog("Change label attribute",g,[{type:"text",id:"label-attribute",text:"Vertex label attribute",value:b.getLabel()||""},{type:"decission",id:"samecolour",group:"colour",text:"Use this attribute for coloring, too",isDefault:b.getLabel()===b.getColor()},{type:"decission",id:"othercolour",group:"colour",text:"Use different attribute for coloring",isDefault:b.getLabel()!==b.getColor(),interior:[{type:"text",id:"colour-attribute",text:"Color attribute",value:b.getColor()||""}]}],function(){var a=$("#"+g+"label-attribute").attr("value"),e=$("#"+g+"colour-attribute").attr("value"),f=$("input[type='radio'][name='colour']:checked").attr("id");f===g+"samecolour"&&(e=a);var h={label:a,color:{type:"attribute",key:e}};d.applyLocalStorage(h),b.changeTo(h),void 0===c&&(c=d.createColourMappingList())})})},this.addControlOpticLabelAndColourList=function(e){var f="control_node_labelandcolourlist",g=f+"_";uiComponentsHelper.createButton(a,"Configure Label",f,function(){modalDialogHelper.createModalChangeDialog("Change label attribute",g,[{type:"extendable",id:"label",text:"Vertex label attribute",objects:b.getLabel()},{type:"decission",id:"samecolour",group:"colour",text:"Use this attribute for coloring, too",isDefault:b.getLabel()===b.getColor()},{type:"decission",id:"othercolour",group:"colour",text:"Use different attribute for coloring",isDefault:b.getLabel()!==b.getColor(),interior:[{type:"extendable",id:"colour",text:"Color attribute",objects:b.getColor()||""}]}],function(){var a=$("input[id^="+g+"label_]"),e=$("input[id^="+g+"colour_]"),f=$("input[type='radio'][name='colour']:checked").attr("id"),h=[],i=[];a.each(function(a,b){var c=$(b).val();""!==c&&h.push(c)}),e.each(function(a,b){var c=$(b).val();""!==c&&i.push(c)}),f===g+"samecolour"&&(i=h);var j={label:h,color:{type:"attribute",key:i}};d.applyLocalStorage(j),b.changeTo(j),void 0===c&&(c=d.createColourMappingList())})})},this.addAllOptics=function(){d.addControlOpticShapeNone(),d.addControlOpticShapeCircle(),d.addControlOpticShapeRect(),d.addControlOpticLabel(),d.addControlOpticSingleColour(),d.addControlOpticAttributeColour(),d.addControlOpticExpandColour()},this.addAllActions=function(){},this.addAll=function(){d.addAllOptics(),d.addAllActions()},this.createColourMappingList=function(){return void 0!==c?c:(c=document.createElement("div"),c.id="node_colour_list",e(b.getColourMapping()),b.setColourMappingListener(e),c)}}function GraphViewer(a,b,c,d,e){"use strict";if($("html").attr("xmlns:xlink","http://www.w3.org/1999/xlink"),void 0===a||void 0===a.append)throw"SVG has to be given and has to be selected using d3.select";if(void 0===b||0>=b)throw"A width greater 0 has to be given";if(void 0===c||0>=c)throw"A height greater 0 has to be given";if(void 0===d||void 0===d.type)throw"An adapter configuration has to be given";var f,g,h,i,j,k,l,m,n=this,o=[],p=[],q=function(a){if(!a)return a={},a.nodes=p,a.links=o,a.width=b,a.height=c,void(i=new ForceLayouter(a));switch(a.type.toLowerCase()){case"force":a.nodes=p,a.links=o,a.width=b,a.height=c,i=new ForceLayouter(a);break;default:throw"Sorry unknown layout type."}},r=function(a){f.setNodeLimit(a,n.start)},s=function(d){d&&(j=new ZoomManager(b,c,a,k,g,h,{},r))},t=function(a){var b=a.edgeShaper||{},c=a.nodeShaper||{},d=c.idfunc||void 0,e=a.zoom||!1;b.shape=b.shape||{type:EdgeShaper.shapes.ARROW},q(a.layouter),m=k.append("g"),h=new EdgeShaper(m,b),l=k.append("g"),g=new NodeShaper(l,c,d),i.setCombinedUpdateFunction(g,h),s(e)};switch(d.type.toLowerCase()){case"arango":d.width=b,d.height=c,f=new ArangoAdapter(p,o,this,d),f.setChildLimit(10);break;case"gharial":d.width=b,d.height=c,f=new GharialAdapter(p,o,this,d),f.setChildLimit(10);break;case"foxx":d.width=b,d.height=c,f=new FoxxAdapter(p,o,d.route,this,d);break;case"json":f=new JSONAdapter(d.path,p,o,this,b,c);break;case"preview":d.width=b,d.height=c,f=new PreviewAdapter(p,o,this,d);break;default:throw"Sorry unknown adapter type."}k=a.append("g"),t(e||{}),this.start=function(a){i.stop(),a&&(""!==$(".infoField").text()?_.each(p,function(a){_.each(f.randomNodes,function(b){a._id===b._id&&(a._expanded=!0)})}):_.each(p,function(a){a._expanded=!0})),g.drawNodes(p),h.drawEdges(o),i.start()},this.loadGraph=function(a,b){f.loadInitialNode(a,function(a){return a.errorCode?void b(a):(a._expanded=!0,n.start(),void(_.isFunction(b)&&b()))})},this.loadGraphWithRandomStart=function(a,b){f.loadRandomNode(function(b){return b.errorCode&&404===b.errorCode?void a(b):(b._expanded=!0,n.start(!0),void(_.isFunction(a)&&a()))},b)},this.loadGraphWithAdditionalNode=function(a,b,c){f.loadAdditionalNodeByAttributeValue(a,b,function(a){return a.errorCode?void c(a):(a._expanded=!0,n.start(),void(_.isFunction(c)&&c()))})},this.loadGraphWithAttributeValue=function(a,b,c){f.randomNodes=[],f.definedNodes=[],f.loadInitialNodeByAttributeValue(a,b,function(a){return a.errorCode?void c(a):(a._expanded=!0,n.start(),void(_.isFunction(c)&&c()))})},this.cleanUp=function(){g.resetColourMap(),h.resetColourMap()},this.changeWidth=function(a){i.changeWidth(a),j.changeWidth(a),f.setWidth(a)},this.dispatcherConfig={expand:{edges:o,nodes:p,startCallback:n.start,adapter:f,reshapeNodes:g.reshapeNodes},drag:{layouter:i},nodeEditor:{nodes:p,adapter:f},edgeEditor:{edges:o,adapter:f}},this.adapter=f,this.nodeShaper=g,this.edgeShaper=h,this.layouter=i,this.zoomManager=j}function Module(a){this.id=a,this.exports={},this.definition=null}function require(a){return global.module.require(a)}function print(){var a=require("internal");a.print.apply(a.print,arguments)}function ArangoConnection(){this._databaseName="_system";var a=global.document.location.pathname;if("/_db/"===a.substr(0,5)){for(var b=5,c=a.length;c>b&&"/"!==a[b];)b++;b>5&&(this._databaseName=a.substring(5,b))}}EdgeShaper.shapes=Object.freeze({NONE:0,ARROW:1}),NodeShaper.shapes=Object.freeze({NONE:0,CIRCLE:1,RECT:2,IMAGE:3});var modalDialogHelper=modalDialogHelper||{};!function(){"use strict";var a,b=function(a){$(document).bind("keypress.key13",function(b){b.which&&13===b.which&&$(a).click()})},c=function(){$(document).unbind("keypress.key13")},d=function(a,b,c,d,e){var f,g,h=function(){e(f)},i=modalDialogHelper.modalDivTemplate(a,b,c,h),j=document.createElement("tr"),k=document.createElement("th"),l=document.createElement("th"),m=document.createElement("th"),n=document.createElement("button"),o=1;f=function(){var a={};return _.each($("#"+c+"table tr:not(#first_row)"),function(b){var c=$(".keyCell input",b).val(),d=$(".valueCell input",b).val();a[c]=d}),a},i.appendChild(j),j.id="first_row",j.appendChild(k),k.className="keyCell",j.appendChild(l),l.className="valueCell",j.appendChild(m),m.className="actionCell",m.appendChild(n),n.id=c+"new",n.className="graphViewer-icon-button gv-icon-small add",g=function(a,b){var d,e,f,g=/^_(id|rev|key|from|to)/,h=document.createElement("tr"),j=document.createElement("th"),k=document.createElement("th"),l=document.createElement("th");g.test(b)||(i.appendChild(h),h.appendChild(k),k.className="keyCell",e=document.createElement("input"),e.type="text",e.id=c+b+"_key",e.value=b,k.appendChild(e),h.appendChild(l),l.className="valueCell",f=document.createElement("input"),f.type="text",f.id=c+b+"_value","object"==typeof a?f.value=JSON.stringify(a):f.value=a,l.appendChild(f),h.appendChild(j),j.className="actionCell",d=document.createElement("button"),d.id=c+b+"_delete",d.className="graphViewer-icon-button gv-icon-small delete",j.appendChild(d),d.onclick=function(){i.removeChild(h)})},n.onclick=function(){g("","new_"+o),o++},_.each(d,g),$("#"+c+"modal").modal("show")},e=function(a,b,c,d,e){var f=modalDialogHelper.modalDivTemplate(a,b,c,e),g=document.createElement("tr"),h=document.createElement("th"),i=document.createElement("pre");f.appendChild(g),g.appendChild(h),h.appendChild(i),i.className="gv-object-view",i.innerHTML=JSON.stringify(d,null,2),$("#"+c+"modal").modal("show")},f=function(a,b){var c=document.createElement("input");return c.type="text",c.id=a,c.value=b,c},g=function(a,b){var c=document.createElement("input");return c.type="checkbox",c.id=a,c.checked=b,c},h=function(a,b,c){var d=document.createElement("select");return d.id=a,_.each(_.sortBy(b,function(a){return a.toLowerCase()}),function(a){var b=document.createElement("option");b.value=a,b.selected=a===c,b.appendChild(document.createTextNode(a)),d.appendChild(b)}),d},i=function(a){var b=$(".decission_"+a),c=$("input[type='radio'][name='"+a+"']:checked").attr("id");b.each(function(){$(this).attr("decider")===c?$(this).css("display",""):$(this).css("display","none")})},j=function(b,c,d,e,f,g,h,j){var k=document.createElement("input"),l=b+c,m=document.createElement("label"),n=document.createElement("tbody");k.id=l,k.type="radio",k.name=d,k.className="gv-radio-button",m.className="radio",h.appendChild(m),m.appendChild(k),m.appendChild(document.createTextNode(e)),j.appendChild(n),$(n).toggleClass("decission_"+d,!0),$(n).attr("decider",l),_.each(g,function(c){a(n,b,c)}),f?k.checked=!0:k.checked=!1,m.onclick=function(a){i(d),a.stopPropagation()},i(d)},k=function(a,b,c,d,e,f){var g,h=[],i=a+b,j=1,k=document.createElement("th"),l=document.createElement("button"),m=document.createElement("input"),n=function(a){j++;var c,d=document.createElement("tr"),g=document.createElement("th"),k=document.createElement("th"),l=document.createElement("th"),m=document.createElement("input"),n=document.createElement("button");m.type="text",m.id=i+"_"+j,m.value=a||"",c=0===h.length?$(f):$(h[h.length-1]),c.after(d),d.appendChild(g),g.className="collectionTh capitalize",g.appendChild(document.createTextNode(b+" "+j+":")),d.appendChild(k),k.className="collectionTh",k.appendChild(m),n.id=i+"_"+j+"_remove",n.className="graphViewer-icon-button gv-icon-small delete",n.onclick=function(){e.removeChild(d),h.splice(h.indexOf(d),1)},l.appendChild(n),d.appendChild(l),h.push(d)};for(m.type="text",m.id=i+"_1",d.appendChild(m),k.appendChild(l),f.appendChild(k),l.onclick=function(){n()},l.id=i+"_addLine",l.className="graphViewer-icon-button gv-icon-small add","string"==typeof c&&c.length>0&&(c=[c]),c.length>0&&(m.value=c[0]),g=1;g'),$(".arangoFrame .outerDiv").click(function(){e.closeDocEditor()}),$(".arangoFrame .innerDiv").click(function(a){a.stopPropagation()}),$(".fa-times").click(function(){e.closeDocEditor()}),$(".arangoFrame").show(),f.customView=!0,f.customDeleteFunction=function(){window.modalView.hide(),$(".arangoFrame").hide()},$(".arangoFrame #deleteDocumentButton").click(function(){f.deleteDocumentModal()}),$(".arangoFrame #saveDocumentButton").click(function(){f.saveDocument()}),$(".arangoFrame #deleteDocumentButton").css("display","none")},closeDocEditor:function(){$(".arangoFrame .outerDiv .fa-times").remove(),$(".arangoFrame").hide()},getRandomToken:function(){return Math.round((new Date).getTime())},isSystemAttribute:function(a){var b=this.systemAttributes();return b[a]},isSystemCollection:function(a){return"_"===a.name.substr(0,1)},setDocumentStore:function(a){this.arangoDocumentStore=a},collectionApiType:function(a,b){return(b||void 0===this.CollectionTypes[a])&&(this.CollectionTypes[a]=this.arangoDocumentStore.getCollectionInfo(a).type),3===this.CollectionTypes[a]?"edge":"document"},collectionType:function(a){if(!a||""===a.name)return"-";var b;return b=2===a.type?"document":3===a.type?"edge":"unknown",this.isSystemCollection(a)&&(b+=" (system)"),b},formatDT:function(a){var b=function(a){return 10>a?"0"+a:a};return a.getUTCFullYear()+"-"+b(a.getUTCMonth()+1)+"-"+b(a.getUTCDate())+" "+b(a.getUTCHours())+":"+b(a.getUTCMinutes())+":"+b(a.getUTCSeconds())},escapeHtml:function(a){return String(a).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}}}(),function(){"use strict";if(!window.hasOwnProperty("TEST_BUILD")){var a=function(){var a={};return a.createTemplate=function(a){var b=$("#"+a.replace(".","\\.")).html();return{render:function(a){return _.template(b,a)}}},a};window.templateEngine=new a}}(),Module.prototype.moduleCache={},Module.prototype.moduleCache["/internal"]=new Module("/internal"),"undefined"==typeof global&&"undefined"!=typeof window&&(global=window),global.module=Module.prototype.moduleCache["/"]=new Module("/"),Module.prototype.normalise=function(a){var b,c,d,e,f;if(""===a)return this.id;for(d=a.split("/"),"."===d[0]||".."===d[0]?(e=this.id.split("/"),e.pop(),e=e.concat(d)):e=d,c=[],b=0;b "+require("internal").browserOutputBuffer,"jssuccess"),require("internal").browserOutputBuffer=""},$(global.document).ajaxSend(function(a,b,c){c.url=require("internal").arango.databasePrefix(c.url)}),global.DEFINE_MODULE=function(a,b){var c=Module.prototype.normalise(a),d=Module.prototype.moduleCache[c];d?Object.keys(d.exports).forEach(function(a){b[a]=d.exports[a]}):(d=new Module(c),Module.prototype.moduleCache[c]=d),d.exports=b}}(),module.define("underscore",function(a,b){(function(){function c(a){function b(b,c,d,e,f,g){for(;f>=0&&g>f;f+=a){var h=e?e[f]:f;d=c(d,b[h],h,b)}return d}return function(c,d,e,f){d=v(d,f,4);var g=!C(c)&&u.keys(c),h=(g||c).length,i=a>0?0:h-1;return arguments.length<3&&(e=c[g?g[i]:i],i+=a),b(c,d,e,g,i,h)}}function d(a){return function(b,c,d){c=w(c,d);for(var e=B(b),f=a>0?0:e-1;f>=0&&e>f;f+=a)if(c(b[f],f,b))return f;return-1}}function e(a,b,c){return function(d,e,f){var g=0,h=B(d);if("number"==typeof f)a>0?g=f>=0?f:Math.max(f+h,g):h=f>=0?Math.min(f+1,h):f+h+1;else if(c&&f&&h)return f=c(d,e),d[f]===e?f:-1;if(e!==e)return f=b(m.call(d,g,h),u.isNaN),f>=0?f+g:-1;for(f=a>0?g:h-1;f>=0&&h>f;f+=a)if(d[f]===e)return f;return-1}}function f(a,b){var c=H.length,d=a.constructor,e=u.isFunction(d)&&d.prototype||j,f="constructor";for(u.has(a,f)&&!u.contains(b,f)&&b.push(f);c--;)f=H[c],f in a&&a[f]!==e[f]&&!u.contains(b,f)&&b.push(f)}var g=this,h=g._,i=Array.prototype,j=Object.prototype,k=Function.prototype,l=i.push,m=i.slice,n=j.toString,o=j.hasOwnProperty,p=Array.isArray,q=Object.keys,r=k.bind,s=Object.create,t=function(){},u=function(a){return a instanceof u?a:this instanceof u?void(this._wrapped=a):new u(a)};"undefined"!=typeof a?("undefined"!=typeof b&&b.exports&&(a=b.exports=u),a._=u):g._=u,u.VERSION="1.8.3";var v=function(a,b,c){if(void 0===b)return a;switch(null==c?3:c){case 1:return function(c){return a.call(b,c)};case 2:return function(c,d){return a.call(b,c,d)};case 3:return function(c,d,e){return a.call(b,c,d,e)};case 4:return function(c,d,e,f){return a.call(b,c,d,e,f)}}return function(){return a.apply(b,arguments)}},w=function(a,b,c){return null==a?u.identity:u.isFunction(a)?v(a,b,c):u.isObject(a)?u.matcher(a):u.property(a)};u.iteratee=function(a,b){return w(a,b,1/0)};var x=function(a,b){return function(c){var d=arguments.length;if(2>d||null==c)return c;for(var e=1;d>e;e++)for(var f=arguments[e],g=a(f),h=g.length,i=0;h>i;i++){var j=g[i];b&&void 0!==c[j]||(c[j]=f[j])}return c}},y=function(a){if(!u.isObject(a))return{};if(s)return s(a);t.prototype=a;var b=new t;return t.prototype=null,b},z=function(a){return function(b){return null==b?void 0:b[a]}},A=Math.pow(2,53)-1,B=z("length"),C=function(a){var b=B(a);return"number"==typeof b&&b>=0&&A>=b};u.each=u.forEach=function(a,b,c){b=v(b,c);var d,e;if(C(a))for(d=0,e=a.length;e>d;d++)b(a[d],d,a);else{var f=u.keys(a);for(d=0,e=f.length;e>d;d++)b(a[f[d]],f[d],a)}return a},u.map=u.collect=function(a,b,c){b=w(b,c);for(var d=!C(a)&&u.keys(a),e=(d||a).length,f=Array(e),g=0;e>g;g++){var h=d?d[g]:g;f[g]=b(a[h],h,a)}return f},u.reduce=u.foldl=u.inject=c(1),u.reduceRight=u.foldr=c(-1),u.find=u.detect=function(a,b,c){var d;return d=C(a)?u.findIndex(a,b,c):u.findKey(a,b,c),void 0!==d&&-1!==d?a[d]:void 0},u.filter=u.select=function(a,b,c){var d=[];return b=w(b,c),u.each(a,function(a,c,e){b(a,c,e)&&d.push(a)}),d},u.reject=function(a,b,c){return u.filter(a,u.negate(w(b)),c)},u.every=u.all=function(a,b,c){b=w(b,c);for(var d=!C(a)&&u.keys(a),e=(d||a).length,f=0;e>f;f++){var g=d?d[f]:f;if(!b(a[g],g,a))return!1}return!0},u.some=u.any=function(a,b,c){b=w(b,c);for(var d=!C(a)&&u.keys(a),e=(d||a).length,f=0;e>f;f++){var g=d?d[f]:f;if(b(a[g],g,a))return!0}return!1},u.contains=u.includes=u.include=function(a,b,c,d){return C(a)||(a=u.values(a)),("number"!=typeof c||d)&&(c=0),u.indexOf(a,b,c)>=0},u.invoke=function(a,b){var c=m.call(arguments,2),d=u.isFunction(b);return u.map(a,function(a){var e=d?b:a[b];return null==e?e:e.apply(a,c)})},u.pluck=function(a,b){return u.map(a,u.property(b))},u.where=function(a,b){return u.filter(a,u.matcher(b))},u.findWhere=function(a,b){return u.find(a,u.matcher(b))},u.max=function(a,b,c){var d,e,f=-(1/0),g=-(1/0);if(null==b&&null!=a){a=C(a)?a:u.values(a);for(var h=0,i=a.length;i>h;h++)d=a[h],d>f&&(f=d)}else b=w(b,c),u.each(a,function(a,c,d){e=b(a,c,d),(e>g||e===-(1/0)&&f===-(1/0))&&(f=a,g=e)});return f},u.min=function(a,b,c){var d,e,f=1/0,g=1/0;if(null==b&&null!=a){a=C(a)?a:u.values(a);for(var h=0,i=a.length;i>h;h++)d=a[h],f>d&&(f=d)}else b=w(b,c),u.each(a,function(a,c,d){e=b(a,c,d),(g>e||e===1/0&&f===1/0)&&(f=a,g=e)});return f},u.shuffle=function(a){for(var b,c=C(a)?a:u.values(a),d=c.length,e=Array(d),f=0;d>f;f++)b=u.random(0,f),b!==f&&(e[f]=e[b]),e[b]=c[f];return e},u.sample=function(a,b,c){return null==b||c?(C(a)||(a=u.values(a)),a[u.random(a.length-1)]):u.shuffle(a).slice(0,Math.max(0,b))},u.sortBy=function(a,b,c){return b=w(b,c),u.pluck(u.map(a,function(a,c,d){return{value:a,index:c,criteria:b(a,c,d)}}).sort(function(a,b){var c=a.criteria,d=b.criteria;if(c!==d){if(c>d||void 0===c)return 1;if(d>c||void 0===d)return-1}return a.index-b.index}),"value")};var D=function(a){return function(b,c,d){var e={};return c=w(c,d),u.each(b,function(d,f){var g=c(d,f,b);a(e,d,g)}),e}};u.groupBy=D(function(a,b,c){u.has(a,c)?a[c].push(b):a[c]=[b]}),u.indexBy=D(function(a,b,c){a[c]=b}),u.countBy=D(function(a,b,c){u.has(a,c)?a[c]++:a[c]=1}),u.toArray=function(a){return a?u.isArray(a)?m.call(a):C(a)?u.map(a,u.identity):u.values(a):[]},u.size=function(a){return null==a?0:C(a)?a.length:u.keys(a).length},u.partition=function(a,b,c){b=w(b,c);var d=[],e=[];return u.each(a,function(a,c,f){(b(a,c,f)?d:e).push(a)}),[d,e]},u.first=u.head=u.take=function(a,b,c){return null==a?void 0:null==b||c?a[0]:u.initial(a,a.length-b)},u.initial=function(a,b,c){return m.call(a,0,Math.max(0,a.length-(null==b||c?1:b)))},u.last=function(a,b,c){return null==a?void 0:null==b||c?a[a.length-1]:u.rest(a,Math.max(0,a.length-b))},u.rest=u.tail=u.drop=function(a,b,c){return m.call(a,null==b||c?1:b)},u.compact=function(a){return u.filter(a,u.identity)};var E=function(a,b,c,d){for(var e=[],f=0,g=d||0,h=B(a);h>g;g++){var i=a[g];if(C(i)&&(u.isArray(i)||u.isArguments(i))){b||(i=E(i,b,c));var j=0,k=i.length;for(e.length+=k;k>j;)e[f++]=i[j++]}else c||(e[f++]=i)}return e};u.flatten=function(a,b){return E(a,b,!1)},u.without=function(a){return u.difference(a,m.call(arguments,1))},u.uniq=u.unique=function(a,b,c,d){u.isBoolean(b)||(d=c,c=b,b=!1),null!=c&&(c=w(c,d));for(var e=[],f=[],g=0,h=B(a);h>g;g++){var i=a[g],j=c?c(i,g,a):i;b?(g&&f===j||e.push(i),f=j):c?u.contains(f,j)||(f.push(j),e.push(i)):u.contains(e,i)||e.push(i)}return e},u.union=function(){return u.uniq(E(arguments,!0,!0))},u.intersection=function(a){for(var b=[],c=arguments.length,d=0,e=B(a);e>d;d++){var f=a[d];if(!u.contains(b,f)){for(var g=1;c>g&&u.contains(arguments[g],f);g++);g===c&&b.push(f)}}return b},u.difference=function(a){var b=E(arguments,!0,!0,1);return u.filter(a,function(a){return!u.contains(b,a)})},u.zip=function(){return u.unzip(arguments)},u.unzip=function(a){for(var b=a&&u.max(a,B).length||0,c=Array(b),d=0;b>d;d++)c[d]=u.pluck(a,d);return c},u.object=function(a,b){for(var c={},d=0,e=B(a);e>d;d++)b?c[a[d]]=b[d]:c[a[d][0]]=a[d][1];return c},u.findIndex=d(1),u.findLastIndex=d(-1),u.sortedIndex=function(a,b,c,d){c=w(c,d,1);for(var e=c(b),f=0,g=B(a);g>f;){var h=Math.floor((f+g)/2);c(a[h])f;f++,a+=c)e[f]=a;return e};var F=function(a,b,c,d,e){if(!(d instanceof b))return a.apply(c,e);var f=y(a.prototype),g=a.apply(f,e);return u.isObject(g)?g:f};u.bind=function(a,b){if(r&&a.bind===r)return r.apply(a,m.call(arguments,1));if(!u.isFunction(a))throw new TypeError("Bind must be called on a function");var c=m.call(arguments,2),d=function(){return F(a,d,b,this,c.concat(m.call(arguments)))};return d},u.partial=function(a){var b=m.call(arguments,1),c=function(){for(var d=0,e=b.length,f=Array(e),g=0;e>g;g++)f[g]=b[g]===u?arguments[d++]:b[g];for(;d=d)throw new Error("bindAll must be passed function names");for(b=1;d>b;b++)c=arguments[b],a[c]=u.bind(a[c],a);return a},u.memoize=function(a,b){var c=function(d){var e=c.cache,f=""+(b?b.apply(this,arguments):d);return u.has(e,f)||(e[f]=a.apply(this,arguments)),e[f]};return c.cache={},c},u.delay=function(a,b){var c=m.call(arguments,2);return setTimeout(function(){return a.apply(null,c)},b)},u.defer=u.partial(u.delay,u,1),u.throttle=function(a,b,c){var d,e,f,g=null,h=0;c||(c={});var i=function(){h=c.leading===!1?0:u.now(),g=null,f=a.apply(d,e),g||(d=e=null)};return function(){var j=u.now();h||c.leading!==!1||(h=j);var k=b-(j-h);return d=this,e=arguments,0>=k||k>b?(g&&(clearTimeout(g),g=null),h=j,f=a.apply(d,e),g||(d=e=null)):g||c.trailing===!1||(g=setTimeout(i,k)),f}},u.debounce=function(a,b,c){var d,e,f,g,h,i=function(){var j=u.now()-g;b>j&&j>=0?d=setTimeout(i,b-j):(d=null,c||(h=a.apply(f,e),d||(f=e=null)))};return function(){f=this,e=arguments,g=u.now();var j=c&&!d;return d||(d=setTimeout(i,b)),j&&(h=a.apply(f,e),f=e=null),h}},u.wrap=function(a,b){return u.partial(b,a)},u.negate=function(a){return function(){return!a.apply(this,arguments)}},u.compose=function(){var a=arguments,b=a.length-1;return function(){for(var c=b,d=a[b].apply(this,arguments);c--;)d=a[c].call(this,d);return d}},u.after=function(a,b){return function(){return--a<1?b.apply(this,arguments):void 0}},u.before=function(a,b){var c;return function(){return--a>0&&(c=b.apply(this,arguments)),1>=a&&(b=null),c}},u.once=u.partial(u.before,2);var G=!{toString:null}.propertyIsEnumerable("toString"),H=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];u.keys=function(a){if(!u.isObject(a))return[];if(q)return q(a);var b=[];for(var c in a)u.has(a,c)&&b.push(c);return G&&f(a,b),b},u.allKeys=function(a){if(!u.isObject(a))return[];var b=[];for(var c in a)b.push(c);return G&&f(a,b),b},u.values=function(a){for(var b=u.keys(a),c=b.length,d=Array(c),e=0;c>e;e++)d[e]=a[b[e]];return d},u.mapObject=function(a,b,c){b=w(b,c);for(var d,e=u.keys(a),f=e.length,g={},h=0;f>h;h++)d=e[h],g[d]=b(a[d],d,a);return g},u.pairs=function(a){for(var b=u.keys(a),c=b.length,d=Array(c),e=0;c>e;e++)d[e]=[b[e],a[b[e]]];return d},u.invert=function(a){for(var b={},c=u.keys(a),d=0,e=c.length;e>d;d++)b[a[c[d]]]=c[d];return b},u.functions=u.methods=function(a){var b=[];for(var c in a)u.isFunction(a[c])&&b.push(c);return b.sort()},u.extend=x(u.allKeys),u.extendOwn=u.assign=x(u.keys),u.findKey=function(a,b,c){b=w(b,c);for(var d,e=u.keys(a),f=0,g=e.length;g>f;f++)if(d=e[f],b(a[d],d,a))return d},u.pick=function(a,b,c){var d,e,f={},g=a;if(null==g)return f;u.isFunction(b)?(e=u.allKeys(g),d=v(b,c)):(e=E(arguments,!1,!1,1),d=function(a,b,c){return b in c},g=Object(g));for(var h=0,i=e.length;i>h;h++){var j=e[h],k=g[j];d(k,j,g)&&(f[j]=k)}return f},u.omit=function(a,b,c){if(u.isFunction(b))b=u.negate(b);else{var d=u.map(E(arguments,!1,!1,1),String);b=function(a,b){return!u.contains(d,b)}}return u.pick(a,b,c)},u.defaults=x(u.allKeys,!0),u.create=function(a,b){var c=y(a);return b&&u.extendOwn(c,b),c},u.clone=function(a){return u.isObject(a)?u.isArray(a)?a.slice():u.extend({},a):a},u.tap=function(a,b){return b(a),a},u.isMatch=function(a,b){var c=u.keys(b),d=c.length;if(null==a)return!d;for(var e=Object(a),f=0;d>f;f++){var g=c[f];if(b[g]!==e[g]||!(g in e))return!1}return!0};var I=function(a,b,c,d){if(a===b)return 0!==a||1/a===1/b;if(null==a||null==b)return a===b;a instanceof u&&(a=a._wrapped),b instanceof u&&(b=b._wrapped);var e=n.call(a);if(e!==n.call(b))return!1;switch(e){case"[object RegExp]":case"[object String]":return""+a==""+b;case"[object Number]":return+a!==+a?+b!==+b:0===+a?1/+a===1/b:+a===+b;case"[object Date]":case"[object Boolean]":return+a===+b}var f="[object Array]"===e;if(!f){if("object"!=typeof a||"object"!=typeof b)return!1;var g=a.constructor,h=b.constructor;if(g!==h&&!(u.isFunction(g)&&g instanceof g&&u.isFunction(h)&&h instanceof h)&&"constructor"in a&&"constructor"in b)return!1}c=c||[],d=d||[];for(var i=c.length;i--;)if(c[i]===a)return d[i]===b;if(c.push(a),d.push(b),f){if(i=a.length,i!==b.length)return!1;for(;i--;)if(!I(a[i],b[i],c,d))return!1}else{var j,k=u.keys(a);if(i=k.length,u.keys(b).length!==i)return!1;for(;i--;)if(j=k[i],!u.has(b,j)||!I(a[j],b[j],c,d))return!1}return c.pop(),d.pop(),!0};u.isEqual=function(a,b){return I(a,b)},u.isEmpty=function(a){return null==a?!0:C(a)&&(u.isArray(a)||u.isString(a)||u.isArguments(a))?0===a.length:0===u.keys(a).length},u.isElement=function(a){return!(!a||1!==a.nodeType)},u.isArray=p||function(a){return"[object Array]"===n.call(a)},u.isObject=function(a){var b=typeof a;return"function"===b||"object"===b&&!!a},u.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(a){u["is"+a]=function(b){return n.call(b)==="[object "+a+"]"}}),u.isArguments(arguments)||(u.isArguments=function(a){return u.has(a,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(u.isFunction=function(a){return"function"==typeof a||!1}),u.isFinite=function(a){return isFinite(a)&&!isNaN(parseFloat(a))},u.isNaN=function(a){return u.isNumber(a)&&a!==+a},u.isBoolean=function(a){return a===!0||a===!1||"[object Boolean]"===n.call(a)},u.isNull=function(a){return null===a},u.isUndefined=function(a){return void 0===a},u.has=function(a,b){return null!=a&&o.call(a,b)},u.noConflict=function(){return g._=h,this},u.identity=function(a){return a},u.constant=function(a){return function(){return a}},u.noop=function(){},u.property=z,u.propertyOf=function(a){return null==a?function(){}:function(b){return a[b]}},u.matcher=u.matches=function(a){return a=u.extendOwn({},a),function(b){return u.isMatch(b,a)}},u.times=function(a,b,c){var d=Array(Math.max(0,a));b=v(b,c,1);for(var e=0;a>e;e++)d[e]=b(e);return d},u.random=function(a,b){return null==b&&(b=a,a=0),a+Math.floor(Math.random()*(b-a+1))},u.now=Date.now||function(){return(new Date).getTime()};var J={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},K=u.invert(J),L=function(a){var b=function(b){return a[b]},c="(?:"+u.keys(a).join("|")+")",d=RegExp(c),e=RegExp(c,"g");return function(a){return a=null==a?"":""+a,d.test(a)?a.replace(e,b):a}};u.escape=L(J),u.unescape=L(K),u.result=function(a,b,c){var d=null==a?void 0:a[b];return void 0===d&&(d=c),u.isFunction(d)?d.call(a):d};var M=0;u.uniqueId=function(a){var b=++M+"";return a?a+b:b},u.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var N=/(.)^/,O={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},P=/\\|'|\r|\n|\u2028|\u2029/g,Q=function(a){return"\\"+O[a]};u.template=function(a,b,c){!b&&c&&(b=c),b=u.defaults({},b,u.templateSettings);var d=RegExp([(b.escape||N).source,(b.interpolate||N).source,(b.evaluate||N).source].join("|")+"|$","g"),e=0,f="__p+='";a.replace(d,function(b,c,d,g,h){return f+=a.slice(e,h).replace(P,Q),e=h+b.length,c?f+="'+\n((__t=("+c+"))==null?'':_.escape(__t))+\n'":d?f+="'+\n((__t=("+d+"))==null?'':__t)+\n'":g&&(f+="';\n"+g+"\n__p+='"),b}),f+="';\n",b.variable||(f="with(obj||{}){\n"+f+"}\n"),f="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+f+"return __p;\n";try{var g=new Function(b.variable||"obj","_",f)}catch(h){throw h.source=f,h}var i=function(a){return g.call(this,a,u)},j=b.variable||"obj";return i.source="function("+j+"){\n"+f+"}",i},u.chain=function(a){var b=u(a);return b._chain=!0,b};var R=function(a,b){return a._chain?u(b).chain():b};u.mixin=function(a){u.each(u.functions(a),function(b){var c=u[b]=a[b];u.prototype[b]=function(){var a=[this._wrapped];return l.apply(a,arguments),R(this,c.apply(u,a))}})},u.mixin(u),u.each(["pop","push","reverse","shift","sort","splice","unshift"],function(a){var b=i[a];u.prototype[a]=function(){var c=this._wrapped;return b.apply(c,arguments),"shift"!==a&&"splice"!==a||0!==c.length||delete c[0],R(this,c)}}),u.each(["concat","join","slice"],function(a){var b=i[a];u.prototype[a]=function(){return R(this,b.apply(this._wrapped,arguments))}}),u.prototype.value=function(){return this._wrapped},u.prototype.valueOf=u.prototype.toJSON=u.prototype.value,u.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return u})}).call(this)}),global.DEFINE_MODULE("internal",function(){"use strict";function a(a){if(i.hasOwnProperty(a))return i[a];var b,c=a.charCodeAt(0);return b=16>c?"\\u000":256>c?"\\u00":4096>c?"\\u0":"\\u",b+=c.toString(16),i[a]=b,b}function b(b){return'"'+b.replace(n,a)+'"'}function c(a){var b,c="";if(a.prettyPrint)for(c+="\n",b=0;b=b.emit&&(h.output(b.output),b.output=""),b.path=i,f=", "}b.level=e-1,b.output+=" ",c(b),d&&(b.output+=j.COLOR_PUNCTUATION),b.output+="]",d&&(b.output+=j.COLOR_RESET)}}function e(a,d){var e=d.useColor,f=" ";e&&(d.output+=j.COLOR_PUNCTUATION),d.output+="{",e&&(d.output+=j.COLOR_RESET);var g=d.level+1;d.level=g;var i;try{i=Object.keys(a)}catch(k){i=[]}for(var l=0,n=i.length;n>l;++l){var o=i[l],p=a[o];e&&(d.output+=j.COLOR_PUNCTUATION),d.output+=f,e&&(d.output+=j.COLOR_RESET),c(d),e&&(d.output+=j.COLOR_INDEX),d.output+=b(o),e&&(d.output+=j.COLOR_RESET),d.output+=" : ";var q=d.path;d.path+="["+o+"]",m(p,d),d.path=q,f=", ",d.emit&&d.output.length>=d.emit&&(h.output(d.output),d.output="")}d.level=g-1,d.output+=" ",c(d),e&&(d.output+=j.COLOR_PUNCTUATION),d.output+="}",e&&(d.output+=j.COLOR_RESET)}function f(){for(var a=0;a0&&a(" "),"string"==typeof arguments[b])a(arguments[b]);else{var c={customInspect:!0,emit:16384,level:0,limitString:80,names:[],output:"",path:"~",prettyPrint:l,seen:[],showFunction:!1,useColor:k,useToString:!0};m(arguments[b],c),a(c.output)}a("\n")}var h={};global.ArangoError?(h.ArangoError=global.ArangoError,delete global.ArangoError):(h.ArangoError=function(a){void 0!==a&&(this.error=a.error,this.code=a.code,this.errorNum=a.errorNum,this.errorMessage=a.errorMessage)},h.ArangoError.prototype=new Error),Object.defineProperty(h.ArangoError.prototype,"message",{configurable:!0,enumerable:!0,get:function(){return this.errorMessage}}),h.ArangoError.prototype.name="ArangoError",h.ArangoError.prototype._PRINT=function(a){a.output+="["+this.toString()+"]"},h.ArangoError.prototype.toString=function(){return this.name+" "+this.errorNum+": "+this.message},global.SleepAndRequeue&&(h.SleepAndRequeue=global.SleepAndRequeue,delete global.SleepAndRequeue,h.SleepAndRequeue.prototype._PRINT=function(a){a.output+=this.toString()},h.SleepAndRequeue.prototype.toString=function(){return"[SleepAndRequeue sleep: "+this.sleep+"]"}),h.threadNumber=0,global.THREAD_NUMBER&&(h.threadNumber=global.THREAD_NUMBER,delete global.THREAD_NUMBER),h.developmentMode=!1,global.LOGFILE_PATH&&(h.logfilePath=global.LOGFILE_PATH,delete global.LOGFILE_PATH),h.quiet=!1,global.ARANGO_QUIET&&(h.quiet=global.ARANGO_QUIET,delete global.ARANGO_QUIET),h.valgrind=!1,global.VALGRIND&&(h.valgrind=global.VALGRIND,delete global.VALGRIND),h.coverage=!1,global.COVERAGE&&(h.coverage=global.COVERAGE,delete global.COVERAGE),h.version="unknown",global.VERSION&&(h.version=global.VERSION,delete global.VERSION),h.platform="unknown",global.SYS_PLATFORM&&(h.platform=global.SYS_PLATFORM,delete global.SYS_PLATFORM),h.bytesSentDistribution=[],global.BYTES_SENT_DISTRIBUTION&&(h.bytesSentDistribution=global.BYTES_SENT_DISTRIBUTION,delete global.BYTES_SENT_DISTRIBUTION),h.bytesReceivedDistribution=[],global.BYTES_RECEIVED_DISTRIBUTION&&(h.bytesReceivedDistribution=global.BYTES_RECEIVED_DISTRIBUTION,delete global.BYTES_RECEIVED_DISTRIBUTION),h.connectionTimeDistribution=[],global.CONNECTION_TIME_DISTRIBUTION&&(h.connectionTimeDistribution=global.CONNECTION_TIME_DISTRIBUTION,delete global.CONNECTION_TIME_DISTRIBUTION),h.requestTimeDistribution=[],global.REQUEST_TIME_DISTRIBUTION&&(h.requestTimeDistribution=global.REQUEST_TIME_DISTRIBUTION,delete global.REQUEST_TIME_DISTRIBUTION),h.startupPath="",global.STARTUP_PATH&&(h.startupPath=global.STARTUP_PATH,delete global.STARTUP_PATH),""===h.startupPath&&(h.startupPath="."),global.CONFIGURE_ENDPOINT&&(h.configureEndpoint=global.CONFIGURE_ENDPOINT,delete global.CONFIGURE_ENDPOINT),global.REMOVE_ENDPOINT&&(h.removeEndpoint=global.REMOVE_ENDPOINT,delete global.REMOVE_ENDPOINT),global.LIST_ENDPOINTS&&(h.listEndpoints=global.LIST_ENDPOINTS,delete global.LIST_ENDPOINTS),global.SYS_BASE64DECODE&&(h.base64Decode=global.SYS_BASE64DECODE,delete global.SYS_BASE64DECODE),global.SYS_BASE64ENCODE&&(h.base64Encode=global.SYS_BASE64ENCODE,delete global.SYS_BASE64ENCODE),global.SYS_DEBUG_SEGFAULT&&(h.debugSegfault=global.SYS_DEBUG_SEGFAULT,delete global.SYS_DEBUG_SEGFAULT),global.SYS_DEBUG_SET_FAILAT&&(h.debugSetFailAt=global.SYS_DEBUG_SET_FAILAT,delete global.SYS_DEBUG_SET_FAILAT),global.SYS_DEBUG_REMOVE_FAILAT&&(h.debugRemoveFailAt=global.SYS_DEBUG_REMOVE_FAILAT,delete global.SYS_DEBUG_REMOVE_FAILAT),global.SYS_DEBUG_CLEAR_FAILAT&&(h.debugClearFailAt=global.SYS_DEBUG_CLEAR_FAILAT,delete global.SYS_DEBUG_CLEAR_FAILAT),global.SYS_DEBUG_CAN_USE_FAILAT&&(h.debugCanUseFailAt=global.SYS_DEBUG_CAN_USE_FAILAT,delete global.SYS_DEBUG_CAN_USE_FAILAT),global.SYS_DOWNLOAD&&(h.download=global.SYS_DOWNLOAD,delete global.SYS_DOWNLOAD),global.SYS_EXECUTE&&(h.executeScript=global.SYS_EXECUTE,delete global.SYS_EXECUTE),global.SYS_GET_CURRENT_REQUEST&&(h.getCurrentRequest=global.SYS_GET_CURRENT_REQUEST,delete global.SYS_GET_CURRENT_REQUEST),global.SYS_GET_CURRENT_RESPONSE&&(h.getCurrentResponse=global.SYS_GET_CURRENT_RESPONSE,delete global.SYS_GET_CURRENT_RESPONSE),h.extend=function(a,b){return Object.getOwnPropertyNames(b).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))}),a},global.SYS_LOAD&&(h.load=global.SYS_LOAD,delete global.SYS_LOAD),global.SYS_LOG_LEVEL&&(h.logLevel=global.SYS_LOG_LEVEL,delete global.SYS_LOG_LEVEL),global.SYS_MD5&&(h.md5=global.SYS_MD5,delete global.SYS_MD5),global.SYS_GEN_RANDOM_NUMBERS&&(h.genRandomNumbers=global.SYS_GEN_RANDOM_NUMBERS,delete global.SYS_GEN_RANDOM_NUMBERS),global.SYS_GEN_RANDOM_ALPHA_NUMBERS&&(h.genRandomAlphaNumbers=global.SYS_GEN_RANDOM_ALPHA_NUMBERS,delete global.SYS_GEN_RANDOM_ALPHA_NUMBERS),global.SYS_GEN_RANDOM_SALT&&(h.genRandomSalt=global.SYS_GEN_RANDOM_SALT,delete global.SYS_GEN_RANDOM_SALT),global.SYS_HMAC&&(h.hmac=global.SYS_HMAC,delete global.SYS_HMAC),global.SYS_PBKDF2&&(h.pbkdf2=global.SYS_PBKDF2,delete global.SYS_PBKDF2),global.SYS_CREATE_NONCE&&(h.createNonce=global.SYS_CREATE_NONCE,delete global.SYS_CREATE_NONCE),global.SYS_CHECK_AND_MARK_NONCE&&(h.checkAndMarkNonce=global.SYS_CHECK_AND_MARK_NONCE,delete global.SYS_CHECK_AND_MARK_NONCE),global.SYS_OUTPUT&&(h.stdOutput=global.SYS_OUTPUT,h.output=h.stdOutput,delete global.SYS_OUTPUT),global.SYS_PARSE&&(h.parse=global.SYS_PARSE,delete global.SYS_PARSE),global.SYS_PARSE_FILE&&(h.parseFile=global.SYS_PARSE_FILE,delete global.SYS_PARSE_FILE),global.SYS_PROCESS_STATISTICS&&(h.processStatistics=global.SYS_PROCESS_STATISTICS,delete global.SYS_PROCESS_STATISTICS),global.SYS_RAND&&(h.rand=global.SYS_RAND,delete global.SYS_RAND),global.SYS_SHA512&&(h.sha512=global.SYS_SHA512,delete global.SYS_SHA512),global.SYS_SHA384&&(h.sha384=global.SYS_SHA384,delete global.SYS_SHA384),global.SYS_SHA256&&(h.sha256=global.SYS_SHA256,delete global.SYS_SHA256),global.SYS_SHA224&&(h.sha224=global.SYS_SHA224,delete global.SYS_SHA224),global.SYS_SHA1&&(h.sha1=global.SYS_SHA1,delete global.SYS_SHA1),global.SYS_SERVER_STATISTICS&&(h.serverStatistics=global.SYS_SERVER_STATISTICS,delete global.SYS_SERVER_STATISTICS),global.SYS_SLEEP&&(h.sleep=global.SYS_SLEEP,delete global.SYS_SLEEP),global.SYS_TIME&&(h.time=global.SYS_TIME,delete global.SYS_TIME),global.SYS_WAIT&&(h.wait=global.SYS_WAIT,delete global.SYS_WAIT),global.SYS_IMPORT_CSV_FILE&&(h.importCsvFile=global.SYS_IMPORT_CSV_FILE,delete global.SYS_IMPORT_CSV_FILE),global.SYS_IMPORT_JSON_FILE&&(h.importJsonFile=global.SYS_IMPORT_JSON_FILE,delete global.SYS_IMPORT_JSON_FILE),global.SYS_PROCESS_CSV_FILE&&(h.processCsvFile=global.SYS_PROCESS_CSV_FILE,delete global.SYS_PROCESS_CSV_FILE),global.SYS_PROCESS_JSON_FILE&&(h.processJsonFile=global.SYS_PROCESS_JSON_FILE,delete global.SYS_PROCESS_JSON_FILE),global.SYS_CLIENT_STATISTICS&&(h.clientStatistics=global.SYS_CLIENT_STATISTICS,delete global.SYS_CLIENT_STATISTICS),global.SYS_HTTP_STATISTICS&&(h.httpStatistics=global.SYS_HTTP_STATISTICS,delete global.SYS_HTTP_STATISTICS),global.SYS_EXECUTE_EXTERNAL&&(h.executeExternal=global.SYS_EXECUTE_EXTERNAL,delete global.SYS_EXECUTE_EXTERNAL),global.SYS_EXECUTE_EXTERNAL_AND_WAIT&&(h.executeExternalAndWait=global.SYS_EXECUTE_EXTERNAL_AND_WAIT,delete global.SYS_EXECUTE_EXTERNAL_AND_WAIT),global.SYS_KILL_EXTERNAL&&(h.killExternal=global.SYS_KILL_EXTERNAL,delete global.SYS_KILL_EXTERNAL),global.SYS_STATUS_EXTERNAL&&(h.statusExternal=global.SYS_STATUS_EXTERNAL,delete global.SYS_STATUS_EXTERNAL),global.SYS_REGISTER_TASK&&(h.registerTask=global.SYS_REGISTER_TASK,delete global.SYS_REGISTER_TASK),global.SYS_UNREGISTER_TASK&&(h.unregisterTask=global.SYS_UNREGISTER_TASK,delete global.SYS_UNREGISTER_TASK),global.SYS_GET_TASK&&(h.getTask=global.SYS_GET_TASK,delete global.SYS_GET_TASK),global.SYS_TEST_PORT&&(h.testPort=global.SYS_TEST_PORT,delete global.SYS_TEST_PORT),global.SYS_IS_IP&&(h.isIP=global.SYS_IS_IP,delete global.SYS_IS_IP),h.unitTests=function(){return global.SYS_UNIT_TESTS},h.setUnitTestsResult=function(a){global.SYS_UNIT_TESTS_RESULT=a},h.toArgv=function(a,b){"undefined"==typeof b&&(b=!1);var c=[];for(var d in a)if(a.hasOwnProperty(d))if("commandSwitches"===d){for(var e="",f=0;f1?c.push(a[d][f]):e+=a[d][f];e.length>0&&c.push(e)}else"flatCommands"===d?c=c.concat(a[d]):b?c.push("--"+d+"="+a[d]):(c.push("--"+d),a[d]!==!1?a[d]!==!0?c.push(a[d]):c.push("true"):c.push("false"));return c},h.parseArgv=function(a,b){function c(b,d,e){if(d.indexOf(":")>0){var f=d.indexOf(":"),h=d.slice(0,f);b.hasOwnProperty(h)||(b[h]={}),c(b[h],d.slice(f+1,d.length),e)}else"true"===a[g+1]?b[d]=!0:"false"===a[g+1]?b[d]=!1:isNaN(a[g+1])?b[d]=a[g+1]:b[d]=parseInt(a[g+1])}function d(a,b){a.hasOwnProperty("commandSwitches")||(a.commandSwitches=[]),a.commandSwitches.push(b)}function e(a,b){for(var c=0;c2&&"--"===j.slice(0,2)){var k=j.slice(2,j.length);a.length>g&&"-"!==a[g+1].slice(0,1)?(c(i,k,a[g+1]),g++):d(i,k)}else"--"===j?h=!0:j.length>1&&"-"===j.slice(0,1)?e(i,j.slice(1,j.length)):f(i,j)}return i},h.COLORS={},global.COLORS?(h.COLORS=global.COLORS,delete global.COLORS):["COLOR_RED","COLOR_BOLD_RED","COLOR_GREEN","COLOR_BOLD_GREEN","COLOR_BLUE","COLOR_BOLD_BLUE","COLOR_YELLOW","COLOR_BOLD_YELLOW","COLOR_WHITE","COLOR_BOLD_WHITE","COLOR_CYAN","COLOR_BOLD_CYAN","COLOR_MAGENTA","COLOR_BOLD_MAGENTA","COLOR_BLACK","COLOR_BOLD_BLACK","COLOR_BLINK","COLOR_BRIGHT","COLOR_RESET"].forEach(function(a){h.COLORS[a]=""}),h.COLORS.COLOR_PUNCTUATION=h.COLORS.COLOR_RESET,h.COLORS.COLOR_STRING=h.COLORS.COLOR_BRIGHT,h.COLORS.COLOR_NUMBER=h.COLORS.COLOR_BRIGHT,h.COLORS.COLOR_INDEX=h.COLORS.COLOR_BRIGHT,h.COLORS.COLOR_TRUE=h.COLORS.COLOR_BRIGHT,h.COLORS.COLOR_FALSE=h.COLORS.COLOR_BRIGHT,h.COLORS.COLOR_NULL=h.COLORS.COLOR_BRIGHT,h.COLORS.COLOR_UNDEFINED=h.COLORS.COLOR_BRIGHT;var i={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},j=h.COLORS,k=!1;global.COLOR_OUTPUT&&(k=global.COLOR_OUTPUT,delete global.COLOR_OUTPUT);var l=!1;global.PRETTY_PRINT&&(l=global.PRETTY_PRINT,delete global.PRETTY_PRINT);var m,n=/[\\\"\x00-\x1f]/g,o=/function ([^\(]*)?\(\) \{ \[native code\] \}/,p=/function ([^\(]*)?\((.*)\) \{/;h.printRecursive=m=function(a,c){var f=c.useColor,g=c.customInspect,i=c.useToString,k=c.limitString,l=c.showFunction;"undefined"==typeof c.seen&&(c.seen=[],c.names=[]);var m=c.seen.indexOf(a);if(m>=0)c.output+=c.names[m];else if(a&&(a instanceof Object||"object"==typeof a&&null===Object.getPrototypeOf(a)))if(c.seen.push(a),c.names.push(c.path),g&&"function"==typeof a._PRINT)a._PRINT(c),c.emit&&c.output.length>=c.emit&&(h.output(c.output),c.output="");else if(a instanceof Array)d(a,c);else if(a.toString===Object.prototype.toString||"object"==typeof a&&null===Object.getPrototypeOf(a)){var n=!1;try{(a instanceof Set||a instanceof Map||a instanceof WeakSet||a instanceof WeakMap||"function"==typeof a[Symbol.iterator])&&(c.output+=a.toString(),n=!0)}catch(q){}n||e(a,c),c.emit&&c.output.length>=c.emit&&(h.output(c.output),c.output="")}else if("function"==typeof a)try{var r=a.toString();if(c.level>0&&!l){var s=r.split("\n"),t=s[0],u=o.exec(t);null!==u?void 0===u[1]?c.output+="function { [native code] }":c.output+="function "+u[1]+" { [native code] }":(u=p.exec(t),null!==u?void 0===u[1]?c.output+="function ("+u[2]+") { ... }":c.output+="function "+u[1]+" ("+u[2]+") { ... }":(t=t.substr(8,t.length-10).trim(),c.output+='[Function "'+t+'" ...]'))}else c.output+=r}catch(v){h.stdOutput(String(v)),c.output+="[Function]"}else if(i&&"function"==typeof a.toString)try{c.output+=a.toString()}catch(w){c.output+="[Object ",e(a,c),c.output+="]"}else c.output+="[Object ",e(a,c),c.output+="]";else void 0===a?(f&&(c.output+=j.COLOR_UNDEFINED),c.output+="undefined",f&&(c.output+=j.COLOR_RESET)):"string"==typeof a?(f&&(c.output+=j.COLOR_STRING),k&&k0&&a(" "),"string"==typeof arguments[c])a(arguments[c]);else{var d={names:[],seen:[],path:"~",level:0,output:"",prettyPrint:!1,useColor:!1,customInspect:!0};b(arguments[c],d),a(d.output)}a("\n")},global.start_pretty_print=function(){require("internal").startPrettyPrint()},global.stop_pretty_print=function(){require("internal").stopPrettyPrint()},global.start_color_print=function(a){require("internal").startColorPrint(a,!1)},global.stop_color_print=function(){require("internal").stopColorPrint()},global.EXPORTS_SLOW_BUFFER&&(Object.keys(global.EXPORTS_SLOW_BUFFER).forEach(function(a){h[a]=global.EXPORTS_SLOW_BUFFER[a]}),delete global.EXPORTS_SLOW_BUFFER),global.APP_PATH&&(h.appPath=global.APP_PATH,delete global.APP_PATH),global.DEV_APP_PATH&&(h.devAppPath=global.APP_PATH,delete global.DEV_APP_PATH),h}()),function(){"use strict";var a=require("internal");a.errors={ERROR_NO_ERROR:{code:0,message:"no error"},ERROR_FAILED:{code:1,message:"failed"},ERROR_SYS_ERROR:{code:2,message:"system error"},ERROR_OUT_OF_MEMORY:{code:3,message:"out of memory"},ERROR_INTERNAL:{code:4,message:"internal error"},ERROR_ILLEGAL_NUMBER:{code:5,message:"illegal number"},ERROR_NUMERIC_OVERFLOW:{code:6,message:"numeric overflow"},ERROR_ILLEGAL_OPTION:{code:7,message:"illegal option"},ERROR_DEAD_PID:{code:8,message:"dead process identifier"},ERROR_NOT_IMPLEMENTED:{code:9,message:"not implemented"},ERROR_BAD_PARAMETER:{code:10,message:"bad parameter"},ERROR_FORBIDDEN:{code:11,message:"forbidden"},ERROR_OUT_OF_MEMORY_MMAP:{code:12,message:"out of memory in mmap"},ERROR_CORRUPTED_CSV:{code:13,message:"csv is corrupt"},ERROR_FILE_NOT_FOUND:{code:14,message:"file not found"},ERROR_CANNOT_WRITE_FILE:{code:15,message:"cannot write file"},ERROR_CANNOT_OVERWRITE_FILE:{code:16,message:"cannot overwrite file"},ERROR_TYPE_ERROR:{code:17,message:"type error"},ERROR_LOCK_TIMEOUT:{code:18,message:"lock timeout"},ERROR_CANNOT_CREATE_DIRECTORY:{code:19,message:"cannot create directory"},ERROR_CANNOT_CREATE_TEMP_FILE:{code:20,message:"cannot create temporary file"},ERROR_REQUEST_CANCELED:{code:21,message:"canceled request"},ERROR_DEBUG:{code:22,message:"intentional debug error"},ERROR_AID_NOT_FOUND:{code:23,message:"internal error with attribute ID in shaper"},ERROR_LEGEND_INCOMPLETE:{code:24,message:"internal error if a legend could not be created"},ERROR_IP_ADDRESS_INVALID:{code:25,message:"IP address is invalid"},ERROR_LEGEND_NOT_IN_WAL_FILE:{code:26,message:"internal error if a legend for a marker does not yet exist in the same WAL file"},ERROR_FILE_EXISTS:{code:27,message:"file exists"},ERROR_LOCKED:{code:28,message:"locked"},ERROR_DEADLOCK:{code:29,message:"deadlock detected"},ERROR_HTTP_BAD_PARAMETER:{code:400,message:"bad parameter"},ERROR_HTTP_UNAUTHORIZED:{code:401,message:"unauthorized"},ERROR_HTTP_FORBIDDEN:{code:403,message:"forbidden"},ERROR_HTTP_NOT_FOUND:{code:404,message:"not found"},ERROR_HTTP_METHOD_NOT_ALLOWED:{code:405,message:"method not supported"},ERROR_HTTP_PRECONDITION_FAILED:{code:412,message:"precondition failed"},ERROR_HTTP_SERVER_ERROR:{code:500,message:"internal server error"},ERROR_HTTP_CORRUPTED_JSON:{code:600,message:"invalid JSON object"},ERROR_HTTP_SUPERFLUOUS_SUFFICES:{code:601,message:"superfluous URL suffices"},ERROR_ARANGO_ILLEGAL_STATE:{code:1e3,message:"illegal state"},ERROR_ARANGO_SHAPER_FAILED:{code:1001,message:"could not shape document"},ERROR_ARANGO_DATAFILE_SEALED:{code:1002,message:"datafile sealed"},ERROR_ARANGO_UNKNOWN_COLLECTION_TYPE:{code:1003,message:"unknown type"},ERROR_ARANGO_READ_ONLY:{code:1004,message:"read only"},ERROR_ARANGO_DUPLICATE_IDENTIFIER:{code:1005,message:"duplicate identifier"},ERROR_ARANGO_DATAFILE_UNREADABLE:{code:1006,message:"datafile unreadable"},ERROR_ARANGO_DATAFILE_EMPTY:{code:1007,message:"datafile empty"},ERROR_ARANGO_RECOVERY:{code:1008,message:"logfile recovery error"},ERROR_ARANGO_CORRUPTED_DATAFILE:{code:1100,message:"corrupted datafile"},ERROR_ARANGO_ILLEGAL_PARAMETER_FILE:{code:1101,message:"illegal or unreadable parameter file"},ERROR_ARANGO_CORRUPTED_COLLECTION:{code:1102,message:"corrupted collection"},ERROR_ARANGO_MMAP_FAILED:{code:1103,message:"mmap failed"},ERROR_ARANGO_FILESYSTEM_FULL:{code:1104,message:"filesystem full"},ERROR_ARANGO_NO_JOURNAL:{code:1105,message:"no journal"},ERROR_ARANGO_DATAFILE_ALREADY_EXISTS:{code:1106,message:"cannot create/rename datafile because it already exists"},ERROR_ARANGO_DATADIR_LOCKED:{code:1107,message:"database directory is locked"},ERROR_ARANGO_COLLECTION_DIRECTORY_ALREADY_EXISTS:{code:1108,message:"cannot create/rename collection because directory already exists"},ERROR_ARANGO_MSYNC_FAILED:{code:1109,message:"msync failed"},ERROR_ARANGO_DATADIR_UNLOCKABLE:{code:1110,message:"cannot lock database directory"},ERROR_ARANGO_SYNC_TIMEOUT:{code:1111,message:"sync timeout"},ERROR_ARANGO_CONFLICT:{code:1200,message:"conflict"},ERROR_ARANGO_DATADIR_INVALID:{code:1201,message:"invalid database directory"},ERROR_ARANGO_DOCUMENT_NOT_FOUND:{code:1202,message:"document not found"},ERROR_ARANGO_COLLECTION_NOT_FOUND:{code:1203,message:"collection not found"},ERROR_ARANGO_COLLECTION_PARAMETER_MISSING:{code:1204,message:"parameter 'collection' not found"},ERROR_ARANGO_DOCUMENT_HANDLE_BAD:{ -code:1205,message:"illegal document handle"},ERROR_ARANGO_MAXIMAL_SIZE_TOO_SMALL:{code:1206,message:"maximal size of journal too small"},ERROR_ARANGO_DUPLICATE_NAME:{code:1207,message:"duplicate name"},ERROR_ARANGO_ILLEGAL_NAME:{code:1208,message:"illegal name"},ERROR_ARANGO_NO_INDEX:{code:1209,message:"no suitable index known"},ERROR_ARANGO_UNIQUE_CONSTRAINT_VIOLATED:{code:1210,message:"unique constraint violated"},ERROR_ARANGO_INDEX_NOT_FOUND:{code:1212,message:"index not found"},ERROR_ARANGO_CROSS_COLLECTION_REQUEST:{code:1213,message:"cross collection request not allowed"},ERROR_ARANGO_INDEX_HANDLE_BAD:{code:1214,message:"illegal index handle"},ERROR_ARANGO_CAP_CONSTRAINT_ALREADY_DEFINED:{code:1215,message:"cap constraint already defined"},ERROR_ARANGO_DOCUMENT_TOO_LARGE:{code:1216,message:"document too large"},ERROR_ARANGO_COLLECTION_NOT_UNLOADED:{code:1217,message:"collection must be unloaded"},ERROR_ARANGO_COLLECTION_TYPE_INVALID:{code:1218,message:"collection type invalid"},ERROR_ARANGO_VALIDATION_FAILED:{code:1219,message:"validator failed"},ERROR_ARANGO_PARSER_FAILED:{code:1220,message:"parsing definition failed"},ERROR_ARANGO_DOCUMENT_KEY_BAD:{code:1221,message:"illegal document key"},ERROR_ARANGO_DOCUMENT_KEY_UNEXPECTED:{code:1222,message:"unexpected document key"},ERROR_ARANGO_DATADIR_NOT_WRITABLE:{code:1224,message:"server database directory not writable"},ERROR_ARANGO_OUT_OF_KEYS:{code:1225,message:"out of keys"},ERROR_ARANGO_DOCUMENT_KEY_MISSING:{code:1226,message:"missing document key"},ERROR_ARANGO_DOCUMENT_TYPE_INVALID:{code:1227,message:"invalid document type"},ERROR_ARANGO_DATABASE_NOT_FOUND:{code:1228,message:"database not found"},ERROR_ARANGO_DATABASE_NAME_INVALID:{code:1229,message:"database name invalid"},ERROR_ARANGO_USE_SYSTEM_DATABASE:{code:1230,message:"operation only allowed in system database"},ERROR_ARANGO_ENDPOINT_NOT_FOUND:{code:1231,message:"endpoint not found"},ERROR_ARANGO_INVALID_KEY_GENERATOR:{code:1232,message:"invalid key generator"},ERROR_ARANGO_INVALID_EDGE_ATTRIBUTE:{code:1233,message:"edge attribute missing"},ERROR_ARANGO_INDEX_DOCUMENT_ATTRIBUTE_MISSING:{code:1234,message:"index insertion warning - attribute missing in document"},ERROR_ARANGO_INDEX_CREATION_FAILED:{code:1235,message:"index creation failed"},ERROR_ARANGO_WRITE_THROTTLE_TIMEOUT:{code:1236,message:"write-throttling timeout"},ERROR_ARANGO_COLLECTION_TYPE_MISMATCH:{code:1237,message:"collection type mismatch"},ERROR_ARANGO_COLLECTION_NOT_LOADED:{code:1238,message:"collection not loaded"},ERROR_ARANGO_DATAFILE_FULL:{code:1300,message:"datafile full"},ERROR_ARANGO_EMPTY_DATADIR:{code:1301,message:"server database directory is empty"},ERROR_REPLICATION_NO_RESPONSE:{code:1400,message:"no response"},ERROR_REPLICATION_INVALID_RESPONSE:{code:1401,message:"invalid response"},ERROR_REPLICATION_MASTER_ERROR:{code:1402,message:"master error"},ERROR_REPLICATION_MASTER_INCOMPATIBLE:{code:1403,message:"master incompatible"},ERROR_REPLICATION_MASTER_CHANGE:{code:1404,message:"master change"},ERROR_REPLICATION_LOOP:{code:1405,message:"loop detected"},ERROR_REPLICATION_UNEXPECTED_MARKER:{code:1406,message:"unexpected marker"},ERROR_REPLICATION_INVALID_APPLIER_STATE:{code:1407,message:"invalid applier state"},ERROR_REPLICATION_UNEXPECTED_TRANSACTION:{code:1408,message:"invalid transaction"},ERROR_REPLICATION_INVALID_APPLIER_CONFIGURATION:{code:1410,message:"invalid replication applier configuration"},ERROR_REPLICATION_RUNNING:{code:1411,message:"cannot perform operation while applier is running"},ERROR_REPLICATION_APPLIER_STOPPED:{code:1412,message:"replication stopped"},ERROR_REPLICATION_NO_START_TICK:{code:1413,message:"no start tick"},ERROR_REPLICATION_START_TICK_NOT_PRESENT:{code:1414,message:"start tick not present"},ERROR_CLUSTER_NO_AGENCY:{code:1450,message:"could not connect to agency"},ERROR_CLUSTER_NO_COORDINATOR_HEADER:{code:1451,message:"missing coordinator header"},ERROR_CLUSTER_COULD_NOT_LOCK_PLAN:{code:1452,message:"could not lock plan in agency"},ERROR_CLUSTER_COLLECTION_ID_EXISTS:{code:1453,message:"collection ID already exists"},ERROR_CLUSTER_COULD_NOT_CREATE_COLLECTION_IN_PLAN:{code:1454,message:"could not create collection in plan"},ERROR_CLUSTER_COULD_NOT_READ_CURRENT_VERSION:{code:1455,message:"could not read version in current in agency"},ERROR_CLUSTER_COULD_NOT_CREATE_COLLECTION:{code:1456,message:"could not create collection"},ERROR_CLUSTER_TIMEOUT:{code:1457,message:"timeout in cluster operation"},ERROR_CLUSTER_COULD_NOT_REMOVE_COLLECTION_IN_PLAN:{code:1458,message:"could not remove collection from plan"},ERROR_CLUSTER_COULD_NOT_REMOVE_COLLECTION_IN_CURRENT:{code:1459,message:"could not remove collection from current"},ERROR_CLUSTER_COULD_NOT_CREATE_DATABASE_IN_PLAN:{code:1460,message:"could not create database in plan"},ERROR_CLUSTER_COULD_NOT_CREATE_DATABASE:{code:1461,message:"could not create database"},ERROR_CLUSTER_COULD_NOT_REMOVE_DATABASE_IN_PLAN:{code:1462,message:"could not remove database from plan"},ERROR_CLUSTER_COULD_NOT_REMOVE_DATABASE_IN_CURRENT:{code:1463,message:"could not remove database from current"},ERROR_CLUSTER_SHARD_GONE:{code:1464,message:"no responsible shard found"},ERROR_CLUSTER_CONNECTION_LOST:{code:1465,message:"cluster internal HTTP connection broken"},ERROR_CLUSTER_MUST_NOT_SPECIFY_KEY:{code:1466,message:"must not specify _key for this collection"},ERROR_CLUSTER_GOT_CONTRADICTING_ANSWERS:{code:1467,message:"got contradicting answers from different shards"},ERROR_CLUSTER_NOT_ALL_SHARDING_ATTRIBUTES_GIVEN:{code:1468,message:"not all sharding attributes given"},ERROR_CLUSTER_MUST_NOT_CHANGE_SHARDING_ATTRIBUTES:{code:1469,message:"must not change the value of a shard key attribute"},ERROR_CLUSTER_UNSUPPORTED:{code:1470,message:"unsupported operation or parameter"},ERROR_CLUSTER_ONLY_ON_COORDINATOR:{code:1471,message:"this operation is only valid on a coordinator in a cluster"},ERROR_CLUSTER_READING_PLAN_AGENCY:{code:1472,message:"error reading Plan in agency"},ERROR_CLUSTER_COULD_NOT_TRUNCATE_COLLECTION:{code:1473,message:"could not truncate collection"},ERROR_CLUSTER_AQL_COMMUNICATION:{code:1474,message:"error in cluster internal communication for AQL"},ERROR_ARANGO_DOCUMENT_NOT_FOUND_OR_SHARDING_ATTRIBUTES_CHANGED:{code:1475,message:"document not found or sharding attributes changed"},ERROR_CLUSTER_COULD_NOT_DETERMINE_ID:{code:1476,message:"could not determine my ID from my local info"},ERROR_QUERY_KILLED:{code:1500,message:"query killed"},ERROR_QUERY_PARSE:{code:1501,message:"%s"},ERROR_QUERY_EMPTY:{code:1502,message:"query is empty"},ERROR_QUERY_SCRIPT:{code:1503,message:"runtime error '%s'"},ERROR_QUERY_NUMBER_OUT_OF_RANGE:{code:1504,message:"number out of range"},ERROR_QUERY_VARIABLE_NAME_INVALID:{code:1510,message:"variable name '%s' has an invalid format"},ERROR_QUERY_VARIABLE_REDECLARED:{code:1511,message:"variable '%s' is assigned multiple times"},ERROR_QUERY_VARIABLE_NAME_UNKNOWN:{code:1512,message:"unknown variable '%s'"},ERROR_QUERY_COLLECTION_LOCK_FAILED:{code:1521,message:"unable to read-lock collection %s"},ERROR_QUERY_TOO_MANY_COLLECTIONS:{code:1522,message:"too many collections"},ERROR_QUERY_DOCUMENT_ATTRIBUTE_REDECLARED:{code:1530,message:"document attribute '%s' is assigned multiple times"},ERROR_QUERY_FUNCTION_NAME_UNKNOWN:{code:1540,message:"usage of unknown function '%s()'"},ERROR_QUERY_FUNCTION_ARGUMENT_NUMBER_MISMATCH:{code:1541,message:"invalid number of arguments for function '%s()', expected number of arguments: minimum: %d, maximum: %d"},ERROR_QUERY_FUNCTION_ARGUMENT_TYPE_MISMATCH:{code:1542,message:"invalid argument type in call to function '%s()'"},ERROR_QUERY_INVALID_REGEX:{code:1543,message:"invalid regex value"},ERROR_QUERY_BIND_PARAMETERS_INVALID:{code:1550,message:"invalid structure of bind parameters"},ERROR_QUERY_BIND_PARAMETER_MISSING:{code:1551,message:"no value specified for declared bind parameter '%s'"},ERROR_QUERY_BIND_PARAMETER_UNDECLARED:{code:1552,message:"bind parameter '%s' was not declared in the query"},ERROR_QUERY_BIND_PARAMETER_TYPE:{code:1553,message:"bind parameter '%s' has an invalid value or type"},ERROR_QUERY_INVALID_LOGICAL_VALUE:{code:1560,message:"invalid logical value"},ERROR_QUERY_INVALID_ARITHMETIC_VALUE:{code:1561,message:"invalid arithmetic value"},ERROR_QUERY_DIVISION_BY_ZERO:{code:1562,message:"division by zero"},ERROR_QUERY_ARRAY_EXPECTED:{code:1563,message:"array expected"},ERROR_QUERY_FAIL_CALLED:{code:1569,message:"FAIL(%s) called"},ERROR_QUERY_GEO_INDEX_MISSING:{code:1570,message:"no suitable geo index found for geo restriction on '%s'"},ERROR_QUERY_FULLTEXT_INDEX_MISSING:{code:1571,message:"no suitable fulltext index found for fulltext query on '%s'"},ERROR_QUERY_INVALID_DATE_VALUE:{code:1572,message:"invalid date value"},ERROR_QUERY_MULTI_MODIFY:{code:1573,message:"multi-modify query"},ERROR_QUERY_INVALID_AGGREGATE_EXPRESSION:{code:1574,message:"invalid aggregate expression"},ERROR_QUERY_COMPILE_TIME_OPTIONS:{code:1575,message:"query options must be readable at query compile time"},ERROR_QUERY_EXCEPTION_OPTIONS:{code:1576,message:"query options expected"},ERROR_QUERY_COLLECTION_USED_IN_EXPRESSION:{code:1577,message:"collection '%s' used as expression operand"},ERROR_QUERY_DISALLOWED_DYNAMIC_CALL:{code:1578,message:"disallowed dynamic call to '%s'"},ERROR_QUERY_ACCESS_AFTER_MODIFICATION:{code:1579,message:"access after data-modification"},ERROR_QUERY_FUNCTION_INVALID_NAME:{code:1580,message:"invalid user function name"},ERROR_QUERY_FUNCTION_INVALID_CODE:{code:1581,message:"invalid user function code"},ERROR_QUERY_FUNCTION_NOT_FOUND:{code:1582,message:"user function '%s()' not found"},ERROR_QUERY_FUNCTION_RUNTIME_ERROR:{code:1583,message:"user function runtime error: %s"},ERROR_QUERY_BAD_JSON_PLAN:{code:1590,message:"bad execution plan JSON"},ERROR_QUERY_NOT_FOUND:{code:1591,message:"query ID not found"},ERROR_QUERY_IN_USE:{code:1592,message:"query with this ID is in use"},ERROR_CURSOR_NOT_FOUND:{code:1600,message:"cursor not found"},ERROR_CURSOR_BUSY:{code:1601,message:"cursor is busy"},ERROR_TRANSACTION_INTERNAL:{code:1650,message:"internal transaction error"},ERROR_TRANSACTION_NESTED:{code:1651,message:"nested transactions detected"},ERROR_TRANSACTION_UNREGISTERED_COLLECTION:{code:1652,message:"unregistered collection used in transaction"},ERROR_TRANSACTION_DISALLOWED_OPERATION:{code:1653,message:"disallowed operation inside transaction"},ERROR_TRANSACTION_ABORTED:{code:1654,message:"transaction aborted"},ERROR_USER_INVALID_NAME:{code:1700,message:"invalid user name"},ERROR_USER_INVALID_PASSWORD:{code:1701,message:"invalid password"},ERROR_USER_DUPLICATE:{code:1702,message:"duplicate user"},ERROR_USER_NOT_FOUND:{code:1703,message:"user not found"},ERROR_USER_CHANGE_PASSWORD:{code:1704,message:"user must change his password"},ERROR_APPLICATION_INVALID_NAME:{code:1750,message:"invalid application name"},ERROR_APPLICATION_INVALID_MOUNT:{code:1751,message:"invalid mount"},ERROR_APPLICATION_DOWNLOAD_FAILED:{code:1752,message:"application download failed"},ERROR_APPLICATION_UPLOAD_FAILED:{code:1753,message:"application upload failed"},ERROR_KEYVALUE_INVALID_KEY:{code:1800,message:"invalid key declaration"},ERROR_KEYVALUE_KEY_EXISTS:{code:1801,message:"key already exists"},ERROR_KEYVALUE_KEY_NOT_FOUND:{code:1802,message:"key not found"},ERROR_KEYVALUE_KEY_NOT_UNIQUE:{code:1803,message:"key is not unique"},ERROR_KEYVALUE_KEY_NOT_CHANGED:{code:1804,message:"key value not changed"},ERROR_KEYVALUE_KEY_NOT_REMOVED:{code:1805,message:"key value not removed"},ERROR_KEYVALUE_NO_VALUE:{code:1806,message:"missing value"},ERROR_TASK_INVALID_ID:{code:1850,message:"invalid task id"},ERROR_TASK_DUPLICATE_ID:{code:1851,message:"duplicate task id"},ERROR_TASK_NOT_FOUND:{code:1852,message:"task not found"},ERROR_GRAPH_INVALID_GRAPH:{code:1901,message:"invalid graph"},ERROR_GRAPH_COULD_NOT_CREATE_GRAPH:{code:1902,message:"could not create graph"},ERROR_GRAPH_INVALID_VERTEX:{code:1903,message:"invalid vertex"},ERROR_GRAPH_COULD_NOT_CREATE_VERTEX:{code:1904,message:"could not create vertex"},ERROR_GRAPH_COULD_NOT_CHANGE_VERTEX:{code:1905,message:"could not change vertex"},ERROR_GRAPH_INVALID_EDGE:{code:1906,message:"invalid edge"},ERROR_GRAPH_COULD_NOT_CREATE_EDGE:{code:1907,message:"could not create edge"},ERROR_GRAPH_COULD_NOT_CHANGE_EDGE:{code:1908,message:"could not change edge"},ERROR_GRAPH_TOO_MANY_ITERATIONS:{code:1909,message:"too many iterations - try increasing the value of 'maxIterations'"},ERROR_GRAPH_INVALID_FILTER_RESULT:{code:1910,message:"invalid filter result"},ERROR_GRAPH_COLLECTION_MULTI_USE:{code:1920,message:"multi use of edge collection in edge def"},ERROR_GRAPH_COLLECTION_USE_IN_MULTI_GRAPHS:{code:1921,message:"edge collection already used in edge def"},ERROR_GRAPH_CREATE_MISSING_NAME:{code:1922,message:"missing graph name"},ERROR_GRAPH_CREATE_MALFORMED_EDGE_DEFINITION:{code:1923,message:"malformed edge definition"},ERROR_GRAPH_NOT_FOUND:{code:1924,message:"graph not found"},ERROR_GRAPH_DUPLICATE:{code:1925,message:"graph already exists"},ERROR_GRAPH_VERTEX_COL_DOES_NOT_EXIST:{code:1926,message:"vertex collection does not exist or is not part of the graph"},ERROR_GRAPH_WRONG_COLLECTION_TYPE_VERTEX:{code:1927,message:"not a vertex collection"},ERROR_GRAPH_NOT_IN_ORPHAN_COLLECTION:{code:1928,message:"not in orphan collection"},ERROR_GRAPH_COLLECTION_USED_IN_EDGE_DEF:{code:1929,message:"collection already used in edge def"},ERROR_GRAPH_EDGE_COLLECTION_NOT_USED:{code:1930,message:"edge collection not used in graph"},ERROR_GRAPH_NOT_AN_ARANGO_COLLECTION:{code:1931,message:" is not an ArangoCollection"},ERROR_GRAPH_NO_GRAPH_COLLECTION:{code:1932,message:"collection _graphs does not exist"},ERROR_GRAPH_INVALID_EXAMPLE_ARRAY_OBJECT_STRING:{code:1933,message:"Invalid example type. Has to be String, Array or Object"},ERROR_GRAPH_INVALID_EXAMPLE_ARRAY_OBJECT:{code:1934,message:"Invalid example type. Has to be Array or Object"},ERROR_GRAPH_INVALID_NUMBER_OF_ARGUMENTS:{code:1935,message:"Invalid number of arguments. Expected: "},ERROR_GRAPH_INVALID_PARAMETER:{code:1936,message:"Invalid parameter type."},ERROR_GRAPH_INVALID_ID:{code:1937,message:"Invalid id"},ERROR_GRAPH_COLLECTION_USED_IN_ORPHANS:{code:1938,message:"collection used in orphans"},ERROR_GRAPH_EDGE_COL_DOES_NOT_EXIST:{code:1939,message:"edge collection does not exist or is not part of the graph"},ERROR_GRAPH_EMPTY:{code:1940,message:"empty graph"},ERROR_SESSION_UNKNOWN:{code:1950,message:"unknown session"},ERROR_SESSION_EXPIRED:{code:1951,message:"session expired"},SIMPLE_CLIENT_UNKNOWN_ERROR:{code:2e3,message:"unknown client error"},SIMPLE_CLIENT_COULD_NOT_CONNECT:{code:2001,message:"could not connect to server"},SIMPLE_CLIENT_COULD_NOT_WRITE:{code:2002,message:"could not write to server"},SIMPLE_CLIENT_COULD_NOT_READ:{code:2003,message:"could not read from server"},ERROR_MALFORMED_MANIFEST_FILE:{code:3e3,message:"malformed manifest file"},ERROR_INVALID_APPLICATION_MANIFEST:{code:3001,message:"manifest file is invalid"},ERROR_MANIFEST_FILE_ATTRIBUTE_MISSING:{code:3002,message:"missing manifest attribute"},ERROR_CANNOT_EXTRACT_APPLICATION_ROOT:{code:3003,message:"unable to extract app root path"},ERROR_INVALID_FOXX_OPTIONS:{code:3004,message:"invalid foxx options"},ERROR_FAILED_TO_EXECUTE_SCRIPT:{code:3005,message:"failed to execute script"},ERROR_SYNTAX_ERROR_IN_SCRIPT:{code:3006,message:"syntax error in script"},ERROR_INVALID_MOUNTPOINT:{code:3007,message:"mountpoint is invalid"},ERROR_NO_FOXX_FOUND:{code:3008,message:"No foxx found at this location"},ERROR_APP_NOT_FOUND:{code:3009,message:"App not found"},ERROR_APP_NEEDS_CONFIGURATION:{code:3010,message:"App not configured"},ERROR_MODULE_NOT_FOUND:{code:3100,message:"cannot locate module"},ERROR_MODULE_SYNTAX_ERROR:{code:3101,message:"syntax error in module"},ERROR_MODULE_BAD_WRAPPER:{code:3102,message:"failed to wrap module"},ERROR_MODULE_FAILURE:{code:3103,message:"failed to invoke module"},ERROR_MODULE_UNKNOWN_FILE_TYPE:{code:3110,message:"unknown file type"},ERROR_MODULE_PATH_MUST_BE_ABSOLUTE:{code:3111,message:"path must be absolute"},ERROR_MODULE_CAN_NOT_ESCAPE:{code:3112,message:"cannot use '..' to escape top-level-directory"},ERROR_MODULE_DRIVE_LETTER:{code:3113,message:"drive local path is not supported"},ERROR_MODULE_BAD_MODULE_ORIGIN:{code:3120,message:"corrupted module origin"},ERROR_MODULE_BAD_PACKAGE_ORIGIN:{code:3121,message:"corrupted package origin"},ERROR_MODULE_DOCUMENT_IS_EMPTY:{code:3125,message:"no content"},ERROR_MODULE_MAIN_NOT_READABLE:{code:3130,message:"cannot read main file"},ERROR_MODULE_MAIN_NOT_JS:{code:3131,message:"main file is not of type 'js'"},RESULT_ELEMENT_EXISTS:{code:1e4,message:"element not inserted into structure, because it already exists"},RESULT_ELEMENT_NOT_FOUND:{code:10001,message:"element not found in structure"},ERROR_APP_ALREADY_EXISTS:{code:2e4,message:"newest version of app already installed"},ERROR_QUEUE_ALREADY_EXISTS:{code:21e3,message:"named queue already exists"},ERROR_DISPATCHER_IS_STOPPING:{code:21001,message:"dispatcher stopped"},ERROR_QUEUE_UNKNOWN:{code:21002,message:"named queue does not exist"},ERROR_QUEUE_FULL:{code:21003,message:"named queue is full"}}}(),global.DEFINE_MODULE("console",function(){"use strict";function a(a,b){j(a,h+b)}function b(a){var b=require("internal").ShapedJson,c=[];a.length>0&&"string"!=typeof a[0]&&c.push("%s");for(var d=0;d curl ","POST"===e?(i=a.arango.POST_RAW(f,g,h),j+="-X "+e+" "):"PUT"===e?(i=a.arango.PUT_RAW(f,g,h),j+="-X "+e+" "):"GET"===e?i=a.arango.GET_RAW(f,h):"DELETE"===e?(i=a.arango.DELETE_RAW(f,h),j+="-X "+e+" "):"PATCH"===e?(i=a.arango.PATCH_RAW(f,g,h),j+="-X "+e+" "):"HEAD"===e?(i=a.arango.HEAD_RAW(f,h),j+="-X "+e+" "):"OPTION"===e&&(i=a.arango.OPTION_RAW(f,g,h),j+="-X "+e+" "),void 0!==h&&""!==h)for(k in h)h.hasOwnProperty(k)&&(j+="--header '"+k+": "+h[k]+"' ");return void 0!==g&&""!==g&&(j+="--data-binary @- "),j+="--dump - http://localhost:8529"+f,b(j),void 0!==g&&""!==g&&g&&(d(" <<EOF\n"),l?c(g):d(g),d("\nEOF")),d("\n\n"),i}},a.appendRawResponse=function(b,c){return function(d){var e,f=d.headers;b("HTTP/1.1 "+f["http/1.1"]+"\n");for(e in f)f.hasOwnProperty(e)&&"http/1.1"!==e&&"server"!==e&&"connection"!==e&&"content-length"!==e&&b(e+": "+f[e]+"\n");b("\n"),void 0!==d.body&&(c(a.inspect(d.body)),b("\n"))}},a.appendJsonResponse=function(b,c){return function(b){var d=a.appendRawResponse(c,c),e=b.body;b.body=JSON.parse(b.body),d(b),b.body=e}},a.log=function(b,c){a.output(b,": ",c,"\n")};try{"undefined"!=typeof window&&(a.sprintf=function(a){var b=arguments.length;if(0===b)return"";if(1>=b)return String(a);var c,d=[];for(c=1;c col = db.mycoll; \n > col = db._create("mycoll"); \n \nAdministration Functions: \n name() collection name \n status() status of the collection \n type() type of the collection \n truncate() delete all documents \n properties() show collection properties \n drop() delete a collection \n load() load a collection \n unload() unload a collection \n rename() renames a collection \n getIndexes() return defined indexes \n refresh() refreshes the status and name \n _help() this help \n \nDocument Functions: \n count() return number of documents \n save() create document and return handle \n document() get document by handle (_id or _key)\n replace(, , ) overwrite document \n update(, , , partially update document \n ) \n remove() delete document \n exists() checks whether a document exists \n first() first inserted/updated document \n last() last inserted/updated document \n \nAttributes: \n _database database object \n _id collection identifier ';d.prototype._help=function(){e.print(h)},d.prototype.name=function(){return null===this._name&&this.refresh(),this._name},d.prototype.status=function(){var a;return null===this._status&&this.refresh(),a=this._status,this._status===d.STATUS_UNLOADING&&(this._status=null),a},d.prototype.type=function(){return null===this._type&&this.refresh(),this._type},d.prototype.properties=function(a){var b,c,d={doCompact:!0,journalSize:!0,isSystem:!1,isVolatile:!1,waitForSync:!0,shardKeys:!1,numberOfShards:!1,keyOptions:!1,indexBuckets:!0};if(void 0===a)c=this._database._connection.GET(this._baseurl("properties")),f.checkRequestResult(c);else{var e={};for(b in d)d.hasOwnProperty(b)&&d[b]&&a.hasOwnProperty(b)&&(e[b]=a[b]);c=this._database._connection.PUT(this._baseurl("properties"),JSON.stringify(e)),f.checkRequestResult(c)}var g={};for(b in d)d.hasOwnProperty(b)&&c.hasOwnProperty(b)&&void 0!==c[b]&&(g[b]=c[b]);return g},d.prototype.rotate=function(){var a=this._database._connection.PUT(this._baseurl("rotate"),"");return f.checkRequestResult(a),a.result},d.prototype.figures=function(){var a=this._database._connection.GET(this._baseurl("figures"));return f.checkRequestResult(a),a.figures},d.prototype.checksum=function(a,b){var c="";a&&(c+="?withRevisions=true"),b&&(c+=(""===c?"?":"&")+"withData=true");var d=this._database._connection.GET(this._baseurl("checksum")+c);return f.checkRequestResult(d),{checksum:d.checksum,revision:d.revision}},d.prototype.revision=function(){var a=this._database._connection.GET(this._baseurl("revision"));return f.checkRequestResult(a),a.revision},d.prototype.drop=function(){var a=this._database._connection.DELETE(this._baseurl());null!==a&&a.error===!0&&a.errorNum!==e.errors.ERROR_ARANGO_COLLECTION_NOT_FOUND.code&&f.checkRequestResult(a),this._status=d.STATUS_DELETED;var b,c=this._database;for(b in c)if(c.hasOwnProperty(b)){var g=c[b];if(g instanceof d&&g.name()===this.name()){delete c[b];break}}},d.prototype.truncate=function(){var a=this._database._connection.PUT(this._baseurl("truncate"),"");f.checkRequestResult(a),this._status=null},d.prototype.load=function(a){var b={count:!0};void 0!==a&&(b.count=a);var c=this._database._connection.PUT(this._baseurl("load"),JSON.stringify(b));f.checkRequestResult(c),this._status=null},d.prototype.unload=function(){var a=this._database._connection.PUT(this._baseurl("unload"),"");f.checkRequestResult(a),this._status=null},d.prototype.rename=function(a){var b={name:a},c=this._database._connection.PUT(this._baseurl("rename"),JSON.stringify(b));f.checkRequestResult(c),delete this._database[this._name],this._database[a]=this, -this._status=null,this._name=null},d.prototype.refresh=function(){var a=this._database._connection.GET(this._database._collectionurl(this._id)+"?useId=true");f.checkRequestResult(a),this._name=a.name,this._status=a.status,this._type=a.type},d.prototype.getIndexes=function(a){var b=this._database._connection.GET(this._indexurl()+"&withStats="+(a||!1));return f.checkRequestResult(b),b.indexes},d.prototype.index=function(a){a.hasOwnProperty("id")&&(a=a.id);var b=this._database._connection.GET(this._database._indexurl(a,this.name()));return f.checkRequestResult(b),b},d.prototype.dropIndex=function(a){a.hasOwnProperty("id")&&(a=a.id);var b=this._database._connection.DELETE(this._database._indexurl(a,this.name()));return null!==b&&b.error===!0&&b.errorNum===e.errors.ERROR_ARANGO_INDEX_NOT_FOUND.code?!1:(f.checkRequestResult(b),!0)},d.prototype.ensureCapConstraint=function(a,b){var c={type:"cap",size:a||void 0,byteSize:b||void 0},d=this._database._connection.POST(this._indexurl(),JSON.stringify(c));return f.checkRequestResult(d),d},d.prototype.ensureUniqueSkiplist=function(){var a=c({type:"skiplist",unique:!0},arguments),b=this._database._connection.POST(this._indexurl(),JSON.stringify(a));return f.checkRequestResult(b),b},d.prototype.ensureSkiplist=function(){var a=c({type:"skiplist",unique:!1},arguments),b=this._database._connection.POST(this._indexurl(),JSON.stringify(a));return f.checkRequestResult(b),b},d.prototype.ensureFulltextIndex=function(a,b){var c={type:"fulltext",minLength:b||void 0,fields:[a]},d=this._database._connection.POST(this._indexurl(),JSON.stringify(c));return f.checkRequestResult(d),d},d.prototype.ensureUniqueConstraint=function(){var a=c({type:"hash",unique:!0},arguments),b=this._database._connection.POST(this._indexurl(),JSON.stringify(a));return f.checkRequestResult(b),b},d.prototype.ensureHashIndex=function(){var a=c({type:"hash",unique:!1},arguments),b=this._database._connection.POST(this._indexurl(),JSON.stringify(a));return f.checkRequestResult(b),b},d.prototype.ensureGeoIndex=function(a,b){var c;if("string"!=typeof a)throw"usage: ensureGeoIndex(, ) or ensureGeoIndex([, ])";c="boolean"==typeof b?{type:"geo",fields:[a],geoJson:b}:void 0===b?{type:"geo",fields:[a],geoJson:!1}:{type:"geo",fields:[a,b],geoJson:!1};var d=this._database._connection.POST(this._indexurl(),JSON.stringify(c));return f.checkRequestResult(d),d},d.prototype.ensureGeoConstraint=function(a,b){return this.ensureGeoIndex(a,b)},d.prototype.ensureIndex=function(a){if("object"!=typeof a||Array.isArray(a))throw"usage: ensureIndex()";var b=this._database._connection.POST(this._indexurl(),JSON.stringify(a));return f.checkRequestResult(b),b},d.prototype.count=function(){var a=this._database._connection.GET(this._baseurl("count"));return f.checkRequestResult(a),a.count},d.prototype.document=function(a){var b,c=null;if(a.hasOwnProperty("_id")&&(a.hasOwnProperty("_rev")&&(c=a._rev),a=a._id),b=null===c?this._database._connection.GET(this._documenturl(a)):this._database._connection.GET(this._documenturl(a),{"if-match":JSON.stringify(c)}),null!==b&&b.error===!0&&b.errorNum===e.errors.ERROR_ARANGO_COLLECTION_NOT_FOUND.code)throw new g(b);return f.checkRequestResult(b),b},d.prototype.exists=function(a){var b,c=null;if(void 0===a||null===a)throw new g({errorNum:e.errors.ERROR_ARANGO_DOCUMENT_HANDLE_BAD.code,errorMessage:e.errors.ERROR_ARANGO_DOCUMENT_HANDLE_BAD.message});return a.hasOwnProperty("_id")&&(a.hasOwnProperty("_rev")&&(c=a._rev),a=a._id),b=null===c?this._database._connection.HEAD(this._documenturl(a)):this._database._connection.HEAD(this._documenturl(a),{"if-match":JSON.stringify(c)}),null===b||b.error!==!0||b.errorNum!==e.errors.ERROR_ARANGO_COLLECTION_NOT_FOUND.code&&b.errorNum!==e.errors.ERROR_HTTP_NOT_FOUND.code&&b.errorNum!==e.errors.ERROR_HTTP_PRECONDITION_FAILED.code?(f.checkRequestResult(b),!0):!1},d.prototype.any=function(){var a=this._database._connection.PUT(this._prefixurl("/_api/simple/any"),JSON.stringify({collection:this._name}));return f.checkRequestResult(a),a.document},d.prototype.firstExample=function(a){var b,c;if(1===arguments.length)b=a;else for(b={},c=0;c) get collection by identifier/name \n _create(, ) creates a new collection \n _createEdgeCollection() creates a new edge collection \n _drop() delete a collection \n \nDocument Functions: \n _document() get document by handle (_id) \n _replace(, , ) overwrite document \n _update(, , , partially update document \n ) \n _remove() delete document \n _exists() checks whether a document exists \n _truncate() delete all documents \n \nDatabase Management Functions: \n _createDatabase() creates a new database \n _dropDatabase() drops an existing database \n _useDatabase() switches into an existing database\n _drop() delete a collection \n _name() name of the current database \n \nQuery / Transaction Functions: \n _executeTransaction() execute transaction \n _query() execute AQL query \n _createStatement() create and return AQL query ";c.prototype._help=function(){e.print(i)},c.prototype.toString=function(){return'[object ArangoDatabase "'+this._name()+'"]'},c.prototype._collections=function(){var a=this._connection.GET(this._collectionurl());if(f.checkRequestResult(a),void 0!==a.collections){var b,c=a.collections,d=[];for(b=0;b1&&(a={query:a,bindVars:b,options:c}),require("org/arangodb/aql/explainer").explain(a)},c.prototype._createDatabase=function(a,b,c){var d={name:a,options:b||{},users:c||[]},e=this._connection.POST("/_api/database",JSON.stringify(d));if(null!==e&&e.error===!0)throw new g(e);return f.checkRequestResult(e),e.result},c.prototype._dropDatabase=function(a){var b=this._connection.DELETE("/_api/database/"+encodeURIComponent(a));if(null!==b&&b.error===!0)throw new g(b);return f.checkRequestResult(b),b.result},c.prototype._listDatabases=function(){var a=this._connection.GET("/_api/database");if(null!==a&&a.error===!0)throw new g(a);return f.checkRequestResult(a),a.result},c.prototype._useDatabase=function(a){if(e.printBrowser)throw new g({error:!0,code:e.errors.ERROR_NOT_IMPLEMENTED.code,errorNum:e.errors.ERROR_NOT_IMPLEMENTED.code,errorMessage:"_useDatabase() is not supported in the web interface"});var b=this._connection.getDatabaseName();if(a===b)return!0;this._connection.setDatabaseName(a);try{this._queryProperties(!0),this._flushCache()}catch(c){if(this._connection.setDatabaseName(b),c.hasOwnProperty("errorNum"))throw c;throw new g({error:!0,code:e.errors.ERROR_BAD_PARAMETER.code,errorNum:e.errors.ERROR_BAD_PARAMETER.code,errorMessage:"cannot use database '"+a+"'"})}return!0},c.prototype._listEndpoints=function(){var a=this._connection.GET("/_api/endpoint");if(null!==a&&a.error===!0)throw new g(a);return f.checkRequestResult(a),a},c.prototype._executeTransaction=function(a){if(!a||"object"!=typeof a)throw new g({error:!0,code:e.errors.ERROR_HTTP_BAD_PARAMETER.code,errorNum:e.errors.ERROR_BAD_PARAMETER.code,errorMessage:"usage: _executeTransaction()"});if(!a.collections||"object"!=typeof a.collections)throw new g({error:!0,code:e.errors.ERROR_HTTP_BAD_PARAMETER.code,errorNum:e.errors.ERROR_BAD_PARAMETER.code,errorMessage:"missing/invalid collections definition for transaction"});if(!a.action||"string"!=typeof a.action&&"function"!=typeof a.action)throw new g({error:!0,code:e.errors.ERROR_HTTP_BAD_PARAMETER.code,errorNum:e.errors.ERROR_BAD_PARAMETER.code,errorMessage:"missing/invalid action definition for transaction"});"function"==typeof a.action&&(a.action=String(a.action));var b=this._connection.POST("/_api/transaction",JSON.stringify(a));if(null!==b&&b.error===!0)throw new g(b);return f.checkRequestResult(b),b.result}}),module.define("org/arangodb/arango-query-cursor",function(a,b){function c(a,b){this._database=a,this._dbName=a._name(),this.data=b,this._hasNext=!1,this._hasMore=!1,this._pos=0,this._count=0,this._total=0,void 0!==b.result&&(this._count=b.result.length,this._pos0){if(a)d.print(b);else{var f=d.startCaptureMode();d.print(b),e+="\n\n"+d.stopCaptureMode(f)}this.hasNext()&&(e+="\ntype 'more' to show more documents\n",more=this)}return a||(d.print(e),e=""),e},c.prototype.toArray=function(){for(var a=[];this.hasNext();)a.push(this.next());return a};var f=e.createHelpHeadline("ArangoQueryCursor help")+'ArangoQueryCursor constructor: \n > cursor = stmt.execute() \nFunctions: \n hasNext() returns true if there are \n more results to fetch \n next() returns the next document \n toArray() returns all data from the cursor\n _help() this help \nAttributes: \n _database database object \nExample: \n > stmt = db._createStatement({ "query": "FOR c IN coll RETURN c" })\n > cursor = stmt.execute() \n > documents = cursor.toArray() \n > cursor = stmt.execute() \n > while (cursor.hasNext()) { print(cursor.next()) } ';c.prototype._help=function(){d.print(f)},c.prototype.hasNext=function(){return this._hasNext},c.prototype.next=function(){if(!this._hasNext)throw"No more results";var a=this.data.result[this._pos];if(this._pos++,this._pos===this._count&&(this._hasNext=!1,this._pos=0,this._hasMore&&this.data.id)){this._hasMore=!1;var b=this._database._connection.PUT(this._baseurl(),"");e.checkRequestResult(b),this.data=b,this._count=b.result.length,this._pos stmt = new ArangoStatement(db, { "query": "FOR..." }) \n > stmt = db._createStatement({ "query": "FOR..." }) \nSet query options: \n > stmt.setBatchSize() set the max. number of results \n to be transferred per roundtrip \n > stmt.setCount() set count flag (return number of\n results in "count" attribute) \nGet query options: \n > stmt.setBatchSize() return the max. number of results\n to be transferred per roundtrip \n > stmt.getCount() return count flag (return number\n of results in "count" attribute)\n > stmt.getQuery() return query string \n results in "count" attribute) \nBind parameters to a query: \n > stmt.bind(, ) bind single variable \n > stmt.bind() bind multiple variables \nExecute query: \n > cursor = stmt.execute() returns a cursor \nGet all results in an array: \n > docs = cursor.toArray() \nOr loop over the result set: \n > while (cursor.hasNext()) { print(cursor.next()) } ';e.prototype._help=function(){c.print(g)},e.prototype.parse=function(){var a={query:this._query},b=this._database._connection.POST("/_api/query",JSON.stringify(a));d.checkRequestResult(b);var c={bindVars:b.bindVars,collections:b.collections,ast:b.ast};return c},e.prototype.explain=function(a){var b=this._options||{};"object"==typeof b&&"object"==typeof a&&Object.keys(a).forEach(function(c){b[c]=a[c]});var c={query:this._query,bindVars:this._bindVars,options:b},e=this._database._connection.POST("/_api/explain",JSON.stringify(c));return d.checkRequestResult(e),b&&b.allPlans?{plans:e.plans,warnings:e.warnings,stats:e.stats}:{plan:e.plan,warnings:e.warnings,stats:e.stats}},e.prototype.execute=function(){var a={query:this._query,count:this._doCount,bindVars:this._bindVars};this._batchSize&&(a.batchSize=this._batchSize),this._options&&(a.options=this._options),void 0!==this._cache&&(a.cache=this._cache);var b=this._database._connection.POST("/_api/cursor",JSON.stringify(a));return d.checkRequestResult(b),new f(this._database,b)},a.ArangoStatement=e}),module.define("org/arangodb/arangosh",function(a,b){var c=require("internal");a.getIdString=function(a,b){var c="[object "+b;return a._id?c+=":"+a._id:a.data&&a.data._id&&(c+=":"+a.data._id),c+="]"},a.createHelpHeadline=function(a){var b,c="",d=Math.abs(78-a.length)/2;for(b=0;d>b;++b)c+="-";return"\n"+c+" "+a+" "+c+"\n"};var d=require("org/arangodb"),e=d.ArangoError;a.checkRequestResult=function(a){if(void 0===a)throw new e({error:!0,code:500,errorNum:d.ERROR_INTERNAL,errorMessage:"Unknown error. Request result is empty"});if(a.hasOwnProperty("error")){if(a.error){if(a.errorNum===d.ERROR_TYPE_ERROR)throw new TypeError(a.errorMessage);var b=new e(a);throw b.message=a.message,b}delete a.error}return a},a.HELP=a.createHelpHeadline("Help")+"Predefined objects: \n arango: ArangoConnection \n db: ArangoDatabase \n"+(c.printBrowser?"":" fm: FoxxManager \n")+"Examples: \n > db._collections() list all collections \n > db._query().toArray() execute an AQL query \n > db._explain() explain an AQL query \n > help show help pages \n > exit \nNote: collection names and statuses may be cached in arangosh. \nTo refresh the list of collections and their statuses, issue: \n > db._collections(); \n \n"+(c.printBrowser?"To cancel the current prompt, press CTRL + z. \n \nPlease note that all variables defined with the var keyword will \ndisappear when the command is finished. To introduce variables that\nare persisting until the next command, omit the var keyword. \n\nType 'tutorial' for a tutorial or 'help' to see common examples":"To cancel the current prompt, press CTRL + d. \n"), +code:1205,message:"illegal document handle"},ERROR_ARANGO_MAXIMAL_SIZE_TOO_SMALL:{code:1206,message:"maximal size of journal too small"},ERROR_ARANGO_DUPLICATE_NAME:{code:1207,message:"duplicate name"},ERROR_ARANGO_ILLEGAL_NAME:{code:1208,message:"illegal name"},ERROR_ARANGO_NO_INDEX:{code:1209,message:"no suitable index known"},ERROR_ARANGO_UNIQUE_CONSTRAINT_VIOLATED:{code:1210,message:"unique constraint violated"},ERROR_ARANGO_INDEX_NOT_FOUND:{code:1212,message:"index not found"},ERROR_ARANGO_CROSS_COLLECTION_REQUEST:{code:1213,message:"cross collection request not allowed"},ERROR_ARANGO_INDEX_HANDLE_BAD:{code:1214,message:"illegal index handle"},ERROR_ARANGO_CAP_CONSTRAINT_ALREADY_DEFINED:{code:1215,message:"cap constraint already defined"},ERROR_ARANGO_DOCUMENT_TOO_LARGE:{code:1216,message:"document too large"},ERROR_ARANGO_COLLECTION_NOT_UNLOADED:{code:1217,message:"collection must be unloaded"},ERROR_ARANGO_COLLECTION_TYPE_INVALID:{code:1218,message:"collection type invalid"},ERROR_ARANGO_VALIDATION_FAILED:{code:1219,message:"validator failed"},ERROR_ARANGO_PARSER_FAILED:{code:1220,message:"parsing definition failed"},ERROR_ARANGO_DOCUMENT_KEY_BAD:{code:1221,message:"illegal document key"},ERROR_ARANGO_DOCUMENT_KEY_UNEXPECTED:{code:1222,message:"unexpected document key"},ERROR_ARANGO_DATADIR_NOT_WRITABLE:{code:1224,message:"server database directory not writable"},ERROR_ARANGO_OUT_OF_KEYS:{code:1225,message:"out of keys"},ERROR_ARANGO_DOCUMENT_KEY_MISSING:{code:1226,message:"missing document key"},ERROR_ARANGO_DOCUMENT_TYPE_INVALID:{code:1227,message:"invalid document type"},ERROR_ARANGO_DATABASE_NOT_FOUND:{code:1228,message:"database not found"},ERROR_ARANGO_DATABASE_NAME_INVALID:{code:1229,message:"database name invalid"},ERROR_ARANGO_USE_SYSTEM_DATABASE:{code:1230,message:"operation only allowed in system database"},ERROR_ARANGO_ENDPOINT_NOT_FOUND:{code:1231,message:"endpoint not found"},ERROR_ARANGO_INVALID_KEY_GENERATOR:{code:1232,message:"invalid key generator"},ERROR_ARANGO_INVALID_EDGE_ATTRIBUTE:{code:1233,message:"edge attribute missing"},ERROR_ARANGO_INDEX_DOCUMENT_ATTRIBUTE_MISSING:{code:1234,message:"index insertion warning - attribute missing in document"},ERROR_ARANGO_INDEX_CREATION_FAILED:{code:1235,message:"index creation failed"},ERROR_ARANGO_WRITE_THROTTLE_TIMEOUT:{code:1236,message:"write-throttling timeout"},ERROR_ARANGO_COLLECTION_TYPE_MISMATCH:{code:1237,message:"collection type mismatch"},ERROR_ARANGO_COLLECTION_NOT_LOADED:{code:1238,message:"collection not loaded"},ERROR_ARANGO_DATAFILE_FULL:{code:1300,message:"datafile full"},ERROR_ARANGO_EMPTY_DATADIR:{code:1301,message:"server database directory is empty"},ERROR_REPLICATION_NO_RESPONSE:{code:1400,message:"no response"},ERROR_REPLICATION_INVALID_RESPONSE:{code:1401,message:"invalid response"},ERROR_REPLICATION_MASTER_ERROR:{code:1402,message:"master error"},ERROR_REPLICATION_MASTER_INCOMPATIBLE:{code:1403,message:"master incompatible"},ERROR_REPLICATION_MASTER_CHANGE:{code:1404,message:"master change"},ERROR_REPLICATION_LOOP:{code:1405,message:"loop detected"},ERROR_REPLICATION_UNEXPECTED_MARKER:{code:1406,message:"unexpected marker"},ERROR_REPLICATION_INVALID_APPLIER_STATE:{code:1407,message:"invalid applier state"},ERROR_REPLICATION_UNEXPECTED_TRANSACTION:{code:1408,message:"invalid transaction"},ERROR_REPLICATION_INVALID_APPLIER_CONFIGURATION:{code:1410,message:"invalid replication applier configuration"},ERROR_REPLICATION_RUNNING:{code:1411,message:"cannot perform operation while applier is running"},ERROR_REPLICATION_APPLIER_STOPPED:{code:1412,message:"replication stopped"},ERROR_REPLICATION_NO_START_TICK:{code:1413,message:"no start tick"},ERROR_REPLICATION_START_TICK_NOT_PRESENT:{code:1414,message:"start tick not present"},ERROR_CLUSTER_NO_AGENCY:{code:1450,message:"could not connect to agency"},ERROR_CLUSTER_NO_COORDINATOR_HEADER:{code:1451,message:"missing coordinator header"},ERROR_CLUSTER_COULD_NOT_LOCK_PLAN:{code:1452,message:"could not lock plan in agency"},ERROR_CLUSTER_COLLECTION_ID_EXISTS:{code:1453,message:"collection ID already exists"},ERROR_CLUSTER_COULD_NOT_CREATE_COLLECTION_IN_PLAN:{code:1454,message:"could not create collection in plan"},ERROR_CLUSTER_COULD_NOT_READ_CURRENT_VERSION:{code:1455,message:"could not read version in current in agency"},ERROR_CLUSTER_COULD_NOT_CREATE_COLLECTION:{code:1456,message:"could not create collection"},ERROR_CLUSTER_TIMEOUT:{code:1457,message:"timeout in cluster operation"},ERROR_CLUSTER_COULD_NOT_REMOVE_COLLECTION_IN_PLAN:{code:1458,message:"could not remove collection from plan"},ERROR_CLUSTER_COULD_NOT_REMOVE_COLLECTION_IN_CURRENT:{code:1459,message:"could not remove collection from current"},ERROR_CLUSTER_COULD_NOT_CREATE_DATABASE_IN_PLAN:{code:1460,message:"could not create database in plan"},ERROR_CLUSTER_COULD_NOT_CREATE_DATABASE:{code:1461,message:"could not create database"},ERROR_CLUSTER_COULD_NOT_REMOVE_DATABASE_IN_PLAN:{code:1462,message:"could not remove database from plan"},ERROR_CLUSTER_COULD_NOT_REMOVE_DATABASE_IN_CURRENT:{code:1463,message:"could not remove database from current"},ERROR_CLUSTER_SHARD_GONE:{code:1464,message:"no responsible shard found"},ERROR_CLUSTER_CONNECTION_LOST:{code:1465,message:"cluster internal HTTP connection broken"},ERROR_CLUSTER_MUST_NOT_SPECIFY_KEY:{code:1466,message:"must not specify _key for this collection"},ERROR_CLUSTER_GOT_CONTRADICTING_ANSWERS:{code:1467,message:"got contradicting answers from different shards"},ERROR_CLUSTER_NOT_ALL_SHARDING_ATTRIBUTES_GIVEN:{code:1468,message:"not all sharding attributes given"},ERROR_CLUSTER_MUST_NOT_CHANGE_SHARDING_ATTRIBUTES:{code:1469,message:"must not change the value of a shard key attribute"},ERROR_CLUSTER_UNSUPPORTED:{code:1470,message:"unsupported operation or parameter"},ERROR_CLUSTER_ONLY_ON_COORDINATOR:{code:1471,message:"this operation is only valid on a coordinator in a cluster"},ERROR_CLUSTER_READING_PLAN_AGENCY:{code:1472,message:"error reading Plan in agency"},ERROR_CLUSTER_COULD_NOT_TRUNCATE_COLLECTION:{code:1473,message:"could not truncate collection"},ERROR_CLUSTER_AQL_COMMUNICATION:{code:1474,message:"error in cluster internal communication for AQL"},ERROR_ARANGO_DOCUMENT_NOT_FOUND_OR_SHARDING_ATTRIBUTES_CHANGED:{code:1475,message:"document not found or sharding attributes changed"},ERROR_CLUSTER_COULD_NOT_DETERMINE_ID:{code:1476,message:"could not determine my ID from my local info"},ERROR_QUERY_KILLED:{code:1500,message:"query killed"},ERROR_QUERY_PARSE:{code:1501,message:"%s"},ERROR_QUERY_EMPTY:{code:1502,message:"query is empty"},ERROR_QUERY_SCRIPT:{code:1503,message:"runtime error '%s'"},ERROR_QUERY_NUMBER_OUT_OF_RANGE:{code:1504,message:"number out of range"},ERROR_QUERY_VARIABLE_NAME_INVALID:{code:1510,message:"variable name '%s' has an invalid format"},ERROR_QUERY_VARIABLE_REDECLARED:{code:1511,message:"variable '%s' is assigned multiple times"},ERROR_QUERY_VARIABLE_NAME_UNKNOWN:{code:1512,message:"unknown variable '%s'"},ERROR_QUERY_COLLECTION_LOCK_FAILED:{code:1521,message:"unable to read-lock collection %s"},ERROR_QUERY_TOO_MANY_COLLECTIONS:{code:1522,message:"too many collections"},ERROR_QUERY_DOCUMENT_ATTRIBUTE_REDECLARED:{code:1530,message:"document attribute '%s' is assigned multiple times"},ERROR_QUERY_FUNCTION_NAME_UNKNOWN:{code:1540,message:"usage of unknown function '%s()'"},ERROR_QUERY_FUNCTION_ARGUMENT_NUMBER_MISMATCH:{code:1541,message:"invalid number of arguments for function '%s()', expected number of arguments: minimum: %d, maximum: %d"},ERROR_QUERY_FUNCTION_ARGUMENT_TYPE_MISMATCH:{code:1542,message:"invalid argument type in call to function '%s()'"},ERROR_QUERY_INVALID_REGEX:{code:1543,message:"invalid regex value"},ERROR_QUERY_BIND_PARAMETERS_INVALID:{code:1550,message:"invalid structure of bind parameters"},ERROR_QUERY_BIND_PARAMETER_MISSING:{code:1551,message:"no value specified for declared bind parameter '%s'"},ERROR_QUERY_BIND_PARAMETER_UNDECLARED:{code:1552,message:"bind parameter '%s' was not declared in the query"},ERROR_QUERY_BIND_PARAMETER_TYPE:{code:1553,message:"bind parameter '%s' has an invalid value or type"},ERROR_QUERY_INVALID_LOGICAL_VALUE:{code:1560,message:"invalid logical value"},ERROR_QUERY_INVALID_ARITHMETIC_VALUE:{code:1561,message:"invalid arithmetic value"},ERROR_QUERY_DIVISION_BY_ZERO:{code:1562,message:"division by zero"},ERROR_QUERY_ARRAY_EXPECTED:{code:1563,message:"array expected"},ERROR_QUERY_FAIL_CALLED:{code:1569,message:"FAIL(%s) called"},ERROR_QUERY_GEO_INDEX_MISSING:{code:1570,message:"no suitable geo index found for geo restriction on '%s'"},ERROR_QUERY_FULLTEXT_INDEX_MISSING:{code:1571,message:"no suitable fulltext index found for fulltext query on '%s'"},ERROR_QUERY_INVALID_DATE_VALUE:{code:1572,message:"invalid date value"},ERROR_QUERY_MULTI_MODIFY:{code:1573,message:"multi-modify query"},ERROR_QUERY_INVALID_AGGREGATE_EXPRESSION:{code:1574,message:"invalid aggregate expression"},ERROR_QUERY_COMPILE_TIME_OPTIONS:{code:1575,message:"query options must be readable at query compile time"},ERROR_QUERY_EXCEPTION_OPTIONS:{code:1576,message:"query options expected"},ERROR_QUERY_COLLECTION_USED_IN_EXPRESSION:{code:1577,message:"collection '%s' used as expression operand"},ERROR_QUERY_DISALLOWED_DYNAMIC_CALL:{code:1578,message:"disallowed dynamic call to '%s'"},ERROR_QUERY_ACCESS_AFTER_MODIFICATION:{code:1579,message:"access after data-modification"},ERROR_QUERY_FUNCTION_INVALID_NAME:{code:1580,message:"invalid user function name"},ERROR_QUERY_FUNCTION_INVALID_CODE:{code:1581,message:"invalid user function code"},ERROR_QUERY_FUNCTION_NOT_FOUND:{code:1582,message:"user function '%s()' not found"},ERROR_QUERY_FUNCTION_RUNTIME_ERROR:{code:1583,message:"user function runtime error: %s"},ERROR_QUERY_BAD_JSON_PLAN:{code:1590,message:"bad execution plan JSON"},ERROR_QUERY_NOT_FOUND:{code:1591,message:"query ID not found"},ERROR_QUERY_IN_USE:{code:1592,message:"query with this ID is in use"},ERROR_CURSOR_NOT_FOUND:{code:1600,message:"cursor not found"},ERROR_CURSOR_BUSY:{code:1601,message:"cursor is busy"},ERROR_TRANSACTION_INTERNAL:{code:1650,message:"internal transaction error"},ERROR_TRANSACTION_NESTED:{code:1651,message:"nested transactions detected"},ERROR_TRANSACTION_UNREGISTERED_COLLECTION:{code:1652,message:"unregistered collection used in transaction"},ERROR_TRANSACTION_DISALLOWED_OPERATION:{code:1653,message:"disallowed operation inside transaction"},ERROR_TRANSACTION_ABORTED:{code:1654,message:"transaction aborted"},ERROR_USER_INVALID_NAME:{code:1700,message:"invalid user name"},ERROR_USER_INVALID_PASSWORD:{code:1701,message:"invalid password"},ERROR_USER_DUPLICATE:{code:1702,message:"duplicate user"},ERROR_USER_NOT_FOUND:{code:1703,message:"user not found"},ERROR_USER_CHANGE_PASSWORD:{code:1704,message:"user must change his password"},ERROR_APPLICATION_INVALID_NAME:{code:1750,message:"invalid application name"},ERROR_APPLICATION_INVALID_MOUNT:{code:1751,message:"invalid mount"},ERROR_APPLICATION_DOWNLOAD_FAILED:{code:1752,message:"application download failed"},ERROR_APPLICATION_UPLOAD_FAILED:{code:1753,message:"application upload failed"},ERROR_KEYVALUE_INVALID_KEY:{code:1800,message:"invalid key declaration"},ERROR_KEYVALUE_KEY_EXISTS:{code:1801,message:"key already exists"},ERROR_KEYVALUE_KEY_NOT_FOUND:{code:1802,message:"key not found"},ERROR_KEYVALUE_KEY_NOT_UNIQUE:{code:1803,message:"key is not unique"},ERROR_KEYVALUE_KEY_NOT_CHANGED:{code:1804,message:"key value not changed"},ERROR_KEYVALUE_KEY_NOT_REMOVED:{code:1805,message:"key value not removed"},ERROR_KEYVALUE_NO_VALUE:{code:1806,message:"missing value"},ERROR_TASK_INVALID_ID:{code:1850,message:"invalid task id"},ERROR_TASK_DUPLICATE_ID:{code:1851,message:"duplicate task id"},ERROR_TASK_NOT_FOUND:{code:1852,message:"task not found"},ERROR_GRAPH_INVALID_GRAPH:{code:1901,message:"invalid graph"},ERROR_GRAPH_COULD_NOT_CREATE_GRAPH:{code:1902,message:"could not create graph"},ERROR_GRAPH_INVALID_VERTEX:{code:1903,message:"invalid vertex"},ERROR_GRAPH_COULD_NOT_CREATE_VERTEX:{code:1904,message:"could not create vertex"},ERROR_GRAPH_COULD_NOT_CHANGE_VERTEX:{code:1905,message:"could not change vertex"},ERROR_GRAPH_INVALID_EDGE:{code:1906,message:"invalid edge"},ERROR_GRAPH_COULD_NOT_CREATE_EDGE:{code:1907,message:"could not create edge"},ERROR_GRAPH_COULD_NOT_CHANGE_EDGE:{code:1908,message:"could not change edge"},ERROR_GRAPH_TOO_MANY_ITERATIONS:{code:1909,message:"too many iterations - try increasing the value of 'maxIterations'"},ERROR_GRAPH_INVALID_FILTER_RESULT:{code:1910,message:"invalid filter result"},ERROR_GRAPH_COLLECTION_MULTI_USE:{code:1920,message:"multi use of edge collection in edge def"},ERROR_GRAPH_COLLECTION_USE_IN_MULTI_GRAPHS:{code:1921,message:"edge collection already used in edge def"},ERROR_GRAPH_CREATE_MISSING_NAME:{code:1922,message:"missing graph name"},ERROR_GRAPH_CREATE_MALFORMED_EDGE_DEFINITION:{code:1923,message:"malformed edge definition"},ERROR_GRAPH_NOT_FOUND:{code:1924,message:"graph not found"},ERROR_GRAPH_DUPLICATE:{code:1925,message:"graph already exists"},ERROR_GRAPH_VERTEX_COL_DOES_NOT_EXIST:{code:1926,message:"vertex collection does not exist or is not part of the graph"},ERROR_GRAPH_WRONG_COLLECTION_TYPE_VERTEX:{code:1927,message:"not a vertex collection"},ERROR_GRAPH_NOT_IN_ORPHAN_COLLECTION:{code:1928,message:"not in orphan collection"},ERROR_GRAPH_COLLECTION_USED_IN_EDGE_DEF:{code:1929,message:"collection already used in edge def"},ERROR_GRAPH_EDGE_COLLECTION_NOT_USED:{code:1930,message:"edge collection not used in graph"},ERROR_GRAPH_NOT_AN_ARANGO_COLLECTION:{code:1931,message:" is not an ArangoCollection"},ERROR_GRAPH_NO_GRAPH_COLLECTION:{code:1932,message:"collection _graphs does not exist"},ERROR_GRAPH_INVALID_EXAMPLE_ARRAY_OBJECT_STRING:{code:1933,message:"Invalid example type. Has to be String, Array or Object"},ERROR_GRAPH_INVALID_EXAMPLE_ARRAY_OBJECT:{code:1934,message:"Invalid example type. Has to be Array or Object"},ERROR_GRAPH_INVALID_NUMBER_OF_ARGUMENTS:{code:1935,message:"Invalid number of arguments. Expected: "},ERROR_GRAPH_INVALID_PARAMETER:{code:1936,message:"Invalid parameter type."},ERROR_GRAPH_INVALID_ID:{code:1937,message:"Invalid id"},ERROR_GRAPH_COLLECTION_USED_IN_ORPHANS:{code:1938,message:"collection used in orphans"},ERROR_GRAPH_EDGE_COL_DOES_NOT_EXIST:{code:1939,message:"edge collection does not exist or is not part of the graph"},ERROR_GRAPH_EMPTY:{code:1940,message:"empty graph"},ERROR_SESSION_UNKNOWN:{code:1950,message:"unknown session"},ERROR_SESSION_EXPIRED:{code:1951,message:"session expired"},SIMPLE_CLIENT_UNKNOWN_ERROR:{code:2e3,message:"unknown client error"},SIMPLE_CLIENT_COULD_NOT_CONNECT:{code:2001,message:"could not connect to server"},SIMPLE_CLIENT_COULD_NOT_WRITE:{code:2002,message:"could not write to server"},SIMPLE_CLIENT_COULD_NOT_READ:{code:2003,message:"could not read from server"},ERROR_MALFORMED_MANIFEST_FILE:{code:3e3,message:"malformed manifest file"},ERROR_INVALID_APPLICATION_MANIFEST:{code:3001,message:"manifest file is invalid"},ERROR_MANIFEST_FILE_ATTRIBUTE_MISSING:{code:3002,message:"missing manifest attribute"},ERROR_CANNOT_EXTRACT_APPLICATION_ROOT:{code:3003,message:"unable to extract app root path"},ERROR_INVALID_FOXX_OPTIONS:{code:3004,message:"invalid foxx options"},ERROR_FAILED_TO_EXECUTE_SCRIPT:{code:3005,message:"failed to execute script"},ERROR_SYNTAX_ERROR_IN_SCRIPT:{code:3006,message:"syntax error in script"},ERROR_INVALID_MOUNTPOINT:{code:3007,message:"mountpoint is invalid"},ERROR_NO_FOXX_FOUND:{code:3008,message:"No foxx found at this location"},ERROR_APP_NOT_FOUND:{code:3009,message:"App not found"},ERROR_APP_NEEDS_CONFIGURATION:{code:3010,message:"App not configured"},ERROR_MODULE_NOT_FOUND:{code:3100,message:"cannot locate module"},ERROR_MODULE_SYNTAX_ERROR:{code:3101,message:"syntax error in module"},ERROR_MODULE_BAD_WRAPPER:{code:3102,message:"failed to wrap module"},ERROR_MODULE_FAILURE:{code:3103,message:"failed to invoke module"},ERROR_MODULE_UNKNOWN_FILE_TYPE:{code:3110,message:"unknown file type"},ERROR_MODULE_PATH_MUST_BE_ABSOLUTE:{code:3111,message:"path must be absolute"},ERROR_MODULE_CAN_NOT_ESCAPE:{code:3112,message:"cannot use '..' to escape top-level-directory"},ERROR_MODULE_DRIVE_LETTER:{code:3113,message:"drive local path is not supported"},ERROR_MODULE_BAD_MODULE_ORIGIN:{code:3120,message:"corrupted module origin"},ERROR_MODULE_BAD_PACKAGE_ORIGIN:{code:3121,message:"corrupted package origin"},ERROR_MODULE_DOCUMENT_IS_EMPTY:{code:3125,message:"no content"},ERROR_MODULE_MAIN_NOT_READABLE:{code:3130,message:"cannot read main file"},ERROR_MODULE_MAIN_NOT_JS:{code:3131,message:"main file is not of type 'js'"},RESULT_ELEMENT_EXISTS:{code:1e4,message:"element not inserted into structure, because it already exists"},RESULT_ELEMENT_NOT_FOUND:{code:10001,message:"element not found in structure"},ERROR_APP_ALREADY_EXISTS:{code:2e4,message:"newest version of app already installed"},ERROR_QUEUE_ALREADY_EXISTS:{code:21e3,message:"named queue already exists"},ERROR_DISPATCHER_IS_STOPPING:{code:21001,message:"dispatcher stopped"},ERROR_QUEUE_UNKNOWN:{code:21002,message:"named queue does not exist"},ERROR_QUEUE_FULL:{code:21003,message:"named queue is full"}}}(),global.DEFINE_MODULE("console",function(){"use strict";function a(a,b){j(a,h+b)}function b(a){var b=require("internal").ShapedJson,c=[];a.length>0&&"string"!=typeof a[0]&&c.push("%s");for(var d=0;d curl ","POST"===e?(i=a.arango.POST_RAW(f,g,h),j+="-X "+e+" "):"PUT"===e?(i=a.arango.PUT_RAW(f,g,h),j+="-X "+e+" "):"GET"===e?i=a.arango.GET_RAW(f,h):"DELETE"===e?(i=a.arango.DELETE_RAW(f,h),j+="-X "+e+" "):"PATCH"===e?(i=a.arango.PATCH_RAW(f,g,h),j+="-X "+e+" "):"HEAD"===e?(i=a.arango.HEAD_RAW(f,h),j+="-X "+e+" "):"OPTION"===e&&(i=a.arango.OPTION_RAW(f,g,h),j+="-X "+e+" "),void 0!==h&&""!==h)for(k in h)h.hasOwnProperty(k)&&(j+="--header '"+k+": "+h[k]+"' ");return void 0!==g&&""!==g&&(j+="--data-binary @- "),j+="--dump - http://localhost:8529"+f,b(j),void 0!==g&&""!==g&&g&&(d(" <<EOF\n"),l?c(g):d(g),d("\nEOF")),d("\n\n"),i}},a.appendRawResponse=function(b,c){return function(d){var e,f=d.headers;b("HTTP/1.1 "+f["http/1.1"]+"\n");for(e in f)f.hasOwnProperty(e)&&"http/1.1"!==e&&"server"!==e&&"connection"!==e&&"content-length"!==e&&b(e+": "+f[e]+"\n");b("\n"),void 0!==d.body&&(c(a.inspect(d.body)),b("\n"))}},a.appendJsonResponse=function(b,c){return function(b){var d=a.appendRawResponse(c,c),e=b.body;b.body=JSON.parse(b.body),d(b),b.body=e}},a.log=function(b,c){a.output(b,": ",c,"\n")};try{"undefined"!=typeof window&&(a.sprintf=function(a){var b=arguments.length;if(0===b)return"";if(1>=b)return String(a);var c,d=[];for(c=1;c col = db.mycoll; \n > col = db._create("mycoll"); \n \nAdministration Functions: \n name() collection name \n status() status of the collection \n type() type of the collection \n truncate() delete all documents \n properties() show collection properties \n drop() delete a collection \n load() load a collection \n unload() unload a collection \n rename() renames a collection \n getIndexes() return defined indexes \n refresh() refreshes the status and name \n _help() this help \n \nDocument Functions: \n count() return number of documents \n save() create document and return handle \n document() get document by handle (_id or _key)\n replace(, , ) overwrite document \n update(, , , partially update document \n ) \n remove() delete document \n exists() checks whether a document exists \n first() first inserted/updated document \n last() last inserted/updated document \n \nAttributes: \n _database database object \n _id collection identifier ';d.prototype._help=function(){e.print(h)},d.prototype.name=function(){return null===this._name&&this.refresh(),this._name},d.prototype.status=function(){var a;return null===this._status&&this.refresh(),a=this._status,this._status===d.STATUS_UNLOADING&&(this._status=null),a},d.prototype.type=function(){return null===this._type&&this.refresh(),this._type},d.prototype.properties=function(a){var b,c,d={doCompact:!0,journalSize:!0,isSystem:!1,isVolatile:!1,waitForSync:!0,shardKeys:!1,numberOfShards:!1,keyOptions:!1,indexBuckets:!0};if(void 0===a)c=this._database._connection.GET(this._baseurl("properties")),f.checkRequestResult(c);else{var e={};for(b in d)d.hasOwnProperty(b)&&d[b]&&a.hasOwnProperty(b)&&(e[b]=a[b]);c=this._database._connection.PUT(this._baseurl("properties"),JSON.stringify(e)),f.checkRequestResult(c)}var g={};for(b in d)d.hasOwnProperty(b)&&c.hasOwnProperty(b)&&void 0!==c[b]&&(g[b]=c[b]);return g},d.prototype.rotate=function(){var a=this._database._connection.PUT(this._baseurl("rotate"),"");return f.checkRequestResult(a),a.result},d.prototype.figures=function(){var a=this._database._connection.GET(this._baseurl("figures"));return f.checkRequestResult(a),a.figures},d.prototype.checksum=function(a,b){var c="";a&&(c+="?withRevisions=true"),b&&(c+=(""===c?"?":"&")+"withData=true");var d=this._database._connection.GET(this._baseurl("checksum")+c);return f.checkRequestResult(d),{checksum:d.checksum,revision:d.revision}},d.prototype.revision=function(){var a=this._database._connection.GET(this._baseurl("revision"));return f.checkRequestResult(a),a.revision},d.prototype.drop=function(){var a=this._database._connection.DELETE(this._baseurl());null!==a&&a.error===!0&&a.errorNum!==e.errors.ERROR_ARANGO_COLLECTION_NOT_FOUND.code&&f.checkRequestResult(a),this._status=d.STATUS_DELETED;var b,c=this._database;for(b in c)if(c.hasOwnProperty(b)){var g=c[b];if(g instanceof d&&g.name()===this.name()){delete c[b];break}}},d.prototype.truncate=function(){var a=this._database._connection.PUT(this._baseurl("truncate"),"");f.checkRequestResult(a),this._status=null},d.prototype.load=function(a){var b={count:!0};void 0!==a&&(b.count=a);var c=this._database._connection.PUT(this._baseurl("load"),JSON.stringify(b));f.checkRequestResult(c),this._status=null},d.prototype.unload=function(){var a=this._database._connection.PUT(this._baseurl("unload"),"");f.checkRequestResult(a),this._status=null},d.prototype.rename=function(a){var b={name:a},c=this._database._connection.PUT(this._baseurl("rename"),JSON.stringify(b));f.checkRequestResult(c),delete this._database[this._name], +this._database[a]=this,this._status=null,this._name=null},d.prototype.refresh=function(){var a=this._database._connection.GET(this._database._collectionurl(this._id)+"?useId=true");f.checkRequestResult(a),this._name=a.name,this._status=a.status,this._type=a.type},d.prototype.getIndexes=function(a){var b=this._database._connection.GET(this._indexurl()+"&withStats="+(a||!1));return f.checkRequestResult(b),b.indexes},d.prototype.index=function(a){a.hasOwnProperty("id")&&(a=a.id);var b=this._database._connection.GET(this._database._indexurl(a,this.name()));return f.checkRequestResult(b),b},d.prototype.dropIndex=function(a){a.hasOwnProperty("id")&&(a=a.id);var b=this._database._connection.DELETE(this._database._indexurl(a,this.name()));return null!==b&&b.error===!0&&b.errorNum===e.errors.ERROR_ARANGO_INDEX_NOT_FOUND.code?!1:(f.checkRequestResult(b),!0)},d.prototype.ensureCapConstraint=function(a,b){var c={type:"cap",size:a||void 0,byteSize:b||void 0},d=this._database._connection.POST(this._indexurl(),JSON.stringify(c));return f.checkRequestResult(d),d},d.prototype.ensureUniqueSkiplist=function(){var a=c({type:"skiplist",unique:!0},arguments),b=this._database._connection.POST(this._indexurl(),JSON.stringify(a));return f.checkRequestResult(b),b},d.prototype.ensureSkiplist=function(){var a=c({type:"skiplist",unique:!1},arguments),b=this._database._connection.POST(this._indexurl(),JSON.stringify(a));return f.checkRequestResult(b),b},d.prototype.ensureFulltextIndex=function(a,b){var c={type:"fulltext",minLength:b||void 0,fields:[a]},d=this._database._connection.POST(this._indexurl(),JSON.stringify(c));return f.checkRequestResult(d),d},d.prototype.ensureUniqueConstraint=function(){var a=c({type:"hash",unique:!0},arguments),b=this._database._connection.POST(this._indexurl(),JSON.stringify(a));return f.checkRequestResult(b),b},d.prototype.ensureHashIndex=function(){var a=c({type:"hash",unique:!1},arguments),b=this._database._connection.POST(this._indexurl(),JSON.stringify(a));return f.checkRequestResult(b),b},d.prototype.ensureGeoIndex=function(a,b){var c;if("string"!=typeof a)throw"usage: ensureGeoIndex(, ) or ensureGeoIndex([, ])";c="boolean"==typeof b?{type:"geo",fields:[a],geoJson:b}:void 0===b?{type:"geo",fields:[a],geoJson:!1}:{type:"geo",fields:[a,b],geoJson:!1};var d=this._database._connection.POST(this._indexurl(),JSON.stringify(c));return f.checkRequestResult(d),d},d.prototype.ensureGeoConstraint=function(a,b){return this.ensureGeoIndex(a,b)},d.prototype.ensureIndex=function(a){if("object"!=typeof a||Array.isArray(a))throw"usage: ensureIndex()";var b=this._database._connection.POST(this._indexurl(),JSON.stringify(a));return f.checkRequestResult(b),b},d.prototype.count=function(){var a=this._database._connection.GET(this._baseurl("count"));return f.checkRequestResult(a),a.count},d.prototype.document=function(a){var b,c=null;if(a.hasOwnProperty("_id")&&(a.hasOwnProperty("_rev")&&(c=a._rev),a=a._id),b=null===c?this._database._connection.GET(this._documenturl(a)):this._database._connection.GET(this._documenturl(a),{"if-match":JSON.stringify(c)}),null!==b&&b.error===!0&&b.errorNum===e.errors.ERROR_ARANGO_COLLECTION_NOT_FOUND.code)throw new g(b);return f.checkRequestResult(b),b},d.prototype.exists=function(a){var b,c=null;if(void 0===a||null===a)throw new g({errorNum:e.errors.ERROR_ARANGO_DOCUMENT_HANDLE_BAD.code,errorMessage:e.errors.ERROR_ARANGO_DOCUMENT_HANDLE_BAD.message});return a.hasOwnProperty("_id")&&(a.hasOwnProperty("_rev")&&(c=a._rev),a=a._id),b=null===c?this._database._connection.HEAD(this._documenturl(a)):this._database._connection.HEAD(this._documenturl(a),{"if-match":JSON.stringify(c)}),null===b||b.error!==!0||b.errorNum!==e.errors.ERROR_ARANGO_COLLECTION_NOT_FOUND.code&&b.errorNum!==e.errors.ERROR_HTTP_NOT_FOUND.code&&b.errorNum!==e.errors.ERROR_HTTP_PRECONDITION_FAILED.code?(f.checkRequestResult(b),!0):!1},d.prototype.any=function(){var a=this._database._connection.PUT(this._prefixurl("/_api/simple/any"),JSON.stringify({collection:this._name}));return f.checkRequestResult(a),a.document},d.prototype.firstExample=function(a){var b,c;if(1===arguments.length)b=a;else for(b={},c=0;c) get collection by identifier/name \n _create(, ) creates a new collection \n _createEdgeCollection() creates a new edge collection \n _drop() delete a collection \n \nDocument Functions: \n _document() get document by handle (_id) \n _replace(, , ) overwrite document \n _update(, , , partially update document \n ) \n _remove() delete document \n _exists() checks whether a document exists \n _truncate() delete all documents \n \nDatabase Management Functions: \n _createDatabase() creates a new database \n _dropDatabase() drops an existing database \n _useDatabase() switches into an existing database\n _drop() delete a collection \n _name() name of the current database \n \nQuery / Transaction Functions: \n _executeTransaction() execute transaction \n _query() execute AQL query \n _createStatement() create and return AQL query ";c.prototype._help=function(){e.print(i)},c.prototype.toString=function(){return'[object ArangoDatabase "'+this._name()+'"]'},c.prototype._collections=function(){var a=this._connection.GET(this._collectionurl());if(f.checkRequestResult(a),void 0!==a.collections){var b,c=a.collections,d=[];for(b=0;b1&&(a={query:a,bindVars:b,options:c}),require("org/arangodb/aql/explainer").explain(a)},c.prototype._createDatabase=function(a,b,c){var d={name:a,options:b||{},users:c||[]},e=this._connection.POST("/_api/database",JSON.stringify(d));if(null!==e&&e.error===!0)throw new g(e);return f.checkRequestResult(e),e.result},c.prototype._dropDatabase=function(a){var b=this._connection.DELETE("/_api/database/"+encodeURIComponent(a));if(null!==b&&b.error===!0)throw new g(b);return f.checkRequestResult(b),b.result},c.prototype._listDatabases=function(){var a=this._connection.GET("/_api/database");if(null!==a&&a.error===!0)throw new g(a);return f.checkRequestResult(a),a.result},c.prototype._useDatabase=function(a){if(e.printBrowser)throw new g({error:!0,code:e.errors.ERROR_NOT_IMPLEMENTED.code,errorNum:e.errors.ERROR_NOT_IMPLEMENTED.code,errorMessage:"_useDatabase() is not supported in the web interface"});var b=this._connection.getDatabaseName();if(a===b)return!0;this._connection.setDatabaseName(a);try{this._queryProperties(!0),this._flushCache()}catch(c){if(this._connection.setDatabaseName(b),c.hasOwnProperty("errorNum"))throw c;throw new g({error:!0,code:e.errors.ERROR_BAD_PARAMETER.code,errorNum:e.errors.ERROR_BAD_PARAMETER.code,errorMessage:"cannot use database '"+a+"'"})}return!0},c.prototype._listEndpoints=function(){var a=this._connection.GET("/_api/endpoint");if(null!==a&&a.error===!0)throw new g(a);return f.checkRequestResult(a),a},c.prototype._executeTransaction=function(a){if(!a||"object"!=typeof a)throw new g({error:!0,code:e.errors.ERROR_HTTP_BAD_PARAMETER.code,errorNum:e.errors.ERROR_BAD_PARAMETER.code,errorMessage:"usage: _executeTransaction()"});if(!a.collections||"object"!=typeof a.collections)throw new g({error:!0,code:e.errors.ERROR_HTTP_BAD_PARAMETER.code,errorNum:e.errors.ERROR_BAD_PARAMETER.code,errorMessage:"missing/invalid collections definition for transaction"});if(!a.action||"string"!=typeof a.action&&"function"!=typeof a.action)throw new g({error:!0,code:e.errors.ERROR_HTTP_BAD_PARAMETER.code,errorNum:e.errors.ERROR_BAD_PARAMETER.code,errorMessage:"missing/invalid action definition for transaction"});"function"==typeof a.action&&(a.action=String(a.action));var b=this._connection.POST("/_api/transaction",JSON.stringify(a));if(null!==b&&b.error===!0)throw new g(b);return f.checkRequestResult(b),b.result}}),module.define("org/arangodb/arango-query-cursor",function(a,b){function c(a,b){this._database=a,this._dbName=a._name(),this.data=b,this._hasNext=!1,this._hasMore=!1,this._pos=0,this._count=0,this._total=0,void 0!==b.result&&(this._count=b.result.length,this._pos0){if(a)d.print(b);else{var f=d.startCaptureMode();d.print(b),e+="\n\n"+d.stopCaptureMode(f)}this.hasNext()&&(e+="\ntype 'more' to show more documents\n",more=this)}return a||(d.print(e),e=""),e},c.prototype.toArray=function(){for(var a=[];this.hasNext();)a.push(this.next());return a};var f=e.createHelpHeadline("ArangoQueryCursor help")+'ArangoQueryCursor constructor: \n > cursor = stmt.execute() \nFunctions: \n hasNext() returns true if there are \n more results to fetch \n next() returns the next document \n toArray() returns all data from the cursor\n _help() this help \nAttributes: \n _database database object \nExample: \n > stmt = db._createStatement({ "query": "FOR c IN coll RETURN c" })\n > cursor = stmt.execute() \n > documents = cursor.toArray() \n > cursor = stmt.execute() \n > while (cursor.hasNext()) { print(cursor.next()) } ';c.prototype._help=function(){d.print(f)},c.prototype.hasNext=function(){return this._hasNext},c.prototype.next=function(){if(!this._hasNext)throw"No more results";var a=this.data.result[this._pos];if(this._pos++,this._pos===this._count&&(this._hasNext=!1,this._pos=0,this._hasMore&&this.data.id)){this._hasMore=!1;var b=this._database._connection.PUT(this._baseurl(),"");e.checkRequestResult(b),this.data=b,this._count=b.result.length,this._pos stmt = new ArangoStatement(db, { "query": "FOR..." }) \n > stmt = db._createStatement({ "query": "FOR..." }) \nSet query options: \n > stmt.setBatchSize() set the max. number of results \n to be transferred per roundtrip \n > stmt.setCount() set count flag (return number of\n results in "count" attribute) \nGet query options: \n > stmt.setBatchSize() return the max. number of results\n to be transferred per roundtrip \n > stmt.getCount() return count flag (return number\n of results in "count" attribute)\n > stmt.getQuery() return query string \n results in "count" attribute) \nBind parameters to a query: \n > stmt.bind(, ) bind single variable \n > stmt.bind() bind multiple variables \nExecute query: \n > cursor = stmt.execute() returns a cursor \nGet all results in an array: \n > docs = cursor.toArray() \nOr loop over the result set: \n > while (cursor.hasNext()) { print(cursor.next()) } ';e.prototype._help=function(){c.print(g)},e.prototype.parse=function(){var a={query:this._query},b=this._database._connection.POST("/_api/query",JSON.stringify(a));d.checkRequestResult(b);var c={bindVars:b.bindVars,collections:b.collections,ast:b.ast};return c},e.prototype.explain=function(a){var b=this._options||{};"object"==typeof b&&"object"==typeof a&&Object.keys(a).forEach(function(c){b[c]=a[c]});var c={query:this._query,bindVars:this._bindVars,options:b},e=this._database._connection.POST("/_api/explain",JSON.stringify(c));return d.checkRequestResult(e),b&&b.allPlans?{plans:e.plans,warnings:e.warnings,stats:e.stats}:{plan:e.plan,warnings:e.warnings,stats:e.stats}},e.prototype.execute=function(){var a={query:this._query,count:this._doCount,bindVars:this._bindVars};this._batchSize&&(a.batchSize=this._batchSize),this._options&&(a.options=this._options),void 0!==this._cache&&(a.cache=this._cache);var b=this._database._connection.POST("/_api/cursor",JSON.stringify(a));return d.checkRequestResult(b),new f(this._database,b)},a.ArangoStatement=e}),module.define("org/arangodb/arangosh",function(a,b){var c=require("internal");a.getIdString=function(a,b){var c="[object "+b;return a._id?c+=":"+a._id:a.data&&a.data._id&&(c+=":"+a.data._id),c+="]"},a.createHelpHeadline=function(a){var b,c="",d=Math.abs(78-a.length)/2;for(b=0;d>b;++b)c+="-";return"\n"+c+" "+a+" "+c+"\n"};var d=require("org/arangodb"),e=d.ArangoError;a.checkRequestResult=function(a){if(void 0===a)throw new e({error:!0,code:500,errorNum:d.ERROR_INTERNAL,errorMessage:"Unknown error. Request result is empty"});if(a.hasOwnProperty("error")){if(a.error){if(a.errorNum===d.ERROR_TYPE_ERROR)throw new TypeError(a.errorMessage);var b=new e(a);throw b.message=a.message,b}delete a.error}return a},a.HELP=a.createHelpHeadline("Help")+"Predefined objects: \n arango: ArangoConnection \n db: ArangoDatabase \n"+(c.printBrowser?"":" fm: FoxxManager \n")+"Examples: \n > db._collections() list all collections \n > db._query().toArray() execute an AQL query \n > db._explain() explain an AQL query \n > help show help pages \n > exit \nNote: collection names and statuses may be cached in arangosh. \nTo refresh the list of collections and their statuses, issue: \n > db._collections(); \n \n"+(c.printBrowser?"To cancel the current prompt, press CTRL + z. \n \nPlease note that all variables defined with the var keyword will \ndisappear when the command is finished. To introduce variables that\nare persisting until the next command, omit the var keyword. \n\nType 'tutorial' for a tutorial or 'help' to see common examples":"To cancel the current prompt, press CTRL + d. \n"), a.helpExtended=a.createHelpHeadline("More help")+"Pager: \n > stop_pager() stop the pager output \n > start_pager() start the pager \nPretty printing: \n > stop_pretty_print() stop pretty printing \n > start_pretty_print() start pretty printing \nColor output: \n > stop_color_print() stop color printing \n > start_color_print() start color printing \nPrint function: \n > print(x) std. print function \n > print_plain(x) print without prettifying \n and without colors \n > clear() clear screen "}),module.define("org/arangodb/graph-blueprint",function(a,b){var c=require("org/arangodb"),d=require("org/arangodb/is"),e=require("org/arangodb/graph-common"),f=e.Edge,g=e.Graph,h=e.Vertex,i=e.GraphArray,j=e.Iterator,k=require("org/arangodb/api/graph").GraphAPI;f.prototype.setProperty=function(a,b){var c,d=this._properties;return d[a]=b,this._graph.emptyCachedPredecessors(),c=k.putEdge(this._graph._properties._key,this._properties._key,d),this._properties=c.edge,a},h.prototype.edges=function(a,b){var c,d,e=new i;for(d=k.postEdges(this._graph._vertices._database,this._graph._properties._key,this,{filter:{direction:a,labels:b}});d.hasNext();)c=new f(this._graph,d.next()),e.push(c);return e},h.prototype.getInEdges=function(){var a=Array.prototype.slice.call(arguments);return this.edges("in",a)},h.prototype.getOutEdges=function(){var a=Array.prototype.slice.call(arguments);return this.edges("out",a)},h.prototype.getEdges=function(){var a=Array.prototype.slice.call(arguments);return this.edges("any",a)},h.prototype.inbound=function(){return this.getInEdges()},h.prototype.outbound=function(){return this.getOutEdges()},h.prototype.setProperty=function(a,b){var c,d=this._properties;return d[a]=b,c=k.putVertex(this._graph._properties._key,this._properties._key,d),this._properties=c.vertex,a},g.prototype.initialize=function(a,b,e){var f;return d.notExisty(b)&&d.notExisty(e)?f=k.getGraph(a):("object"==typeof b&&"function"==typeof b.name&&(b=b.name()),"object"==typeof e&&"function"==typeof e.name&&(e=e.name()),f=k.postGraph({_key:a,vertices:b,edges:e})),this._properties=f.graph,this._vertices=c.db._collection(this._properties.edgeDefinitions[0].from[0]),this._edges=c.db._collection(this._properties.edgeDefinitions[0].collection),this._verticesCache={},this._edgesCache={},this.predecessors={},this.distances={},this},g.getAll=function(){return k.getAllGraphs()},g.drop=function(a){k.deleteGraph(a)},g.prototype.drop=function(){k.deleteGraph(this._properties._key)},g.prototype._saveEdge=function(a,b,c,d){var e;return this.emptyCachedPredecessors(),d._key=a,d._from=b,d._to=c,e=k.postEdge(this._properties._key,d),new f(this,e.edge)},g.prototype._saveVertex=function(a,b){var c;return d.existy(a)&&(b._key=a),c=k.postVertex(this._properties._key,b),new h(this,c.vertex)},g.prototype._replaceVertex=function(a,b){k.putVertex(this._properties._key,a,b)},g.prototype._replaceEdge=function(a,b){k.putEdge(this._properties._key,a,b)},g.prototype.getVertex=function(a){var b=k.getVertex(this._properties._key,a);return d.notExisty(b)?null:new h(this,b.vertex)},g.prototype.getVertices=function(){var a=k.getVertices(this._vertices._database,this._properties._key,{}),b=this,c=function(a){return new h(b,a)};return new j(c,a,"[vertex iterator]")},g.prototype.getEdge=function(a){var b=k.getEdge(this._properties._key,a);return d.notExisty(b)?null:new f(this,b.edge)},g.prototype.getEdges=function(){var a=k.getEdges(this._vertices._database,this._properties._key,{}),b=this,c=function(a){return new f(b,a)};return new j(c,a,"[edge iterator]")},g.prototype.removeVertex=function(a){this.emptyCachedPredecessors(),k.deleteVertex(this._properties._key,a._properties._key),a._properties=void 0},g.prototype.removeEdge=function(a){this.emptyCachedPredecessors(),k.deleteEdge(this._properties._key,a._properties._key),this._edgesCache[a._properties._id]=void 0,a._properties=void 0},a.Edge=f,a.Graph=g,a.Vertex=h,a.GraphArray=i,require("org/arangodb/graph/algorithms-common")}),module.define("org/arangodb/replication",function(a,b){"use strict";var c=require("internal"),d=require("org/arangodb/arangosh"),e={},f={};e.state=function(){var a=c.db,b=a._connection.GET("/_api/replication/logger-state");return d.checkRequestResult(b),b},e.tickRanges=function(){var a=c.db,b=a._connection.GET("/_api/replication/logger-tick-ranges");return d.checkRequestResult(b),b},e.firstTick=function(){var a=c.db,b=a._connection.GET("/_api/replication/logger-first-tick");return d.checkRequestResult(b),b.firstTick},f.start=function(a,b){var e=c.db,f="";void 0!==a&&(f="?from="+encodeURIComponent(a)),void 0!==b&&(f+=""===f?"?":"&",f+="barrierId="+encodeURIComponent(b));var g=e._connection.PUT("/_api/replication/applier-start"+f,"");return d.checkRequestResult(g),g},f.stop=f.shutdown=function(){var a=c.db,b=a._connection.PUT("/_api/replication/applier-stop","");return d.checkRequestResult(b),b},f.state=function(){var a=c.db,b=a._connection.GET("/_api/replication/applier-state");return d.checkRequestResult(b),b},f.forget=function(){var a=c.db,b=a._connection.DELETE("/_api/replication/applier-state");return d.checkRequestResult(b),b},f.properties=function(a){var b,e=c.db;return b=void 0===a?e._connection.GET("/_api/replication/applier-config"):e._connection.PUT("/_api/replication/applier-config",JSON.stringify(a)),d.checkRequestResult(b),b};var g=function(a,b){var e=c.db;a.hasOwnProperty("progress")||(a.progress=!0),c.sleep(1);for(var g=0;;){var h=e._connection.PUT("/_api/job/"+encodeURIComponent(b),"");if(d.checkRequestResult(h),204!==h.code)return h;if(++g,6>g?c.sleep(2):c.sleep(3),a.progress&&g%3===0)try{var i=f.state().state.progress,j=i.time+": "+i.message;c.print("still sychronizing... last received status: "+j)}catch(k){}}},h=function(a){var b=c.db,e=JSON.stringify(a||{}),f={"X-Arango-Async":"store"},h=b._connection.PUT_RAW("/_api/replication/sync",e,f);return d.checkRequestResult(h),a.async?h.headers["x-arango-async-id"]:g(a,h.headers["x-arango-async-id"])},i=function(a,b){return b=b||{},b.restrictType="include",b.restrictCollections=[a],b.includeSystem=!0,h(b)},j=function(a){a=a||{},a.hasOwnProperty("autoStart")||(a.autoStart=!0),a.hasOwnProperty("includeSystem")||(a.includeSystem=!0),a.hasOwnProperty("verbose")||(a.verbose=!1);var b=c.db,e=JSON.stringify(a),f={"X-Arango-Async":"store"},h=b._connection.PUT_RAW("/_api/replication/make-slave",e,f);return d.checkRequestResult(h),a.async?h.headers["x-arango-async-id"]:g(a,h.headers["x-arango-async-id"])},k=function(a){var b=c.db,e=b._connection.PUT_RAW("/_api/job/"+encodeURIComponent(a),"");return d.checkRequestResult(e),e.headers.hasOwnProperty("x-arango-async-id")?JSON.parse(e.body):!1},l=function(){var a=c.db,b=a._connection.GET("/_api/replication/server-id");return d.checkRequestResult(b),b.serverId};a.logger=e,a.applier=f,a.sync=h,a.syncCollection=i,a.setupReplication=j,a.getSyncResult=k,a.serverId=l}),module.define("org/arangodb/simple-query",function(a,b){var c=require("org/arangodb/arangosh"),d=require("org/arangodb/arango-query-cursor").ArangoQueryCursor,e=require("org/arangodb/simple-query-common"),f=e.GeneralArrayCursor,g=e.SimpleQueryAll,h=e.SimpleQueryArray,i=e.SimpleQueryByExample,j=e.SimpleQueryByCondition,k=e.SimpleQueryFulltext,l=e.SimpleQueryGeo,m=e.SimpleQueryNear,n=e.SimpleQueryRange,o=e.SimpleQueryWithin,p=e.SimpleQueryWithinRectangle;g.prototype.execute=function(a){if(null===this._execution){void 0!==a&&a>0&&(this._batchSize=a);var b={collection:this._collection.name()};null!==this._limit&&(b.limit=this._limit),null!==this._skip&&(b.skip=this._skip),null!==this._batchSize&&(b.batchSize=this._batchSize);var e=this._collection._database._connection.PUT("/_api/simple/all",JSON.stringify(b));c.checkRequestResult(e),this._execution=new d(this._collection._database,e),e.hasOwnProperty("count")&&(this._countQuery=e.count)}},i.prototype.execute=function(a){if(null===this._execution){void 0!==a&&a>0&&(this._batchSize=a);var b={collection:this._collection.name(),example:this._example};null!==this._limit&&(b.limit=this._limit),null!==this._skip&&(b.skip=this._skip),null!==this._batchSize&&(b.batchSize=this._batchSize);var e="by-example";if(this.hasOwnProperty("_type"))switch(b.index=this._index,this._type){case"hash":e="by-example-hash";break;case"skiplist":e="by-example-skiplist"}var f=this._collection._database._connection.PUT("/_api/simple/"+e,JSON.stringify(b));c.checkRequestResult(f),this._execution=new d(this._collection._database,f),f.hasOwnProperty("count")&&(this._countQuery=f.count,this._countTotal=f.count)}},j.prototype.execute=function(a){if(null===this._execution){void 0!==a&&a>0&&(this._batchSize=a);var b={collection:this._collection.name(),condition:this._condition};null!==this._limit&&(b.limit=this._limit),null!==this._skip&&(b.skip=this._skip),null!==this._batchSize&&(b.batchSize=this._batchSize);var e="by-condition";if(this.hasOwnProperty("_type"))switch(b.index=this._index,this._type){case"skiplist":e="by-condition-skiplist"}var f=this._collection._database._connection.PUT("/_api/simple/"+e,JSON.stringify(b));c.checkRequestResult(f),this._execution=new d(this._collection._database,f),f.hasOwnProperty("count")&&(this._countQuery=f.count,this._countTotal=f.count)}},n.prototype.execute=function(a){if(null===this._execution){void 0!==a&&a>0&&(this._batchSize=a);var b={collection:this._collection.name(),attribute:this._attribute,right:this._right,left:this._left,closed:1===this._type};null!==this._limit&&(b.limit=this._limit),null!==this._skip&&(b.skip=this._skip),null!==this._batchSize&&(b.batchSize=this._batchSize);var e=this._collection._database._connection.PUT("/_api/simple/range",JSON.stringify(b));c.checkRequestResult(e),this._execution=new d(this._collection._database,e),e.hasOwnProperty("count")&&(this._countQuery=e.count)}},m.prototype.execute=function(a){if(null===this._execution){void 0!==a&&a>0&&(this._batchSize=a);var b={collection:this._collection.name(),latitude:this._latitude,longitude:this._longitude};null!==this._limit&&(b.limit=this._limit),null!==this._skip&&(b.skip=this._skip),null!==this._index&&(b.geo=this._index),null!==this._distance&&(b.distance=this._distance),null!==this._batchSize&&(b.batchSize=this._batchSize);var e=this._collection._database._connection.PUT("/_api/simple/near",JSON.stringify(b));c.checkRequestResult(e),this._execution=new d(this._collection._database,e),e.hasOwnProperty("count")&&(this._countQuery=e.count)}},o.prototype.execute=function(a){if(null===this._execution){void 0!==a&&a>0&&(this._batchSize=a);var b={collection:this._collection.name(),latitude:this._latitude,longitude:this._longitude,radius:this._radius};null!==this._limit&&(b.limit=this._limit),null!==this._skip&&(b.skip=this._skip),null!==this._index&&(b.geo=this._index),null!==this._distance&&(b.distance=this._distance),null!==this._batchSize&&(b.batchSize=this._batchSize);var e=this._collection._database._connection.PUT("/_api/simple/within",JSON.stringify(b));c.checkRequestResult(e),this._execution=new d(this._collection._database,e),e.hasOwnProperty("count")&&(this._countQuery=e.count)}},p.prototype.execute=function(a){if(null===this._execution){void 0!==a&&a>0&&(this._batchSize=a);var b={collection:this._collection.name(),latitude1:this._latitude1,longitude1:this._longitude1,latitude2:this._latitude2,longitude2:this._longitude2};null!==this._limit&&(b.limit=this._limit),null!==this._skip&&(b.skip=this._skip),null!==this._index&&(b.geo=this._index),null!==this._distance&&(b.distance=this._distance),null!==this._batchSize&&(b.batchSize=this._batchSize);var e=this._collection._database._connection.PUT("/_api/simple/within-rectangle",JSON.stringify(b));c.checkRequestResult(e),this._execution=new d(this._collection._database,e),e.hasOwnProperty("count")&&(this._countQuery=e.count)}},k.prototype.execute=function(a){if(null===this._execution){void 0!==a&&a>0&&(this._batchSize=a);var b={collection:this._collection.name(),attribute:this._attribute,query:this._query};null!==this._limit&&(b.limit=this._limit),null!==this._index&&(b.index=this._index),null!==this._skip&&(b.skip=this._skip),null!==this._batchSize&&(b.batchSize=this._batchSize);var e=this._collection._database._connection.PUT("/_api/simple/fulltext",JSON.stringify(b));c.checkRequestResult(e),this._execution=new d(this._collection._database,e),e.hasOwnProperty("count")&&(this._countQuery=e.count)}},a.GeneralArrayCursor=f,a.SimpleQueryAll=g,a.SimpleQueryArray=h,a.SimpleQueryByExample=i,a.SimpleQueryByCondition=j,a.SimpleQueryFulltext=k,a.SimpleQueryGeo=l,a.SimpleQueryNear=m,a.SimpleQueryRange=n,a.SimpleQueryWithin=o,a.SimpleQueryWithinRectangle=p}),module.define("org/arangodb/tutorial",function(a,b){var c=0,d="Type 'tutorial' again to get to the next chapter.",e=[{title:"Welcome to the tutorial!",text:"This is a user-interactive tutorial on ArangoDB and the ArangoDB shell.\nIt will give you a first look into ArangoDB and how it works."},{title:"JavaScript Shell",text:"On this shell's prompt, you can issue arbitrary JavaScript commands.\nSo you are able to do things like...:\n\n number = 123;\n number = number * 10;"},{title:"Running Complex Instructions",text:"You can also run more complex instructions, such as for loops:\n\n for (i = 0; i < 10; i++) { number = number + 1; }"},{title:"Printing Results",text:'As you can see, the result of the last command executed is printed automatically. To explicitly print a value at any other time, there is the print function:\n\n for (i = 0; i < 5; ++i) { print("I am a JavaScript shell"); }'},{title:"Creating Collections",text:"ArangoDB is a document database. This means that we store data as documents (which are similar to JavaScript objects) in so-called 'collections'. Let's create a collection named 'places' now:\n\n db._create('places');\n\nNote: each collection is identified by a unique name. Trying to create a collection that already exists will produce an error."},{title:"Displaying Collections",text:"Now you can take a look at the collection(s) you just created:\n\n db._collections();\n\nPlease note that all collections will be returned, including ArangoDB's pre-defined system collections."},{title:"Creating Documents",text:'Now we have a collection, but it is empty. So let\'s create some documents!\n\n db.places.save({ _key : "foo", city : "foo-city" });\n for (i = 0; i <= 10; i++) { db.places.save({ _key: "example" + i, zipcode: i }) };'},{title:"Displaying All Documents",text:"You want to take a look at your docs? No problem:\n\n db.places.toArray();"},{title:"Counting Documents",text:"To see how many documents there are in a collection, use the 'count' method:\n\n db.places.count();"},{title:"Retrieving Single Documents",text:"As you can see, each document has some meta attributes '_id', '_key' and '_rev'.\nThe '_key' attribute can be used to quickly retrieve a single document from a collection:\n\n db.places.document(\"foo\");\n db.places.document(\"example5\");"},{title:"Retrieving Single Documents",text:"The '_id' attribute can also be used to retrieve documents using the 'db' object:\n\n db._document(\"places/foo\");\n db._document(\"places/example5\");"},{title:"Modifying Documents",text:'You can modify existing documents. Try to add a new attribute to a document and verify whether it has been added:\n\n db._update("places/foo", { zipcode: 39535 });\n db._document("places/foo");'},{title:"Document Revisions",text:"Note that after updating the document, its '_rev' attribute changed automatically.\nThe '_rev' attribute contains a document revision number, and it can be used for conditional modifications. Here's an example of how to avoid lost updates in case multiple clients are accessing the documents in parallel:\n\n doc = db._document(\"places/example1\");\n db._update(\"places/example1\", { someValue: 23 });\n db._update(doc, { someValue: 42 });\n\nNote that the first update will succeed because it was unconditional. The second update however is conditional because we're also passing the document's revision id in the first parameter to _update. As the revision id we're passing to update does not match the document's current revision anymore, the update is rejected."},{title:"Removing Documents",text:'Deleting single documents can be achieved by providing the document _id or _key:\n\n db._remove("places/example7");\n db.places.remove("example8");\n db.places.count();'},{title:"Searching Documents",text:'Searching for documents with specific attributes can be done by using the byExample method:\n\n db._create("users");\n for (i = 0; i < 10; ++i) { db.users.save({ name: "username" + i, active: (i % 3 == 0), age: 30 + i }); }\n db.users.byExample({ active: false }).toArray();\n db.users.byExample({ name: "username3", active: true }).toArray();\n'},{title:"Running AQL Queries",text:'ArangoDB also provides a query language for more complex matching:\n\n db._query("FOR u IN users FILTER u.active == true && u.age >= 33 RETURN { username: u.name, age: u.age }").toArray();'},{title:"Using Databases",text:"By default, the ArangoShell connects to the default database. The default database is named '_system'. To create another database, use the '_createDatabase' method of the 'db' object. To switch into an existing database, use '_useDatabase'. To get rid of a database and all of its collections, use '_dropDatabase':\n\n db._createDatabase(\"mydb\");\n db._useDatabase(\"mydb\");\n db._dropDatabase(\"mydb\");"}];a._PRINT=function(a){function b(a){return a.replace(/\n {2}(.+?)(?=\n)/g,"\n "+f.COLOR_MAGENTA+"$1"+f.COLOR_RESET)}var f=require("internal").COLORS,g=f.COLOR_BOLD_BLUE+(c+1)+". "+e[c].title+f.COLOR_RESET;a.output+="\n\n"+g+"\n\n"+b(e[c].text+"\n")+"\n",++c,c>=e.length?(a.output+="Congratulations! You finished the tutorial.\n",c=0):a.output+=d+"\n"}}),module.define("org/arangodb-common",function(a,b){"use strict";var c=require("internal"),d=require("fs"),e=require("org/arangodb/mimetypes").mimeTypes;Object.keys(c.errors).forEach(function(b){a[b]=c.errors[b].code}),a.errors=c.errors,a.ArangoError=c.ArangoError,a.defineModule=function(a,e){var f,g,h;f=d.read(e),h=c.db._collection("_modules"),null===h&&(h=c.db._create("_modules",{isSystem:!0})),a=b.normalize(a),g=h.firstExample({path:a}),null===g?h.save({path:a,content:f}):h.replace(g,{path:a,content:f})},a.guessContentType=function(a,b){var c=/\.([a-zA-Z0-9]+)$/,d=c.exec(a);if(null!==d){var f=d[1];if(e.hasOwnProperty(f)){var g=e[f];return g[1]?g[0]+"; charset=utf-8":g[0]}}return b?b:"text/plain; charset=utf-8"},a.normalizeURL=function(a){var b,c,d,e,f,g;if(""===a)return"./";for(d=a.split("/"),"."===d[0]||".."===d[0]?(f=d[0]+"/",d.shift(),e=d):""===d[0]?(f="/",d.shift(),e=d):(f="./",e=d),c=[],b=0;b0&&(l=d[h]>=k.length?d[h]:k.length);var m=h;e.hasOwnProperty("rename")&&e.rename.hasOwnProperty(h)&&(m=e.rename[h]),f.push({id:h,fixedLength:l,length:l||m.length}),g[0][j++]=m}b.forEach(function(a,b){g[b+1]=[],f.forEach(function(c){if(a.hasOwnProperty(c.id)){var d;d=e.prettyStrings&&"string"==typeof a[c.id]?a[c.id]:JSON.stringify(a[c.id])||"",g[b+1].push(d),d.length>c.length&&!c.fixedLength&&(c.length=Math.min(d.length,100))}else g[b+1].push("")})});var n=function(){var b=[];return f.forEach(function(c){b.push(a.stringPadding("",c.length,"-","r"))}),e.framed?"+-"+b.join("-+-")+"-+\n":b.join(" ")+"\n"},o=function(){var d="";return e.framed&&(d+=n()),g.forEach(function(b,c){var g=[];b.forEach(function(c,d){var e=f[d].length,h=b[d];h.length>e&&(h=h.substr(0,e-k.length)+k),g.push(a.stringPadding(h,e," ","r"))}),d+=e.framed?"| "+g.join(" | ")+" |\n":g.join(" ")+"\n",0===c&&(d+=n())}),d+=n(),e.hideTotal||(d+=c.sprintf(e.totalString,String(b.length))),d};Array.isArray(b)&&(0===b.length?a.print(e.emptyString||"no document(s)"):a.print(o()))},a.stringPadding=function(a,b,c,d){function e(a,b){var c,d="";for(c=0;a>c;++c)d+=b;return d}if("undefined"==typeof b&&(b=0),"undefined"==typeof c&&(c=" "),b+1>=a.length)switch(d||"r"){case"l":a=e(b+1-a.length,c)+a;break;case"b":var f=b-a.length,g=Math.ceil(f/2),h=f-g;a=e(h+1,c)+a+e(g+1,c);break;default:a+=e(b+1-a.length,c)}return a},a.throwDownloadError=function(b){throw new a.ArangoError({errorNum:a.errors.ERROR_APPLICATION_DOWNLOAD_FAILED.code,errorMessage:a.errors.ERROR_APPLICATION_DOWNLOAD_FAILED.message+": "+String(b)})},a.throwFileNotFound=function(b){throw new a.ArangoError({errorNum:a.errors.ERROR_FILE_NOT_FOUND.code,errorMessage:a.errors.ERROR_FILE_NOT_FOUND.message+": "+String(b)})},a.throwBadParameter=function(b){throw new a.ArangoError({errorNum:a.errors.ERROR_BAD_PARAMETER.code,errorMessage:a.errors.ERROR_BAD_PARAMETER.message+": "+String(b)})},a.checkParameter=function(b,c,d){var e;for(e=0;e1024?B.COLOR_GREEN+a.substr(0,1024)+"..."+B.COLOR_RESET:B.COLOR_GREEN+a+B.COLOR_RESET}function h(a){"use strict";return"#"===a[0]?B.COLOR_MAGENTA+a+B.COLOR_RESET:B.COLOR_YELLOW+a+B.COLOR_RESET}function i(a){"use strict";return B.COLOR_GREEN+a+B.COLOR_RESET}function j(a){"use strict";return B.COLOR_RED+a+B.COLOR_RESET}function k(a){"use strict";return"`"+B.COLOR_YELLOW+a+B.COLOR_RESET+"`"}function l(a){"use strict";return B.COLOR_MAGENTA+a+B.COLOR_RESET}function m(a){"use strict";return B.COLOR_BOLD_BLUE+a+B.COLOR_RESET}function n(a){"use strict";return 0>a&&(a=0),new Array(a).join(" ")}function o(a,b){"use strict";var c=".{1,"+b+"}(\\s|$)|\\S+?(\\s|$)";return a.match(new RegExp(c,"g")).join("\n")}function p(a){"use strict";C.appendLine(m("Query string:")),C.appendLine(" "+g(o(a,100).replace(/\n+/g,"\n ",a))),C.appendLine()}function q(a){"use strict";if(void 0!==a){C.appendLine(m("Write query options:"));var b=Object.keys(a),c="Option".length;b.forEach(function(a){a.length>c&&(c=a.length)}),C.appendLine(" "+l("Option")+n(1+c-"Option".length)+" "+l("Value")),b.forEach(function(b){C.appendLine(" "+e(b)+n(1+c-b.length)+" "+g(JSON.stringify(a[b])))}),C.appendLine()}}function r(a){"use strict";if(C.appendLine(m("Optimization rules applied:")),0===a.length)C.appendLine(" "+g("none"));else{var b=String("Id").length;C.appendLine(" "+n(1+b-String("Id").length)+l("Id")+" "+l("RuleName"));for(var c=0;cb&&(b=e),e=a.type.length,e>o&&(o=e),e=a.fields.map(d).join(", ").length+"[ ]".length,e>q&&(q=e),e=a.collection.length,e>c&&(c=e)});var r=" "+n(1+b-String("By").length)+l("By")+" "+l("Type")+n(1+o-"Type".length)+" "+l("Collection")+n(1+c-"Collection".length)+" "+l("Unique")+n(1+f-"Unique".length)+" "+l("Sparse")+n(1+i-"Sparse".length)+" "+l("Selectivity")+" "+l("Fields")+n(1+q-"Fields".length)+" "+l("Ranges");C.appendLine(r);for(var s=0;sb&&(b=g),a.minMaxDepthLen>c&&(c=a.minMaxDepthLen),a.hasOwnProperty("ConditionStr")&&a.ConditionStr.length>f&&(f=a.ConditionStr.length),a.hasOwnProperty("vertexCollectionNameStr")&&a.vertexCollectionNameStrLen>d&&(d=a.vertexCollectionNameStrLen),a.hasOwnProperty("edgeCollectionNameStr")&&a.edgeCollectionNameStrLen>e&&(e=a.edgeCollectionNameStrLen)});var g=" "+n(1+b-String("Id").length)+l("Id")+" "+l("Depth")+n(1+c-String("Depth").length)+" "+l("Vertex collections")+n(1+d-"Vertex collections".length)+" "+l("Edge collections")+n(1+e-"Edge collections".length)+" "+l("Filter conditions");C.appendLine(g);for(var h=0;hx&&(x=String(a.id).length),String(a.type).length>v&&(v=String(a.type).length),String(a.site).length>w&&(w=String(a.site).length),String(a.estimatedNrItems).length>y&&(y=String(a.estimatedNrItems).length)});for(var e=a.length,f="COOR";e>0;){--e;var g=a[e];g.site=f,"RemoteNode"===g.type&&(f="COOR"===f?"DBS":"COOR")}};D(z.nodes,0);var E,F={},G={},H={},I=[],J=[],K=!0,L=function(a){try{if(/^[0-9_]/.test(a.name))return h("#"+a.name)}catch(b){throw A(a),b}return G.hasOwnProperty(a.id)&&(H[a.name]=G[a.id]),h(a.name)},M=function ca(a){var b=!0;a:for(;b;){var c=a;switch(b=!1,K=K&&-1!==["value","object","object element","array"].indexOf(c.type),c.type){case"reference":if(F.hasOwnProperty(c.name)){var d=F[c.name];if(delete F[c.name],Array.isArray(d)){var h=ca(d[1])+"["+new Array(d[0]+1).join("*");return"no-op"!==d[2].type&&(h+=" "+e("FILTER")+" "+ca(d[2])),"no-op"!==d[3].type&&(h+=" "+e("LIMIT ")+" "+ca(d[3])),"no-op"!==d[4].type&&(h+=" "+e("RETURN ")+" "+ca(d[4])),h+="]"}return ca(d)+"[*]"}return L(c);case"collection":return j(c.name)+" "+f("/* all collection documents */");case"value":return g(JSON.stringify(c.value));case"object":return c.hasOwnProperty("subNodes")?c.subNodes.length>20?"{ "+c.subNodes.slice(0,20).map(ca).join(", ")+", ... }":"{ "+c.subNodes.map(ca).join(", ")+" }":"{ }";case"object element":return g(JSON.stringify(c.name))+" : "+ca(c.subNodes[0]);case"calculated object element":return"[ "+ca(c.subNodes[0])+" ] : "+ca(c.subNodes[1]);case"array":return c.hasOwnProperty("subNodes")?c.subNodes.length>20?"[ "+c.subNodes.slice(0,20).map(ca).join(", ")+", ... ]":"[ "+c.subNodes.map(ca).join(", ")+" ]":"[ ]";case"unary not":return"! "+ca(c.subNodes[0]);case"unary plus":return"+ "+ca(c.subNodes[0]);case"unary minus":return"- "+ca(c.subNodes[0]);case"array limit":return ca(c.subNodes[0])+", "+ca(c.subNodes[1]);case"attribute access":return ca(c.subNodes[0])+"."+k(c.name);case"indexed access":return ca(c.subNodes[0])+"["+ca(c.subNodes[1])+"]";case"range":return ca(c.subNodes[0])+" .. "+ca(c.subNodes[1])+" "+f("/* range */");case"expand":case"expansion":c.subNodes.length>2?F[c.subNodes[0].subNodes[0].name]=[c.levels,c.subNodes[0].subNodes[1],c.subNodes[2],c.subNodes[3],c.subNodes[4]]:F[c.subNodes[0].subNodes[0].name]=c.subNodes[0].subNodes[1],a=c.subNodes[1],b=!0,d=h=void 0;continue a;case"user function call":return i(c.name)+"("+(c.subNodes&&c.subNodes[0].subNodes||[]).map(ca).join(", ")+") "+f("/* user-defined function */");case"function call":return i(c.name)+"("+(c.subNodes&&c.subNodes[0].subNodes||[]).map(ca).join(", ")+")";case"plus":return"("+ca(c.subNodes[0])+" + "+ca(c.subNodes[1])+")";case"minus":return"("+ca(c.subNodes[0])+" - "+ca(c.subNodes[1])+")";case"times":return"("+ca(c.subNodes[0])+" * "+ca(c.subNodes[1])+")";case"division":return"("+ca(c.subNodes[0])+" / "+ca(c.subNodes[1])+")";case"modulus":return"("+ca(c.subNodes[0])+" % "+ca(c.subNodes[1])+")";case"compare not in":return c.sorted?"("+ca(c.subNodes[0])+" not in "+f("/* sorted */")+" "+ca(c.subNodes[1])+")":"("+ca(c.subNodes[0])+" not in "+ca(c.subNodes[1])+")";case"compare in":return c.sorted?"("+ca(c.subNodes[0])+" in "+f("/* sorted */")+" "+ca(c.subNodes[1])+")":"("+ca(c.subNodes[0])+" in "+ca(c.subNodes[1])+")";case"compare ==":return"("+ca(c.subNodes[0])+" == "+ca(c.subNodes[1])+")";case"compare !=":return"("+ca(c.subNodes[0])+" != "+ca(c.subNodes[1])+")"; case"compare >":return"("+ca(c.subNodes[0])+" > "+ca(c.subNodes[1])+")";case"compare >=":return"("+ca(c.subNodes[0])+" >= "+ca(c.subNodes[1])+")";case"compare <":return"("+ca(c.subNodes[0])+" < "+ca(c.subNodes[1])+")";case"compare <=":return"("+ca(c.subNodes[0])+" <= "+ca(c.subNodes[1])+")";case"logical or":return"("+ca(c.subNodes[0])+" || "+ca(c.subNodes[1])+")";case"logical and":return"("+ca(c.subNodes[0])+" && "+ca(c.subNodes[1])+")";case"ternary":return"("+ca(c.subNodes[0])+" ? "+ca(c.subNodes[1])+" : "+ca(c.subNodes[2])+")";case"n-ary or":return c.hasOwnProperty("subNodes")?"("+c.subNodes.map(function(a){return ca(a)}).join(" || ")+")":"";case"n-ary and":return c.hasOwnProperty("subNodes")?"("+c.subNodes.map(function(a){return ca(a)}).join(" && ")+")":"";default:return"unhandled node type ("+c.type+")"}}},N=function(a){var b="";for(var c in a)if(a.hasOwnProperty(c)){b.length>0&&(b+=" AND ");for(var d=0;d ",b+=M(e.varAccess),b+=" "+e.comparisonTypeStr+" ",b+=M(e.compareTo)}}return b},O=function(a,b,c){var d=c.isConstant?g(JSON.stringify(c.bound)):M(c.bound);return k(a)+" "+b[c.include?1:0]+" "+d},P=function(a){var b=[];return a.forEach(function(a){var c=a.attr;a.lowConst.hasOwnProperty("bound")&&a.highConst.hasOwnProperty("bound")&&JSON.stringify(a.lowConst.bound)===JSON.stringify(a.highConst.bound)&&(a.equality=!0),a.equality?a.lowConst.hasOwnProperty("bound")?b.push(O(c,["==","=="],a.lowConst)):a.hasOwnProperty("lows")&&a.lows.forEach(function(a){b.push(O(c,["==","=="],a))}):(a.lowConst.hasOwnProperty("bound")&&b.push(O(c,[">",">="],a.lowConst)),a.highConst.hasOwnProperty("bound")&&b.push(O(c,["<","<="],a.highConst)),a.hasOwnProperty("lows")&&a.lows.forEach(function(a){b.push(O(c,[">",">="],a))}),a.hasOwnProperty("highs")&&a.highs.forEach(function(a){b.push(O(c,["<","<="],a))}))}),b.length>1?"("+b.join(" && ")+")":b[0]},Q=function(a){switch(a.type){case"SingletonNode":return e("ROOT");case"NoResultsNode":return e("EMPTY")+" "+f("/* empty result set */");case"EnumerateCollectionNode":return G[a.outVariable.id]=a.collection,e("FOR")+" "+L(a.outVariable)+" "+e("IN")+" "+j(a.collection)+" "+f("/* full collection scan"+(a.random?", random order":"")+" */");case"EnumerateListNode":return e("FOR")+" "+L(a.outVariable)+" "+e("IN")+" "+L(a.inVariable)+" "+f("/* list iteration */");case"IndexNode":G[a.outVariable.id]=a.collection;var b=[];return a.indexes.forEach(function(c,d){var e=(a.reverse?"reverse ":"")+c.type+" index scan";(0===b.length||e!==b[b.length-1])&&b.push(e),c.collection=a.collection,c.node=a.id,a.condition.type&&"n-ary or"===a.condition.type?c.condition=M(a.condition.subNodes[d]):c.condition="*",I.push(c)}),e("FOR")+" "+L(a.outVariable)+" "+e("IN")+" "+j(a.collection)+" "+f("/* "+b.join(", ")+" */");case"IndexRangeNode":G[a.outVariable.id]=a.collection;var c=a.index;return c.ranges=a.ranges.map(P).join(" || "),c.collection=a.collection,c.node=a.id,I.push(c),e("FOR")+" "+L(a.outVariable)+" "+e("IN")+" "+j(a.collection)+" "+f("/* "+(a.reverse?"reverse ":"")+a.index.type+" index scan */");case"TraversalNode":a.minMaxDepth=a.minDepth+".."+a.maxDepth,a.minMaxDepthLen=a.minMaxDepth.length;var d=e("FOR ")+L(a.vertexOutVariable)+" "+f("/* vertex */");a.hasOwnProperty("edgeOutVariable")&&(d+=" , "+L(a.edgeOutVariable)+" "+f("/* edge */")),a.hasOwnProperty("pathOutVariable")&&(d+=" , "+L(a.pathOutVariable)+" "+f("/* paths */")),d+=" "+e("IN")+" "+g(a.minMaxDepth)+" "+f("/* min..maxPathDepth */")+" ";var h=["ANY","INBOUND","OUTBOUND"],k=a.directions[0];d+=e(h[k]),d+=a.hasOwnProperty("vertexId")?" '"+g(a.vertexId)+"' ":" "+L(a.inVariable)+" ",d+=f("/* startnode */")+" ",d+=Array.isArray(a.graph)?a.graph.map(function(b,c){var d="";return a.directions[c]!==k&&(d+=e(h[a.directions[c]]),d+=" "),d+j(b)}).join(", "):e("GRAPH")+" '"+g(a.graph)+"'",J.push(a),a.hasOwnProperty("simpleExpressions")&&(a.ConditionStr=N(a.simpleExpressions));var l=[];if(a.hasOwnProperty("graphDefinition")){var m=[];a.graphDefinition.vertexCollectionNames.forEach(function(a){m.push(j(a))}),a.vertexCollectionNameStr=m.join(", "),a.vertexCollectionNameStrLen=a.graphDefinition.vertexCollectionNames.join(", ").length,a.graphDefinition.edgeCollectionNames.forEach(function(a){l.push(j(a))}),a.edgeCollectionNameStr=l.join(", "),a.edgeCollectionNameStrLen=a.graphDefinition.edgeCollectionNames.join(", ").length}else{var n=a.graph||[];n.forEach(function(a){l.push(j(a))}),a.edgeCollectionNameStr=l.join(", "),a.edgeCollectionNameStrLen=n.join(", ").length,a.graph=""}return d;case"CalculationNode":return e("LET")+" "+L(a.outVariable)+" = "+M(a.expression)+" "+f("/* "+a.expressionType+" expression */");case"FilterNode":return e("FILTER")+" "+L(a.inVariable);case"AggregateNode":return e("COLLECT")+" "+a.aggregates.map(function(a){return L(a.outVariable)+" = "+L(a.inVariable)}).join(", ")+(a.count?" "+e("WITH COUNT"):"")+(a.outVariable?" "+e("INTO")+" "+L(a.outVariable):"")+(a.keepVariables?" "+e("KEEP")+" "+a.keepVariables.map(function(a){return L(a)}).join(", "):"")+" "+f("/* "+a.aggregationOptions.method+" */");case"CollectNode":var o=e("COLLECT")+" "+a.groups.map(function(a){return L(a.outVariable)+" = "+L(a.inVariable)}).join(", ");return a.hasOwnProperty("aggregates")&&a.aggregates.length>0&&(a.groups.length>0&&(o+=" "),o+=e("AGGREGATE")+" "+a.aggregates.map(function(a){return L(a.outVariable)+" = "+i(a.type)+"("+L(a.inVariable)+")"}).join(", ")),o+=(a.count?" "+e("WITH COUNT"):"")+(a.outVariable?" "+e("INTO")+" "+L(a.outVariable):"")+(a.keepVariables?" "+e("KEEP")+" "+a.keepVariables.map(function(a){return L(a)}).join(", "):"")+" "+f("/* "+a.collectOptions.method+"*/");case"SortNode":return e("SORT")+" "+a.elements.map(function(a){return L(a.inVariable)+" "+e(a.ascending?"ASC":"DESC")}).join(", ");case"LimitNode":return e("LIMIT")+" "+g(JSON.stringify(a.offset))+", "+g(JSON.stringify(a.limit));case"ReturnNode":return e("RETURN")+" "+L(a.inVariable);case"SubqueryNode":return e("LET")+" "+L(a.outVariable)+" = ... "+f("/* subquery */");case"InsertNode":return E=a.modificationFlags,e("INSERT")+" "+L(a.inVariable)+" "+e("IN")+" "+j(a.collection);case"UpdateNode":return E=a.modificationFlags,a.hasOwnProperty("inKeyVariable")?e("UPDATE")+" "+L(a.inKeyVariable)+" "+e("WITH")+" "+L(a.inDocVariable)+" "+e("IN")+" "+j(a.collection):e("UPDATE")+" "+L(a.inDocVariable)+" "+e("IN")+" "+j(a.collection);case"ReplaceNode":return E=a.modificationFlags,a.hasOwnProperty("inKeyVariable")?e("REPLACE")+" "+L(a.inKeyVariable)+" "+e("WITH")+" "+L(a.inDocVariable)+" "+e("IN")+" "+j(a.collection):e("REPLACE")+" "+L(a.inDocVariable)+" "+e("IN")+" "+j(a.collection);case"UpsertNode":return E=a.modificationFlags,e("UPSERT")+" "+L(a.inDocVariable)+" "+e("INSERT")+" "+L(a.insertVariable)+" "+e(a.isReplace?"REPLACE":"UPDATE")+" "+L(a.updateVariable)+" "+e("IN")+" "+j(a.collection);case"RemoveNode":return E=a.modificationFlags,e("REMOVE")+" "+L(a.inVariable)+" "+e("IN")+" "+j(a.collection);case"RemoteNode":return e("REMOTE");case"DistributeNode":return e("DISTRIBUTE");case"ScatterNode":return e("SCATTER");case"GatherNode":return e("GATHER")}return"unhandled node type ("+a.type+")"},R=0,S=[],T=function(a,b){return n(1+a+a)+(b?"* ":"- ")},U=function(a){H={},K=!0,"SubqueryNode"===a.type&&S.push(R)},V=function(a){var b=!d.hasOwnProperty(a.id);-1!==["EnumerateCollectionNode","EnumerateListNode","IndexRangeNode","IndexNode","SubqueryNode"].indexOf(a.type)?R++:b&&S.length>0?R=S.pop():"SingletonNode"===a.type&&R++},W=function(){return K?" "+f("/* const assignment */"):""},X=function(){var a=[];for(var b in H)H.hasOwnProperty(b)&&a.push(h(b)+" : "+j(H[b]));return a.length>0?" "+f("/* collections used:")+" "+a.join(", ")+" "+f("*/"):""},Y=function(a){U(a);var b=" "+n(1+x-String(a.id).length)+h(a.id)+" "+e(a.type)+n(1+v-String(a.type).length)+" ";B&&B.isCluster&&B.isCluster()&&(b+=h(a.site)+n(1+w-String(a.site).length)+" "),b+=n(1+y-String(a.estimatedNrItems).length)+g(a.estimatedNrItems)+" "+T(R,"SingletonNode"===a.type)+Q(a),"CalculationNode"===a.type&&(b+=X()+W()),C.appendLine(b),V(a)};p(a),C.appendLine(m("Execution plan:"));var Z=" "+n(1+x-String("Id").length)+l("Id")+" "+l("NodeType")+n(1+v-String("NodeType").length)+" ";B&&B.isCluster&&B.isCluster()&&(Z+=l("Site")+n(1+w-String("Site").length)+" "),Z+=n(1+y-String("Est.").length)+l("Est.")+" "+l("Comment"),C.appendLine(Z);for(var $=[o];$.length>0;){var _=$.pop(),aa=c[_];Y(aa),d.hasOwnProperty(_)&&($=$.concat(d[_])),"SubqueryNode"===aa.type&&($=$.concat([aa.subquery.nodes[0].id]))}C.appendLine(),t(I),u(J),C.appendLine(),r(z.rules),q(E),s(b.warnings)}function w(a,b,d){"use strict";if("string"==typeof a&&(a={query:a}),!(a instanceof Object))throw"ArangoStatement needs initial data";void 0===b&&(b=a.options),b=b||{},c(void 0===b.colors?!0:b.colors);var e=x._createStatement(a),f=e.explain(b);return C.clearOutput(),v(a.query,f,!0),void 0===d||d?void A(C.getOutput()):C.getOutput()}var x=require("org/arangodb").db,y=require("internal"),z=y.COLORS,A=y.print,B={};"function"==typeof y.printBrowser&&(A=y.printBrowser);var C={output:"",appendLine:function(a){a?this.output+=a+"\n":this.output+="\n"},getOutput:function(){return this.output},clearOutput:function(){this.output=""}};a.explain=w}),module.define("org/arangodb/aql/functions",function(a,b){var c=require("internal"),d=require("org/arangodb"),e=d.db,f=d.ArangoError,g=function(){"use strict";var a=e._collection("_aqlfunctions");if(null===a){var b=new f;throw b.errorNum=d.errors.ERROR_ARANGO_COLLECTION_NOT_FOUND.code,b.errorMessage="collection '_aqlfunctions' not found",b}return a},h=function(a){"use strict";var b=[];if(null!==a&&void 0!==a&&a.length>0){var c=a.toUpperCase();a.length>1&&"::"!==a.substr(a.length-2,2)&&(c+="::"),g().toArray().forEach(function(a){a.name.toUpperCase().substr(0,c.length)===c&&b.push(a)})}else b=g().toArray();return b},i=function(a){"use strict";if("string"!=typeof a||!a.match(/^[a-zA-Z0-9_]+(::[a-zA-Z0-9_]+)+$/)||"_"===a.substr(0,1)){var b=new f;throw b.errorNum=d.errors.ERROR_QUERY_FUNCTION_INVALID_NAME.code,b.errorMessage=d.errors.ERROR_QUERY_FUNCTION_INVALID_NAME.message,b}},j=function(a,b){"use strict";if("function"==typeof a&&(a=String(a)+"\n"),"string"==typeof a){if(a="("+a+"\n)",!c.parse)return a;try{if(c.parse(a,b))return a}catch(e){}}var g=new f;throw g.errorNum=d.errors.ERROR_QUERY_FUNCTION_INVALID_CODE.code,g.errorMessage=d.errors.ERROR_QUERY_FUNCTION_INVALID_CODE.message,g},k=function(a){"use strict";var b=null;i(a);try{b=g().document(a.toUpperCase())}catch(e){}if(null===b){var h=new f;throw h.errorNum=d.errors.ERROR_QUERY_FUNCTION_NOT_FOUND.code,h.errorMessage=c.sprintf(d.errors.ERROR_QUERY_FUNCTION_NOT_FOUND.message,a),h}return g().remove(b._id),c.reloadAqlFunctions(),!0},l=function(a){"use strict";if(0===a.length){var b=new f;throw b.errorNum=d.errors.ERROR_BAD_PARAMETER.code,b.errorMessage=d.errors.ERROR_BAD_PARAMETER.message,b}var e=0;return h(a).forEach(function(a){g().remove(a._id),e++}),e>0&&c.reloadAqlFunctions(),e},m=function(a,b,h){i(a),b=j(b,a);var k,l="(function() { var callback = "+b+"; return callback; })()";try{if(c&&c.hasOwnProperty("executeScript")){var m=c.executeScript(l,void 0,"(user function "+a+")");if("function"!=typeof m)throw k=new f,k.errorNum=d.errors.ERROR_QUERY_FUNCTION_INVALID_CODE.code,k.errorMessage=d.errors.ERROR_QUERY_FUNCTION_INVALID_CODE.message+": code must be contained in function",k}}catch(n){throw k=new f,k.errorNum=d.errors.ERROR_QUERY_FUNCTION_INVALID_CODE.code,k.errorMessage=d.errors.ERROR_QUERY_FUNCTION_INVALID_CODE.message,k}var o=e._executeTransaction({collections:{write:g().name()},action:function(a){var b=!1,c=require("internal").db._collection(a.collection),d=a.name;try{var e=c.document(d.toUpperCase());null!==e&&(c.remove(e._key),b=!0)}catch(f){}var g={_key:d.toUpperCase(),name:d,code:a.code,isDeterministic:a.isDeterministic||!1};return c.save(g),b},params:{name:a,code:b,isDeterministic:h,collection:g().name()}});return c.reloadAqlFunctions(),o},n=function(a){"use strict";var b=[];return h(a).forEach(function(a){b.push({name:a.name,code:a.code.substr(1,a.code.length-2).trim()})}),b};a.unregister=k,a.unregisterGroup=l,a.register=m,a.toArray=n}),module.define("org/arangodb/arango-collection-common",function(a,b){var c=require("org/arangodb/arango-collection").ArangoCollection,d=require("org/arangodb"),e=d.ArangoError,f=d.sprintf,g=d.db,h=require("org/arangodb/simple-query"),i=h.SimpleQueryAll,j=h.SimpleQueryByExample,k=h.SimpleQueryByCondition,l=h.SimpleQueryRange,m=h.SimpleQueryGeo,n=h.SimpleQueryNear,o=h.SimpleQueryWithin,p=h.SimpleQueryWithinRectangle,q=h.SimpleQueryFulltext;c.STATUS_CORRUPTED=0,c.STATUS_NEW_BORN=1,c.STATUS_UNLOADED=2,c.STATUS_LOADED=3,c.STATUS_UNLOADING=4,c.STATUS_DELETED=5,c.STATUS_LOADING=6,c.TYPE_DOCUMENT=2,c.TYPE_EDGE=3,c.prototype._PRINT=function(a){var b="unknown",d="unknown",e=this.name();switch(this.status()){case c.STATUS_NEW_BORN:b="new born";break;case c.STATUS_UNLOADED:b="unloaded";break;case c.STATUS_UNLOADING:b="unloading";break;case c.STATUS_LOADED:b="loaded";break;case c.STATUS_CORRUPTED:b="corrupted";break;case c.STATUS_DELETED:b="deleted"}switch(this.type()){case c.TYPE_DOCUMENT:d="document";break;case c.TYPE_EDGE:d="edge"}var f=require("internal").COLORS,g=a.useColor;a.output+="[ArangoCollection ",g&&(a.output+=f.COLOR_NUMBER),a.output+=this._id,g&&(a.output+=f.COLOR_RESET),a.output+=', "',g&&(a.output+=f.COLOR_STRING),a.output+=e||"unknown",g&&(a.output+=f.COLOR_RESET),a.output+='" (type '+d+", status "+b+")]"},c.prototype.toString=function(){return"[ArangoCollection: "+this._id+"]"},c.prototype.all=function(){return new i(this)},c.prototype.byExample=function(a){var b,c;if(1===arguments.length)b=a;else for(b={},c=0;c=1?h=this.all():(c=f("FOR d IN %s FILTER rand() >= @prob RETURN d",this.name()),c=g._createStatement({query:c}),1>j&&c.bind("prob",j),h=c.execute());else{if("number"!=typeof k){var l=new e;throw l.errorNum=d.errors.ERROR_ILLEGAL_NUMBER.code,l.errorMessage="expecting a number, got "+String(k),l}j>=1?h=this.all().limit(k):(c=f("FOR d IN %s FILTER rand() >= @prob LIMIT %d RETURN d",this.name(),k),c=g._createStatement({query:c}),1>j&&c.bind("prob",j),h=c.execute())}for(i=0;h.hasNext();){var m=h.next();a(m,i),i++}},c.prototype.removeByExample=function(a,b,c){throw"cannot call abstract removeByExample function"},c.prototype.replaceByExample=function(a,b,c,d){throw"cannot call abstract replaceByExample function"},c.prototype.updateByExample=function(a,b,c,d,e){throw"cannot call abstract updateExample function"}}),module.define("org/arangodb/arango-statement-common",function(a,b){function c(a,b){if(this._database=a,this._doCount=!1,this._batchSize=null,this._bindVars={},this._options=void 0,this._cache=void 0,!b)throw"ArangoStatement needs initial data";if("string"==typeof b?b={query:b}:"object"==typeof b&&"function"==typeof b.toAQL&&(b={query:b.toAQL()}),!(b instanceof Object))throw"ArangoStatement needs initial data";if(void 0===b.query||""===b.query)throw"ArangoStatement needs a valid query attribute";this.setQuery(b.query),b.bindVars instanceof Object&&this.bind(b.bindVars),b.options instanceof Object&&this.setOptions(b.options),void 0!==b.count&&this.setCount(b.count),void 0!==b.batchSize&&this.setBatchSize(b.batchSize),void 0!==b.cache&&this.setCache(b.cache)}c.prototype.bind=function(a,b){if(a instanceof Object){if(void 0!==b)throw"invalid bind parameter declaration";this._bindVars=a}else if("string"==typeof a)this._bindVars[a]=b;else{if("number"!=typeof a)throw"invalid bind parameter declaration";var c=String(parseInt(a,10));if(c!==String(a))throw"invalid bind parameter declaration";this._bindVars[c]=b}},c.prototype.getBindVariables=function(){return this._bindVars},c.prototype.getCache=function(){return this._cache},c.prototype.getCount=function(){return this._doCount},c.prototype.getBatchSize=function(){return this._batchSize},c.prototype.getOptions=function(){return this._options},c.prototype.getQuery=function(){return this._query},c.prototype.setCache=function(a){this._cache=a?!0:!1},c.prototype.setCount=function(a){this._doCount=a?!0:!1},c.prototype.setBatchSize=function(a){var b=parseInt(a,10);b>0&&(this._batchSize=b)},c.prototype.setOptions=function(a){this._options=a},c.prototype.setQuery=function(a){this._query=a&&"function"==typeof a.toAQL?a.toAQL():a},c.prototype.parse=function(){throw"cannot call abstract method parse()"},c.prototype.explain=function(){throw"cannot call abstract method explain()"},c.prototype.execute=function(){throw"cannot call abstract method execute()"},a.ArangoStatement=c}),module.define("org/arangodb/general-graph",function(a,b){var c=require("org/arangodb"),d=require("internal"),e=c.ArangoCollection,f=c.ArangoError,g=c.db,h=c.errors,i=require("underscore"),j=function(a){return"string"==typeof a?[a]:i.clone(a)},k=function(a){return a?Array.isArray(a)&&0===a.length?!1:"string"==typeof a||Array.isArray(a)?!0:!1:!1},l=function(a,b,d){var h=g._collection(a),i=!1;if(null!==h||d){if(!(h instanceof e)){var j=new f;throw j.errorNum=c.errors.ERROR_GRAPH_NOT_AN_ARANGO_COLLECTION.code,j.errorMessage=a+c.errors.ERROR_GRAPH_NOT_AN_ARANGO_COLLECTION.message,j}}else h=b===e.TYPE_DOCUMENT?g._create(a):g._createEdgeCollection(a),i=!0;return i},m=function(a,b){var d={},h={};return a.forEach(function(a){if(!(a.hasOwnProperty("collection")&&a.hasOwnProperty("from")&&a.hasOwnProperty("to")&&Array.isArray(a.from)&&Array.isArray(a.to))){var i=new f;throw i.errorNum=c.errors.ERROR_GRAPH_CREATE_MALFORMED_EDGE_DEFINITION.code,i.errorMessage=c.errors.ERROR_GRAPH_CREATE_MALFORMED_EDGE_DEFINITION.message,i}a.from.concat(a.to).forEach(function(a){l(a,e.TYPE_DOCUMENT,b),d[a]=g[a]}),l(a.collection,e.TYPE_EDGE,b),h[a.collection]=g[a.collection]}),[d,h]},n=function(){var a=g._graphs;if((null===a||void 0===a)&&(a=g._collection("_graphs")),null===a||void 0===a){var b=new f;throw b.errorNum=c.errors.ERROR_GRAPH_NO_GRAPH_COLLECTION.code,b.errorMessage=c.errors.ERROR_GRAPH_NO_GRAPH_COLLECTION.message,b}return a},o=function(a){return i.map(a,function(a){var b=a.collection;return b+=": [",b+=a.from.join(", "),b+="] -> [",b+=a.to.join(", "),b+="]"})},p=function(a){var b={};return i.each(i.functions(a),function(c){b[c]=function(){return a[c].apply(a,arguments)}}),b},q=function(a){if(void 0===a)return{};if("string"==typeof a)return{_id:a};if("object"==typeof a)return Array.isArray(a)?i.map(a,function(a){return"string"==typeof a?{_id:a}:a}):a;var b=new f;throw b.errorNum=c.errors.ERROR_GRAPH_INVALID_EXAMPLE_ARRAY_OBJECT_STRING.code,b.errorMessage=c.errors.ERROR_GRAPH_INVALID_EXAMPLE_ARRAY_OBJECT_STRING.message,b},r=function(a,b,d){var e=[],g=i.map(a,function(a){return a.name()});if(i.each(b,function(a){i.contains(g,a)||e.push(a)}),e.length>0){var h=new f;throw h.errorNum=c.errors.ERROR_BAD_PARAMETER.code,h.errorMessage=d+": "+e.join(" and ")+" are not known to the graph",h}return!0},s=function(a,b){this.query=a,b&&(this.type=b)};s.prototype.printQuery=function(){return this.query},s.prototype.isPathQuery=function(){return"path"===this.type},s.prototype.isPathVerticesQuery=function(){return"pathVertices"===this.type},s.prototype.isPathEdgesQuery=function(){return"pathEdges"===this.type},s.prototype.isEdgeQuery=function(){return"edge"===this.type},s.prototype.isVertexQuery=function(){return"vertex"===this.type},s.prototype.isNeighborQuery=function(){return"neighbor"===this.type},s.prototype.allowsRestrict=function(){return this.isEdgeQuery()||this.isVertexQuery()||this.isNeighborQuery()};var t=function(a){this.stack=[],this.callStack=[],this.bindVars={graphName:a.__name},this.graph=a,this.cursor=null,this.lastVar="",this._path=[],this._pathVertices=[],this._pathEdges=[],this._getPath=!1};t.prototype._addToPrint=function(a){var b=Array.prototype.slice.call(arguments);b.shift();var c={};c.name=a,b.length>0&&void 0!==b[0]?c.params=b:c.params=[],this.callStack.push(c)},t.prototype._PRINT=function(a){a.output="[ GraphAQL ",a.output+=this.graph.__name,i.each(this.callStack,function(b){a.prettyPrint&&(a.output+="\n"),a.output+=".",a.output+=b.name,a.output+="(";var c=0;for(c=0;c0&&(a.output+=", "),d.printRecursive(b.params[c],a);a.output+=")"}),a.output+=" ] "},t.prototype._clearCursor=function(){this.cursor&&(this.cursor.dispose(),this.cursor=null)},t.prototype._createCursor=function(){this.cursor||(this.cursor=this.execute())},t.prototype._edges=function(a,b){this._clearCursor(),this.options=b||{};var c=q(a),d="edges_"+this.stack.length,e="FOR "+d+" IN GRAPH_EDGES(@graphName";e+=this.getLastVar()?","+this.getLastVar():",{}",e+=",@options_"+this.stack.length+")",Array.isArray(c)||(c=[c]),this.options.edgeExamples=c,this.options.includeData=!0,this.bindVars["options_"+this.stack.length]=this.options;var f=new s(e,"edge");return this.stack.push(f),this.lastVar=d,this._path.push(d),this._pathEdges.push(d),this},t.prototype.edges=function(a){return this._addToPrint("edges",a),this._edges(a,{direction:"any"})},t.prototype.outEdges=function(a){return this._addToPrint("outEdges",a),this._edges(a,{direction:"outbound"})},t.prototype.inEdges=function(a){return this._addToPrint("inEdges",a),this._edges(a,{direction:"inbound"})},t.prototype._vertices=function(a,b,c){this._clearCursor(),this.options=b||{};var d=q(a),e="vertices_"+this.stack.length,f="FOR "+e+" IN GRAPH_VERTICES(@graphName,";if(void 0!==c)if(Array.isArray(c)){var g;for(f+="[",g=0;g0&&(f+=","),f+="MERGE(@vertexExample_"+this.stack.length+","+c[g]+")";f+="]"}else f+=Array.isArray(d)?"@vertexExample_"+this.stack.length+" [ * RETURN MERGE(CURRENT,"+c+")]":"MERGE(@vertexExample_"+this.stack.length+","+c+")";else f+="@vertexExample_"+this.stack.length;f+=",@options_"+this.stack.length+")",this.bindVars["vertexExample_"+this.stack.length]=d,this.bindVars["options_"+this.stack.length]=this.options;var h=new s(f,"vertex");return this.stack.push(h),this.lastVar=e,this._path.push(e),this._pathVertices.push(e),this},t.prototype.vertices=function(a){if(this._addToPrint("vertices",a),!this.getLastVar())return this._vertices(a);var b=this.getLastVar();return this._vertices(a,void 0,["{'_id': "+b+"._from}","{'_id': "+b+"._to}"])},t.prototype.fromVertices=function(a){if(this._addToPrint("fromVertices",a),!this.getLastVar())return this._vertices(a);var b=this.getLastVar();return this._vertices(a,void 0,"{'_id': "+b+"._from}")},t.prototype.toVertices=function(a){if(this._addToPrint("toVertices",a),!this.getLastVar())return this._vertices(a);var b=this.getLastVar();return this._vertices(a,void 0,"{'_id': "+b+"._to}")},t.prototype.getLastVar=function(){return""===this.lastVar?!1:this.lastVar},t.prototype.path=function(){this._clearCursor();var a=new s("","path");return this.stack.push(a),this},t.prototype.pathVertices=function(){this._clearCursor();var a=new s("","pathVertices");return this.stack.push(a),this},t.prototype.pathEdges=function(){this._clearCursor();var a=new s("","pathEdges");return this.stack.push(a),this},t.prototype.neighbors=function(a,b){this._addToPrint("neighbors",a,b);var c,d=q(a),e="neighbors_"+this.stack.length,f="FOR "+e+" IN GRAPH_NEIGHBORS(@graphName,"+this.getLastVar()+",@options_"+this.stack.length+")";c=b?i.clone(b):{},c.neighborExamples=d,c.includeData=!0,this.bindVars["options_"+this.stack.length]=c;var g=new s(f,"neighbor");return this.stack.push(g),this.lastVar=e,this._path.push(e),this._pathVertices.push(e),this},t.prototype._getLastRestrictableStatementInfo=function(){for(var a=this.stack.length-1;!this.stack[a].allowsRestrict();)a--;return{statement:this.stack[a],options:this.bindVars["options_"+a]}},t.prototype.restrict=function(a){var b=j(a);if(0===b.length)return this;this._addToPrint("restrict",a),this._clearCursor();var c,d=this._getLastRestrictableStatementInfo(),e=d.statement,f=d.options;return e.isEdgeQuery()?(r(this.graph._edgeCollections(),b,"edge collections"),c=f.edgeCollectionRestriction||[],f.edgeCollectionRestriction=c.concat(a)):(e.isVertexQuery()||e.isNeighborQuery())&&(r(this.graph._vertexCollections(),b,"vertex collections"),c=f.vertexCollectionRestriction||[],f.vertexCollectionRestriction=c.concat(a)),this},t.prototype.filter=function(a){this._addToPrint("filter",a),this._clearCursor();var b=[];if("[object Array]"!==Object.prototype.toString.call(a)){if("[object Object]"!==Object.prototype.toString.call(a)){var d=new f;throw d.errorNum=c.errors.ERROR_GRAPH_INVALID_EXAMPLE_ARRAY_OBJECT.code,d.errorMessage=c.errors.ERROR_GRAPH_INVALID_EXAMPLE_ARRAY_OBJECT.message,d}b=[a]}else b=a;var e="FILTER MATCHES("+this.getLastVar()+","+JSON.stringify(b)+")";return this.stack.push(new s(e)),this},t.prototype.printQuery=function(){return this.stack.map(function(a){return a.printQuery()}).join(" ")},t.prototype.execute=function(){this._clearCursor();var a=this.printQuery(),b=this.bindVars;return a+=this.stack[this.stack.length-1].isPathQuery()?" RETURN ["+this._path+"]":this.stack[this.stack.length-1].isPathVerticesQuery()?" RETURN FLATTEN(["+this._pathVertices+"])":this.stack[this.stack.length-1].isPathEdgesQuery()?" RETURN FLATTEN(["+this._pathEdges+"])":" RETURN "+this.getLastVar(),g._query(a,b,{count:!0})},t.prototype.toArray=function(){return this._createCursor(),this.cursor.toArray()},t.prototype.count=function(){return this._createCursor(),this.cursor.count()},t.prototype.hasNext=function(){return this._createCursor(),this.cursor.hasNext()},t.prototype.next=function(){return this._createCursor(),this.cursor.next()};var u=function(a,b){var d;if(arguments.length<2)throw d=new f,d.errorNum=c.errors.ERROR_GRAPH_INVALID_NUMBER_OF_ARGUMENTS.code,d.errorMessage=c.errors.ERROR_GRAPH_INVALID_NUMBER_OF_ARGUMENTS.message+"2",d;if("string"!=typeof a||""===a)throw d=new f,d.errorNum=c.errors.ERROR_GRAPH_INVALID_PARAMETER.code,d.errorMessage=c.errors.ERROR_GRAPH_INVALID_PARAMETER.message+" arg1 must not be empty",d;if(!k(b))throw d=new f,d.errorNum=c.errors.ERROR_GRAPH_INVALID_PARAMETER.code,d.errorMessage=c.errors.ERROR_GRAPH_INVALID_PARAMETER.message+" arg2 must not be empty",d;return{collection:a,from:j(b),to:j(b)}},v=function(a,b,d){var e;if(arguments.length<3)throw e=new f,e.errorNum=c.errors.ERROR_GRAPH_INVALID_NUMBER_OF_ARGUMENTS.code,e.errorMessage=c.errors.ERROR_GRAPH_INVALID_NUMBER_OF_ARGUMENTS.message+"3",e;if("string"!=typeof a||""===a)throw e=new f,e.errorNum=c.errors.ERROR_GRAPH_INVALID_PARAMETER.code,e.errorMessage=c.errors.ERROR_GRAPH_INVALID_PARAMETER.message+" arg1 must be non empty string",e;if(!k(b))throw e=new f,e.errorNum=c.errors.ERROR_GRAPH_INVALID_PARAMETER.code,e.errorMessage=c.errors.ERROR_GRAPH_INVALID_PARAMETER.message+" arg2 must be non empty string or array",e;if(!k(d))throw e=new f,e.errorNum=c.errors.ERROR_GRAPH_INVALID_PARAMETER.code,e.errorMessage=c.errors.ERROR_GRAPH_INVALID_PARAMETER.message+" arg3 must be non empty string or array",e;return{collection:a,from:j(b),to:j(d)}},w=function(){var a=n();return i.pluck(a.toArray(),"_key")},x=function(){return n().toArray()},y=function(){var a=[],b=arguments;return Object.keys(b).forEach(function(c){a.push(b[c])}),a},z=function(a){var b=arguments,c=0;Object.keys(b).forEach(function(d){c++,1!==c&&a.push(b[d])})},A=function(a){return a.from=a.from.sort(),a.to=a.to.sort(),a},B=function(a,b,d,g){Array.isArray(d)||(d=[]);var i,j,k,o=n(),p=!0;if(!a)throw i=new f,i.errorNum=c.errors.ERROR_GRAPH_CREATE_MISSING_NAME.code,i.errorMessage=c.errors.ERROR_GRAPH_CREATE_MISSING_NAME.message,i;if(b=b||[],!Array.isArray(b))throw i=new f,i.errorNum=c.errors.ERROR_GRAPH_CREATE_MALFORMED_EDGE_DEFINITION.code,i.errorMessage=c.errors.ERROR_GRAPH_CREATE_MALFORMED_EDGE_DEFINITION.message,i;var q=[],r={};b.forEach(function(a){var b=a.collection;if(-1!==q.indexOf(b))throw i=new f,i.errorNum=c.errors.ERROR_GRAPH_COLLECTION_MULTI_USE.code,i.errorMessage=c.errors.ERROR_GRAPH_COLLECTION_MULTI_USE.message,i;q.push(b),r[b]=a}),o.toArray().forEach(function(a){var b=a.edgeDefinitions;b.forEach(function(a){var b=a.collection;if(-1!==q.indexOf(b)&&JSON.stringify(a)!==JSON.stringify(r[b]))throw i=new f,i.errorNum=c.errors.ERROR_GRAPH_COLLECTION_USE_IN_MULTI_GRAPHS.code,i.errorMessage=b+" "+c.errors.ERROR_GRAPH_COLLECTION_USE_IN_MULTI_GRAPHS.message,i})});try{o.document(a)}catch(s){if(s.errorNum!==h.ERROR_ARANGO_DOCUMENT_NOT_FOUND.code)throw s;p=!1}if(p)throw i=new f,i.errorNum=c.errors.ERROR_GRAPH_DUPLICATE.code,i.errorMessage=c.errors.ERROR_GRAPH_DUPLICATE.message,i;j=m(b,!1),d.forEach(function(a){l(a,e.TYPE_DOCUMENT)}),b.forEach(function(a,c){var d=A(a);b[c]=d}),d=d.sort();var t=o.save({orphanCollections:d,edgeDefinitions:b,_key:a},g);return k=new H(a,b,j[0],j[1],d,t._rev,t._id)},C=function(a,b,c){Object.defineProperty(a,b,{enumerable:!1,writable:!0}),a[b]=c},D=function O(a,b,c,d){d.__idsToRemove[c]=1,a.forEach(function(e){var f=e.edgeDefinitions;e.edgeDefinitions&&f.forEach(function(e){var f=e.from,h=e.to,i=e.collection;if(-1!==f.indexOf(b)||-1!==h.indexOf(b)){var j=g._collection(i).edges(c);j.forEach(function(b){d.__idsToRemove.hasOwnProperty(b._id)||(d.__collectionsToLock[i]=1,O(a,i,b._id,d))})}})})},E=function(a,b){i.each(b,function(b){var d=g._collection(b),e=p(d),h=e.save;e.save=function(d,e,g){if("string"!=typeof d||-1===d.indexOf("/")||"string"!=typeof e||-1===e.indexOf("/")){var j=new f;throw j.errorNum=c.errors.ERROR_ARANGO_DOCUMENT_HANDLE_BAD.code,j.errorMessage=c.errors.ERROR_ARANGO_DOCUMENT_HANDLE_BAD.message,j}return a.__edgeDefinitions.forEach(function(a){if(a.collection===b){var g=d.split("/")[0],h=e.split("/")[0];if(!i.contains(a.from,g)||!i.contains(a.to,h)){var j=new f;throw j.errorNum=c.errors.ERROR_GRAPH_INVALID_EDGE.code,j.errorMessage=c.errors.ERROR_GRAPH_INVALID_EDGE.message+" between "+d+" and "+e+".",j}}}),h(d,e,g)},e.remove=function(c,d){-1===c.indexOf("/")&&(c=b+"/"+c);var e=n().toArray(),f=c.split("/")[0];a.__collectionsToLock[f]=1,D(e,f,c,a);try{g._executeTransaction({collections:{write:Object.keys(a.__collectionsToLock)},embed:!0,action:function(a){var b=require("internal").db;a.ids.forEach(function(c){a.options?b._remove(c,a.options):b._remove(c)})},params:{ids:Object.keys(a.__idsToRemove),options:d}})}catch(h){throw a.__idsToRemove={},a.__collectionsToLock={},h}return a.__idsToRemove={},a.__collectionsToLock={},!0},a[b]=e})},F=function(a,b){ i.each(b,function(b){var c=g._collection(b),d=p(c);d.remove=function(c,d){var e=n().toArray(),f=b;-1===c.indexOf("/")&&(c=b+"/"+c),a.__collectionsToLock[f]=1,e.forEach(function(b){var d=b.edgeDefinitions;b.edgeDefinitions&&d.forEach(function(b){var d=b.from,h=b.to,i=b.collection;if(-1!==d.indexOf(f)||-1!==h.indexOf(f)){var j=g._collection(i).edges(c);j.length>0&&(a.__collectionsToLock[i]=1,j.forEach(function(b){D(e,i,b._id,a)}))}})});try{g._executeTransaction({collections:{write:Object.keys(a.__collectionsToLock)},embed:!0,action:function(a){var b=require("internal").db;a.ids.forEach(function(c){a.options?b._remove(c,a.options):b._remove(c)}),a.options?b._remove(a.vertexId,a.options):b._remove(a.vertexId)},params:{ids:Object.keys(a.__idsToRemove),options:d,vertexId:c}})}catch(h){throw a.__idsToRemove={},a.__collectionsToLock={},h}return a.__idsToRemove={},a.__collectionsToLock={},!0},a[b]=d})},G=function(a){Object.keys(a).forEach(function(b){"_"!==b.substring(0,1)&&delete a[b]}),a.__edgeDefinitions.forEach(function(b){E(a,[b.collection]),F(a,b.from),F(a,b.to)}),F(a,a.__orphanCollections)},H=function(a,b,c,d,e,f,g){b.forEach(function(a,c){var d=A(a);b[c]=d}),e||(e=[]);var h="object"==typeof ArangoClusterComm;h&&require("org/arangodb/cluster").isCoordinator()&&(h=!1);var i=this;C(this,"__useBuiltIn",h),C(this,"__name",a),C(this,"__vertexCollections",c),C(this,"__edgeCollections",d),C(this,"__edgeDefinitions",b),C(this,"__idsToRemove",{}),C(this,"__collectionsToLock",{}),C(this,"__id",g),C(this,"__rev",f),C(this,"__orphanCollections",e),G(i)},I=function(a){var b,d,e,g=n();try{b=g.document(a)}catch(i){if(i.errorNum!==h.ERROR_ARANGO_DOCUMENT_NOT_FOUND.code)throw i;var j=new f;throw j.errorNum=c.errors.ERROR_GRAPH_NOT_FOUND.code,j.errorMessage=c.errors.ERROR_GRAPH_NOT_FOUND.message,j}return d=m(b.edgeDefinitions,!0),e=b.orphanCollections,e||(e=[]),new H(a,b.edgeDefinitions,d[0],d[1],e,b._rev,b._id)},J=function(a){var b=n();return b.exists(a)},K=function(a,b){g._executeTransaction({collections:{write:"_graphs"},action:function(a){var b=n();b&&b.toArray().forEach(function(c){var d,e,f=i.clone(c),g=!1;if(f.edgeDefinitions)for(d=0;dc;c++)this.hasOwnProperty(c)&&(e[c]=a.call(b,this[c],c,this));return e},f.prototype.getInVertex=function(){return this.map(function(a){return a.getInVertex()})},f.prototype.getOutVertex=function(){return this.map(function(a){return a.getOutVertex()})},f.prototype.getPeerVertex=function(a){return this.map(function(b){return b.getPeerVertex(a)})},f.prototype.setProperty=function(a,b){return this.map(function(c){return c.setProperty(a,b)})},f.prototype.edges=function(){return this.map(function(a){return a.edges()})},f.prototype.outbound=function(){return this.map(function(a){return a.outbound()})},f.prototype.inbound=function(){return this.map(function(a){return a.inbound()})},f.prototype.getInEdges=function(){var a=arguments;return this.map(function(b){return b.getInEdges.apply(b,a)})},f.prototype.getOutEdges=function(){var a=arguments;return this.map(function(b){return b.getOutEdges.apply(b,a)})},f.prototype.getEdges=function(){var a=arguments;return this.map(function(b){return b.getEdges.apply(b,a)})},f.prototype.degree=function(){return this.map(function(a){return a.degree()})},f.prototype.inDegree=function(){return this.map(function(a){return a.inDegree()})},f.prototype.inDegree=function(){return this.map(function(a){return a.outDegree()})},f.prototype.properties=function(){return this.map(function(a){return a.properties()})},c=function(a,b){this._graph=a,this._id=b._key,this._properties=b},c.prototype.getId=function(){return this._properties._key},c.prototype.getLabel=function(){return this._properties.$label},c.prototype.getProperty=function(a){return this._properties[a]},c.prototype.getPropertyKeys=function(){return this._properties.propertyKeys},c.prototype.properties=function(){return this._properties._shallowCopy},c.prototype.getInVertex=function(){return this._graph.getVertex(this._properties._to)},c.prototype.getOutVertex=function(){return this._graph.getVertex(this._properties._from)},c.prototype.getPeerVertex=function(a){return a._properties._id===this._properties._to?this._graph.getVertex(this._properties._from):a._properties._id===this._properties._from?this._graph.getVertex(this._properties._to):null},c.prototype._PRINT=function(a){this._properties._id?void 0!==this._properties._key?"string"==typeof this._properties._key?a.output+='Edge("'+this._properties._key+'")':a.output+="Edge("+this._properties._key+")":a.output+="Edge(<"+this._id+">)":a.output+="[deleted Edge]"},e=function(a,b){this._graph=a,this._id=b._key,this._properties=b},e.prototype.addInEdge=function(a,b,c,d){return this._graph.addEdge(a,this,b,c,d)},e.prototype.addOutEdge=function(a,b,c,d){return this._graph.addEdge(this,a,b,c,d)},e.prototype.degree=function(){return this.getEdges().length},e.prototype.inDegree=function(){return this.getInEdges().length},e.prototype.outDegree=function(){return this.getOutEdges().length},e.prototype.getId=function(){return this._properties._key},e.prototype.getProperty=function(a){return this._properties[a]},e.prototype.getPropertyKeys=function(){return this._properties.propertyKeys},e.prototype.properties=function(){return this._properties._shallowCopy},e.prototype._PRINT=function(a){this._properties._id?void 0!==this._properties._key?"string"==typeof this._properties._key?a.output+='Vertex("'+this._properties._key+'")':a.output+="Vertex("+this._properties._key+")":a.output+="Vertex(<"+this._id+">)":a.output+="[deleted Vertex]"},d=function(a,b,c,d){this.initialize(a,b,c,d)},d.prototype._prepareEdgeData=function(a,b){var c;return h.notExisty(a)&&h.object(b)&&(a=b,b=null),h.notExisty(b)&&h.existy(a)&&h.existy(a.$label)&&(b=a.$label),c=h.notExisty(a)||h.noObject(a)?{}:a._shallowCopy||{},c.$label=b,c},d.prototype._prepareVertexData=function(a){var b;return b=h.notExisty(a)||h.noObject(a)?{}:a._shallowCopy||{}},d.prototype.getOrAddVertex=function(a){var b=this.getVertex(a);return null===b&&(b=this.addVertex(a)),b},d.prototype.addEdge=function(a,b,c,d,e,f){var g,i;return g=h.string(a)?a:a._properties._id,i=h.string(b)?b:b._properties._id,this._saveEdge(c,g,i,this._prepareEdgeData(e,d),f)},d.prototype.addVertex=function(a,b,c){return this._saveVertex(a,this._prepareVertexData(b),c)},d.prototype.replaceVertex=function(a,b){this._replaceVertex(a,b)},d.prototype.replaceEdge=function(a,b){this._replaceEdge(a,b)},d.prototype.order=function(){return this._vertices.count()},d.prototype.size=function(){return this._edges.count()},d.prototype.emptyCachedPredecessors=function(){this.predecessors={}},d.prototype.getCachedPredecessors=function(a,b){var c;return this.predecessors[a.getId()]&&(c=this.predecessors[a.getId()][b.getId()]),c},d.prototype.setCachedPredecessors=function(a,b,c){this.predecessors[a.getId()]||(this.predecessors[a.getId()]={}),this.predecessors[a.getId()][b.getId()]=c},d.prototype.constructVertex=function(a){var b,c;"string"==typeof a?b=a:(b=a._id,c=a._rev);var d=this._verticesCache[b];if(void 0===d||d._rev!==c){var f=this._vertices.document(b);if(!f)throw"accessing a deleted vertex";this._verticesCache[b]=d=new e(this,f)}return d},d.prototype.constructEdge=function(a){var b,d,e,f;if("string"==typeof a?b=a:(b=a._id,d=a._rev),e=this._edgesCache[b],void 0===e||e._rev!==d){if(f=this._edges.document(b),!f)throw"accessing a deleted edge";this._edgesCache[b]=e=new c(this,f)}return e},d.prototype._PRINT=function(a){a.output+='Graph("'+this._properties._key+'")'},a.Edge=c,a.Graph=d,a.Vertex=e,a.GraphArray=f,a.Iterator=g}),module.define("org/arangodb/graph",function(a,b){var c=require("org/arangodb/graph-blueprint");Object.keys(c).forEach(function(b){a[b]=c[b]})}),module.define("org/arangodb/graph/traversal",function(a,b){function c(a){if(null===a||"object"!=typeof a)return a;var b;if(Array.isArray(a))b=[],a.forEach(function(a){b.push(c(a))});else if(a instanceof Object){if(J&&a instanceof J)return a;b={},Object.keys(a).forEach(function(d){b[d]=c(a[d])})}return b}function d(a){for(var b in a)if(a.hasOwnProperty(b))return!1;return!0}function e(a){var b=a;"string"==typeof b&&(b=K._collection(b));var c="object"==typeof ArangoClusterComm;return c&&require("org/arangodb/cluster").isCoordinator()&&(c=!1),{edgeCollection:b,useBuiltIn:c,getVertexId:function(a){return a._id},getPeerVertex:function(a,b){return a._from===b._id?K._document(a._to):a._to===b._id?K._document(a._from):null},getInVertex:function(a){return K._document(a._to)},getOutVertex:function(a){return K._document(a._from)},getEdgeId:function(a){return a._id},getEdgeFrom:function(a){return a._from},getEdgeTo:function(a){return a._to},getLabel:function(a){return a.$label},getAllEdges:function(a){return this.useBuiltIn?this.edgeCollection.EDGES(a._id):this.edgeCollection.edges(a._id)},getInEdges:function(a){return this.useBuiltIn?this.edgeCollection.INEDGES(a._id):this.edgeCollection.inEdges(a._id)},getOutEdges:function(a){return this.useBuiltIn?this.edgeCollection.OUTEDGES(a._id):this.edgeCollection.outEdges(a._id)}}}function f(a){var b=a;return"string"==typeof b&&(b=F._graph(b)),{graph:b,getVertexId:function(a){return a._id},getPeerVertex:function(a,b){return a._from===b._id?K._document(a._to):a._to===b._id?K._document(a._from):null},getInVertex:function(a){return K._document(a._to)},getOutVertex:function(a){return K._document(a._from)},getEdgeId:function(a){return a._id},getEdgeFrom:function(a){return a._from},getEdgeTo:function(a){return a._to},getLabel:function(a){return a.$label},getAllEdges:function(a){return this.graph._EDGES(a._id)},getInEdges:function(a){return this.graph._INEDGES(a._id)},getOutEdges:function(a){return this.graph._OUTEDGES(a._id)}}}function g(a){return{graph:new E.Graph(a),getVertexId:function(a){return a.getId()},getPeerVertex:function(a,b){return a.getPeerVertex(b)},getInVertex:function(a){return a.getInVertex()},getOutVertex:function(a){return a.getOutVertex()},getEdgeId:function(a){return a.getId()},getEdgeFrom:function(a){return a._properties._from},getEdgeTo:function(a){return a._properties._to},getLabel:function(a){return a.getLabel()},getAllEdges:function(a){return a.edges()},getInEdges:function(a){return a.inbound()},getOutEdges:function(a){return a.outbound()}}}function h(a,b,c){var d,e=a.datasource,f=[],g=e.getOutEdges(b);return g.length>1&&a.sort&&g.sort(a.sort),d=a.buildVertices?a.expandFilter?function(b){try{var d=e.getInVertex(b);a.expandFilter(a,d,b,c)&&f.push({edge:b,vertex:d})}catch(g){}}:function(a){try{var b=e.getInVertex(a);f.push({edge:a,vertex:b})}catch(c){}}:a.expandFilter?function(b){var d=e.getEdgeTo(b),g={_id:d,_key:d.substr(d.indexOf("/")+1)};a.expandFilter(a,g,b,c)&&f.push({edge:b,vertex:g})}:function(a){var b=e.getEdgeTo(a),c={_id:b,_key:b.substr(b.indexOf("/")+1)};f.push({edge:a,vertex:c})},g.forEach(d),f}function i(a,b,c){var d=a.datasource,e=[],f=d.getInEdges(b);f.length>1&&a.sort&&f.sort(a.sort);var g;return g=a.buildVertices?a.expandFilter?function(b){try{var f=d.getOutVertex(b);a.expandFilter(a,f,b,c)&&e.push({edge:b,vertex:f})}catch(g){}}:function(a){try{var b=d.getOutVertex(a);e.push({edge:a,vertex:b})}catch(c){}}:a.expandFilter?function(b){var f=d.getEdgeFrom(b),g={_id:f,_key:f.substr(f.indexOf("/")+1)};a.expandFilter(a,g,b,c)&&e.push({edge:b,vertex:g})}:function(a){var b=d.getEdgeFrom(a),c={_id:b,_key:b.substr(b.indexOf("/")+1)};e.push({edge:a,vertex:c})},f.forEach(g),e}function j(a,b,c){var d=a.datasource,e=[],f=d.getAllEdges(b);f.length>1&&a.sort&&f.sort(a.sort);var g;return g=a.buildVertices?a.expandFilter?function(f){try{var g=d.getPeerVertex(f,b);a.expandFilter(a,g,f,c)&&e.push({edge:f,vertex:g})}catch(h){}}:function(a){try{var c=d.getPeerVertex(a,b);e.push({edge:a,vertex:c})}catch(f){}}:a.expandFilter?function(f){var g=d.getEdgeFrom(f);g===b._id&&(g=d.getEdgeTo(f));var h={_id:g,_key:g.substr(g.indexOf("/")+1)};a.expandFilter(a,h,f,c)&&e.push({edge:f,vertex:h})}:function(a){var c=d.getEdgeFrom(a);c===b._id&&(c=d.getEdgeTo(a));var f={_id:c,_key:c.substr(c.indexOf("/")+1)};e.push({edge:a,vertex:f})},f.forEach(g),e}function k(a,b,c){var d,e=a.datasource,f=[];Array.isArray(a.labels)||(a.labels=[a.labels]);var g=e.getOutEdges(b);if(void 0!==g)for(d=0;d=0&&f.push({edge:h,vertex:e.getInVertex(h)})}return f}function l(a,b,c){var d,e=a.datasource,f=[];Array.isArray(a.labels)||(a.labels=[a.labels]);var g=a.datasource.getInEdges(b);if(void 0!==g)for(d=0;d=0&&f.push({edge:h,vertex:e.getOutVertex(h)})}return f}function m(a,b,c){var d,e=a.datasource,f=[];Array.isArray(a.labels)||(a.labels=[a.labels]);var g=a.datasource.getAllEdges(b);if(void 0!==g)for(d=0;d=0&&f.push({edge:h,vertex:e.getPeerVertex(h,b)})}return f}function n(a,b,d,e){b&&b.visited&&(b.visited.vertices&&b.visited.vertices.push(c(d)),b.visited.paths&&b.visited.paths.push(c(e)))}function o(a,b,c,d){b&&(b.hasOwnProperty("count")?++b.count:b.count=1)}function p(){}function q(){return""}function r(a,b,c){return c&&c.vertices&&c.vertices.length>a.maxDepth?D.PRUNE:void 0}function s(a,b,c){return c&&c.vertices&&c.vertices.length<=a.minDepth?D.EXCLUDE:void 0}function t(a,b,c){Array.isArray(a.matchingAttributes)||(a.matchingAttributes=[a.matchingAttributes]);var d=!1;a.matchingAttributes.forEach(function(a){var c=0,e=Object.keys(a);e.forEach(function(d){b[d]&&b[d]===a[d]&&c++}),c>0&&c===e.length&&(d=!0)});var e;return d||(e="exclude"),e}function u(a,b,c,d){var e=[];return a.forEach(function(a){var f=a(b,c,d);Array.isArray(f)||(f=[f]),e=e.concat(f)}),e}function v(a){function b(a){if(void 0!==a&&null!==a){var d=!1;if("string"==typeof a)a===D.EXCLUDE?(c.visit=!1,d=!0):a===D.PRUNE?(c.expand=!1,d=!0):""===a&&(d=!0);else if(Array.isArray(a)){var e;for(e=0;eb)break;d=a[b]}return c},run:function(a,b,c){for(var d=a.maxIterations,e=0,f=[{edge:null,vertex:c,parentIndex:-1}],g={edges:{},vertices:{}},h=0,i=1,j=x(a);1===i&&h=0;){var k,l=f[h],m=l.vertex,n=l.edge;if(e++>d){var o=new I;throw o.errorNum=G.errors.ERROR_GRAPH_TOO_MANY_ITERATIONS.code,o.errorMessage=G.errors.ERROR_GRAPH_TOO_MANY_ITERATIONS.message,o}if(L(),null===l.visit||void 0===l.visit){if(l.visit=!1,k=this.createPath(f,h),a.uniqueness.vertices===D.UNIQUE_PATH&&(g.vertices=this.getPathItems(a.datasource.getVertexId,k.vertices)),a.uniqueness.edges===D.UNIQUE_PATH&&(g.edges=this.getPathItems(a.datasource.getEdgeId,k.edges)),!w(a,g,m,n)){h0;){if(e++>d){var l=new I;throw l.errorNum=G.errors.ERROR_GRAPH_TOO_MANY_ITERATIONS.code,l.errorMessage=G.errors.ERROR_GRAPH_TOO_MANY_ITERATIONS.message,l}L();var m=f[f.length-1],n=m.vertex,o=m.edge;if(null===m.visit||void 0===m.visit){if(m.visit=!1,k&&(j.vertices===D.UNIQUE_PATH&&(h.vertices=this.getPathItems(a.datasource.getVertexId,g.vertices)),j.edges===D.UNIQUE_PATH&&(h.edges=this.getPathItems(a.datasource.getEdgeId,g.edges)),!w(a,h,n,o))){f.pop();continue}null!==o&&g.edges.push(o),g.vertices.push(n);var p=v(a.filter(a,n,g));if(a.order===D.PRE_ORDER&&p.visit?a.visitor(a,b,n,g):m.visit=p.visit||!1,p.expand){var q,r=a.expander(a,n,g);for(i&&r.reverse(),a.order===D.PRE_ORDER_EXPANDER&&p.visit&&a.visitor(a,b,n,g,r),q=0;q0&&g.edges.pop(),g.vertices.pop()}}}}function A(){return{nodes:{},requiresEndVertex:function(){return!0},makeNode:function(a){var b=a._id;return this.nodes.hasOwnProperty(b)||(this.nodes[b]={vertex:a,dist:1/0}),this.nodes[b]},vertexList:function(a){for(var b=[];a;)b.push(a),a=a.parent;return b},buildPath:function(a){ -for(var b={vertices:[a.vertex],edges:[]},c=a;c.parent;)b.vertices.unshift(c.parent.vertex),b.edges.unshift(c.parentEdge),c=c.parent;return b},run:function(a,b,c,d){var e=a.maxIterations,f=0,g=new H(function(a){return a.dist}),h=this.makeNode(c);for(h.dist=0,g.push(h);g.size()>0;){if(f++>e){var i=new I;throw i.errorNum=G.errors.ERROR_GRAPH_TOO_MANY_ITERATIONS.code,i.errorMessage=G.errors.ERROR_GRAPH_TOO_MANY_ITERATIONS.message,i}L();var j,k,l=g.pop();if(l.vertex._id===d._id){var m=this.vertexList(l).reverse();for(k=m.length,j=0;k>j;++j)m[j].hide||a.visitor(a,b,m[j].vertex,this.buildPath(m[j]));return}if(!l.visited){if(l.dist===1/0)break;l.visited=!0;var n=this.buildPath(l),o=v(a.filter(a,l.vertex,n));if(o.visit||(l.hide=!0),o.expand){var p=l.dist,q=a.expander(a,l.vertex,n);for(k=q.length,j=0;k>j;++j){var r=this.makeNode(q[j].vertex);if(!r.visited){var s=q[j].edge,t=1;a.distance?t=a.distance(a,l.vertex,r.vertex,s):a.weight&&(t="number"==typeof s[a.weight]?s[a.weight]:a.defaultWeight?a.defaultWeight:1/0);var u=p+t;u0;){if(g++>f){var j=new I;throw j.errorNum=G.errors.ERROR_GRAPH_TOO_MANY_ITERATIONS.code,j.errorMessage=G.errors.ERROR_GRAPH_TOO_MANY_ITERATIONS.message,j}var k,l,m=h.pop();if(e.hasOwnProperty(m.vertex._id)&&(delete e[m.vertex._id],a.visitor(a,b,m,this.buildPath(m)),d(e)))return;if(!m.visited){if(m.dist===1/0)break;m.visited=!0;var n=this.buildPath(m),o=v(a.filter(a,m.vertex,n));if(o.visit||(m.hide=!0),o.expand){var p=m.dist,q=a.expander(a,m.vertex,n);for(l=q.length,k=0;l>k;++k){var r=this.makeNode(q[k].vertex);if(!r.visited){var s=q[k].edge,t=1;a.distance?t=a.distance(a,m.vertex,r.vertex,s):a.weight&&(t="number"==typeof s[a.weight]?s[a.weight]:a.defaultWeight?a.defaultWeight:1/0);var u=p+t;u0;){if(f++>e){var h=new I;throw h.errorNum=G.errors.ERROR_GRAPH_TOO_MANY_ITERATIONS.code,h.errorMessage=G.errors.ERROR_GRAPH_TOO_MANY_ITERATIONS.message,h}L();var i,j,k=g.pop();if(k.vertex._id===d._id){var l=this.vertexList(k);for(a.order!==D.PRE_ORDER&&l.reverse(),j=l.length,i=0;j>i;++i)a.visitor(a,b,l[i].vertex,this.buildPath(l[i]));return}k.closed=!0;var m=this.buildPath(k),n=a.expander(a,k.vertex,m);for(j=n.length,i=0;j>i;++i){var o=this.makeNode(n[i].vertex);if(!o.closed){var p=k.g+1,q=o.visited;if(!q||p0&&f.push(s),void 0!==a.maxDepth&&null!==a.maxDepth&&a.maxDepth>0&&f.push(r),Array.isArray(a.filter)||("function"==typeof a.filter?a.filter=[a.filter]:a.filter=[]),a.filter.forEach(function(a){if("function"!=typeof a)throw d=new I,d.errorNum=G.errors.ERROR_BAD_PARAMETER.code,d.errorMessage="invalid filter function",d;f.push(a)}),f.length>1?a.filter=function(a,b,c){return u(f,a,b,c)}:1===f.length?a.filter=f[0]:a.filter=q,"function"!=typeof a.expander&&(a.expander=b(a.expander,{outbound:h,inbound:i,any:j},"expander")),"function"!=typeof a.expander)throw d=new I,d.errorNum=G.errors.ERROR_BAD_PARAMETER.code,d.errorMessage="invalid expander function",d;if("object"!=typeof a.datasource)throw d=new I,d.errorNum=G.errors.ERROR_BAD_PARAMETER.code,d.errorMessage="invalid datasource",d;this.config=a},D.prototype.traverse=function(a,b,c){var d;if(d=this.config.strategy===D.ASTAR_SEARCH?C():this.config.strategy===D.DIJKSTRA_SEARCH?A():this.config.strategy===D.DIJKSTRA_SEARCH_MULTI?B():this.config.strategy===D.BREADTH_FIRST?y():z(),void 0===b||null===b||"object"!=typeof b){var e=new I;throw e.errorNum=G.errors.ERROR_BAD_PARAMETER.code,e.errorMessage=G.errors.ERROR_BAD_PARAMETER.message+": invalid startVertex specified for traversal",e}if(d.requiresEndVertex()&&(void 0===c||null===c||"object"!=typeof c)){var f=new I;throw f.errorNum=G.errors.ERROR_BAD_PARAMETER.code,f.errorMessage=G.errors.ERROR_BAD_PARAMETER.message+": invalid endVertex specified for traversal",f}try{d.run(this.config,a,b,c)}catch(g){if("object"!=typeof g||!g._intentionallyAborted)throw g}},D.UNIQUE_NONE=0,D.UNIQUE_PATH=1,D.UNIQUE_GLOBAL=2,D.BREADTH_FIRST=0,D.DEPTH_FIRST=1,D.ASTAR_SEARCH=2,D.DIJKSTRA_SEARCH=3,D.DIJKSTRA_SEARCH_MULTI=4,D.PRE_ORDER=0,D.POST_ORDER=1,D.PRE_ORDER_EXPANDER=2,D.FORWARD=0,D.BACKWARD=1,D.PRUNE="prune",D.EXCLUDE="exclude",a.collectionDatasourceFactory=e,a.generalGraphDatasourceFactory=f,a.graphDatasourceFactory=g,a.outboundExpander=h,a.inboundExpander=i,a.anyExpander=j,a.expandOutEdgesWithLabels=k,a.expandInEdgesWithLabels=l,a.expandEdgesWithLabels=m,a.trackingVisitor=n,a.countingVisitor=o,a.doNothingVisitor=p,a.visitAllFilter=q,a.maxDepthFilter=r,a.minDepthFilter=s,a.includeMatchingAttributesFilter=t,a.abortedException=N,a.Traverser=D}),module.define("org/arangodb/is",function(a,b){"use strict";function c(a){return null!==a&&void 0!==a}function d(a){return!c(a)}function e(a){return a!==!1&&c(a)}function f(a){return!e(a)}["Object","Array","Boolean","Date","Function","Number","String","RegExp"].forEach(function(b){a[b.toLowerCase()]=function(a){return Object.prototype.toString.call(a)==="[object "+b+"]"},a["no"+b]=function(a){return Object.prototype.toString.call(a)!=="[object "+b+"]"}}),a.existy=c,a.notExisty=d,a.truthy=e,a.falsy=f}),module.define("org/arangodb/mimetypes",function(a,b){a.mimeTypes={gif:["image/gif",!1],jpg:["image/jpg",!1],png:["image/png",!1],tiff:["image/tiff",!1],ico:["image/x-icon",!1],css:["text/css",!0],js:["text/javascript",!0],json:["application/json",!0],html:["text/html",!0],htm:["text/html",!0],pdf:["application/pdf",!1],ps:["application/postscript",!1],txt:["text/plain",!0],text:["text/plain",!0],xml:["application/xml",!0],dtd:["application/xml-dtd",!0],svg:["image/svg+xml",!0],ttf:["application/x-font-ttf",!1],otf:["application/x-font-opentype",!1],woff:["application/font-woff",!1],eot:["application/vnd.ms-fontobject",!1],bz2:["application/x-bzip2",!1],gz:["application/x-gzip",!1],tgz:["application/x-tar",!1],zip:["application/x-compressed-zip",!1],doc:["application/msword",!1],docx:["application/vnd.openxmlformats-officedocument.wordprocessingml.document",!1],dotx:["application/vnd.openxmlformats-officedocument.wordprocessingml.template",!1],potx:["application/vnd.openxmlformats-officedocument.presentationml.template",!1],ppsx:["application/vnd.openxmlformats-officedocument.presentationml.slideshow",!1],ppt:["application/vnd.ms-powerpoint",!1],pptx:["application/vnd.openxmlformats-officedocument.presentationml.presentation",!1],xls:["application/vnd.ms-excel",!1],xlsb:["application/vnd.ms-excel.sheet.binary.macroEnabled.12",!1],xlsx:["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",!1],xltx:["application/vnd.openxmlformats-officedocument.spreadsheetml.template",!1],swf:["application/x-shockwave-flash",!1]},a.extensions={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"image/svg+xml":["svg"],"application/postscript":["ps"],"image/png":["png"],"application/x-font-ttf":["ttf"],"application/vnd.ms-excel.sheet.binary.macroEnabled.12":["xlsb"],"application/x-font-opentype":["otf"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/x-bzip2":["bz2"],"application/json":["json"],"application/pdf":["pdf"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.ms-fontobject":["eot"],"application/xml-dtd":["dtd"],"application/x-shockwave-flash":["swf"],"image/gif":["gif"],"image/jpg":["jpg"],"application/xml":["xml"],"application/vnd.ms-excel":["xls"],"image/tiff":["tiff"],"application/vnd.ms-powerpoint":["ppt"],"application/font-woff":["woff"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"text/plain":["txt","text"],"application/x-tar":["tgz"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/x-gzip":["gz"],"text/javascript":["js"],"text/html":["html","htm"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"image/x-icon":["ico"],"application/x-compressed-zip":["zip"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"text/css":["css"],"application/msword":["doc"]}}),module.define("org/arangodb/simple-query-common",function(a,b){function c(a,b,c,d){this._documents=a,this._countTotal=a.length,this._skip=b,this._limit=c,this._cached=!1,this._extra={};var e=this;null!==d&&void 0!==d&&"object"==typeof d&&(["stats","warnings","profile"].forEach(function(a){d.hasOwnProperty(a)&&(e._extra[a]=d[a])}),this._cached=d.cached||!1),this.execute()}function d(){this._execution=null,this._skip=0,this._limit=null,this._countQuery=null,this._countTotal=null,this._batchSize=null}function e(a,b){return 0===a._limit?a=a.clone():0===b?(a=a.clone(),a._limit=0):null===a._limit?(a=a.clone(),a._limit=b):(a=a.clone(),bc&&(b=c);else if(this._skip<0){var d=-this._skip;c>d&&(b=c-d)}null!==this._limit&&b+this._limita){var b=new q;throw b.errorNum=p.ERROR_BAD_PARAMETER,b.errorMessage="limit must be non-negative",b}return e(this,a)},d.prototype.skip=function(a){var b,c;if((void 0===a||null===a)&&(a=0),null!==this._execution)throw"query is already executing";return null===this._limit?(b=this.clone(),null===this._skip||0===this._skip?b._skip=a:b._skip+=a):(c=this.clone().toArray(),b=new l(c),b._skip=a,b._countTotal=c._countTotal),b},d.prototype.toArray=function(){var a;for(this.execute(),a=[];this.hasNext();)a.push(this.next());return a},d.prototype.getBatchSize=function(){return this._batchSize},d.prototype.setBatchSize=function(a){a>=1&&(this._batchSize=a)},d.prototype.count=function(a){return this.execute(),void 0!==a&&a?this._countQuery:this._countTotal},d.prototype.hasNext=function(){return this.execute(),this._execution.hasNext()},d.prototype.next=function(){return this.execute(),this._execution.next()},d.prototype.dispose=function(){null!==this._execution&&this._execution.dispose(),this._execution=null,this._countQuery=null,this._countTotal=null},f.prototype=new d,f.prototype.constructor=f,f.prototype.clone=function(){var a;return a=new f(this._collection),a._skip=this._skip,a._limit=this._limit,a},f.prototype._PRINT=function(a){var b;b="SimpleQueryAll("+this._collection.name()+")",null!==this._skip&&0!==this._skip&&(b+=".skip("+this._skip+")"),null!==this._limit&&(b+=".limit("+this._limit+")"),a.output+=b},l=function(a){this._documents=a},l.prototype=new d,l.prototype.constructor=l,l.prototype.clone=function(){var a;return a=new l(this._documents),a._skip=this._skip,a._limit=this._limit,a},l.prototype.execute=function(){null===this._execution&&(null===this._skip&&(this._skip=0),this._execution=new c(this._documents,this._skip,this._limit))},l.prototype._PRINT=function(a){var b;b="SimpleQueryArray(documents)",null!==this._skip&&0!==this._skip&&(b+=".skip("+this._skip+")"),null!==this._limit&&(b+=".limit("+this._limit+")"),a.output+=b},g.prototype=new d,g.prototype.constructor=g,g.prototype.clone=function(){var a;return a=new g(this._collection,this._example),a._skip=this._skip,a._limit=this._limit,a._type=this._type,a._index=this._index,a},g.prototype._PRINT=function(a){var b;b="SimpleQueryByExample("+this._collection.name()+")",null!==this._skip&&0!==this._skip&&(b+=".skip("+this._skip+")"),null!==this._limit&&(b+=".limit("+this._limit+")"),a.output+=b},h.prototype=new d,h.prototype.constructor=h,h.prototype.clone=function(){var a;return a=new h(this._collection,this._condition),a._skip=this._skip,a._limit=this._limit,a._type=this._type,a._index=this._index,a},h.prototype._PRINT=function(a){var b;b="SimpleQueryByCondition("+this._collection.name()+")",null!==this._skip&&0!==this._skip&&(b+=".skip("+this._skip+")"),null!==this._limit&&(b+=".limit("+this._limit+")"),a.output+=b},i.prototype=new d,i.prototype.constructor=i,i.prototype.clone=function(){var a;return a=new i(this._collection,this._attribute,this._left,this._right,this._type),a._skip=this._skip,a._limit=this._limit,a},i.prototype._PRINT=function(a){var b;b="SimpleQueryRange("+this._collection.name()+")",null!==this._skip&&0!==this._skip&&(b+=".skip("+this._skip+")"),null!==this._limit&&(b+=".limit("+this._limit+")"),a.output+=b},j.prototype._PRINT=function(a){var b;b="GeoIndex("+this._collection.name()+", "+this._index+")",a.output+=b},j.prototype.near=function(a,b){return new m(this._collection,a,b,this._index)},j.prototype.within=function(a,b,c){return new n(this._collection,a,b,c,this._index)},j.prototype.withinRectangle=function(a,b,c,d){return new o(this._collection,a,b,c,d,this._index)},m=function(a,b,c,d){var e,f;if(this._collection=a,this._latitude=b,this._longitude=c,this._index=void 0===d?null:d,this._distance=null,void 0===d)for(e=a.getIndexes(),f=0;f=0&&g>f;f+=a){var h=e?e[f]:f;d=c(d,b[h],h,b)}return d}return function(c,d,e,f){d=v(d,f,4);var g=!C(c)&&u.keys(c),h=(g||c).length,i=a>0?0:h-1;return arguments.length<3&&(e=c[g?g[i]:i],i+=a),b(c,d,e,g,i,h)}}function d(a){return function(b,c,d){c=w(c,d);for(var e=B(b),f=a>0?0:e-1;f>=0&&e>f;f+=a)if(c(b[f],f,b))return f;return-1}}function e(a,b,c){return function(d,e,f){var g=0,h=B(d);if("number"==typeof f)a>0?g=f>=0?f:Math.max(f+h,g):h=f>=0?Math.min(f+1,h):f+h+1;else if(c&&f&&h)return f=c(d,e),d[f]===e?f:-1;if(e!==e)return f=b(m.call(d,g,h),u.isNaN),f>=0?f+g:-1;for(f=a>0?g:h-1;f>=0&&h>f;f+=a)if(d[f]===e)return f;return-1}}function f(a,b){var c=H.length,d=a.constructor,e=u.isFunction(d)&&d.prototype||j,f="constructor";for(u.has(a,f)&&!u.contains(b,f)&&b.push(f);c--;)f=H[c],f in a&&a[f]!==e[f]&&!u.contains(b,f)&&b.push(f)}var g=this,h=g._,i=Array.prototype,j=Object.prototype,k=Function.prototype,l=i.push,m=i.slice,n=j.toString,o=j.hasOwnProperty,p=Array.isArray,q=Object.keys,r=k.bind,s=Object.create,t=function(){},u=function S(a){return a instanceof S?a:this instanceof S?void(this._wrapped=a):new S(a)};"undefined"!=typeof a?("undefined"!=typeof b&&b.exports&&(a=b.exports=u),a._=u):g._=u,u.VERSION="1.8.3";var v=function(a,b,c){if(void 0===b)return a;switch(null==c?3:c){case 1:return function(c){return a.call(b,c)};case 2:return function(c,d){return a.call(b,c,d)};case 3:return function(c,d,e){return a.call(b,c,d,e)};case 4:return function(c,d,e,f){return a.call(b,c,d,e,f)}}return function(){return a.apply(b,arguments)}},w=function(a,b,c){return null==a?u.identity:u.isFunction(a)?v(a,b,c):u.isObject(a)?u.matcher(a):u.property(a)};u.iteratee=function(a,b){return w(a,b,1/0)};var x=function(a,b){return function(c){var d=arguments.length;if(2>d||null==c)return c;for(var e=1;d>e;e++)for(var f=arguments[e],g=a(f),h=g.length,i=0;h>i;i++){var j=g[i];b&&void 0!==c[j]||(c[j]=f[j])}return c}},y=function(a){if(!u.isObject(a))return{};if(s)return s(a);t.prototype=a;var b=new t;return t.prototype=null,b},z=function(a){return function(b){return null==b?void 0:b[a]}},A=Math.pow(2,53)-1,B=z("length"),C=function(a){var b=B(a);return"number"==typeof b&&b>=0&&A>=b};u.each=u.forEach=function(a,b,c){b=v(b,c);var d,e;if(C(a))for(d=0,e=a.length;e>d;d++)b(a[d],d,a);else{var f=u.keys(a);for(d=0,e=f.length;e>d;d++)b(a[f[d]],f[d],a)}return a},u.map=u.collect=function(a,b,c){b=w(b,c);for(var d=!C(a)&&u.keys(a),e=(d||a).length,f=Array(e),g=0;e>g;g++){var h=d?d[g]:g;f[g]=b(a[h],h,a)}return f},u.reduce=u.foldl=u.inject=c(1),u.reduceRight=u.foldr=c(-1),u.find=u.detect=function(a,b,c){var d;return d=C(a)?u.findIndex(a,b,c):u.findKey(a,b,c),void 0!==d&&-1!==d?a[d]:void 0},u.filter=u.select=function(a,b,c){var d=[];return b=w(b,c),u.each(a,function(a,c,e){b(a,c,e)&&d.push(a)}),d},u.reject=function(a,b,c){return u.filter(a,u.negate(w(b)),c)},u.every=u.all=function(a,b,c){b=w(b,c);for(var d=!C(a)&&u.keys(a),e=(d||a).length,f=0;e>f;f++){var g=d?d[f]:f;if(!b(a[g],g,a))return!1}return!0},u.some=u.any=function(a,b,c){b=w(b,c);for(var d=!C(a)&&u.keys(a),e=(d||a).length,f=0;e>f;f++){var g=d?d[f]:f;if(b(a[g],g,a))return!0}return!1},u.contains=u.includes=u.include=function(a,b,c,d){return C(a)||(a=u.values(a)),("number"!=typeof c||d)&&(c=0),u.indexOf(a,b,c)>=0},u.invoke=function(a,b){var c=m.call(arguments,2),d=u.isFunction(b);return u.map(a,function(a){var e=d?b:a[b];return null==e?e:e.apply(a,c)})},u.pluck=function(a,b){return u.map(a,u.property(b))},u.where=function(a,b){return u.filter(a,u.matcher(b))},u.findWhere=function(a,b){return u.find(a,u.matcher(b))},u.max=function(a,b,c){var d,e,f=-(1/0),g=-(1/0);if(null==b&&null!=a){a=C(a)?a:u.values(a);for(var h=0,i=a.length;i>h;h++)d=a[h],d>f&&(f=d)}else b=w(b,c),u.each(a,function(a,c,d){e=b(a,c,d),(e>g||e===-(1/0)&&f===-(1/0))&&(f=a,g=e)});return f},u.min=function(a,b,c){var d,e,f=1/0,g=1/0;if(null==b&&null!=a){a=C(a)?a:u.values(a);for(var h=0,i=a.length;i>h;h++)d=a[h],f>d&&(f=d)}else b=w(b,c),u.each(a,function(a,c,d){e=b(a,c,d),(g>e||e===1/0&&f===1/0)&&(f=a,g=e)});return f},u.shuffle=function(a){for(var b,c=C(a)?a:u.values(a),d=c.length,e=Array(d),f=0;d>f;f++)b=u.random(0,f),b!==f&&(e[f]=e[b]),e[b]=c[f];return e},u.sample=function(a,b,c){return null==b||c?(C(a)||(a=u.values(a)),a[u.random(a.length-1)]):u.shuffle(a).slice(0,Math.max(0,b))},u.sortBy=function(a,b,c){return b=w(b,c),u.pluck(u.map(a,function(a,c,d){return{value:a,index:c,criteria:b(a,c,d)}}).sort(function(a,b){var c=a.criteria,d=b.criteria;if(c!==d){if(c>d||void 0===c)return 1;if(d>c||void 0===d)return-1}return a.index-b.index}),"value")};var D=function(a){return function(b,c,d){var e={};return c=w(c,d),u.each(b,function(d,f){var g=c(d,f,b);a(e,d,g)}),e}};u.groupBy=D(function(a,b,c){u.has(a,c)?a[c].push(b):a[c]=[b]}),u.indexBy=D(function(a,b,c){a[c]=b}),u.countBy=D(function(a,b,c){u.has(a,c)?a[c]++:a[c]=1}),u.toArray=function(a){return a?u.isArray(a)?m.call(a):C(a)?u.map(a,u.identity):u.values(a):[]},u.size=function(a){return null==a?0:C(a)?a.length:u.keys(a).length},u.partition=function(a,b,c){b=w(b,c);var d=[],e=[];return u.each(a,function(a,c,f){(b(a,c,f)?d:e).push(a)}),[d,e]},u.first=u.head=u.take=function(a,b,c){return null!=a?null==b||c?a[0]:u.initial(a,a.length-b):void 0},u.initial=function(a,b,c){return m.call(a,0,Math.max(0,a.length-(null==b||c?1:b)))},u.last=function(a,b,c){return null!=a?null==b||c?a[a.length-1]:u.rest(a,Math.max(0,a.length-b)):void 0},u.rest=u.tail=u.drop=function(a,b,c){return m.call(a,null==b||c?1:b)},u.compact=function(a){return u.filter(a,u.identity)};var E=function T(a,b,c,d){for(var e=[],f=0,g=d||0,h=B(a);h>g;g++){var i=a[g];if(C(i)&&(u.isArray(i)||u.isArguments(i))){b||(i=T(i,b,c));var j=0,k=i.length;for(e.length+=k;k>j;)e[f++]=i[j++]}else c||(e[f++]=i)}return e};u.flatten=function(a,b){return E(a,b,!1)},u.without=function(a){return u.difference(a,m.call(arguments,1))},u.uniq=u.unique=function(a,b,c,d){u.isBoolean(b)||(d=c,c=b,b=!1),null!=c&&(c=w(c,d));for(var e=[],f=[],g=0,h=B(a);h>g;g++){var i=a[g],j=c?c(i,g,a):i;b?(g&&f===j||e.push(i),f=j):c?u.contains(f,j)||(f.push(j),e.push(i)):u.contains(e,i)||e.push(i)}return e},u.union=function(){return u.uniq(E(arguments,!0,!0))},u.intersection=function(a){for(var b=[],c=arguments.length,d=0,e=B(a);e>d;d++){var f=a[d];if(!u.contains(b,f)){for(var g=1;c>g&&u.contains(arguments[g],f);g++);g===c&&b.push(f)}}return b},u.difference=function(a){var b=E(arguments,!0,!0,1);return u.filter(a,function(a){return!u.contains(b,a)})},u.zip=function(){return u.unzip(arguments)},u.unzip=function(a){for(var b=a&&u.max(a,B).length||0,c=Array(b),d=0;b>d;d++)c[d]=u.pluck(a,d);return c},u.object=function(a,b){for(var c={},d=0,e=B(a);e>d;d++)b?c[a[d]]=b[d]:c[a[d][0]]=a[d][1];return c},u.findIndex=d(1),u.findLastIndex=d(-1),u.sortedIndex=function(a,b,c,d){c=w(c,d,1);for(var e=c(b),f=0,g=B(a);g>f;){var h=Math.floor((f+g)/2);c(a[h])f;f++,a+=c)e[f]=a;return e};var F=function(a,b,c,d,e){if(!(d instanceof b))return a.apply(c,e);var f=y(a.prototype),g=a.apply(f,e);return u.isObject(g)?g:f};u.bind=function(a,b){if(r&&a.bind===r)return r.apply(a,m.call(arguments,1));if(!u.isFunction(a))throw new TypeError("Bind must be called on a function");var c=m.call(arguments,2),d=function e(){return F(a,e,b,this,c.concat(m.call(arguments)))};return d},u.partial=function(a){var b=m.call(arguments,1),c=function d(){for(var c=0,e=b.length,f=Array(e),g=0;e>g;g++)f[g]=b[g]===u?arguments[c++]:b[g];for(;c=d)throw new Error("bindAll must be passed function names");for(b=1;d>b;b++)c=arguments[b],a[c]=u.bind(a[c],a);return a},u.memoize=function(a,b){var c=function d(c){var e=d.cache,f=""+(b?b.apply(this,arguments):c);return u.has(e,f)||(e[f]=a.apply(this,arguments)),e[f]};return c.cache={},c},u.delay=function(a,b){var c=m.call(arguments,2);return setTimeout(function(){return a.apply(null,c)},b)},u.defer=u.partial(u.delay,u,1),u.throttle=function(a,b,c){var d,e,f,g=null,h=0;c||(c={});var i=function(){h=c.leading===!1?0:u.now(),g=null,f=a.apply(d,e),g||(d=e=null)};return function(){var j=u.now();h||c.leading!==!1||(h=j);var k=b-(j-h);return d=this,e=arguments,0>=k||k>b?(g&&(clearTimeout(g),g=null),h=j,f=a.apply(d,e),g||(d=e=null)):g||c.trailing===!1||(g=setTimeout(i,k)),f}},u.debounce=function(a,b,c){var d,e,f,g,h,i=function j(){var i=u.now()-g;b>i&&i>=0?d=setTimeout(j,b-i):(d=null,c||(h=a.apply(f,e),d||(f=e=null)))};return function(){f=this,e=arguments,g=u.now();var j=c&&!d;return d||(d=setTimeout(i,b)),j&&(h=a.apply(f,e),f=e=null),h}},u.wrap=function(a,b){return u.partial(b,a)},u.negate=function(a){return function(){return!a.apply(this,arguments)}},u.compose=function(){var a=arguments,b=a.length-1;return function(){for(var c=b,d=a[b].apply(this,arguments);c--;)d=a[c].call(this,d);return d}},u.after=function(a,b){return function(){return--a<1?b.apply(this,arguments):void 0}},u.before=function(a,b){var c;return function(){return--a>0&&(c=b.apply(this,arguments)),1>=a&&(b=null),c}},u.once=u.partial(u.before,2);var G=!{toString:null}.propertyIsEnumerable("toString"),H=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];u.keys=function(a){if(!u.isObject(a))return[];if(q)return q(a);var b=[];for(var c in a)u.has(a,c)&&b.push(c);return G&&f(a,b),b},u.allKeys=function(a){if(!u.isObject(a))return[];var b=[];for(var c in a)b.push(c);return G&&f(a,b),b},u.values=function(a){for(var b=u.keys(a),c=b.length,d=Array(c),e=0;c>e;e++)d[e]=a[b[e]];return d},u.mapObject=function(a,b,c){b=w(b,c);for(var d,e=u.keys(a),f=e.length,g={},h=0;f>h;h++)d=e[h], +for(var b={vertices:[a.vertex],edges:[]},c=a;c.parent;)b.vertices.unshift(c.parent.vertex),b.edges.unshift(c.parentEdge),c=c.parent;return b},run:function(a,b,c,d){var e=a.maxIterations,f=0,g=new H(function(a){return a.dist}),h=this.makeNode(c);for(h.dist=0,g.push(h);g.size()>0;){if(f++>e){var i=new I;throw i.errorNum=G.errors.ERROR_GRAPH_TOO_MANY_ITERATIONS.code,i.errorMessage=G.errors.ERROR_GRAPH_TOO_MANY_ITERATIONS.message,i}L();var j,k,l=g.pop();if(l.vertex._id===d._id){var m=this.vertexList(l).reverse();for(k=m.length,j=0;k>j;++j)m[j].hide||a.visitor(a,b,m[j].vertex,this.buildPath(m[j]));return}if(!l.visited){if(l.dist===1/0)break;l.visited=!0;var n=this.buildPath(l),o=v(a.filter(a,l.vertex,n));if(o.visit||(l.hide=!0),o.expand){var p=l.dist,q=a.expander(a,l.vertex,n);for(k=q.length,j=0;k>j;++j){var r=this.makeNode(q[j].vertex);if(!r.visited){var s=q[j].edge,t=1;a.distance?t=a.distance(a,l.vertex,r.vertex,s):a.weight&&(t="number"==typeof s[a.weight]?s[a.weight]:a.defaultWeight?a.defaultWeight:1/0);var u=p+t;u0;){if(g++>f){var j=new I;throw j.errorNum=G.errors.ERROR_GRAPH_TOO_MANY_ITERATIONS.code,j.errorMessage=G.errors.ERROR_GRAPH_TOO_MANY_ITERATIONS.message,j}var k,l,m=h.pop();if(e.hasOwnProperty(m.vertex._id)&&(delete e[m.vertex._id],a.visitor(a,b,m,this.buildPath(m)),d(e)))return;if(!m.visited){if(m.dist===1/0)break;m.visited=!0;var n=this.buildPath(m),o=v(a.filter(a,m.vertex,n));if(o.visit||(m.hide=!0),o.expand){var p=m.dist,q=a.expander(a,m.vertex,n);for(l=q.length,k=0;l>k;++k){var r=this.makeNode(q[k].vertex);if(!r.visited){var s=q[k].edge,t=1;a.distance?t=a.distance(a,m.vertex,r.vertex,s):a.weight&&(t="number"==typeof s[a.weight]?s[a.weight]:a.defaultWeight?a.defaultWeight:1/0);var u=p+t;u0;){if(f++>e){var h=new I;throw h.errorNum=G.errors.ERROR_GRAPH_TOO_MANY_ITERATIONS.code,h.errorMessage=G.errors.ERROR_GRAPH_TOO_MANY_ITERATIONS.message,h}L();var i,j,k=g.pop();if(k.vertex._id===d._id){var l=this.vertexList(k);for(a.order!==D.PRE_ORDER&&l.reverse(),j=l.length,i=0;j>i;++i)a.visitor(a,b,l[i].vertex,this.buildPath(l[i]));return}k.closed=!0;var m=this.buildPath(k),n=a.expander(a,k.vertex,m);for(j=n.length,i=0;j>i;++i){var o=this.makeNode(n[i].vertex);if(!o.closed){var p=k.g+1,q=o.visited;if(!q||p0&&f.push(s),void 0!==a.maxDepth&&null!==a.maxDepth&&a.maxDepth>0&&f.push(r),Array.isArray(a.filter)||("function"==typeof a.filter?a.filter=[a.filter]:a.filter=[]),a.filter.forEach(function(a){if("function"!=typeof a)throw d=new I,d.errorNum=G.errors.ERROR_BAD_PARAMETER.code,d.errorMessage="invalid filter function",d;f.push(a)}),f.length>1?a.filter=function(a,b,c){return u(f,a,b,c)}:1===f.length?a.filter=f[0]:a.filter=q,"function"!=typeof a.expander&&(a.expander=b(a.expander,{outbound:h,inbound:i,any:j},"expander")),"function"!=typeof a.expander)throw d=new I,d.errorNum=G.errors.ERROR_BAD_PARAMETER.code,d.errorMessage="invalid expander function",d;if("object"!=typeof a.datasource)throw d=new I,d.errorNum=G.errors.ERROR_BAD_PARAMETER.code,d.errorMessage="invalid datasource",d;this.config=a},D.prototype.traverse=function(a,b,c){var d;if(d=this.config.strategy===D.ASTAR_SEARCH?C():this.config.strategy===D.DIJKSTRA_SEARCH?A():this.config.strategy===D.DIJKSTRA_SEARCH_MULTI?B():this.config.strategy===D.BREADTH_FIRST?y():z(),void 0===b||null===b||"object"!=typeof b){var e=new I;throw e.errorNum=G.errors.ERROR_BAD_PARAMETER.code,e.errorMessage=G.errors.ERROR_BAD_PARAMETER.message+": invalid startVertex specified for traversal",e}if(d.requiresEndVertex()&&(void 0===c||null===c||"object"!=typeof c)){var f=new I;throw f.errorNum=G.errors.ERROR_BAD_PARAMETER.code,f.errorMessage=G.errors.ERROR_BAD_PARAMETER.message+": invalid endVertex specified for traversal",f}try{d.run(this.config,a,b,c)}catch(g){if("object"!=typeof g||!g._intentionallyAborted)throw g}},D.UNIQUE_NONE=0,D.UNIQUE_PATH=1,D.UNIQUE_GLOBAL=2,D.BREADTH_FIRST=0,D.DEPTH_FIRST=1,D.ASTAR_SEARCH=2,D.DIJKSTRA_SEARCH=3,D.DIJKSTRA_SEARCH_MULTI=4,D.PRE_ORDER=0,D.POST_ORDER=1,D.PRE_ORDER_EXPANDER=2,D.FORWARD=0,D.BACKWARD=1,D.PRUNE="prune",D.EXCLUDE="exclude",a.collectionDatasourceFactory=e,a.generalGraphDatasourceFactory=f,a.graphDatasourceFactory=g,a.outboundExpander=h,a.inboundExpander=i,a.anyExpander=j,a.expandOutEdgesWithLabels=k,a.expandInEdgesWithLabels=l,a.expandEdgesWithLabels=m,a.trackingVisitor=n,a.countingVisitor=o,a.doNothingVisitor=p,a.visitAllFilter=q,a.maxDepthFilter=r,a.minDepthFilter=s,a.includeMatchingAttributesFilter=t,a.abortedException=N,a.Traverser=D}),module.define("org/arangodb/is",function(a,b){"use strict";function c(a){return null!==a&&void 0!==a}function d(a){return!c(a)}function e(a){return a!==!1&&c(a)}function f(a){return!e(a)}["Object","Array","Boolean","Date","Function","Number","String","RegExp"].forEach(function(b){a[b.toLowerCase()]=function(a){return Object.prototype.toString.call(a)==="[object "+b+"]"},a["no"+b]=function(a){return Object.prototype.toString.call(a)!=="[object "+b+"]"}}),a.existy=c,a.notExisty=d,a.truthy=e,a.falsy=f}),module.define("org/arangodb/mimetypes",function(a,b){a.mimeTypes={gif:["image/gif",!1],jpg:["image/jpg",!1],png:["image/png",!1],tiff:["image/tiff",!1],ico:["image/x-icon",!1],css:["text/css",!0],js:["text/javascript",!0],json:["application/json",!0],html:["text/html",!0],htm:["text/html",!0],pdf:["application/pdf",!1],ps:["application/postscript",!1],txt:["text/plain",!0],text:["text/plain",!0],xml:["application/xml",!0],dtd:["application/xml-dtd",!0],svg:["image/svg+xml",!0],ttf:["application/x-font-ttf",!1],otf:["application/x-font-opentype",!1],woff:["application/font-woff",!1],eot:["application/vnd.ms-fontobject",!1],bz2:["application/x-bzip2",!1],gz:["application/x-gzip",!1],tgz:["application/x-tar",!1],zip:["application/x-compressed-zip",!1],doc:["application/msword",!1],docx:["application/vnd.openxmlformats-officedocument.wordprocessingml.document",!1],dotx:["application/vnd.openxmlformats-officedocument.wordprocessingml.template",!1],potx:["application/vnd.openxmlformats-officedocument.presentationml.template",!1],ppsx:["application/vnd.openxmlformats-officedocument.presentationml.slideshow",!1],ppt:["application/vnd.ms-powerpoint",!1],pptx:["application/vnd.openxmlformats-officedocument.presentationml.presentation",!1],xls:["application/vnd.ms-excel",!1],xlsb:["application/vnd.ms-excel.sheet.binary.macroEnabled.12",!1],xlsx:["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",!1],xltx:["application/vnd.openxmlformats-officedocument.spreadsheetml.template",!1],swf:["application/x-shockwave-flash",!1]},a.extensions={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"image/svg+xml":["svg"],"application/postscript":["ps"],"image/png":["png"],"application/x-font-ttf":["ttf"],"application/vnd.ms-excel.sheet.binary.macroEnabled.12":["xlsb"],"application/x-font-opentype":["otf"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/x-bzip2":["bz2"],"application/json":["json"],"application/pdf":["pdf"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.ms-fontobject":["eot"],"application/xml-dtd":["dtd"],"application/x-shockwave-flash":["swf"],"image/gif":["gif"],"image/jpg":["jpg"],"application/xml":["xml"],"application/vnd.ms-excel":["xls"],"image/tiff":["tiff"],"application/vnd.ms-powerpoint":["ppt"],"application/font-woff":["woff"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"text/plain":["txt","text"],"application/x-tar":["tgz"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/x-gzip":["gz"],"text/javascript":["js"],"text/html":["html","htm"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"image/x-icon":["ico"],"application/x-compressed-zip":["zip"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"text/css":["css"],"application/msword":["doc"]}}),module.define("org/arangodb/simple-query-common",function(a,b){function c(a,b,c,d){this._documents=a,this._countTotal=a.length,this._skip=b,this._limit=c,this._cached=!1,this._extra={};var e=this;null!==d&&void 0!==d&&"object"==typeof d&&(["stats","warnings","profile"].forEach(function(a){d.hasOwnProperty(a)&&(e._extra[a]=d[a])}),this._cached=d.cached||!1),this.execute()}function d(){this._execution=null,this._skip=0,this._limit=null,this._countQuery=null,this._countTotal=null,this._batchSize=null}function e(a,b){return 0===a._limit?a=a.clone():0===b?(a=a.clone(),a._limit=0):null===a._limit?(a=a.clone(),a._limit=b):(a=a.clone(),bc&&(b=c);else if(this._skip<0){var d=-this._skip;c>d&&(b=c-d)}null!==this._limit&&b+this._limita){var b=new q;throw b.errorNum=p.ERROR_BAD_PARAMETER,b.errorMessage="limit must be non-negative",b}return e(this,a)},d.prototype.skip=function(a){var b,c;if((void 0===a||null===a)&&(a=0),null!==this._execution)throw"query is already executing";return null===this._limit?(b=this.clone(),null===this._skip||0===this._skip?b._skip=a:b._skip+=a):(c=this.clone().toArray(),b=new l(c),b._skip=a,b._countTotal=c._countTotal),b},d.prototype.toArray=function(){var a;for(this.execute(),a=[];this.hasNext();)a.push(this.next());return a},d.prototype.getBatchSize=function(){return this._batchSize},d.prototype.setBatchSize=function(a){a>=1&&(this._batchSize=a)},d.prototype.count=function(a){return this.execute(),void 0!==a&&a?this._countQuery:this._countTotal},d.prototype.hasNext=function(){return this.execute(),this._execution.hasNext()},d.prototype.next=function(){return this.execute(),this._execution.next()},d.prototype.dispose=function(){null!==this._execution&&this._execution.dispose(),this._execution=null,this._countQuery=null,this._countTotal=null},f.prototype=new d,f.prototype.constructor=f,f.prototype.clone=function(){var a;return a=new f(this._collection),a._skip=this._skip,a._limit=this._limit,a},f.prototype._PRINT=function(a){var b;b="SimpleQueryAll("+this._collection.name()+")",null!==this._skip&&0!==this._skip&&(b+=".skip("+this._skip+")"),null!==this._limit&&(b+=".limit("+this._limit+")"),a.output+=b},l=function(a){this._documents=a},l.prototype=new d,l.prototype.constructor=l,l.prototype.clone=function(){var a;return a=new l(this._documents),a._skip=this._skip,a._limit=this._limit,a},l.prototype.execute=function(){null===this._execution&&(null===this._skip&&(this._skip=0),this._execution=new c(this._documents,this._skip,this._limit))},l.prototype._PRINT=function(a){var b;b="SimpleQueryArray(documents)",null!==this._skip&&0!==this._skip&&(b+=".skip("+this._skip+")"),null!==this._limit&&(b+=".limit("+this._limit+")"),a.output+=b},g.prototype=new d,g.prototype.constructor=g,g.prototype.clone=function(){var a;return a=new g(this._collection,this._example),a._skip=this._skip,a._limit=this._limit,a._type=this._type,a._index=this._index,a},g.prototype._PRINT=function(a){var b;b="SimpleQueryByExample("+this._collection.name()+")",null!==this._skip&&0!==this._skip&&(b+=".skip("+this._skip+")"),null!==this._limit&&(b+=".limit("+this._limit+")"),a.output+=b},h.prototype=new d,h.prototype.constructor=h,h.prototype.clone=function(){var a;return a=new h(this._collection,this._condition),a._skip=this._skip,a._limit=this._limit,a._type=this._type,a._index=this._index,a},h.prototype._PRINT=function(a){var b;b="SimpleQueryByCondition("+this._collection.name()+")",null!==this._skip&&0!==this._skip&&(b+=".skip("+this._skip+")"),null!==this._limit&&(b+=".limit("+this._limit+")"),a.output+=b},i.prototype=new d,i.prototype.constructor=i,i.prototype.clone=function(){var a;return a=new i(this._collection,this._attribute,this._left,this._right,this._type),a._skip=this._skip,a._limit=this._limit,a},i.prototype._PRINT=function(a){var b;b="SimpleQueryRange("+this._collection.name()+")",null!==this._skip&&0!==this._skip&&(b+=".skip("+this._skip+")"),null!==this._limit&&(b+=".limit("+this._limit+")"),a.output+=b},j.prototype._PRINT=function(a){var b;b="GeoIndex("+this._collection.name()+", "+this._index+")",a.output+=b},j.prototype.near=function(a,b){return new m(this._collection,a,b,this._index)},j.prototype.within=function(a,b,c){return new n(this._collection,a,b,c,this._index)},j.prototype.withinRectangle=function(a,b,c,d){return new o(this._collection,a,b,c,d,this._index)},m=function(a,b,c,d){var e,f;if(this._collection=a,this._latitude=b,this._longitude=c,this._index=void 0===d?null:d,this._distance=null,void 0===d)for(e=a.getIndexes(),f=0;f=0&&g>f;f+=a){var h=e?e[f]:f;d=c(d,b[h],h,b)}return d}return function(c,d,e,f){d=v(d,f,4);var g=!C(c)&&u.keys(c),h=(g||c).length,i=a>0?0:h-1;return arguments.length<3&&(e=c[g?g[i]:i],i+=a),b(c,d,e,g,i,h)}}function d(a){return function(b,c,d){c=w(c,d);for(var e=B(b),f=a>0?0:e-1;f>=0&&e>f;f+=a)if(c(b[f],f,b))return f;return-1}}function e(a,b,c){return function(d,e,f){var g=0,h=B(d);if("number"==typeof f)a>0?g=f>=0?f:Math.max(f+h,g):h=f>=0?Math.min(f+1,h):f+h+1;else if(c&&f&&h)return f=c(d,e),d[f]===e?f:-1;if(e!==e)return f=b(m.call(d,g,h),u.isNaN),f>=0?f+g:-1;for(f=a>0?g:h-1;f>=0&&h>f;f+=a)if(d[f]===e)return f;return-1}}function f(a,b){var c=H.length,d=a.constructor,e=u.isFunction(d)&&d.prototype||j,f="constructor";for(u.has(a,f)&&!u.contains(b,f)&&b.push(f);c--;)f=H[c],f in a&&a[f]!==e[f]&&!u.contains(b,f)&&b.push(f)}var g=this,h=g._,i=Array.prototype,j=Object.prototype,k=Function.prototype,l=i.push,m=i.slice,n=j.toString,o=j.hasOwnProperty,p=Array.isArray,q=Object.keys,r=k.bind,s=Object.create,t=function(){},u=function S(a){return a instanceof S?a:this instanceof S?void(this._wrapped=a):new S(a)};"undefined"!=typeof a?("undefined"!=typeof b&&b.exports&&(a=b.exports=u),a._=u):g._=u,u.VERSION="1.8.3";var v=function(a,b,c){if(void 0===b)return a;switch(null==c?3:c){case 1:return function(c){return a.call(b,c)};case 2:return function(c,d){return a.call(b,c,d)};case 3:return function(c,d,e){return a.call(b,c,d,e)};case 4:return function(c,d,e,f){return a.call(b,c,d,e,f)}}return function(){return a.apply(b,arguments)}},w=function(a,b,c){return null==a?u.identity:u.isFunction(a)?v(a,b,c):u.isObject(a)?u.matcher(a):u.property(a)};u.iteratee=function(a,b){return w(a,b,1/0)};var x=function(a,b){return function(c){var d=arguments.length;if(2>d||null==c)return c;for(var e=1;d>e;e++)for(var f=arguments[e],g=a(f),h=g.length,i=0;h>i;i++){var j=g[i];b&&void 0!==c[j]||(c[j]=f[j])}return c}},y=function(a){if(!u.isObject(a))return{};if(s)return s(a);t.prototype=a;var b=new t;return t.prototype=null,b},z=function(a){return function(b){return null==b?void 0:b[a]}},A=Math.pow(2,53)-1,B=z("length"),C=function(a){var b=B(a);return"number"==typeof b&&b>=0&&A>=b};u.each=u.forEach=function(a,b,c){b=v(b,c);var d,e;if(C(a))for(d=0,e=a.length;e>d;d++)b(a[d],d,a);else{var f=u.keys(a);for(d=0,e=f.length;e>d;d++)b(a[f[d]],f[d],a)}return a},u.map=u.collect=function(a,b,c){b=w(b,c);for(var d=!C(a)&&u.keys(a),e=(d||a).length,f=Array(e),g=0;e>g;g++){var h=d?d[g]:g;f[g]=b(a[h],h,a)}return f},u.reduce=u.foldl=u.inject=c(1),u.reduceRight=u.foldr=c(-1),u.find=u.detect=function(a,b,c){var d;return d=C(a)?u.findIndex(a,b,c):u.findKey(a,b,c),void 0!==d&&-1!==d?a[d]:void 0},u.filter=u.select=function(a,b,c){var d=[];return b=w(b,c),u.each(a,function(a,c,e){b(a,c,e)&&d.push(a)}),d},u.reject=function(a,b,c){return u.filter(a,u.negate(w(b)),c)},u.every=u.all=function(a,b,c){b=w(b,c);for(var d=!C(a)&&u.keys(a),e=(d||a).length,f=0;e>f;f++){var g=d?d[f]:f;if(!b(a[g],g,a))return!1}return!0},u.some=u.any=function(a,b,c){b=w(b,c);for(var d=!C(a)&&u.keys(a),e=(d||a).length,f=0;e>f;f++){var g=d?d[f]:f;if(b(a[g],g,a))return!0}return!1},u.contains=u.includes=u.include=function(a,b,c,d){return C(a)||(a=u.values(a)),("number"!=typeof c||d)&&(c=0),u.indexOf(a,b,c)>=0},u.invoke=function(a,b){var c=m.call(arguments,2),d=u.isFunction(b);return u.map(a,function(a){var e=d?b:a[b];return null==e?e:e.apply(a,c)})},u.pluck=function(a,b){return u.map(a,u.property(b))},u.where=function(a,b){return u.filter(a,u.matcher(b))},u.findWhere=function(a,b){return u.find(a,u.matcher(b))},u.max=function(a,b,c){var d,e,f=-(1/0),g=-(1/0);if(null==b&&null!=a){a=C(a)?a:u.values(a);for(var h=0,i=a.length;i>h;h++)d=a[h],d>f&&(f=d)}else b=w(b,c),u.each(a,function(a,c,d){e=b(a,c,d),(e>g||e===-(1/0)&&f===-(1/0))&&(f=a,g=e)});return f},u.min=function(a,b,c){var d,e,f=1/0,g=1/0;if(null==b&&null!=a){a=C(a)?a:u.values(a);for(var h=0,i=a.length;i>h;h++)d=a[h],f>d&&(f=d)}else b=w(b,c),u.each(a,function(a,c,d){e=b(a,c,d),(g>e||e===1/0&&f===1/0)&&(f=a,g=e)});return f},u.shuffle=function(a){for(var b,c=C(a)?a:u.values(a),d=c.length,e=Array(d),f=0;d>f;f++)b=u.random(0,f),b!==f&&(e[f]=e[b]),e[b]=c[f];return e},u.sample=function(a,b,c){return null==b||c?(C(a)||(a=u.values(a)),a[u.random(a.length-1)]):u.shuffle(a).slice(0,Math.max(0,b))},u.sortBy=function(a,b,c){return b=w(b,c),u.pluck(u.map(a,function(a,c,d){return{value:a,index:c,criteria:b(a,c,d)}}).sort(function(a,b){var c=a.criteria,d=b.criteria;if(c!==d){if(c>d||void 0===c)return 1;if(d>c||void 0===d)return-1}return a.index-b.index}),"value")};var D=function(a){return function(b,c,d){var e={};return c=w(c,d),u.each(b,function(d,f){var g=c(d,f,b);a(e,d,g)}),e}};u.groupBy=D(function(a,b,c){u.has(a,c)?a[c].push(b):a[c]=[b]}),u.indexBy=D(function(a,b,c){a[c]=b}),u.countBy=D(function(a,b,c){u.has(a,c)?a[c]++:a[c]=1}),u.toArray=function(a){return a?u.isArray(a)?m.call(a):C(a)?u.map(a,u.identity):u.values(a):[]},u.size=function(a){return null==a?0:C(a)?a.length:u.keys(a).length},u.partition=function(a,b,c){b=w(b,c);var d=[],e=[];return u.each(a,function(a,c,f){(b(a,c,f)?d:e).push(a)}),[d,e]},u.first=u.head=u.take=function(a,b,c){return null==a?void 0:null==b||c?a[0]:u.initial(a,a.length-b)},u.initial=function(a,b,c){return m.call(a,0,Math.max(0,a.length-(null==b||c?1:b)))},u.last=function(a,b,c){return null==a?void 0:null==b||c?a[a.length-1]:u.rest(a,Math.max(0,a.length-b))},u.rest=u.tail=u.drop=function(a,b,c){return m.call(a,null==b||c?1:b)},u.compact=function(a){return u.filter(a,u.identity)};var E=function T(a,b,c,d){for(var e=[],f=0,g=d||0,h=B(a);h>g;g++){var i=a[g];if(C(i)&&(u.isArray(i)||u.isArguments(i))){b||(i=T(i,b,c));var j=0,k=i.length;for(e.length+=k;k>j;)e[f++]=i[j++]}else c||(e[f++]=i)}return e};u.flatten=function(a,b){return E(a,b,!1)},u.without=function(a){return u.difference(a,m.call(arguments,1))},u.uniq=u.unique=function(a,b,c,d){u.isBoolean(b)||(d=c,c=b,b=!1),null!=c&&(c=w(c,d));for(var e=[],f=[],g=0,h=B(a);h>g;g++){var i=a[g],j=c?c(i,g,a):i;b?(g&&f===j||e.push(i),f=j):c?u.contains(f,j)||(f.push(j),e.push(i)):u.contains(e,i)||e.push(i)}return e},u.union=function(){return u.uniq(E(arguments,!0,!0))},u.intersection=function(a){for(var b=[],c=arguments.length,d=0,e=B(a);e>d;d++){var f=a[d];if(!u.contains(b,f)){for(var g=1;c>g&&u.contains(arguments[g],f);g++);g===c&&b.push(f)}}return b},u.difference=function(a){var b=E(arguments,!0,!0,1);return u.filter(a,function(a){return!u.contains(b,a)})},u.zip=function(){return u.unzip(arguments)},u.unzip=function(a){for(var b=a&&u.max(a,B).length||0,c=Array(b),d=0;b>d;d++)c[d]=u.pluck(a,d);return c},u.object=function(a,b){for(var c={},d=0,e=B(a);e>d;d++)b?c[a[d]]=b[d]:c[a[d][0]]=a[d][1];return c},u.findIndex=d(1),u.findLastIndex=d(-1),u.sortedIndex=function(a,b,c,d){c=w(c,d,1);for(var e=c(b),f=0,g=B(a);g>f;){var h=Math.floor((f+g)/2);c(a[h])f;f++,a+=c)e[f]=a;return e};var F=function(a,b,c,d,e){if(!(d instanceof b))return a.apply(c,e);var f=y(a.prototype),g=a.apply(f,e);return u.isObject(g)?g:f};u.bind=function(a,b){if(r&&a.bind===r)return r.apply(a,m.call(arguments,1));if(!u.isFunction(a))throw new TypeError("Bind must be called on a function");var c=m.call(arguments,2),d=function e(){return F(a,e,b,this,c.concat(m.call(arguments)))};return d},u.partial=function(a){var b=m.call(arguments,1),c=function d(){for(var c=0,e=b.length,f=Array(e),g=0;e>g;g++)f[g]=b[g]===u?arguments[c++]:b[g];for(;c=d)throw new Error("bindAll must be passed function names");for(b=1;d>b;b++)c=arguments[b],a[c]=u.bind(a[c],a);return a},u.memoize=function(a,b){var c=function d(c){var e=d.cache,f=""+(b?b.apply(this,arguments):c);return u.has(e,f)||(e[f]=a.apply(this,arguments)),e[f]};return c.cache={},c},u.delay=function(a,b){var c=m.call(arguments,2);return setTimeout(function(){return a.apply(null,c)},b)},u.defer=u.partial(u.delay,u,1),u.throttle=function(a,b,c){var d,e,f,g=null,h=0;c||(c={});var i=function(){h=c.leading===!1?0:u.now(),g=null,f=a.apply(d,e),g||(d=e=null)};return function(){var j=u.now();h||c.leading!==!1||(h=j);var k=b-(j-h);return d=this,e=arguments,0>=k||k>b?(g&&(clearTimeout(g),g=null),h=j,f=a.apply(d,e),g||(d=e=null)):g||c.trailing===!1||(g=setTimeout(i,k)),f}},u.debounce=function(a,b,c){var d,e,f,g,h,i=function j(){var i=u.now()-g;b>i&&i>=0?d=setTimeout(j,b-i):(d=null,c||(h=a.apply(f,e),d||(f=e=null)))};return function(){f=this,e=arguments,g=u.now();var j=c&&!d;return d||(d=setTimeout(i,b)),j&&(h=a.apply(f,e),f=e=null),h}},u.wrap=function(a,b){return u.partial(b,a)},u.negate=function(a){return function(){return!a.apply(this,arguments)}},u.compose=function(){var a=arguments,b=a.length-1;return function(){for(var c=b,d=a[b].apply(this,arguments);c--;)d=a[c].call(this,d);return d}},u.after=function(a,b){return function(){return--a<1?b.apply(this,arguments):void 0}},u.before=function(a,b){var c;return function(){return--a>0&&(c=b.apply(this,arguments)),1>=a&&(b=null),c}},u.once=u.partial(u.before,2);var G=!{toString:null}.propertyIsEnumerable("toString"),H=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];u.keys=function(a){if(!u.isObject(a))return[];if(q)return q(a);var b=[];for(var c in a)u.has(a,c)&&b.push(c);return G&&f(a,b),b},u.allKeys=function(a){if(!u.isObject(a))return[];var b=[];for(var c in a)b.push(c);return G&&f(a,b),b},u.values=function(a){for(var b=u.keys(a),c=b.length,d=Array(c),e=0;c>e;e++)d[e]=a[b[e]];return d},u.mapObject=function(a,b,c){b=w(b,c);for(var d,e=u.keys(a),f=e.length,g={},h=0;f>h;h++)d=e[h], g[d]=b(a[d],d,a);return g},u.pairs=function(a){for(var b=u.keys(a),c=b.length,d=Array(c),e=0;c>e;e++)d[e]=[b[e],a[b[e]]];return d},u.invert=function(a){for(var b={},c=u.keys(a),d=0,e=c.length;e>d;d++)b[a[c[d]]]=c[d];return b},u.functions=u.methods=function(a){var b=[];for(var c in a)u.isFunction(a[c])&&b.push(c);return b.sort()},u.extend=x(u.allKeys),u.extendOwn=u.assign=x(u.keys),u.findKey=function(a,b,c){b=w(b,c);for(var d,e=u.keys(a),f=0,g=e.length;g>f;f++)if(d=e[f],b(a[d],d,a))return d},u.pick=function(a,b,c){var d,e,f={},g=a;if(null==g)return f;u.isFunction(b)?(e=u.allKeys(g),d=v(b,c)):(e=E(arguments,!1,!1,1),d=function(a,b,c){return b in c},g=Object(g));for(var h=0,i=e.length;i>h;h++){var j=e[h],k=g[j];d(k,j,g)&&(f[j]=k)}return f},u.omit=function(a,b,c){if(u.isFunction(b))b=u.negate(b);else{var d=u.map(E(arguments,!1,!1,1),String);b=function(a,b){return!u.contains(d,b)}}return u.pick(a,b,c)},u.defaults=x(u.allKeys,!0),u.create=function(a,b){var c=y(a);return b&&u.extendOwn(c,b),c},u.clone=function(a){return u.isObject(a)?u.isArray(a)?a.slice():u.extend({},a):a},u.tap=function(a,b){return b(a),a},u.isMatch=function(a,b){var c=u.keys(b),d=c.length;if(null==a)return!d;for(var e=Object(a),f=0;d>f;f++){var g=c[f];if(b[g]!==e[g]||!(g in e))return!1}return!0};var I=function U(a,b,c,d){if(a===b)return 0!==a||1/a===1/b;if(null==a||null==b)return a===b;a instanceof u&&(a=a._wrapped),b instanceof u&&(b=b._wrapped);var e=n.call(a);if(e!==n.call(b))return!1;switch(e){case"[object RegExp]":case"[object String]":return""+a==""+b;case"[object Number]":return+a!==+a?+b!==+b:0===+a?1/+a===1/b:+a===+b;case"[object Date]":case"[object Boolean]":return+a===+b}var f="[object Array]"===e;if(!f){if("object"!=typeof a||"object"!=typeof b)return!1;var g=a.constructor,h=b.constructor;if(g!==h&&!(u.isFunction(g)&&g instanceof g&&u.isFunction(h)&&h instanceof h)&&"constructor"in a&&"constructor"in b)return!1}c=c||[],d=d||[];for(var i=c.length;i--;)if(c[i]===a)return d[i]===b;if(c.push(a),d.push(b),f){if(i=a.length,i!==b.length)return!1;for(;i--;)if(!U(a[i],b[i],c,d))return!1}else{var j,k=u.keys(a);if(i=k.length,u.keys(b).length!==i)return!1;for(;i--;)if(j=k[i],!u.has(b,j)||!U(a[j],b[j],c,d))return!1}return c.pop(),d.pop(),!0};u.isEqual=function(a,b){return I(a,b)},u.isEmpty=function(a){return null==a?!0:C(a)&&(u.isArray(a)||u.isString(a)||u.isArguments(a))?0===a.length:0===u.keys(a).length},u.isElement=function(a){return!(!a||1!==a.nodeType)},u.isArray=p||function(a){return"[object Array]"===n.call(a)},u.isObject=function(a){var b=typeof a;return"function"===b||"object"===b&&!!a},u.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(a){u["is"+a]=function(b){return n.call(b)==="[object "+a+"]"}}),u.isArguments(arguments)||(u.isArguments=function(a){return u.has(a,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(u.isFunction=function(a){return"function"==typeof a||!1}),u.isFinite=function(a){return isFinite(a)&&!isNaN(parseFloat(a))},u.isNaN=function(a){return u.isNumber(a)&&a!==+a},u.isBoolean=function(a){return a===!0||a===!1||"[object Boolean]"===n.call(a)},u.isNull=function(a){return null===a},u.isUndefined=function(a){return void 0===a},u.has=function(a,b){return null!=a&&o.call(a,b)},u.noConflict=function(){return g._=h,this},u.identity=function(a){return a},u.constant=function(a){return function(){return a}},u.noop=function(){},u.property=z,u.propertyOf=function(a){return null==a?function(){}:function(b){return a[b]}},u.matcher=u.matches=function(a){return a=u.extendOwn({},a),function(b){return u.isMatch(b,a)}},u.times=function(a,b,c){var d=Array(Math.max(0,a));b=v(b,c,1);for(var e=0;a>e;e++)d[e]=b(e);return d},u.random=function(a,b){return null==b&&(b=a,a=0),a+Math.floor(Math.random()*(b-a+1))},u.now=Date.now||function(){return(new Date).getTime()};var J={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},K=u.invert(J),L=function(a){var b=function(b){return a[b]},c="(?:"+u.keys(a).join("|")+")",d=RegExp(c),e=RegExp(c,"g");return function(a){return a=null==a?"":""+a,d.test(a)?a.replace(e,b):a}};u.escape=L(J),u.unescape=L(K),u.result=function(a,b,c){var d=null==a?void 0:a[b];return void 0===d&&(d=c),u.isFunction(d)?d.call(a):d};var M=0;u.uniqueId=function(a){var b=++M+"";return a?a+b:b},u.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var N=/(.)^/,O={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},P=/\\|'|\r|\n|\u2028|\u2029/g,Q=function(a){return"\\"+O[a]};u.template=function(a,b,c){!b&&c&&(b=c),b=u.defaults({},b,u.templateSettings);var d=RegExp([(b.escape||N).source,(b.interpolate||N).source,(b.evaluate||N).source].join("|")+"|$","g"),e=0,f="__p+='";a.replace(d,function(b,c,d,g,h){return f+=a.slice(e,h).replace(P,Q),e=h+b.length,c?f+="'+\n((__t=("+c+"))==null?'':_.escape(__t))+\n'":d?f+="'+\n((__t=("+d+"))==null?'':__t)+\n'":g&&(f+="';\n"+g+"\n__p+='"),b}),f+="';\n",b.variable||(f="with(obj||{}){\n"+f+"}\n"),f="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+f+"return __p;\n";try{var g=new Function(b.variable||"obj","_",f)}catch(h){throw h.source=f,h}var i=function(a){return g.call(this,a,u)},j=b.variable||"obj";return i.source="function("+j+"){\n"+f+"}",i},u.chain=function(a){var b=u(a);return b._chain=!0,b};var R=function(a,b){return a._chain?u(b).chain():b};u.mixin=function(a){u.each(u.functions(a),function(b){var c=u[b]=a[b];u.prototype[b]=function(){var a=[this._wrapped];return l.apply(a,arguments),R(this,c.apply(u,a))}})},u.mixin(u),u.each(["pop","push","reverse","shift","sort","splice","unshift"],function(a){var b=i[a];u.prototype[a]=function(){var c=this._wrapped;return b.apply(c,arguments),"shift"!==a&&"splice"!==a||0!==c.length||delete c[0],R(this,c)}}),u.each(["concat","join","slice"],function(a){var b=i[a];u.prototype[a]=function(){return R(this,b.apply(this._wrapped,arguments))}}),u.prototype.value=function(){return this._wrapped},u.prototype.valueOf=u.prototype.toJSON=u.prototype.value,u.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return u})}).call(this)}),"undefined"==typeof global&&"undefined"!=typeof window&&(global=window),global.Buffer=require("buffer").Buffer,global.process=require("process"),global.setInterval=global.setInterval||function(){},global.clearInterval=global.clearInterval||function(){},global.setTimeout=global.setTimeout||function(){},global.clearTimeout=global.clearTimeout||function(){},global.aqlQuery=function(){var a,b,c,d=arguments[0],e={},f=d[0];for(c=1;cc;++c)b+="\n";a.print(b)},global.console=global.console||require("console"),global.db=require("org/arangodb").db,global.arango=require("org/arangodb").arango,global.fm=require("org/arangodb/foxx/manager"),global.ArangoStatement=require("org/arangodb/arango-statement").ArangoStatement,global.tutorial=require("org/arangodb/tutorial");var initHelp=function(){var a=require("internal");if(a.db)try{a.db._collections()}catch(b){}a.quiet!==!0&&(require("org/arangodb").checkAvailableVersions(),a.arango&&a.arango.isConnected&&a.arango.isConnected()&&a.print("Type 'tutorial' for a tutorial or 'help' to see common examples"))};if("undefined"==typeof window){if(initHelp(),!(global.IS_EXECUTE_SCRIPT||global.IS_EXECUTE_STRING||global.IS_CHECK_SCRIPT||global.IS_UNIT_TESTS||global.IS_JS_LINT))try{var __fs__=require("fs"),__rcf__=__fs__.join(__fs__.home(),".arangosh.rc");if(__fs__.exists(__rcf__)){var __content__=__fs__.read(__rcf__);eval(__content__)}}catch(e){require("console").warn("arangosh.rc: %s",String(e))}try{delete global.IS_EXECUTE_SCRIPT,delete global.IS_EXECUTE_STRING,delete global.IS_CHECK_SCRIPT,delete global.IS_UNIT_TESTS,delete global.IS_JS_LINT}catch(e){}}!function(){"use strict";window.arangoCollectionModel=Backbone.Model.extend({initialize:function(){},idAttribute:"name",urlRoot:"/_api/collection",defaults:{id:"",name:"",status:"",type:"",isSystem:!1,picture:""},getProperties:function(){var a;return $.ajax({type:"GET",cache:!1,url:"/_api/collection/"+encodeURIComponent(this.get("id"))+"/properties",contentType:"application/json",processData:!1,async:!1,success:function(b){a=b},error:function(b){a=b}}),a},getFigures:function(){var a;return $.ajax({type:"GET",cache:!1,url:"/_api/collection/"+this.get("id")+"/figures",contentType:"application/json",processData:!1,async:!1,success:function(b){a=b},error:function(b){a=b}}),a},getRevision:function(){var a;return $.ajax({type:"GET",cache:!1,url:"/_api/collection/"+this.get("id")+"/revision",contentType:"application/json",processData:!1,async:!1,success:function(b){a=b},error:function(b){a=b}}),a},getIndex:function(){var a;return $.ajax({type:"GET",cache:!1,url:"/_api/index/?collection="+this.get("id"),contentType:"application/json",processData:!1,async:!1,success:function(b){a=b},error:function(b){a=b}}),a},createIndex:function(a){var b=!1;return $.ajax({cache:!1,type:"POST",url:"/_api/index?collection="+this.get("id"),data:JSON.stringify(a),contentType:"application/json",processData:!1,async:!1,success:function(){b=!0},error:function(a){b=a}}),b},deleteIndex:function(a){var b=!1;return $.ajax({cache:!1,type:"DELETE",url:"/_api/index/"+this.get("name")+"/"+encodeURIComponent(a),async:!1,success:function(){b=!0},error:function(){b=!1}}),b},truncateCollection:function(){$.ajax({async:!1,cache:!1,type:"PUT",url:"/_api/collection/"+this.get("id")+"/truncate",success:function(){arangoHelper.arangoNotification("Collection truncated")},error:function(){arangoHelper.arangoError("Collection error")}})},loadCollection:function(){var a=this;window.progressView.showWithDelay(500,"Loading collection..."),$.ajax({async:!0,cache:!1,type:"PUT",url:"/_api/collection/"+this.get("id")+"/load",success:function(){a.set("status","loaded"),"#collections"===window.location.hash&&window.App.collectionsView.render(),window.progressView.hide()},error:function(){arangoHelper.arangoError("Collection error")}})},unloadCollection:function(){var a=this;window.progressView.showWithDelay(500,"Unloading collection..."),$.ajax({async:!0,cache:!1,type:"PUT",url:"/_api/collection/"+this.get("id")+"/unload?flush=true",success:function(){a.set("status","unloaded"),"#collections"===window.location.hash&&window.App.collectionsView.render(),window.progressView.hide()},error:function(){arangoHelper.arangoError("Collection error")}})},renameCollection:function(a){var b=this,c=!1;return $.ajax({cache:!1,type:"PUT",async:!1,url:"/_api/collection/"+this.get("id")+"/rename",data:JSON.stringify({name:a}),contentType:"application/json",processData:!1,success:function(){b.set("name",a),c=!0},error:function(a){try{var b=JSON.parse(a.responseText);c=b.errorMessage}catch(d){c=!1}}}),c},changeCollection:function(a,b,c){var d=!1;"true"===a?a=!0:"false"===a&&(a=!1);var e={waitForSync:a,journalSize:parseInt(b),indexBuckets:parseInt(c)};return $.ajax({cache:!1,type:"PUT",async:!1,url:"/_api/collection/"+this.get("id")+"/properties",data:JSON.stringify(e),contentType:"application/json",processData:!1,success:function(){d=!0},error:function(a){try{var b=JSON.parse(a.responseText);d=b.errorMessage}catch(c){d=!1}}}),d}})}(),window.DatabaseModel=Backbone.Model.extend({idAttribute:"name",initialize:function(){"use strict"},isNew:function(){"use strict";return!1},sync:function(a,b,c){"use strict";return"update"===a&&(a="create"),Backbone.sync(a,b,c)},url:"/_api/database",defaults:{}}),window.arangoDocumentModel=Backbone.Model.extend({initialize:function(){"use strict"},urlRoot:"/_api/document",defaults:{_id:"",_rev:"",_key:""},getSorted:function(){"use strict";var a=this,b=Object.keys(a.attributes).sort(function(a,b){var c=arangoHelper.isSystemAttribute(a),d=arangoHelper.isSystemAttribute(b);return c!==d?c?-1:1:b>a?-1:1}),c={};return _.each(b,function(b){c[b]=a.attributes[b]}),c}}),function(){"use strict";window.ArangoQuery=Backbone.Model.extend({urlRoot:"/_api/user",defaults:{name:"",type:"custom",value:""}})}(),window.Replication=Backbone.Model.extend({defaults:{state:{},server:{}},initialize:function(){}}),window.Statistics=Backbone.Model.extend({defaults:{},url:function(){"use strict";return"/_admin/statistics"}}),window.StatisticsDescription=Backbone.Model.extend({defaults:{figures:"",groups:""},url:function(){"use strict";return"/_admin/statistics-description"}}),window.Users=Backbone.Model.extend({defaults:{user:"",active:!1,extra:{}},idAttribute:"user",parse:function(a){return this.isNotNew=!0,a},isNew:function(){return!this.isNotNew},url:function(){return this.isNew()?"/_api/user":""!==this.get("user")?"/_api/user/"+this.get("user"):"/_api/user"},checkPassword:function(a){var b=!1;return $.ajax({cache:!1,type:"POST",async:!1,url:"/_api/user/"+this.get("user"),data:JSON.stringify({passwd:a}),contentType:"application/json",processData:!1,success:function(a){b=a.result}}),b},setPassword:function(a){$.ajax({cache:!1,type:"PATCH",async:!1,url:"/_api/user/"+this.get("user"),data:JSON.stringify({passwd:a}),contentType:"application/json",processData:!1})},setExtras:function(a,b){$.ajax({cache:!1,type:"PATCH",async:!1,url:"/_api/user/"+this.get("user"),data:JSON.stringify({extra:{name:a,img:b}}),contentType:"application/json",processData:!1})}}),function(){"use strict";window.CurrentDatabase=Backbone.Model.extend({url:"/_api/database/current",parse:function(a){return a.result}})}(),function(){"use strict";var a=function(a,b,c,d,e,f){var g={contentType:"application/json",processData:!1,type:c};b=b||function(){},f=_.extend({mount:a.encodedMount()},f);var h=_.reduce(f,function(a,b,c){return a+encodeURIComponent(c)+"="+encodeURIComponent(b)+"&"},"?");g.url="/_admin/aardvark/foxxes"+(d?"/"+d:"")+h.slice(0,h.length-1),void 0!==e&&(g.data=JSON.stringify(e)),$.ajax(g).then(function(a){b(null,a)},function(a){window.xhr=a,b(_.extend(a.status?new Error(a.responseJSON?a.responseJSON.errorMessage:a.responseText):new Error("Network Error"),{statusCode:a.status}))})};window.Foxx=Backbone.Model.extend({idAttribute:"mount",defaults:{author:"Unknown Author",name:"",version:"Unknown Version",description:"No description",license:"Unknown License",contributors:[],scripts:{},config:{},deps:{},git:"",system:!1,development:!1},isNew:function(){return!1},encodedMount:function(){return encodeURIComponent(this.get("mount"))},destroy:function(b,c){a(this,c,"DELETE",void 0,void 0,b)},isBroken:function(){return!1},needsAttention:function(){return this.isBroken()||this.needsConfiguration()||this.hasUnconfiguredDependencies()},needsConfiguration:function(){return _.any(this.get("config"),function(a){return void 0===a.current&&a.required!==!1})},hasUnconfiguredDependencies:function(){return _.any(this.get("deps"),function(a){return void 0===a.current&&a.definition.required!==!1})},getConfiguration:function(b){a(this,function(a,c){a||this.set("config",c),"function"==typeof b&&b(a,c)}.bind(this),"GET","config")},setConfiguration:function(b,c){a(this,c,"PATCH","config",b)},getDependencies:function(b){a(this,function(a,c){a||this.set("deps",c),"function"==typeof b&&b(a,c)}.bind(this),"GET","deps")},setDependencies:function(b,c){a(this,c,"PATCH","deps",b)},toggleDevelopment:function(b,c){a(this,function(a,d){a||this.set("development",b),"function"==typeof c&&c(a,d)}.bind(this),"PATCH","devel",b)},runScript:function(b,c,d){a(this,d,"POST","scripts/"+b,c)},runTests:function(b,c){a(this,function(a,b){"function"==typeof c&&c(a?a.responseJSON:a,b)}.bind(this),"POST","tests",b)},isSystem:function(){return this.get("system")},isDevelopment:function(){return this.get("development")},download:function(){window.open("/_db/"+arango.getDatabaseName()+"/_admin/aardvark/foxxes/download/zip?mount="+this.encodedMount())}})}(),function(){"use strict";window.Graph=Backbone.Model.extend({idAttribute:"_key",urlRoot:"/_api/gharial",isNew:function(){return!this.get("_id")},parse:function(a){return a.graph||a},addEdgeDefinition:function(a){$.ajax({async:!1,type:"POST",url:this.urlRoot+"/"+this.get("_key")+"/edge",data:JSON.stringify(a)})},deleteEdgeDefinition:function(a){$.ajax({async:!1,type:"DELETE",url:this.urlRoot+"/"+this.get("_key")+"/edge/"+a})},modifyEdgeDefinition:function(a){$.ajax({async:!1,type:"PUT",url:this.urlRoot+"/"+this.get("_key")+"/edge/"+a.collection,data:JSON.stringify(a)})},addVertexCollection:function(a){$.ajax({async:!1,type:"POST",url:this.urlRoot+"/"+this.get("_key")+"/vertex",data:JSON.stringify({collection:a})})},deleteVertexCollection:function(a){$.ajax({async:!1,type:"DELETE",url:this.urlRoot+"/"+this.get("_key")+"/vertex/"+a})},defaults:{name:"",edgeDefinitions:[],orphanCollections:[]}})}(),function(){"use strict";window.newArangoLog=Backbone.Model.extend({defaults:{lid:"",level:"",timestamp:"",text:"",totalAmount:""},getLogStatus:function(){switch(this.get("level")){case 1:return"Error";case 2:return"Warning";case 3:return"Info";case 4:return"Debug";default:return"Unknown"}}})}(),function(){"use strict";window.Notification=Backbone.Model.extend({defaults:{title:"",date:0,content:"",priority:"",tags:"",seen:!1}})}(),function(){"use strict";window.queryManagementModel=Backbone.Model.extend({defaults:{id:"",query:"",started:"",runTime:""}})}(),function(){"use strict";window.PaginatedCollection=Backbone.Collection.extend({page:0,pagesize:10,totalAmount:0,getPage:function(){return this.page+1},setPage:function(a){return a>=this.getLastPageNumber()?void(this.page=this.getLastPageNumber()-1):1>a?void(this.page=0):void(this.page=a-1)},getLastPageNumber:function(){return Math.max(Math.ceil(this.totalAmount/this.pagesize),1)},getOffset:function(){return this.page*this.pagesize},getPageSize:function(){return this.pagesize},setPageSize:function(a){if("all"===a)this.pagesize="all";else try{a=parseInt(a,10),this.pagesize=a}catch(b){}},setToFirst:function(){this.page=0},setToLast:function(){this.setPage(this.getLastPageNumber())},setToPrev:function(){this.setPage(this.getPage()-1)},setToNext:function(){this.setPage(this.getPage()+1)},setTotal:function(a){this.totalAmount=a},getTotal:function(){return this.totalAmount},setTotalMinusOne:function(){this.totalAmount--}})}(),function(){"use strict";window.arangoCollections=Backbone.Collection.extend({url:"/_api/collection",model:arangoCollectionModel,searchOptions:{searchPhrase:null,includeSystem:!1,includeDocument:!0,includeEdge:!0,includeLoaded:!0,includeUnloaded:!0,sortBy:"name",sortOrder:1},translateStatus:function(a){switch(a){case 0:return"corrupted";case 1:return"new born collection";case 2:return"unloaded";case 3:return"loaded";case 4:return"will be unloaded";case 5:return"deleted";case 6:return"loading";default:return}},translateTypePicture:function(a){var b="";switch(a){case"document":b+="fa-file-text-o";break;case"edge":b+="fa-share-alt";break;case"unknown":b+="fa-question";break;default:b+="fa-cogs"}return b},parse:function(a){var b=this;return _.each(a.collections,function(a){a.isSystem=arangoHelper.isSystemCollection(a),a.type=arangoHelper.collectionType(a),a.status=b.translateStatus(a.status),a.picture=b.translateTypePicture(a.type)}),a.collections},getPosition:function(a){var b,c=this.getFiltered(this.searchOptions),d=null,e=null;for(b=0;b0&&(d=c[b-1]),b0){var e,f=d.get("name").toLowerCase();for(e=0;ed?-1:1):0}),b},newCollection:function(a,b,c,d,e,f,g){var h={},i={};return i.name=a,i.waitForSync=b,d>0&&(i.journalSize=d),i.isSystem=c,i.type=parseInt(e,10),f&&(i.numberOfShards=f,i.shardKeys=g),h.status=!1,$.ajax({cache:!1,type:"POST",url:"/_api/collection",data:JSON.stringify(i),contentType:"application/json",processData:!1,async:!1,success:function(a){h.status=!0,h.data=a},error:function(a){h.status=!1,h.errorMessage=JSON.parse(a.responseText).errorMessage}}),h}})}(),function(){"use strict";window.ArangoDatabase=Backbone.Collection.extend({model:window.DatabaseModel,sortOptions:{desc:!1},url:"/_api/database",comparator:function(a,b){var c=a.get("name").toLowerCase(),d=b.get("name").toLowerCase();return this.sortOptions.desc===!0?d>c?1:c>d?-1:0:c>d?1:d>c?-1:0},parse:function(a){return a?_.map(a.result,function(a){return{name:a}}):void 0},initialize:function(){var a=this;this.fetch().done(function(){a.sort()})},setSortingDesc:function(a){this.sortOptions.desc=a},getDatabases:function(){var a=this;return this.fetch().done(function(){a.sort()}),this.models},getDatabasesForUser:function(){var a;return $.ajax({type:"GET",cache:!1,url:this.url+"/user",contentType:"application/json",processData:!1,async:!1,success:function(b){a=b.result},error:function(){a=[]}}),a.sort()},createDatabaseURL:function(a,b,c){var d=window.location,e=window.location.hash;b=b?"SSL"===b||"https:"===b?"https:":"http:":d.protocol,c=c||d.port;var f=b+"//"+window.location.hostname+":"+c+"/_db/"+encodeURIComponent(a)+"/_admin/aardvark/standalone.html";if(e){var g=e.split("/")[0];0===g.indexOf("#collection")&&(g="#collections"),0===g.indexOf("#application")&&(g="#applications"),f+=g}return f},getCurrentDatabase:function(){var a;return $.ajax({type:"GET",cache:!1,url:this.url+"/current",contentType:"application/json",processData:!1,async:!1,success:function(b){return 200===b.code?void(a=b.result.name):void(a=b)},error:function(b){a=b}}),a},hasSystemAccess:function(){var a=this.getDatabasesForUser();return _.contains(a,"_system")}})}(),window.arangoDocument=Backbone.Collection.extend({url:"/_api/document/",model:arangoDocumentModel,collectionInfo:{},deleteEdge:function(a,b){var c=!1;try{$.ajax({cache:!1,type:"DELETE",async:!1,contentType:"application/json",url:"/_api/edge/"+a+"/"+b,success:function(){c=!0},error:function(){c=!1}})}catch(d){c=!1}return c},deleteDocument:function(a,b){var c=!1;try{$.ajax({cache:!1,type:"DELETE",async:!1,contentType:"application/json",url:"/_api/document/"+a+"/"+b,success:function(){c=!0},error:function(){c=!1}})}catch(d){c=!1}return c},addDocument:function(a,b){var c=this;c.createTypeDocument(a,b)},createTypeEdge:function(a,b,c,d){var e,f=!1;return e=d?JSON.stringify({_key:d}):JSON.stringify({}),$.ajax({cache:!1,type:"POST",async:!1,url:"/_api/edge?collection="+a+"&from="+b+"&to="+c,data:e,contentType:"application/json",processData:!1,success:function(a){f=a._id},error:function(a){f=!1}}),f},createTypeDocument:function(a,b){var c,d=!1;return c=b?JSON.stringify({_key:b}):JSON.stringify({}),$.ajax({cache:!1,type:"POST",async:!1,url:"/_api/document?collection="+encodeURIComponent(a),data:c,contentType:"application/json",processData:!1,success:function(a){d=a._id},error:function(a){d=!1}}),d},getCollectionInfo:function(a){var b=this;return $.ajax({cache:!1,type:"GET",url:"/_api/collection/"+a+"?"+arangoHelper.getRandomToken(),contentType:"application/json",processData:!1,async:!1,success:function(a){b.collectionInfo=a},error:function(a){}}),b.collectionInfo},getEdge:function(a,b){var c=!1,d=this;return this.clearDocument(),$.ajax({cache:!1,type:"GET",async:!1,url:"/_api/edge/"+a+"/"+b,contentType:"application/json",processData:!1,success:function(a){d.add(a),c=!0},error:function(a){c=!1}}),c},getDocument:function(a,b){var c=!1,d=this;return this.clearDocument(),$.ajax({cache:!1,type:"GET",async:!1,url:"/_api/document/"+a+"/"+b,contentType:"application/json",processData:!1,success:function(a){d.add(a),c=!0},error:function(a){c=!1}}),c},saveEdge:function(a,b,c){var d=!1;return $.ajax({cache:!1,type:"PUT",async:!1,url:"/_api/edge/"+a+"/"+b,data:c,contentType:"application/json",processData:!1,success:function(a){d=!0},error:function(a){d=!1}}),d},saveDocument:function(a,b,c){var d=!1;return $.ajax({cache:!1,type:"PUT",async:!1,url:"/_api/document/"+a+"/"+b,data:c,contentType:"application/json",processData:!1,success:function(a){d=!0},error:function(a){d=!1}}),d},updateLocalDocument:function(a){this.clearDocument(),this.add(a)},clearDocument:function(){this.reset()}}),function(){"use strict";window.arangoDocuments=window.PaginatedCollection.extend({collectionID:1,filters:[],MAX_SORT:12e3,lastQuery:{},sortAttribute:"_key",url:"/_api/documents",model:window.arangoDocumentModel,loadTotal:function(){var a=this;$.ajax({cache:!1,type:"GET",url:"/_api/collection/"+this.collectionID+"/count",contentType:"application/json",processData:!1,async:!1,success:function(b){a.setTotal(b.count)}})},setCollection:function(a){this.resetFilter(),this.collectionID=a,this.setPage(1),this.loadTotal()},setSort:function(a){this.sortAttribute=a},getSort:function(){return this.sortAttribute},addFilter:function(a,b,c){this.filters.push({attr:a,op:b,val:c})},setFiltersForQuery:function(a){if(0===this.filters.length)return"";var b=" FILTER",c=_.map(this.filters,function(b,c){var d=" x.`";return d+=b.attr,d+="` ",d+=b.op,d+=" @param",d+=c,a["param"+c]=b.val,d});return b+c.join(" &&")},setPagesize:function(a){this.setPageSize(a)},resetFilter:function(){this.filters=[]},moveDocument:function(a,b,c,d){var e,f,g,h,i={"@collection":b,filterid:a};e="FOR x IN @@collection",e+=" FILTER x._key == @filterid",e+=" INSERT x IN ",e+=c,f="FOR x in @@collection",f+=" FILTER x._key == @filterid",f+=" REMOVE x IN @@collection",g={query:e,bindVars:i},h={query:f,bindVars:i},window.progressView.show(),$.ajax({cache:!1,type:"POST",async:!0,url:"/_api/cursor",data:JSON.stringify(g),contentType:"application/json",success:function(a){$.ajax({cache:!1,type:"POST",async:!0,url:"/_api/cursor",data:JSON.stringify(h),contentType:"application/json",success:function(a){d&&d(),window.progressView.hide()},error:function(a){window.progressView.hide(),arangoHelper.arangoNotification("Document error","Documents inserted, but could not be removed.")}})},error:function(a){window.progressView.hide(),arangoHelper.arangoNotification("Document error","Could not move selected documents.")}})},getDocuments:function(a){window.progressView.showWithDelay(300,"Fetching documents...");var b,c,d,e,f=this;c={"@collection":this.collectionID,offset:this.getOffset(),count:this.getPageSize()},b="FOR x IN @@collection LET att = SLICE(ATTRIBUTES(x), 0, 25)",b+=this.setFiltersForQuery(c),this.getTotal()0)&&(e.options={fullCount:!0}),$.ajax({cache:!1,type:"POST",async:!0,url:"/_api/cursor",data:JSON.stringify(e),contentType:"application/json",success:function(b){window.progressView.toShow=!1,f.clearDocuments(),b.extra&&void 0!==b.extra.stats.fullCount&&f.setTotal(b.extra.stats.fullCount),0!==f.getTotal()&&_.each(b.result,function(a){f.add({id:a._id,rev:a._rev,key:a._key,content:a})}),f.lastQuery=e,a(),window.progressView.hide()},error:function(a){window.progressView.hide(),arangoHelper.arangoNotification("Document error","Could not fetch requested documents.")}})},clearDocuments:function(){this.reset()},buildDownloadDocumentQuery:function(){var a,b,c;return c={"@collection":this.collectionID},a="FOR x in @@collection",a+=this.setFiltersForQuery(c),this.getTotal()0&&(b="At least one error occurred during upload")}catch(d){}}}),b}})}(),function(){"use strict";window.ArangoLogs=window.PaginatedCollection.extend({upto:!1,loglevel:0,totalPages:0,parse:function(a){var b=[];return _.each(a.lid,function(c,d){b.push({level:a.level[d],lid:c,text:a.text[d],timestamp:a.timestamp[d],totalAmount:a.totalAmount})}),this.totalAmount=a.totalAmount,this.totalPages=Math.ceil(this.totalAmount/this.pagesize),b},initialize:function(a){a.upto===!0&&(this.upto=!0),this.loglevel=a.loglevel},model:window.newArangoLog,url:function(){var a,b,c,d;c=this.page*this.pagesize;var e=this.totalAmount-(this.page+1)*this.pagesize;return 0>e&&this.page===this.totalPages-1?(e=0,d=this.totalAmount%this.pagesize):d=this.pagesize,0===this.totalAmount&&(d=1),a=this.upto?"upto":"level",b="/_admin/log?"+a+"="+this.loglevel+"&size="+d+"&offset="+e}})}(),function(){"use strict";window.ArangoQueries=Backbone.Collection.extend({initialize:function(a,b){var c;$.ajax("whoAmI?_="+Date.now(),{async:!1}).done(function(a){c=a.user}),this.activeUser=c,this.activeUser===!1&&(this.activeUser="root")},url:"/_api/user/",model:ArangoQuery,activeUser:null,parse:function(a){var b,c=this;return _.each(a.result,function(a){if(a.user===c.activeUser)try{a.extra.queries&&(b=a.extra.queries)}catch(d){}}),b},saveCollectionQueries:function(){if(0===this.activeUser)return!1;var a=!1,b=[];return this.each(function(a){b.push({value:a.attributes.value,parameter:a.attributes.parameter,name:a.attributes.name})}),$.ajax({cache:!1,type:"PATCH",async:!1,url:"/_api/user/"+encodeURIComponent(this.activeUser),data:JSON.stringify({extra:{queries:b}}),contentType:"application/json",processData:!1,success:function(){a=!0},error:function(){a=!1}}),a},saveImportQueries:function(a,b){return 0===this.activeUser?!1:(window.progressView.show("Fetching documents..."),void $.ajax({cache:!1,type:"POST",async:!1,url:"query/upload/"+encodeURIComponent(this.activeUser),data:a,contentType:"application/json",processData:!1,success:function(){window.progressView.hide(),arangoHelper.arangoNotification("Queries successfully imported."),b()},error:function(){window.progressView.hide(),arangoHelper.arangoError("Query error","queries could not be imported")}}))}})}(),window.ArangoReplication=Backbone.Collection.extend({model:window.Replication,url:"../api/user",getLogState:function(){var a;return $.ajax({type:"GET",cache:!1,url:"/_api/replication/logger-state",contentType:"application/json",processData:!1,async:!1,success:function(b){a=b},error:function(b){a=b}}),a},getApplyState:function(){var a;return $.ajax({type:"GET",cache:!1,url:"/_api/replication/applier-state",contentType:"application/json",processData:!1,async:!1,success:function(b){a=b},error:function(b){a=b}}),a}}),window.StatisticsCollection=Backbone.Collection.extend({model:window.Statistics,url:"/_admin/statistics" }),window.StatisticsDescriptionCollection=Backbone.Collection.extend({model:window.StatisticsDescription,url:"/_admin/statistics-description",parse:function(a){return a}}),window.ArangoUsers=Backbone.Collection.extend({model:window.Users,activeUser:null,activeUserSettings:{query:{},shell:{},testing:!0},sortOptions:{desc:!1},url:"/_api/user",comparator:function(a,b){var c=a.get("user").toLowerCase(),d=b.get("user").toLowerCase();return this.sortOptions.desc===!0?d>c?1:c>d?-1:0:c>d?1:d>c?-1:0},login:function(a,b){var c=null;return $.ajax("login",{async:!1,method:"POST",data:JSON.stringify({username:a,password:b}),dataType:"json"}).done(function(a){c=a.user}),this.activeUser=c,this.activeUser},setSortingDesc:function(a){this.sortOptions.desc=a},logout:function(){$.ajax("logout",{async:!1,method:"POST"}),this.activeUser=null,this.reset(),window.App.navigate(""),window.location.reload()},setUserSettings:function(a,b){this.activeUserSettings.identifier=b},loadUserSettings:function(){var a=this;$.ajax({type:"GET",cache:!1,url:"/_api/user/"+encodeURIComponent(a.activeUser),contentType:"application/json",processData:!1,async:!1,success:function(b){a.activeUserSettings=b.extra},error:function(a){}})},saveUserSettings:function(){var a=this;$.ajax({cache:!1,type:"PUT",async:!1,url:"/_api/user/"+encodeURIComponent(a.activeUser),data:JSON.stringify({extra:a.activeUserSettings}),contentType:"application/json",processData:!1,success:function(a){},error:function(a){}})},parse:function(a){var b=[];return _.each(a.result,function(a){b.push(a)}),b},whoAmI:function(){if(this.activeUser)return this.activeUser;var a;return $.ajax("whoAmI?_="+Date.now(),{async:!1}).done(function(b){a=b.user}),this.activeUser=a,this.activeUser}}),function(){"use strict";window.FoxxCollection=Backbone.Collection.extend({model:window.Foxx,sortOptions:{desc:!1},url:"/_admin/aardvark/foxxes",comparator:function(a,b){var c,d;return this.sortOptions.desc===!0?(c=a.get("mount"),d=b.get("mount"),d>c?1:c>d?-1:0):(c=a.get("mount"),d=b.get("mount"),c>d?1:d>c?-1:0)},setSortingDesc:function(a){this.sortOptions.desc=a},installFromGithub:function(a,b,c,d){var e="/_admin/aardvark/foxxes/git?mount="+encodeURIComponent(b);void 0!==d&&(e+=d?"&replace=true":"&upgrade=true"),$.ajax({cache:!1,type:"PUT",url:e,data:JSON.stringify(a),contentType:"application/json",processData:!1,success:function(a){c(a)},error:function(a){c(a)}})},installFromStore:function(a,b,c,d){var e="/_admin/aardvark/foxxes/store?mount="+encodeURIComponent(b);void 0!==d&&(e+=d?"&replace=true":"&upgrade=true"),$.ajax({cache:!1,type:"PUT",url:e,data:JSON.stringify(a),contentType:"application/json",processData:!1,success:function(a){c(a)},error:function(a){c(a)}})},installFromZip:function(a,b,c,d){var e="/_admin/aardvark/foxxes/zip?mount="+encodeURIComponent(b);void 0!==d&&(e+=d?"&replace=true":"&upgrade=true"),$.ajax({cache:!1,type:"PUT",url:e,data:JSON.stringify({zipFile:a}),contentType:"application/json",processData:!1,success:function(a){c(a)},error:function(a){c(a)}})},generate:function(a,b,c,d){var e="/_admin/aardvark/foxxes/generate?mount="+encodeURIComponent(b);void 0!==d&&(e+=d?"&replace=true":"&upgrade=true"),$.ajax({cache:!1,type:"PUT",url:e,data:JSON.stringify(a),contentType:"application/json",processData:!1,success:function(a){c(a)},error:function(a){c(a)}})}})}(),function(){"use strict";window.GraphCollection=Backbone.Collection.extend({model:window.Graph,sortOptions:{desc:!1},url:"/_api/gharial",dropAndDeleteGraph:function(a,b){$.ajax({type:"DELETE",url:"/_api/gharial/"+encodeURIComponent(a)+"?dropCollections=true",contentType:"application/json",processData:!0,async:!1,success:function(){return arangoHelper.arangoNotification("Graph deleted."),b(!0),!0},error:function(a){try{var c=JSON.parse(a.responseText).errorMessage;arangoHelper.arangoError("Graph",c)}catch(d){arangoHelper.arangoError("Graph","Could not delete Graph.")}return b(!1),!1}})},comparator:function(a,b){var c=a.get("_key")||"",d=b.get("_key")||"";return c=c.toLowerCase(),d=d.toLowerCase(),this.sortOptions.desc===!0?d>c?1:c>d?-1:0:c>d?1:d>c?-1:0},setSortingDesc:function(a){this.sortOptions.desc=a},parse:function(a){return a.error?void 0:a.graphs}})}(),function(){"use strict";window.NotificationCollection=Backbone.Collection.extend({model:window.Notification,url:""})}(),function(){"use strict";window.QueryManagementActive=Backbone.Collection.extend({model:window.queryManagementModel,url:function(){return"/_api/query/current"},killRunningQuery:function(a,b){$.ajax({url:"/_api/query/"+encodeURIComponent(a),type:"DELETE",success:function(a){b()}})}})}(),function(){"use strict";window.QueryManagementSlow=Backbone.Collection.extend({model:window.queryManagementModel,url:"/_api/query/slow",deleteSlowQueryHistory:function(a){var b=this;$.ajax({url:b.url,type:"DELETE",success:function(b){a()}})}})}(),function(){"use strict";window.PaginationView=Backbone.View.extend({collection:null,paginationDiv:"",idPrefix:"",rerender:function(){},jumpTo:function(a){this.collection.setPage(a),this.rerender()},firstPage:function(){this.jumpTo(1)},lastPage:function(){this.jumpTo(this.collection.getLastPageNumber())},firstDocuments:function(){this.jumpTo(1)},lastDocuments:function(){this.jumpTo(this.collection.getLastPageNumber())},prevDocuments:function(){this.jumpTo(this.collection.getPage()-1)},nextDocuments:function(){this.jumpTo(this.collection.getPage()+1)},renderPagination:function(){$(this.paginationDiv).html("");var a=this,b=this.collection.getPage(),c=this.collection.getLastPageNumber(),d=$(this.paginationDiv),e={page:b,lastPage:c,click:function(b){a.jumpTo(b),e.page=b}};d.html(""),d.pagination(e),$(this.paginationDiv).prepend('
    '),$(this.paginationDiv).append('
    ')}})}(),function(){"use strict";window.ApplicationDetailView=Backbone.View.extend({el:"#content",template:templateEngine.createTemplate("applicationDetailView.ejs"),events:{"click .open":"openApp","click .delete":"deleteApp","click #app-config":"showConfigDialog","click #app-deps":"showDepsDialog","click #app-switch-mode":"toggleDevelopment","click #app-scripts [data-script]":"runScript","click #app-tests":"runTests","click #app-replace":"replaceApp","click #download-app":"downloadApp","click #app-show-swagger":"showSwagger","click #app-show-readme":"showReadme","mouseenter #app-scripts":"showDropdown","mouseleave #app-scripts":"hideDropdown"},downloadApp:function(){this.model.isSystem()||this.model.download()},replaceApp:function(){var a=this.model.get("mount");window.foxxInstallView.upgrade(a,function(){window.App.applicationDetail(encodeURIComponent(a))}),$(".createModalDialog .arangoHeader").html("Replace Service"),$("#infoTab").click()},updateConfig:function(){this.model.getConfiguration(function(){$("#app-warning")[this.model.needsAttention()?"show":"hide"](),$("#app-warning-config")[this.model.needsConfiguration()?"show":"hide"](),this.model.needsConfiguration()?$("#app-config").addClass("error"):$("#app-config").removeClass("error")}.bind(this))},updateDeps:function(){this.model.getDependencies(function(){$("#app-warning")[this.model.needsAttention()?"show":"hide"](),$("#app-warning-deps")[this.model.hasUnconfiguredDependencies()?"show":"hide"](),this.model.hasUnconfiguredDependencies()?$("#app-deps").addClass("error"):$("#app-deps").removeClass("error")}.bind(this))},toggleDevelopment:function(){this.model.toggleDevelopment(!this.model.isDevelopment(),function(){this.model.isDevelopment()?($("#app-switch-mode").val("Set Production"),$("#app-development-indicator").css("display","inline"),$("#app-development-path").css("display","inline")):($("#app-switch-mode").val("Set Development"),$("#app-development-indicator").css("display","none"),$("#app-development-path").css("display","none"))}.bind(this))},runScript:function(a){a.preventDefault();var b=$(a.currentTarget).attr("data-script"),c=[window.modalView.createBlobEntry("app_script_arguments","Script arguments","",null,"optional",!1,[{rule:function(a){return a&&JSON.parse(a)},msg:"Must be well-formed JSON or empty"}])],d=[window.modalView.createSuccessButton("Run script",function(){var a=$("#app_script_arguments").val();a=a&&JSON.parse(a),window.modalView.hide(),this.model.runScript(b,a,function(a,c){var d;d=a?"

    The script failed with an error"+(a.statusCode?" (HTTP "+a.statusCode+")":"")+":

    "+a.message+"
    ":c?"

    Script results:

    "+JSON.stringify(c,null,2)+"
    ":"

    The script ran successfully.

    ",window.modalView.show("modalTable.ejs",'Result of script "'+b+'"',void 0,void 0,void 0,d)})}.bind(this))];window.modalView.show("modalTable.ejs",'Run script "'+b+'" on "'+this.model.get("mount")+'"',d,c)},showSwagger:function(a){a.preventDefault(),this.render("swagger")},showReadme:function(a){a.preventDefault(),this.render("readme")},runTests:function(a){a.preventDefault();var b="

    WARNING: Running tests may result in destructive side-effects including data loss. Please make sure not to run tests on a production database.

    ";this.model.isDevelopment()&&(b+="

    WARNING: This app is running in development mode. If any of the tests access the app's HTTP API they may become non-deterministic.

    ");var c=[window.modalView.createSuccessButton("Run tests",function(){window.modalView.hide(),this.model.runTests({reporter:"suite"},function(a,b){window.modalView.show("modalTestResults.ejs","Test results",void 0,void 0,void 0,a||b)})}.bind(this))];window.modalView.show("modalTable.ejs",'Run tests for app "'+this.model.get("mount")+'"',c,void 0,void 0,b)},render:function(a){var b=this;return $(this.el).html(this.template.render({app:this.model,db:arangoHelper.currentDatabase(),mode:a})),$.get(this.appUrl()).success(function(){$(".open",this.el).prop("disabled",!1)}.bind(this)),this.updateConfig(),this.updateDeps(),"swagger"===a&&$.get("./foxxes/docs/swagger.json?mount="+encodeURIComponent(this.model.get("mount")),function(a){Object.keys(a.paths).length<1&&(b.render("readme"),$("#app-show-swagger").attr("disabled","true"))}),$(this.el)},openApp:function(){window.open(this.appUrl(),this.model.get("title")).focus()},deleteApp:function(){var a=[window.modalView.createDeleteButton("Delete",function(){var a={teardown:$("#app_delete_run_teardown").is(":checked")};this.model.destroy(a,function(a,b){a||b.error!==!1||(window.modalView.hide(),window.App.navigate("applications",{trigger:!0}))})}.bind(this))],b=[window.modalView.createCheckboxEntry("app_delete_run_teardown","Run teardown?",!0,"Should this app's teardown script be executed before removing the app?",!0)];window.modalView.show("modalTable.ejs",'Delete Foxx App mounted at "'+this.model.get("mount")+'"',a,b,void 0,"

    Are you sure? There is no way back...

    ",!0)},appUrl:function(){return window.location.origin+"/_db/"+encodeURIComponent(arangoHelper.currentDatabase())+this.model.get("mount")},applyConfig:function(){var a={};_.each(this.model.get("config"),function(b,c){var d=$("#app_config_"+c),e=d.val();if("boolean"===b.type||"bool"===b.type)return void(a[c]=d.is(":checked"));if(""===e&&b.hasOwnProperty("default"))return a[c]=b["default"],void("json"===b.type&&(a[c]=JSON.stringify(b["default"])));if("number"===b.type)a[c]=parseFloat(e);else if("integer"===b.type||"int"===b.type)a[c]=parseInt(e,10);else{if("json"!==b.type)return void(a[c]=window.arangoHelper.escapeHtml(e));a[c]=e&&JSON.stringify(JSON.parse(e))}}),this.model.setConfiguration(a,function(){window.modalView.hide(),this.updateConfig()}.bind(this))},showConfigDialog:function(){if(!_.isEmpty(this.model.get("config"))){var a=_.map(this.model.get("config"),function(a,b){var c=void 0===a["default"]?"":String(a["default"]),d=void 0===a.current?"":String(a.current),e="createTextEntry",f=!1,g=[];return"boolean"===a.type||"bool"===a.type?(e="createCheckboxEntry",a["default"]=a["default"]||!1,c=a["default"]||!1,d=a.current||!1):"json"===a.type?(e="createBlobEntry",c=void 0===a["default"]?"":JSON.stringify(a["default"]),d=void 0===a.current?"":a.current,g.push({rule:function(a){return a&&JSON.parse(a)},msg:"Must be well-formed JSON or empty."})):"integer"===a.type||"int"===a.type?g.push({rule:Joi.number().integer().optional().allow(""),msg:"Has to be an integer."}):"number"===a.type?g.push({rule:Joi.number().optional().allow(""),msg:"Has to be a number."}):("password"===a.type&&(e="createPasswordEntry"),g.push({rule:Joi.string().optional().allow(""),msg:"Has to be a string."})),void 0===a["default"]&&a.required!==!1&&(f=!0,g.unshift({rule:Joi.any().required(),msg:"This field is required."})),window.modalView[e]("app_config_"+b,b,d,a.description,c,f,g)}),b=[window.modalView.createSuccessButton("Apply",this.applyConfig.bind(this))];window.modalView.show("modalTable.ejs","Configuration",b,a)}},applyDeps:function(){var a={};_.each(this.model.get("deps"),function(b,c){var d=$("#app_deps_"+c);a[c]=window.arangoHelper.escapeHtml(d.val())}),this.model.setDependencies(a,function(){window.modalView.hide(),this.updateDeps()}.bind(this))},showDepsDialog:function(){if(!_.isEmpty(this.model.get("deps"))){var a=_.map(this.model.get("deps"),function(a,b){var c=void 0===a.current?"":String(a.current),d="",e=a.definition.name;"*"!==a.definition.version&&(e+="@"+a.definition.version);var f=[{rule:Joi.string().optional().allow(""),msg:"Has to be a string."}];return a.definition.required&&f.push({rule:Joi.string().required(),msg:"This value is required."}),window.modalView.createTextEntry("app_deps_"+b,a.title,c,e,d,a.definition.required,f)}),b=[window.modalView.createSuccessButton("Apply",this.applyDeps.bind(this))];window.modalView.show("modalTable.ejs","Dependencies",b,a)}},showDropdown:function(){_.isEmpty(this.model.get("scripts"))||$("#scripts_dropdown").show(200)},hideDropdown:function(){$("#scripts_dropdown").hide()}})}(),function(){"use strict";window.ApplicationsView=Backbone.View.extend({el:"#content",template:templateEngine.createTemplate("applicationsView.ejs"),events:{"click #addApp":"createInstallModal","click #foxxToggle":"slideToggle","click #checkDevel":"toggleDevel","click #checkProduction":"toggleProduction","click #checkSystem":"toggleSystem"},fixCheckboxes:function(){this._showDevel?$("#checkDevel").attr("checked","checked"):$("#checkDevel").removeAttr("checked"),this._showSystem?$("#checkSystem").attr("checked","checked"):$("#checkSystem").removeAttr("checked"),this._showProd?$("#checkProduction").attr("checked","checked"):$("#checkProduction").removeAttr("checked"),$("#checkDevel").next().removeClass("fa fa-check-square-o fa-square-o").addClass("fa"),$("#checkSystem").next().removeClass("fa fa-check-square-o fa-square-o").addClass("fa"),$("#checkProduction").next().removeClass("fa fa-check-square-o fa-square-o").addClass("fa"),arangoHelper.setCheckboxStatus("#foxxDropdown")},toggleDevel:function(){var a=this;this._showDevel=!this._showDevel,_.each(this._installedSubViews,function(b){b.toggle("devel",a._showDevel)}),this.fixCheckboxes()},toggleProduction:function(){var a=this;this._showProd=!this._showProd,_.each(this._installedSubViews,function(b){b.toggle("production",a._showProd)}),this.fixCheckboxes()},toggleSystem:function(){this._showSystem=!this._showSystem;var a=this;_.each(this._installedSubViews,function(b){b.toggle("system",a._showSystem)}),this.fixCheckboxes()},reload:function(){var a=this;_.each(this._installedSubViews,function(a){a.undelegateEvents()}),this.collection.fetch({success:function(){a.createSubViews(),a.render()}})},createSubViews:function(){var a=this;this._installedSubViews={},a.collection.each(function(b){var c=new window.FoxxActiveView({model:b,appsView:a});a._installedSubViews[b.get("mount")]=c})},initialize:function(){this._installedSubViews={},this._showDevel=!0,this._showProd=!0,this._showSystem=!1,this.reload()},slideToggle:function(){$("#foxxToggle").toggleClass("activated"),$("#foxxDropdownOut").slideToggle(200)},createInstallModal:function(a){a.preventDefault(),window.foxxInstallView.install(this.reload.bind(this))},render:function(){this.collection.sort(),$(this.el).html(this.template.render({})),_.each(this._installedSubViews,function(a){$("#installedList").append(a.render())}),this.delegateEvents(),$("#checkDevel").attr("checked",this._showDevel),$("#checkProduction").attr("checked",this._showProd),$("#checkSystem").attr("checked",this._showSystem),arangoHelper.setCheckboxStatus("#foxxDropdown");var a=this;return _.each(this._installedSubViews,function(b){b.toggle("devel",a._showDevel),b.toggle("system",a._showSystem)}),arangoHelper.fixTooltips("icon_arangodb","left"),this}})}(),function(){"use strict";window.CollectionListItemView=Backbone.View.extend({tagName:"div",className:"tile",template:templateEngine.createTemplate("collectionsItemView.ejs"),initialize:function(){this.collectionsView=this.options.collectionsView},events:{"click .iconSet.icon_arangodb_settings2":"createEditPropertiesModal","click .pull-left":"noop","click .icon_arangodb_settings2":"editProperties","click .spanInfo":"showProperties",click:"selectCollection"},render:function(){return $(this.el).html(this.template.render({model:this.model})),$(this.el).attr("id","collection_"+this.model.get("name")),this},editProperties:function(a){a.stopPropagation(),this.createEditPropertiesModal()},showProperties:function(a){a.stopPropagation(),this.createInfoModal()},selectCollection:function(a){return $(a.target).hasClass("disabled")?0:void window.App.navigate("collection/"+encodeURIComponent(this.model.get("name"))+"/documents/1",{trigger:!0})},noop:function(a){a.stopPropagation()},unloadCollection:function(){this.model.unloadCollection(),window.modalView.hide()},loadCollection:function(){this.model.loadCollection(),window.modalView.hide()},truncateCollection:function(){this.model.truncateCollection(),this.render(),window.modalView.hide()},deleteCollection:function(){this.model.destroy({error:function(){arangoHelper.arangoError("Could not delete collection.")},success:function(){window.modalView.hide()}}),this.collectionsView.render()},saveModifiedCollection:function(){var a;a=window.isCoordinator()?this.model.get("name"):$("#change-collection-name").val();var b=this.model.get("status");if("loaded"===b){var c;try{c=JSON.parse(1024*$("#change-collection-size").val()*1024)}catch(d){return arangoHelper.arangoError("Please enter a valid number"),0}var e;try{if(e=JSON.parse($("#change-index-buckets").val()),1>e||parseInt(e)!==Math.pow(2,Math.log2(e)))throw"invalid indexBuckets value"}catch(d){return arangoHelper.arangoError("Please enter a valid number of index buckets"),0}var f;if(this.model.get("name")!==a&&(f=this.model.renameCollection(a)),f!==!0&&void 0!==f)return arangoHelper.arangoError("Collection error: "+f),0;var g=$("#change-collection-sync").val(),h=this.model.changeCollection(g,c,e);if(h!==!0)return arangoHelper.arangoNotification("Collection error",h),0;this.collectionsView.render(),window.modalView.hide()}else if("unloaded"===b)if(this.model.get("name")!==a){var i=this.model.renameCollection(a);i===!0?(this.collectionsView.render(),window.modalView.hide()):arangoHelper.arangoError("Collection error: "+i)}else window.modalView.hide()},createEditPropertiesModal:function(){var a=!1;"loaded"===this.model.get("status")&&(a=!0);var b=[],c=[];if(window.isCoordinator()||c.push(window.modalView.createTextEntry("change-collection-name","Name",this.model.get("name"),!1,"",!0,[{rule:Joi.string().regex(/^[a-zA-Z]/),msg:"Collection name must always start with a letter."},{rule:Joi.string().regex(/^[a-zA-Z0-9\-_]*$/),msg:'Only Symbols "_" and "-" are allowed.'},{rule:Joi.string().required(),msg:"No collection name given."}])),a){var d=this.model.getProperties().journalSize;d/=1048576,c.push(window.modalView.createTextEntry("change-collection-size","Journal size",d,"The maximal size of a journal or datafile (in MB). Must be at least 1.","",!0,[{rule:Joi.string().allow("").optional().regex(/^[0-9]*$/),msg:"Must be a number."}]));var e=this.model.getProperties().indexBuckets;c.push(window.modalView.createTextEntry("change-index-buckets","Index buckets",e,"The number of index buckets for this collection. Must be at least 1 and a power of 2.","",!0,[{rule:Joi.string().allow("").optional().regex(/^[1-9][0-9]*$/),msg:"Must be a number greater than 1 and a power of 2."}]));var f=this.model.getProperties().waitForSync;c.push(window.modalView.createSelectEntry("change-collection-sync","Wait for sync",f,"Synchronize to disk before returning from a create or update of a document.",[{value:!1,label:"No"},{value:!0,label:"Yes"}]))}c.push(window.modalView.createReadOnlyEntry("change-collection-id","ID",this.model.get("id"),"")),c.push(window.modalView.createReadOnlyEntry("change-collection-type","Type",this.model.get("type"),"")),c.push(window.modalView.createReadOnlyEntry("change-collection-status","Status",this.model.get("status"),"")),b.push(window.modalView.createDeleteButton("Delete",this.deleteCollection.bind(this))),b.push(window.modalView.createDeleteButton("Truncate",this.truncateCollection.bind(this))),a?b.push(window.modalView.createNotificationButton("Unload",this.unloadCollection.bind(this))):b.push(window.modalView.createNotificationButton("Load",this.loadCollection.bind(this))),b.push(window.modalView.createSuccessButton("Save",this.saveModifiedCollection.bind(this))),window.modalView.show("modalTable.ejs","Modify Collection",b,c)},createInfoModal:function(){var a=[],b=this.model;window.modalView.show("modalCollectionInfo.ejs","Collection: "+this.model.get("name"),a,b)}})}(),function(){"use strict";window.CollectionsView=Backbone.View.extend({el:"#content",el2:"#collectionsThumbnailsIn",searchTimeout:null,template:templateEngine.createTemplate("collectionsView.ejs"),render:function(){var a=!1;$("#collectionsDropdown").is(":visible")&&(a=!0),$(this.el).html(this.template.render({})),this.setFilterValues(),a===!0&&$("#collectionsDropdown2").show();var b=this.collection.searchOptions;this.collection.getFiltered(b).forEach(function(a){$("#collectionsThumbnailsIn",this.el).append(new window.CollectionListItemView({model:a,collectionsView:this}).render().el)},this),"none"===$("#collectionsDropdown2").css("display")?$("#collectionsToggle").removeClass("activated"):$("#collectionsToggle").addClass("activated");var c;arangoHelper.setCheckboxStatus("#collectionsDropdown");try{c=b.searchPhrase.length}catch(d){}return $("#searchInput").val(b.searchPhrase),$("#searchInput").focus(),$("#searchInput")[0].setSelectionRange(c,c),arangoHelper.fixTooltips(".icon_arangodb, .arangoicon","left"),this},events:{"click #createCollection":"createCollection","keydown #searchInput":"restrictToSearchPhraseKey","change #searchInput":"restrictToSearchPhrase","click #searchSubmit":"restrictToSearchPhrase","click .checkSystemCollections":"checkSystem","click #checkLoaded":"checkLoaded","click #checkUnloaded":"checkUnloaded","click #checkDocument":"checkDocument","click #checkEdge":"checkEdge","click #sortName":"sortName","click #sortType":"sortType","click #sortOrder":"sortOrder","click #collectionsToggle":"toggleView","click .css-label":"checkBoxes"},updateCollectionsView:function(){var a=this;this.collection.fetch({success:function(){a.render()}})},toggleView:function(){$("#collectionsToggle").toggleClass("activated"),$("#collectionsDropdown2").slideToggle(200)},checkBoxes:function(a){var b=a.currentTarget.id;$("#"+b).click()},checkSystem:function(){var a=this.collection.searchOptions,b=a.includeSystem;a.includeSystem=$(".checkSystemCollections").is(":checked")===!0,b!==a.includeSystem&&this.render()},checkEdge:function(){var a=this.collection.searchOptions,b=a.includeEdge;a.includeEdge=$("#checkEdge").is(":checked")===!0,b!==a.includeEdge&&this.render()},checkDocument:function(){var a=this.collection.searchOptions,b=a.includeDocument;a.includeDocument=$("#checkDocument").is(":checked")===!0,b!==a.includeDocument&&this.render()},checkLoaded:function(){var a=this.collection.searchOptions,b=a.includeLoaded;a.includeLoaded=$("#checkLoaded").is(":checked")===!0,b!==a.includeLoaded&&this.render()},checkUnloaded:function(){var a=this.collection.searchOptions,b=a.includeUnloaded;a.includeUnloaded=$("#checkUnloaded").is(":checked")===!0,b!==a.includeUnloaded&&this.render()},sortName:function(){var a=this.collection.searchOptions,b=a.sortBy;a.sortBy=$("#sortName").is(":checked")===!0?"name":"type",b!==a.sortBy&&this.render()},sortType:function(){var a=this.collection.searchOptions,b=a.sortBy;a.sortBy=$("#sortType").is(":checked")===!0?"type":"name",b!==a.sortBy&&this.render()},sortOrder:function(){var a=this.collection.searchOptions,b=a.sortOrder;a.sortOrder=$("#sortOrder").is(":checked")===!0?-1:1,b!==a.sortOrder&&this.render()},setFilterValues:function(){var a=this.collection.searchOptions;$("#checkLoaded").attr("checked",a.includeLoaded),$("#checkUnloaded").attr("checked",a.includeUnloaded),$(".checkSystemCollections").attr("checked",a.includeSystem),$("#checkEdge").attr("checked",a.includeEdge),$("#checkDocument").attr("checked",a.includeDocument),$("#sortName").attr("checked","type"!==a.sortBy),$("#sortType").attr("checked","type"===a.sortBy),$("#sortOrder").attr("checked",1!==a.sortOrder)},search:function(){var a=this.collection.searchOptions,b=$("#searchInput").val();b!==a.searchPhrase&&(a.searchPhrase=b,this.render())},resetSearch:function(){this.searchTimeout&&(clearTimeout(this.searchTimeout),this.searchTimeout=null);var a=this.collection.searchOptions;a.searchPhrase=null},restrictToSearchPhraseKey:function(){var a=this;this.resetSearch(),a.searchTimeout=setTimeout(function(){a.search()},200)},restrictToSearchPhrase:function(){this.resetSearch(),this.search()},createCollection:function(a){a.preventDefault(),this.createNewCollectionModal()},submitCreateCollection:function(){var a=$("#new-collection-name").val(),b=$("#new-collection-size").val(),c=$("#new-collection-type").val(),d=$("#new-collection-sync").val(),e=1,f=[];if(window.isCoordinator()){if(e=$("#new-collection-shards").val(),""===e&&(e=1),e=parseInt(e,10),1>e)return arangoHelper.arangoError("Number of shards has to be an integer value greater or equal 1"),0;f=_.pluck($("#new-collection-shardBy").select2("data"),"text"),0===f.length&&f.push("_key")}if("_"===a.substr(0,1))return arangoHelper.arangoError('No "_" allowed as first character!'),0;var g=!1,h="true"===d;if(b>0)try{b=1024*JSON.parse(b)*1024}catch(i){return arangoHelper.arangoError("Please enter a valid number"),0}if(""===a)return arangoHelper.arangoError("No collection name entered!"),0;var j=this.collection.newCollection(a,h,g,b,c,e,f);j.status!==!0&&(console.log(j),arangoHelper.arangoError("Collection error",j.errorMessage)),this.updateCollectionsView(),window.modalView.hide()},createNewCollectionModal:function(){var a=[],b=[],c={},d=[];b.push(window.modalView.createTextEntry("new-collection-name","Name","",!1,"",!0,[{rule:Joi.string().regex(/^[a-zA-Z]/),msg:"Collection name must always start with a letter."},{rule:Joi.string().regex(/^[a-zA-Z0-9\-_]*$/),msg:'Only symbols, "_" and "-" are allowed.'},{rule:Joi.string().required(),msg:"No collection name given."}])),b.push(window.modalView.createSelectEntry("new-collection-type","Type","","The type of the collection to create.",[{value:2,label:"Document"},{value:3,label:"Edge"}])),window.isCoordinator()&&(b.push(window.modalView.createTextEntry("new-collection-shards","Shards","","The number of shards to create. You cannot change this afterwards. Recommended: DBServers squared","",!0)),b.push(window.modalView.createSelect2Entry("new-collection-shardBy","shardBy","","The keys used to distribute documents on shards. Type the key and press return to add it.","_key",!1))),a.push(window.modalView.createSuccessButton("Save",this.submitCreateCollection.bind(this))),d.push(window.modalView.createTextEntry("new-collection-size","Journal size","","The maximal size of a journal or datafile (in MB). Must be at least 1.","",!1,[{rule:Joi.string().allow("").optional().regex(/^[0-9]*$/),msg:"Must be a number."}])),d.push(window.modalView.createSelectEntry("new-collection-sync","Sync","","Synchronize to disk before returning from a create or update of a document.",[{value:!1,label:"No"},{value:!0,label:"Yes"}])),c.header="Advanced",c.content=d,window.modalView.show("modalTable.ejs","New Collection",a,b,c)}})}(),function(){"use strict";function a(a,b){return(void 0===a||null===a)&&(a=0),a.toFixed(b)}window.DashboardView=Backbone.View.extend({el:"#content",interval:1e4,defaultTimeFrame:12e5,defaultDetailFrame:1728e5,history:{},graphs:{},events:{},tendencies:{asyncPerSecondCurrent:["asyncPerSecondCurrent","asyncPerSecondPercentChange"],syncPerSecondCurrent:["syncPerSecondCurrent","syncPerSecondPercentChange"],clientConnectionsCurrent:["clientConnectionsCurrent","clientConnectionsPercentChange"],clientConnectionsAverage:["clientConnections15M","clientConnections15MPercentChange"],numberOfThreadsCurrent:["numberOfThreadsCurrent","numberOfThreadsPercentChange"],numberOfThreadsAverage:["numberOfThreads15M","numberOfThreads15MPercentChange"],virtualSizeCurrent:["virtualSizeCurrent","virtualSizePercentChange"],virtualSizeAverage:["virtualSize15M","virtualSize15MPercentChange"]},barCharts:{totalTimeDistribution:["queueTimeDistributionPercent","requestTimeDistributionPercent"],dataTransferDistribution:["bytesSentDistributionPercent","bytesReceivedDistributionPercent"]},barChartsElementNames:{queueTimeDistributionPercent:"Queue",requestTimeDistributionPercent:"Computation",bytesSentDistributionPercent:"Bytes sent",bytesReceivedDistributionPercent:"Bytes received"},getDetailFigure:function(a){var b=$(a.currentTarget).attr("id").replace(/ChartButton/g,"");return b},showDetail:function(a){var b,c=this,d=this.getDetailFigure(a);b=this.dygraphConfig.getDetailChartConfig(d),this.getHistoryStatistics(d),this.detailGraphFigure=d,window.modalView.hideFooter=!0,window.modalView.hide(),window.modalView.show("modalGraph.ejs",b.header,void 0,void 0,void 0,void 0,this.events),window.modalView.hideFooter=!1,$("#modal-dialog").on("hidden",function(){c.hidden()}),$("#modal-dialog").toggleClass("modal-chart-detail",!0),b.height=.7*$(window).height(),b.width=$(".modal-inner-detail").width(),b.labelsDiv=$(b.labelsDiv)[0],this.detailGraph=new Dygraph(document.getElementById("lineChartDetail"),this.history[this.server][d],b)},hidden:function(){this.detailGraph.destroy(),delete this.detailGraph,delete this.detailGraphFigure},getCurrentSize:function(a){"#"!==a.substr(0,1)&&(a="#"+a);var b,c;return $(a).attr("style",""),b=$(a).height(),c=$(a).width(),{height:b,width:c}},prepareDygraphs:function(){var a,b=this;this.dygraphConfig.getDashBoardFigures().forEach(function(c){a=b.dygraphConfig.getDefaultConfig(c);var d=b.getCurrentSize(a.div);a.height=d.height,a.width=d.width,b.graphs[c]=new Dygraph(document.getElementById(a.div),b.history[b.server][c]||[],a)})},initialize:function(){this.dygraphConfig=this.options.dygraphConfig,this.d3NotInitialized=!0,this.events["click .dashboard-sub-bar-menu-sign"]=this.showDetail.bind(this),this.events["mousedown .dygraph-rangesel-zoomhandle"]=this.stopUpdating.bind(this),this.events["mouseup .dygraph-rangesel-zoomhandle"]=this.startUpdating.bind(this),this.serverInfo=this.options.serverToShow,this.serverInfo?this.server=this.serverInfo.target:this.server="-local-",this.history[this.server]={}},updateCharts:function(){var a=this;return this.detailGraph?void this.updateLineChart(this.detailGraphFigure,!0):(this.prepareD3Charts(this.isUpdating),this.prepareResidentSize(this.isUpdating),this.updateTendencies(),void Object.keys(this.graphs).forEach(function(b){a.updateLineChart(b,!1)}))},updateTendencies:function(){var a=this,b=this.tendencies,c=""; Object.keys(b).forEach(function(b){var d="",e=0;a.history.hasOwnProperty(a.server)&&a.history[a.server].hasOwnProperty(b)&&(e=a.history[a.server][b][1]),0>e?c="#d05448":(c="#7da817",d="+"),a.history.hasOwnProperty(a.server)&&a.history[a.server].hasOwnProperty(b)?$("#"+b).html(a.history[a.server][b][0]+'
    '+d+e+"%"):$("#"+b).html('
    data not ready yet')})},updateDateWindow:function(a,b){var c,d,e=(new Date).getTime();return b&&a.dateWindow_?(c=a.dateWindow_[0],d=e-a.dateWindow_[1]-5*this.interval>0?a.dateWindow_[1]:e,[c,d]):[e-this.defaultTimeFrame,e]},updateLineChart:function(a,b){var c=b?this.detailGraph:this.graphs[a],d={file:this.history[this.server][a],dateWindow:this.updateDateWindow(c,b)},e=0,f=[];_.each(d.file,function(a){var b=a[0].getSeconds()-a[0].getSeconds()%10;d.file[e][0].setSeconds(b),f.push(d.file[e][0]),e++});for(var g=new Date(Math.max.apply(null,f)),h=new Date(Math.min.apply(null,f)),i=new Date(h.getTime()),j=[],k=[];g>i;)i=new Date(i.setSeconds(i.getSeconds()+10)),k.push(i);_.each(k,function(a){var b=!1;_.each(d.file,function(c){Math.floor(a.getTime()/1e3)===Math.floor(c[0].getTime()/1e3)&&(b=!0)}),b===!1&&a1&&d.history[d.server][e].push(c))})},cutOffHistory:function(a,b){for(var c=this;0!==c.history[c.server][a].length;){var d=c.history[c.server][a][0][0];if(d>=b)break;c.history[c.server][a].shift()}},cutOffDygraphHistory:function(a){var b=this,c=new Date(a);this.dygraphConfig.getDashBoardFigures(!0).forEach(function(a){b.dygraphConfig.mapStatToFigure[a]&&b.history[b.server][a]&&b.cutOffHistory(a,c)})},mergeHistory:function(b){var c,d=this;for(c=0;c=0;--c)d.values.push({label:this.getLabel(b[a[0]].cuts,c),value:b[a[0]].values[c]}),e.values.push({label:this.getLabel(b[a[1]].cuts,c),value:b[a[1]].values[c]});return[d,e]},getLabel:function(a,b){return a[b]?0===b?"0 - "+a[b]:a[b-1]+" - "+a[b]:">"+a[b-1]},renderReplicationStatistics:function(a){$("#repl-numbers table tr:nth-child(1) > td:nth-child(2)").html(a.state.totalEvents),$("#repl-numbers table tr:nth-child(2) > td:nth-child(2)").html(a.state.totalRequests),$("#repl-numbers table tr:nth-child(3) > td:nth-child(2)").html(a.state.totalFailedConnects),a.state.lastAppliedContinuousTick?$("#repl-ticks table tr:nth-child(1) > td:nth-child(2)").html(a.state.lastAppliedContinuousTick):$("#repl-ticks table tr:nth-child(1) > td:nth-child(2)").html("no data available").addClass("no-data"),a.state.lastProcessedContinuousTick?$("#repl-ticks table tr:nth-child(2) > td:nth-child(2)").html(a.state.lastProcessedContinuousTick):$("#repl-ticks table tr:nth-child(2) > td:nth-child(2)").html("no data available").addClass("no-data"),a.state.lastAvailableContinuousTick?$("#repl-ticks table tr:nth-child(3) > td:nth-child(2)").html(a.state.lastAvailableContinuousTick):$("#repl-ticks table tr:nth-child(3) > td:nth-child(2)").html("no data available").addClass("no-data"),$("#repl-progress table tr:nth-child(1) > td:nth-child(2)").html(a.state.progress.message),$("#repl-progress table tr:nth-child(2) > td:nth-child(2)").html(a.state.progress.time),$("#repl-progress table tr:nth-child(3) > td:nth-child(2)").html(a.state.progress.failedConnects)},getReplicationStatistics:function(){var a=this;$.ajax("/_api/replication/applier-state",{async:!0}).done(function(b){if(b.hasOwnProperty("state")){var c;c=b.state.running?"active":"inactive",c=''+c+"",$("#replication-chart .dashboard-sub-bar").html("Replication "+c),a.renderReplicationStatistics(b)}})},getStatistics:function(a){var b=this,c="/_db/_system/_admin/aardvark/statistics/short",d="?start=";d+=b.nextStart?b.nextStart:((new Date).getTime()-b.defaultTimeFrame)/1e3,"-local-"!==b.server&&(c=b.serverInfo.endpoint+"/_admin/aardvark/statistics/cluster",d+="&type=short&DBserver="+b.serverInfo.target,b.history.hasOwnProperty(b.server)||(b.history[b.server]={})),$.ajax(c+d,{async:!0}).done(function(c){c.times.length>0&&(b.isUpdating=!0,b.mergeHistory(c)),b.isUpdating!==!1&&(a&&a(),b.updateCharts())}),this.getReplicationStatistics()},getHistoryStatistics:function(a){var b=this,c="statistics/long",d="?filter="+this.dygraphConfig.mapStatToFigure[a].join();"-local-"!==b.server&&(c=b.server.endpoint+"/_admin/aardvark/statistics/cluster",d+="&type=long&DBserver="+b.server.target,b.history.hasOwnProperty(b.server)||(b.history[b.server]={}));var e=window.location.href.split("/"),f=e[0]+"//"+e[2]+"/"+e[3]+"/_system/"+e[5]+"/"+e[6]+"/";$.ajax(f+c+d,{async:!0}).done(function(c){var d;for(b.history[b.server][a]=[],d=0;d data not ready yet

    '),$("#totalTimeDistribution").prepend('

    data not ready yet

    '),$(".dashboard-bar-chart-title").prepend('

    data not ready yet

    '))},removeEmptyDataLabels:function(){$(".dataNotReadyYet").remove()},prepareResidentSize:function(b){var c=this,d=this.getCurrentSize("#residentSizeChartContainer"),e=c.history[c.server].residentSizeCurrent/1024/1024,f="";f=1025>e?a(e,2)+" MB":a(e/1024,2)+" GB";var g=a(100*c.history[c.server].residentSizePercent,2),h=[a(c.history[c.server].physicalMemory/1024/1024/1024,0)+" GB"];return void 0===c.history[c.server].residentSizeChart?void this.addEmptyDataLabels():(this.removeEmptyDataLabels(),void nv.addGraph(function(){var a=nv.models.multiBarHorizontalChart().x(function(a){return a.label}).y(function(a){return a.value}).width(d.width).height(d.height).margin({top:($("residentSizeChartContainer").outerHeight()-$("residentSizeChartContainer").height())/2,right:1,bottom:($("residentSizeChartContainer").outerHeight()-$("residentSizeChartContainer").height())/2,left:1}).showValues(!1).showYAxis(!1).showXAxis(!1).transitionDuration(100).tooltips(!1).showLegend(!1).showControls(!1).stacked(!0);return a.yAxis.tickFormat(function(a){return a+"%"}).showMaxMin(!1),a.xAxis.showMaxMin(!1),d3.select("#residentSizeChart svg").datum(c.history[c.server].residentSizeChart).call(a),d3.select("#residentSizeChart svg").select(".nv-zeroLine").remove(),b&&(d3.select("#residentSizeChart svg").select("#total").remove(),d3.select("#residentSizeChart svg").select("#percentage").remove()),d3.select(".dashboard-bar-chart-title .percentage").html(f+" ("+g+" %)"),d3.select(".dashboard-bar-chart-title .absolut").html(h[0]),nv.utils.windowResize(a.update),a},function(){d3.selectAll("#residentSizeChart .nv-bar").on("click",function(){})}))},prepareD3Charts:function(b){var c=this,d={totalTimeDistribution:["queueTimeDistributionPercent","requestTimeDistributionPercent"],dataTransferDistribution:["bytesSentDistributionPercent","bytesReceivedDistributionPercent"]};this.d3NotInitialized&&(b=!1,this.d3NotInitialized=!1),_.each(Object.keys(d),function(b){var d=c.getCurrentSize("#"+b+"Container .dashboard-interior-chart"),e="#"+b+"Container svg";return void 0===c.history[c.server].residentSizeChart?void c.addEmptyDataLabels():(c.removeEmptyDataLabels(),void nv.addGraph(function(){var f=[0,.25,.5,.75,1],g=75,h=23,i=6;d.width<219?(f=[0,.5,1],g=72,h=21,i=5):d.width<299?(f=[0,.3334,.6667,1],g=77):d.width<379?g=87:d.width<459?g=95:d.width<539?g=100:d.width<619&&(g=105);var j=nv.models.multiBarHorizontalChart().x(function(a){return a.label}).y(function(a){return a.value}).width(d.width).height(d.height).margin({top:5,right:20,bottom:h,left:g}).showValues(!1).showYAxis(!0).showXAxis(!0).transitionDuration(100).tooltips(!1).showLegend(!1).showControls(!1).forceY([0,1]);j.yAxis.showMaxMin(!1);d3.select(".nv-y.nv-axis").selectAll("text").attr("transform","translate (0, "+i+")");return j.yAxis.tickValues(f).tickFormat(function(b){return a(100*b*100/100,0)+"%"}),d3.select(e).datum(c.history[c.server][b]).call(j),nv.utils.windowResize(j.update),j},function(){d3.selectAll(e+" .nv-bar").on("click",function(){})}))})},stopUpdating:function(){this.isUpdating=!1},startUpdating:function(){var a=this;a.timer||(a.timer=window.setInterval(function(){a.getStatistics()},a.interval))},resize:function(){if(this.isUpdating){var a,b=this;_.each(this.graphs,function(c){a=b.getCurrentSize(c.maindiv_.id),c.resize(a.width,a.height)}),this.detailGraph&&(a=this.getCurrentSize(this.detailGraph.maindiv_.id),this.detailGraph.resize(a.width,a.height)),this.prepareD3Charts(!0),this.prepareResidentSize(!0)}},template:templateEngine.createTemplate("dashboardView.ejs"),render:function(a){a||$(this.el).html(this.template.render());var b=function(){this.prepareDygraphs(),this.isUpdating&&(this.prepareD3Charts(),this.prepareResidentSize(),this.updateTendencies()),this.startUpdating()}.bind(this),c=this.options.database.hasSystemAccess();c?this.getStatistics(b):($(".contentDiv").remove(),$(".headerBar").remove(),$(".dashboard-headerbar").remove(),$(".dashboard-row").remove(),$("#content").append('
    You do not have permission to view this page.
    '),$("#content").append("
    You can switch to '_system' to see the dashboard.
    "))}})}(),function(){"use strict";window.databaseView=Backbone.View.extend({users:null,el:"#content",template:templateEngine.createTemplate("databaseView.ejs"),dropdownVisible:!1,currentDB:"",events:{"click #createDatabase":"createDatabase","click #submitCreateDatabase":"submitCreateDatabase","click .editDatabase":"editDatabase","click .icon":"editDatabase","click #selectDatabase":"updateDatabase","click #submitDeleteDatabase":"submitDeleteDatabase","click .contentRowInactive a":"changeDatabase","keyup #databaseSearchInput":"search","click #databaseSearchSubmit":"search","click #databaseToggle":"toggleSettingsDropdown","click .css-label":"checkBoxes","click #dbSortDesc":"sorting","click .tile":"switchDatabase"},sorting:function(){$("#dbSortDesc").is(":checked")?this.collection.setSortingDesc(!0):this.collection.setSortingDesc(!1),$("#databaseDropdown").is(":visible")?this.dropdownVisible=!0:this.dropdownVisible=!1,this.render()},initialize:function(){this.collection.fetch({async:!1})},checkBoxes:function(a){var b=a.currentTarget.id;$("#"+b).click()},render:function(){return this.currentDatabase(),this.collection.sort(),$(this.el).html(this.template.render({collection:this.collection,searchString:"",currentDB:this.currentDB})),this.dropdownVisible===!0&&($("#dbSortDesc").attr("checked",this.collection.sortOptions.desc),$("#databaseToggle").toggleClass("activated"),$("#databaseDropdown2").show()),arangoHelper.setCheckboxStatus("#databaseDropdown"),this.replaceSVGs(),this},toggleSettingsDropdown:function(){$("#dbSortDesc").attr("checked",this.collection.sortOptions.desc),$("#databaseToggle").toggleClass("activated"),$("#databaseDropdown2").slideToggle(200)},selectedDatabase:function(){return $("#selectDatabases").val()},handleError:function(a,b,c){return 409===a?void arangoHelper.arangoError("DB","Database "+c+" already exists."):400===a?void arangoHelper.arangoError("DB","Invalid Parameters"):403===a?void arangoHelper.arangoError("DB","Insufficent rights. Execute this from _system database"):void 0},validateDatabaseInfo:function(a,b,c){return""===b?(arangoHelper.arangoError("DB","You have to define an owner for the new database"),!1):""===a?(arangoHelper.arangoError("DB","You have to define a name for the new database"),!1):0===a.indexOf("_")?(arangoHelper.arangoError("DB ","Databasename should not start with _"),!1):a.match(/^[a-zA-Z][a-zA-Z0-9_\-]*$/)?!0:(arangoHelper.arangoError("DB","Databasename may only contain numbers, letters, _ and -"),!1)},createDatabase:function(a){a.preventDefault(),this.createAddDatabaseModal()},switchDatabase:function(a){if(!$(a.target).parent().hasClass("iconSet")){var b=$(a.currentTarget).find("h5").text();if(""!==b){var c=this.collection.createDatabaseURL(b);window.location.replace(c)}}},submitCreateDatabase:function(){var a,b=this,c=$("#newDatabaseName").val(),d=$("#newUser").val();if(a="true"===$("#useDefaultPassword").val()?"ARANGODB_DEFAULT_ROOT_PASSWORD":$("#newPassword").val(),this.validateDatabaseInfo(c,d,a)){var e={name:c,users:[{username:d,passwd:a,active:!0}]};this.collection.create(e,{wait:!0,error:function(a,d){b.handleError(d.status,d.statusText,c)},success:function(a){b.updateDatabases(),window.modalView.hide(),window.App.naviView.dbSelectionView.render($("#dbSelect"))}})}},submitDeleteDatabase:function(a){var b=this.collection.where({name:a});b[0].destroy({wait:!0,url:"/_api/database/"+a}),this.updateDatabases(),window.App.naviView.dbSelectionView.render($("#dbSelect")),window.modalView.hide()},currentDatabase:function(){this.currentDB=this.collection.getCurrentDatabase()},changeDatabase:function(a){var b=$(a.currentTarget).attr("id"),c=this.collection.createDatabaseURL(b);window.location.replace(c)},updateDatabases:function(){var a=this;this.collection.fetch({success:function(){a.render(),window.App.handleSelectDatabase()}})},editDatabase:function(a){var b=this.evaluateDatabaseName($(a.currentTarget).attr("id"),"_edit-database"),c=!0;b===this.currentDB&&(c=!1),this.createEditDatabaseModal(b,c)},search:function(){var a,b,c,d;a=$("#databaseSearchInput"),b=$("#databaseSearchInput").val(),d=this.collection.filter(function(a){return-1!==a.get("name").indexOf(b)}),$(this.el).html(this.template.render({collection:d,searchString:b,currentDB:this.currentDB})),this.replaceSVGs(),a=$("#databaseSearchInput"),c=a.val().length,a.focus(),a[0].setSelectionRange(c,c)},replaceSVGs:function(){$(".svgToReplace").each(function(){var a=$(this),b=a.attr("id"),c=a.attr("src");$.get(c,function(c){var d=$(c).find("svg");d.attr("id",b).attr("class","tile-icon-svg").removeAttr("xmlns:a"),a.replaceWith(d)},"xml")})},evaluateDatabaseName:function(a,b){var c=a.lastIndexOf(b);return a.substring(0,c)},createEditDatabaseModal:function(a,b){var c=[],d=[];d.push(window.modalView.createReadOnlyEntry("id_name","Name",a,"")),b?c.push(window.modalView.createDeleteButton("Delete",this.submitDeleteDatabase.bind(this,a))):c.push(window.modalView.createDisabledButton("Delete")),window.modalView.show("modalTable.ejs","Delete database",c,d)},createAddDatabaseModal:function(){var a=[],b=[];b.push(window.modalView.createTextEntry("newDatabaseName","Name","",!1,"Database Name",!0,[{rule:Joi.string().regex(/^[a-zA-Z]/),msg:"Database name must start with a letter."},{rule:Joi.string().regex(/^[a-zA-Z0-9\-_]*$/),msg:'Only Symbols "_" and "-" are allowed.'},{rule:Joi.string().required(),msg:"No database name given."}])),b.push(window.modalView.createTextEntry("newUser","Username",null!==this.users?this.users.whoAmI():"root","Please define the owner of this database. This will be the only user having initial access to this database if authentication is turned on. Please note that if you specify a username different to your account you will not be able to access the database with your account after having creating it. Specifying a username is mandatory even with authentication turned off. If there is a failure you will be informed.","Database Owner",!0,[{rule:Joi.string().required(),msg:"No username given."}])),b.push(window.modalView.createSelectEntry("useDefaultPassword","Use default password",!0,"Read the password from the environment variable ARANGODB_DEFAULT_ROOT_PASSWORD.",[{value:!1,label:"No"},{value:!0,label:"Yes"}])),b.push(window.modalView.createPasswordEntry("newPassword","Password","",!1,"",!1)),a.push(window.modalView.createSuccessButton("Create",this.submitCreateDatabase.bind(this))),window.modalView.show("modalTable.ejs","Create Database",a,b),$("#useDefaultPassword").change(function(){"true"===$("#useDefaultPassword").val()?$("#row_newPassword").hide():$("#row_newPassword").show()}),$("#row_newPassword").hide()}})}(),function(){"use strict";window.DBSelectionView=Backbone.View.extend({template:templateEngine.createTemplate("dbSelectionView.ejs"),events:{"click .dbSelectionLink":"changeDatabase"},initialize:function(a){this.current=a.current},changeDatabase:function(a){var b=$(a.currentTarget).closest(".dbSelectionLink.tab").attr("id"),c=this.collection.createDatabaseURL(b);window.location.replace(c)},render:function(a){return this.$el=a,this.$el.html(this.template.render({list:this.collection.getDatabasesForUser(),current:this.current.get("name")})),this.delegateEvents(),this.el}})}(),function(){"use strict";var a=function(a){var b=a.split("/");return"collection/"+encodeURIComponent(b[0])+"/"+encodeURIComponent(b[1])};window.DocumentView=Backbone.View.extend({el:"#content",colid:0,docid:0,customView:!1,template:templateEngine.createTemplate("documentView.ejs"),events:{"click #saveDocumentButton":"saveDocument","click #deleteDocumentButton":"deleteDocumentModal","click #confirmDeleteDocument":"deleteDocument","click #document-from":"navigateToDocument","click #document-to":"navigateToDocument","keydown #documentEditor .ace_editor":"keyPress","keyup .jsoneditor .search input":"checkSearchBox"},checkSearchBox:function(a){""===$(a.currentTarget).val()&&this.editor.expandAll()},keyPress:function(a){a.ctrlKey&&13===a.keyCode?(a.preventDefault(),this.saveDocument()):a.metaKey&&13===a.keyCode&&(a.preventDefault(),this.saveDocument())},editor:0,setType:function(a){var b,c;return"edge"===a?(b=this.collection.getEdge(this.colid,this.docid),c="Edge: "):"document"===a&&(b=this.collection.getDocument(this.colid,this.docid),c="Document: "),b===!0?(this.type=a,this.fillInfo(c),this.fillEditor(),!0):void 0},deleteDocumentModal:function(){var a=[],b=[];b.push(window.modalView.createReadOnlyEntry("doc-delete-button","Delete","Delete this "+this.type+"?",void 0,void 0,!1,/[<>&'"]/)),a.push(window.modalView.createDeleteButton("Delete",this.deleteDocument.bind(this))),window.modalView.show("modalTable.ejs","Delete Document",a,b)},deleteDocument:function(){var a;if("document"===this.type){if(a=this.collection.deleteDocument(this.colid,this.docid),a===!1)return void arangoHelper.arangoError("Document error:","Could not delete")}else if("edge"===this.type&&(a=this.collection.deleteEdge(this.colid,this.docid),a===!1))return void arangoHelper.arangoError("Edge error:","Could not delete");if(a===!0)if(this.customView)this.customDeleteFunction();else{var b="collection/"+encodeURIComponent(this.colid)+"/documents/1";window.modalView.hide(),window.App.navigate(b,{trigger:!0})}},navigateToDocument:function(a){var b=$(a.target).attr("documentLink");b&&window.App.navigate(b,{trigger:!0})},fillInfo:function(b){var c=this.collection.first(),d=c.get("_id"),e=c.get("_key"),f=c.get("_rev"),g=c.get("_from"),h=c.get("_to");if($("#document-type").text(b),$("#document-id").text(d),$("#document-key").text(e),$("#document-rev").text(f),g&&h){var i=a(g),j=a(h);$("#document-from").text(g),$("#document-from").attr("documentLink",i),$("#document-to").text(h),$("#document-to").attr("documentLink",j)}else $(".edge-info-container").hide()},fillEditor:function(){var a=this.removeReadonlyKeys(this.collection.first().attributes);this.editor.set(a),$(".ace_content").attr("font-size","11pt")},jsonContentChanged:function(){this.enableSaveButton()},render:function(){$(this.el).html(this.template.render({})),this.disableSaveButton(),this.breadcrumb();var a=this,b=document.getElementById("documentEditor"),c={change:function(){a.jsonContentChanged()},search:!0,mode:"tree",modes:["tree","code"],iconlib:"fontawesome4"};return this.editor=new JSONEditor(b,c),this},removeReadonlyKeys:function(a){return _.omit(a,["_key","_id","_from","_to","_rev"])},saveDocument:function(){var a,b;if(void 0===$("#saveDocumentButton").attr("disabled")){try{a=this.editor.get()}catch(c){return this.errorConfirmation(c),void this.disableSaveButton()}if(a=JSON.stringify(a),"document"===this.type){if(b=this.collection.saveDocument(this.colid,this.docid,a),b===!1)return void arangoHelper.arangoError("Document error:","Could not save")}else if("edge"===this.type&&(b=this.collection.saveEdge(this.colid,this.docid,a),b===!1))return void arangoHelper.arangoError("Edge error:","Could not save");b===!0&&(this.successConfirmation(),this.disableSaveButton())}},successConfirmation:function(){arangoHelper.arangoNotification("Document saved."),$("#documentEditor .tree").animate({backgroundColor:"#C6FFB0"},500),$("#documentEditor .tree").animate({backgroundColor:"#FFFFF"},500),$("#documentEditor .ace_content").animate({backgroundColor:"#C6FFB0"},500),$("#documentEditor .ace_content").animate({backgroundColor:"#FFFFF"},500)},errorConfirmation:function(a){arangoHelper.arangoError("Document editor: ",a),$("#documentEditor .tree").animate({backgroundColor:"#FFB0B0"},500),$("#documentEditor .tree").animate({backgroundColor:"#FFFFF"},500),$("#documentEditor .ace_content").animate({backgroundColor:"#FFB0B0"},500),$("#documentEditor .ace_content").animate({backgroundColor:"#FFFFF"},500)},enableSaveButton:function(){$("#saveDocumentButton").prop("disabled",!1),$("#saveDocumentButton").addClass("button-success"),$("#saveDocumentButton").removeClass("button-close")},disableSaveButton:function(){$("#saveDocumentButton").prop("disabled",!0),$("#saveDocumentButton").addClass("button-close"),$("#saveDocumentButton").removeClass("button-success")},breadcrumb:function(){var a=window.location.hash.split("/");$("#transparentHeader").append('")},escaped:function(a){return a.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}})}(),function(){"use strict";window.DocumentsView=window.PaginationView.extend({filters:{0:!0},filterId:0,paginationDiv:"#documentsToolbarF",idPrefix:"documents",addDocumentSwitch:!0,activeFilter:!1,lastCollectionName:void 0,restoredFilters:[],editMode:!1,allowUpload:!1,el:"#content",table:"#documentsTableID",template:templateEngine.createTemplate("documentsView.ejs"),collectionContext:{prev:null,next:null},editButtons:["#deleteSelected","#moveSelected"],initialize:function(){this.documentStore=this.options.documentStore,this.collectionsStore=this.options.collectionsStore,this.tableView=new window.TableView({el:this.table,collection:this.collection}),this.tableView.setRowClick(this.clicked.bind(this)),this.tableView.setRemoveClick(this.remove.bind(this))},setCollectionId:function(a,b){this.collection.setCollection(a);var c=arangoHelper.collectionApiType(a);this.pageid=b,this.type=c,this.checkCollectionState(),this.collection.getDocuments(this.getDocsCallback.bind(this)),this.collectionModel=this.collectionsStore.get(a)},getDocsCallback:function(){$("#documents_last").css("visibility","hidden"),$("#documents_first").css("visibility","hidden"),this.drawTable(),this.renderPaginationElements()},events:{"click #collectionPrev":"prevCollection","click #collectionNext":"nextCollection","click #filterCollection":"filterCollection","click #markDocuments":"editDocuments","click #indexCollection":"indexCollection","click #importCollection":"importCollection","click #exportCollection":"exportCollection","click #filterSend":"sendFilter","click #addFilterItem":"addFilterItem","click .removeFilterItem":"removeFilterItem","click #deleteSelected":"deleteSelectedDocs","click #moveSelected":"moveSelectedDocs","click #addDocumentButton":"addDocumentModal","click #documents_first":"firstDocuments","click #documents_last":"lastDocuments","click #documents_prev":"prevDocuments","click #documents_next":"nextDocuments","click #confirmDeleteBtn":"confirmDelete","click .key":"nop",keyup:"returnPressedHandler","keydown .queryline input":"filterValueKeydown","click #importModal":"showImportModal","click #resetView":"resetView","click #confirmDocImport":"startUpload","click #exportDocuments":"startDownload","change #newIndexType":"selectIndexType","click #createIndex":"createIndex","click .deleteIndex":"prepDeleteIndex","click #confirmDeleteIndexBtn":"deleteIndex","click #documentsToolbar ul":"resetIndexForms","click #indexHeader #addIndex":"toggleNewIndexView","click #indexHeader #cancelIndex":"toggleNewIndexView","change #documentSize":"setPagesize","change #docsSort":"setSorting"},showSpinner:function(){$("#uploadIndicator").show()},hideSpinner:function(){$("#uploadIndicator").hide()},showImportModal:function(){$("#docImportModal").modal("show")},hideImportModal:function(){$("#docImportModal").modal("hide")},setPagesize:function(){var a=$("#documentSize").find(":selected").val();this.collection.setPagesize(a),this.collection.getDocuments(this.getDocsCallback.bind(this))},setSorting:function(){var a=$("#docsSort").val();(""===a||void 0===a||null===a)&&(a="_key"),this.collection.setSort(a)},returnPressedHandler:function(a){13===a.keyCode&&$(a.target).is($("#docsSort"))&&this.collection.getDocuments(this.getDocsCallback.bind(this)),13===a.keyCode&&$("#confirmDeleteBtn").attr("disabled")===!1&&this.confirmDelete()},toggleNewIndexView:function(){$("#indexEditView").toggle("fast"),$("#newIndexView").toggle("fast"),this.resetIndexForms()},nop:function(a){a.stopPropagation()},resetView:function(){$("input").val(""),$("select").val("=="),this.removeAllFilterItems(),$("#documentSize").val(this.collection.getPageSize()),$("#documents_last").css("visibility","visible"),$("#documents_first").css("visibility","visible"),this.addDocumentSwitch=!0,this.collection.resetFilter(),this.collection.loadTotal(),this.restoredFilters=[],this.allowUpload=!1,this.files=void 0,this.file=void 0,$("#confirmDocImport").attr("disabled",!0),this.markFilterToggle(),this.collection.getDocuments(this.getDocsCallback.bind(this))},startDownload:function(){var a=this.collection.buildDownloadDocumentQuery();""!==a||void 0!==a||null!==a?window.open(encodeURI("query/result/download/"+btoa(JSON.stringify(a)))):arangoHelper.arangoError("Document error","could not download documents")},startUpload:function(){var a;return this.allowUpload===!0?(this.showSpinner(),a=this.collection.uploadDocuments(this.file),a!==!0?(this.hideSpinner(),this.hideImportModal(),this.resetView(),void arangoHelper.arangoError(a)):(this.hideSpinner(),this.hideImportModal(),void this.resetView())):void 0},uploadSetup:function(){var a=this;$("#importDocuments").change(function(b){a.files=b.target.files||b.dataTransfer.files,a.file=a.files[0],$("#confirmDocImport").attr("disabled",!1),a.allowUpload=!0})},buildCollectionLink:function(a){return"collection/"+encodeURIComponent(a.get("name"))+"/documents/1"},markFilterToggle:function(){this.restoredFilters.length>0?$("#filterCollection").addClass("activated"):$("#filterCollection").removeClass("activated")},editDocuments:function(){$("#indexCollection").removeClass("activated"),$("#importCollection").removeClass("activated"),$("#exportCollection").removeClass("activated"),this.markFilterToggle(),$("#markDocuments").toggleClass("activated"),this.changeEditMode(),$("#filterHeader").hide(),$("#importHeader").hide(),$("#indexHeader").hide(),$("#editHeader").slideToggle(200),$("#exportHeader").hide()},filterCollection:function(){$("#indexCollection").removeClass("activated"),$("#importCollection").removeClass("activated"),$("#exportCollection").removeClass("activated"),$("#markDocuments").removeClass("activated"),this.changeEditMode(!1),this.markFilterToggle(),this.activeFilter=!0,$("#importHeader").hide(),$("#indexHeader").hide(),$("#editHeader").hide(),$("#exportHeader").hide(),$("#filterHeader").slideToggle(200);var a;for(a in this.filters)if(this.filters.hasOwnProperty(a))return void $("#attribute_name"+a).focus()},exportCollection:function(){$("#indexCollection").removeClass("activated"),$("#importCollection").removeClass("activated"),$("#filterHeader").removeClass("activated"),$("#markDocuments").removeClass("activated"),this.changeEditMode(!1),$("#exportCollection").toggleClass("activated"),this.markFilterToggle(),$("#exportHeader").slideToggle(200),$("#importHeader").hide(),$("#indexHeader").hide(),$("#filterHeader").hide(),$("#editHeader").hide()},importCollection:function(){this.markFilterToggle(),$("#indexCollection").removeClass("activated"),$("#markDocuments").removeClass("activated"),this.changeEditMode(!1),$("#importCollection").toggleClass("activated"),$("#exportCollection").removeClass("activated"),$("#importHeader").slideToggle(200),$("#filterHeader").hide(),$("#indexHeader").hide(),$("#editHeader").hide(),$("#exportHeader").hide()},indexCollection:function(){this.markFilterToggle(),$("#importCollection").removeClass("activated"),$("#exportCollection").removeClass("activated"),$("#markDocuments").removeClass("activated"),this.changeEditMode(!1),$("#indexCollection").toggleClass("activated"),$("#newIndexView").hide(),$("#indexEditView").show(),$("#indexHeader").slideToggle(200),$("#importHeader").hide(),$("#editHeader").hide(),$("#filterHeader").hide(),$("#exportHeader").hide()},changeEditMode:function(a){a===!1||this.editMode===!0?($("#documentsTableID tbody tr").css("cursor","default"),$(".deleteButton").fadeIn(),$(".addButton").fadeIn(),$(".selected-row").removeClass("selected-row"),this.editMode=!1,this.tableView.setRowClick(this.clicked.bind(this))):($("#documentsTableID tbody tr").css("cursor","copy"),$(".deleteButton").fadeOut(),$(".addButton").fadeOut(),$(".selectedCount").text(0),this.editMode=!0,this.tableView.setRowClick(this.editModeClick.bind(this)))},getFilterContent:function(){var a,b=[];for(a in this.filters)if(this.filters.hasOwnProperty(a)){var c=$("#attribute_value"+a).val();try{c=JSON.parse(c)}catch(d){c=String(c)}""!==$("#attribute_name"+a).val()&&b.push({attribute:$("#attribute_name"+a).val(),operator:$("#operator"+a).val(),value:c})}return b},sendFilter:function(){this.restoredFilters=this.getFilterContent();var a=this;this.collection.resetFilter(),this.addDocumentSwitch=!1,_.each(this.restoredFilters,function(b){void 0!==b.operator&&a.collection.addFilter(b.attribute,b.operator,b.value); diff --git a/js/apps/system/_admin/aardvark/APP/frontend/build/app.min.js.gz b/js/apps/system/_admin/aardvark/APP/frontend/build/app.min.js.gz index 3a8767222b..d207a48414 100644 Binary files a/js/apps/system/_admin/aardvark/APP/frontend/build/app.min.js.gz and b/js/apps/system/_admin/aardvark/APP/frontend/build/app.min.js.gz differ diff --git a/js/apps/system/_admin/aardvark/APP/frontend/build/scripts.html.part b/js/apps/system/_admin/aardvark/APP/frontend/build/scripts.html.part index fbf66f7a3a..dad2886f13 100644 --- a/js/apps/system/_admin/aardvark/APP/frontend/build/scripts.html.part +++ b/js/apps/system/_admin/aardvark/APP/frontend/build/scripts.html.part @@ -1,3 +1,3 @@ - - - + + + diff --git a/js/apps/system/_admin/aardvark/APP/frontend/build/standalone-min.html b/js/apps/system/_admin/aardvark/APP/frontend/build/standalone-min.html index 00e8a0edb1..30d08a6300 100644 --- a/js/apps/system/_admin/aardvark/APP/frontend/build/standalone-min.html +++ b/js/apps/system/_admin/aardvark/APP/frontend/build/standalone-min.html @@ -2755,4 +2755,4 @@ var cutByResolution = function (str) { <% }); %> - <% } %>
    \ No newline at end of file + <% } %>
    \ No newline at end of file diff --git a/js/apps/system/_admin/aardvark/APP/frontend/build/standalone-min.html.gz b/js/apps/system/_admin/aardvark/APP/frontend/build/standalone-min.html.gz index e3ac1138ae..09ee1074a2 100644 Binary files a/js/apps/system/_admin/aardvark/APP/frontend/build/standalone-min.html.gz and b/js/apps/system/_admin/aardvark/APP/frontend/build/standalone-min.html.gz differ diff --git a/js/apps/system/_admin/aardvark/APP/frontend/build/standalone.html b/js/apps/system/_admin/aardvark/APP/frontend/build/standalone.html index 96cb53ddab..422fa52226 100644 --- a/js/apps/system/_admin/aardvark/APP/frontend/build/standalone.html +++ b/js/apps/system/_admin/aardvark/APP/frontend/build/standalone.html @@ -3011,9 +3011,9 @@ var cutByResolution = function (str) { - - - + + + diff --git a/lib/Basics/ssl-helper.cpp b/lib/Basics/ssl-helper.cpp index bbfc679880..2b61c9f1a3 100644 --- a/lib/Basics/ssl-helper.cpp +++ b/lib/Basics/ssl-helper.cpp @@ -55,10 +55,11 @@ SSL_CTX* triagens::basics::sslContext (protocol_e protocol, string const& keyfil meth = SSLv2_method(); break; #endif +#ifndef OPENSSL_NO_SSL3_METHOD case SSL_V3: meth = SSLv3_method(); break; - +#endif case SSL_V23: meth = SSLv23_method(); break; @@ -67,6 +68,10 @@ SSL_CTX* triagens::basics::sslContext (protocol_e protocol, string const& keyfil meth = TLSv1_method(); break; + case TLS_V12: + meth = TLSv1_2_method(); + break; + default: LOG_ERROR("unknown SSL protocol method"); return nullptr; @@ -110,6 +115,9 @@ string triagens::basics::protocolName (const protocol_e protocol) { case TLS_V1: return "TLSv1"; + case TLS_V12: + return "TLSv12"; + default: return "unknown"; } diff --git a/lib/Basics/ssl-helper.h b/lib/Basics/ssl-helper.h index f4a19af271..a94ddd7ac8 100644 --- a/lib/Basics/ssl-helper.h +++ b/lib/Basics/ssl-helper.h @@ -51,6 +51,7 @@ namespace triagens { SSL_V23 = 2, SSL_V3 = 3, TLS_V1 = 4, + TLS_V12 = 5, SSL_LAST }; diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 5acf2f1f7d..6b3c9e36c8 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -34,6 +34,7 @@ else () Basics/terminal-utils-posix.cpp Basics/threads-posix.cpp Rest/EndpointUnixDomain.cpp + Rest/EndpointSrv.cpp ) endif () @@ -139,7 +140,6 @@ add_library( Rest/EndpointIp.cpp Rest/EndpointIpV4.cpp Rest/EndpointIpV6.cpp - Rest/EndpointSrv.cpp Rest/HttpRequest.cpp Rest/HttpResponse.cpp Rest/InitializeRest.cpp diff --git a/lib/Rest/Endpoint.cpp b/lib/Rest/Endpoint.cpp index 1886184d44..6ca059665f 100644 --- a/lib/Rest/Endpoint.cpp +++ b/lib/Rest/Endpoint.cpp @@ -39,7 +39,10 @@ #endif #include "Rest/EndpointIpV4.h" #include "Rest/EndpointIpV6.h" + +#ifndef _WIN32 #include "Rest/EndpointSrv.h" +#endif using namespace std; using namespace triagens::basics; @@ -241,6 +244,7 @@ Endpoint* Endpoint::factory (const Endpoint::EndpointType type, } #endif +#ifndef _WIN32 else if (StringUtils::isPrefix(domainType, "srv://")) { if (type != ENDPOINT_CLIENT) { return nullptr; @@ -248,6 +252,7 @@ Endpoint* Endpoint::factory (const Endpoint::EndpointType type, return new EndpointSrv(specification.substr(6)); } +#endif else if (! StringUtils::isPrefix(domainType, "tcp://")) { // invalid type