diff --git a/Documentation/Books/Manual/Indexing/IndexBasics.md b/Documentation/Books/Manual/Indexing/IndexBasics.md index c004468330..3b17b7ecef 100644 --- a/Documentation/Books/Manual/Indexing/IndexBasics.md +++ b/Documentation/Books/Manual/Indexing/IndexBasics.md @@ -260,17 +260,19 @@ from a collection. A TTL index is set up by setting an `expireAfter` value and by picking a single document attribute which contains the documents' creation date and time. Documents are expired after `expireAfter` seconds after their creation time. The creation time -is specified as a numeric timestamp with millisecond precision. +is specified as either a numeric timestamp (Unix timestamp) or a date string in format +`YYYY-MM-DDTHH:MM:SS` with optional milliseconds. All date strings will be interpreted +as UTC dates. For example, if `expireAfter` is set to 600 seconds (10 minutes) and the index attribute is "creationDate" and there is the following document: - { "creationDate" : 1550165973964 } + { "creationDate" : 1550165973 } -This document will be indexed with a creation date time value of `1550165973964`, -which translates to the human-readable date `2019-02-14T17:39:33.964Z`. The document -will expire 600 seconds afterwards, which is at timestamp `1550166573964` (or -`2019-02-14T17:49:33.964Z` in the human-readable version). +This document will be indexed with a creation date time value of `1550165973`, +which translates to the human-readable date `2019-02-14T17:39:33.000Z`. The document +will expire 600 seconds afterwards, which is at timestamp `1550166573` (or +`2019-02-14T17:49:33.000Z` in the human-readable version). The actual removal of expired documents will not necessarily happen immediately. Expired documents will eventually removed by a background thread that is periodically @@ -283,17 +285,24 @@ out, so queries may still find and return documents that have already expired. T will eventually be removed when the background thread kicks in and has capacity to remove the expired documents. It is guaranteed however that only documents which are past their expiration time will actually be removed. - + Please note that the numeric date time values for the index attribute should be -specified in milliseconds since January 1st 1970 (Unix timestamp with millisecond -precision). To calculate the current timestamp from JavaScript in this format, -there is `Date.now()`, to calculate it from an arbitrary date string, there is -`Date.getTime()`. +specified in milliseconds since January 1st 1970 (Unix timestamp). To calculate the current +timestamp from JavaScript in this format, there is `Date.now() / 1000`, to calculate it +from an arbitrary Date instance, there is `Date.getTime() / 1000`. -In case the index attribute does not contain a numeric value, the document will not -be stored in the TTL index and thus will not become a candidate for expiration and -removal. Providing either a non-numeric value or even no value for the index attribute -is a supported way of keeping documents from being expired and removed. +Alternatively, the index attribute values can be specified as a date string in format +`YYYY-MM-DDTHH:MM:SS` with optional milliseconds. All date strings will be interpreted +as UTC dates. + +The above example document using a datestring attribute value would be + + { "creationDate" : "2019-02-14T17:39:33.000Z" } + +In case the index attribute does not contain a numeric value nor a proper date string, +the document will not be stored in the TTL index and thus will not become a candidate +for expiration and removal. Providing either a non-numeric value or even no value for +the index attribute is a supported way of keeping documents from being expired and removed. Geo Index diff --git a/Documentation/Books/Manual/Indexing/Ttl.md b/Documentation/Books/Manual/Indexing/Ttl.md index e1aad7219d..e605eb9b88 100644 --- a/Documentation/Books/Manual/Indexing/Ttl.md +++ b/Documentation/Books/Manual/Indexing/Ttl.md @@ -10,17 +10,19 @@ from a collection. The TTL index is set up by setting an `expireAfter` value and by picking a single document attribute which contains the documents' creation date and time. Documents are expired after `expireAfter` seconds after their creation time. The creation time -is specified as a numeric timestamp with millisecond precision. +is specified as a numeric timestamp (Unix timestamp) or a date string in format +`YYYY-MM-DDTHH:MM:SS` with optional milliseconds. All date strings will be interpreted +as UTC dates. For example, if `expireAfter` is set to 600 seconds (10 minutes) and the index attribute is "creationDate" and there is the following document: - { "creationDate" : 1550165973964 } + { "creationDate" : 1550165973 } -This document will be indexed with a creation date time value of `1550165973964`, -which translates to the human-readable date `2019-02-14T17:39:33.964Z`. The document -will expire 600 seconds afterwards, which is at timestamp `1550166573964` (or -`2019-02-14T17:49:33.964Z` in the human-readable version). +This document will be indexed with a creation date time value of `1550165973`, +which translates to the human-readable date `2019-02-14T17:39:33.000Z`. The document +will expire 600 seconds afterwards, which is at timestamp `1550166573` (or +`2019-02-14T17:49:33.000Z` in the human-readable version). The actual removal of expired documents will not necessarily happen immediately. Expired documents will eventually removed by a background thread that is periodically @@ -31,19 +33,28 @@ out, so queries may still find and return documents that have already expired. T will eventually be removed when the background thread kicks in and has capacity to remove the expired documents. It is guaranteed however that only documents which are past their expiration time will actually be removed. - + Please note that the numeric date time values for the index attribute should be -specified in milliseconds since January 1st 1970 (Unix timestamp with millisecond -precision). To calculate the current timestamp from JavaScript in this format, -there is `Date.now()`, to calculate it from an arbitrary date string, there is -`Date.getTime()`. +specified in milliseconds since January 1st 1970 (Unix timestamp). To calculate the current +timestamp from JavaScript in this format, there is `Date.now() / 1000`, to calculate it +from an arbitrary Date instance, there is `Date.getTime() / 1000`. -In case the index attribute does not contain a numeric value, the document will not -be stored in the TTL index and thus will not become a candidate for expiration and -removal. Providing either a non-numeric value or even no value for the index attribute -is a supported way of keeping documents from being expired and removed. +Alternatively, the index attribute values can be specified as a date string in format +`YYYY-MM-DDTHH:MM:SS` with optional milliseconds. All date strings will be interpreted +as UTC dates. + +The above example document using a datestring attribute value would be -There can at most be one TTL index per collection. + { "creationDate" : "2019-02-14T17:39:33.000Z" } + +In case the index attribute does not contain a numeric value nor a proper date string, +the document will not be stored in the TTL index and thus will not become a candidate +for expiration and removal. Providing either a non-numeric value or even no value for +the index attribute is a supported way of keeping documents from being expired and removed. + +There can at most be one TTL index per collection. It is not recommended to use +TTL indexes for user-land AQL queries, as TTL indexes may store a transformed, +always numerical version of the index attribute value. The frequency for invoking the background removal thread can be configured using the `--ttl.frequency` startup option. @@ -72,7 +83,7 @@ details, including the index-identifier, is returned. @EXAMPLE_ARANGOSH_OUTPUT{ensureTtlIndex} ~db._create("test"); db.test.ensureIndex({ type: "ttl", fields: [ "creationDate" ], expireAfter: 600 }); - for (let i = 0; i < 100; ++i) { db.test.insert({ creationDate: Date.now() }); } + for (let i = 0; i < 100; ++i) { db.test.insert({ creationDate: Date.now() / 1000 }); } ~db._drop("test"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock ensureTtlIndex diff --git a/Documentation/Books/Manual/Indexing/WhichIndex.md b/Documentation/Books/Manual/Indexing/WhichIndex.md index 6dca63ccde..8c4732e2f1 100644 --- a/Documentation/Books/Manual/Indexing/WhichIndex.md +++ b/Documentation/Books/Manual/Indexing/WhichIndex.md @@ -67,17 +67,19 @@ different usage scenarios: The TTL index is set up by setting an `expireAfter` value and by picking a single document attribute which contains the documents' creation date and time. Documents are expired after `expireAfter` seconds after their creation time. The creation time - is specified as a numeric timestamp with millisecond precision. + is specified as either a numeric timestamp (Unix timestamp) or a date string in format + `YYYY-MM-DDTHH:MM:SS` with optional milliseconds. All date strings will be interpreted + as UTC dates. For example, if `expireAfter` is set to 600 seconds (10 minutes) and the index attribute is "creationDate" and there is the following document: - { "creationDate" : 1550165973964 } + { "creationDate" : 1550165973 } - This document will be indexed with a creation date time value of `1550165973964`, - which translates to the human-readable date `2019-02-14T17:39:33.964Z`. The document - will expire 600 seconds afterwards, which is at timestamp `1550166573964` (or - `2019-02-14T17:49:33.964Z` in the human-readable version). + This document will be indexed with a creation date time value of `1550165973`, + which translates to the human-readable date `2019-02-14T17:39:33.000Z`. The document + will expire 600 seconds afterwards, which is at timestamp `1550166573` (or + `2019-02-14T17:49:33.000Z` in the human-readable version). The actual removal of expired documents will not necessarily happen immediately. Expired documents will eventually removed by a background thread that is periodically @@ -92,15 +94,25 @@ different usage scenarios: past their expiration time will actually be removed. Please note that the numeric date time values for the index attribute should be - specified in milliseconds since January 1st 1970 (Unix timestamp with millisecond - precision). To calculate the current timestamp from JavaScript in this format, - there is `Date.now()`, to calculate it from an arbitrary date string, there is - `Date.getTime()`. + specified in milliseconds since January 1st 1970 (Unix timestamp). To calculate the current + timestamp from JavaScript in this format, there is `Date.now() / 1000`, to calculate it + from an arbitrary Date instance, there is `Date.getTime() / 1000`. - In case the index attribute does not contain a numeric value, the document will not - be stored in the TTL index and thus will not become a candidate for expiration and - removal. Providing either a non-numeric value or even no value for the index attribute - is a supported way of keeping documents from being expired and removed. + Alternatively, the index attribute values can be specified as a date string in format + `YYYY-MM-DDTHH:MM:SS` with optional milliseconds. All date strings will be interpreted + as UTC dates. + + The above example document using a datestring attribute value would be + + { "creationDate" : "2019-02-14T17:39:33.000Z" } + + In case the index attribute does not contain a numeric value nor a proper date string, + the document will not be stored in the TTL index and thus will not become a candidate + for expiration and removal. Providing either a non-numeric value or even no value for + the index attribute is a supported way of keeping documents from being expired and removed. + + It is not recommended to use TTL indexes for user-land AQL queries, as TTL indexes may + store a transformed, always numerical version of the index attribute value. - geo index: the geo index provided by ArangoDB allows searching for documents within a radius around a two-dimensional earth coordinate (point), or to diff --git a/Documentation/Books/Manual/ReleaseNotes/NewFeatures35.md b/Documentation/Books/Manual/ReleaseNotes/NewFeatures35.md index 458f67a02a..e48665240a 100644 --- a/Documentation/Books/Manual/ReleaseNotes/NewFeatures35.md +++ b/Documentation/Books/Manual/ReleaseNotes/NewFeatures35.md @@ -64,17 +64,17 @@ from a collection. A TTL index can be set up by setting an `expireAfter` value and by picking a single document attribute which contains the documents' creation date and time. Documents are expired after `expireAfter` seconds after their creation time. The creation time -is specified as a numeric timestamp with millisecond precision. +is specified as either a numeric timestamp or a UTC datestring. For example, if `expireAfter` is set to 600 seconds (10 minutes) and the index attribute is "creationDate" and there is the following document: - { "creationDate" : 1550165973964 } + { "creationDate" : 1550165973 } -This document will be indexed with a creation date time value of `1550165973964`, -which translates to the human-readable date `2019-02-14T17:39:33.964Z`. The document -will expire 600 seconds afterwards, which is at timestamp `1550166573964` (or -`2019-02-14T17:49:33.964Z` in the human-readable version). +This document will be indexed with a creation timestamp value of `1550165973`, +which translates to the human-readable date string `2019-02-14T17:39:33.000Z`. The +document will expire 600 seconds afterwards, which is at timestamp `1550166573000` (or +`2019-02-14T17:49:33.000Z` in the human-readable version). The actual removal of expired documents will not necessarily happen immediately. Expired documents will eventually removed by a background thread that is periodically @@ -86,18 +86,27 @@ will eventually be removed when the background thread kicks in and has capacity remove the expired documents. It is guaranteed however that only documents which are past their expiration time will actually be removed. -Please note that the numeric date time values for the index attribute should be -specified in milliseconds since January 1st 1970 (Unix timestamp with millisecond -precision). To calculate the current timestamp from JavaScript in this format, -there is `Date.now()`, to calculate it from an arbitrary date string, there is -`Date.getTime()`. +Please note that the numeric timestamp values for the index attribute should be +specified in seconds since January 1st 1970 (Unix timestamp). To calculate the current +timestamp from JavaScript in this format, there is `Date.now() / 1000`, to calculate it +from an arbitrary Date instance, there is `Date.getTime() / 1000`. -In case the index attribute does not contain a numeric value, the document will not -be stored in the TTL index and thus will not become a candidate for expiration and -removal. Providing either a non-numeric value or even no value for the index attribute -is a supported way of keeping documents from being expired and removed. +Alternatively, the index attribute values can be specified as a date string in format +`YYYY-MM-DDTHH:MM:SS` with optional milliseconds. All date strings will be interpreted +as UTC dates. + +The above example document using a datestring attribute value would be -There can at most be one TTL index per collection. + { "creationDate" : "2019-02-14T17:39:33.000Z" } + +In case the index attribute does not contain a numeric value nor a proper date string, +the document will not be stored in the TTL index and thus will not become a candidate +for expiration and removal. Providing either a non-numeric value or even no value for +the index attribute is a supported way of keeping documents from being expired and removed. + +There can at most be one TTL index per collection. It is not recommended to use +TTL indexes for user-land AQL queries, as TTL indexes may store a transformed, +always numerical version of the index attribute value. The frequency for invoking the background removal thread can be configured using the `--ttl.frequency` startup option. diff --git a/Documentation/Examples/001_collectionAll.generated b/Documentation/Examples/001_collectionAll.generated index fa2216a22f..a1a0b6159f 100644 --- a/Documentation/Examples/001_collectionAll.generated +++ b/Documentation/Examples/001_collectionAll.generated @@ -1,63 +1,63 @@ -arangosh> db.five.save({ name : "one" }); +arangosh> db.five.insert({ name : "one" }); { "_id" : "five/112", "_key" : "112", - "_rev" : "_YNEZ6wW--_" + "_rev" : "_YOn09b---_" } -arangosh> db.five.save({ name : "two" }); +arangosh> db.five.insert({ name : "two" }); { "_id" : "five/116", "_key" : "116", - "_rev" : "_YNEZ6wa--_" + "_rev" : "_YOn09b---B" } -arangosh> db.five.save({ name : "three" }); +arangosh> db.five.insert({ name : "three" }); { "_id" : "five/119", "_key" : "119", - "_rev" : "_YNEZ6wa--B" + "_rev" : "_YOn09bC--_" } -arangosh> db.five.save({ name : "four" }); +arangosh> db.five.insert({ name : "four" }); { "_id" : "five/122", "_key" : "122", - "_rev" : "_YNEZ6we--_" + "_rev" : "_YOn09bC--B" } -arangosh> db.five.save({ name : "five" }); +arangosh> db.five.insert({ name : "five" }); { "_id" : "five/125", "_key" : "125", - "_rev" : "_YNEZ6we--B" + "_rev" : "_YOn09bC--D" } arangosh> db.five.all().toArray(); [ { "_key" : "119", "_id" : "five/119", - "_rev" : "_YNEZ6wa--B", + "_rev" : "_YOn09bC--_", "name" : "three" }, { "_key" : "112", "_id" : "five/112", - "_rev" : "_YNEZ6wW--_", + "_rev" : "_YOn09b---_", "name" : "one" }, { "_key" : "116", "_id" : "five/116", - "_rev" : "_YNEZ6wa--_", + "_rev" : "_YOn09b---B", "name" : "two" }, { "_key" : "125", "_id" : "five/125", - "_rev" : "_YNEZ6we--B", + "_rev" : "_YOn09bC--D", "name" : "five" }, { "_key" : "122", "_id" : "five/122", - "_rev" : "_YNEZ6we--_", + "_rev" : "_YOn09bC--B", "name" : "four" } ] diff --git a/Documentation/Examples/002_collectionAllNext.generated b/Documentation/Examples/002_collectionAllNext.generated index 280a138b5b..04a582d220 100644 --- a/Documentation/Examples/002_collectionAllNext.generated +++ b/Documentation/Examples/002_collectionAllNext.generated @@ -1,45 +1,45 @@ -arangosh> db.five.save({ name : "one" }); +arangosh> db.five.insert({ name : "one" }); { "_id" : "five/141", "_key" : "141", - "_rev" : "_YNEZ6xu--B" + "_rev" : "_YOn09ce--_" } -arangosh> db.five.save({ name : "two" }); +arangosh> db.five.insert({ name : "two" }); { "_id" : "five/145", "_key" : "145", - "_rev" : "_YNEZ6xy--_" + "_rev" : "_YOn09ce--B" } -arangosh> db.five.save({ name : "three" }); +arangosh> db.five.insert({ name : "three" }); { "_id" : "five/148", "_key" : "148", - "_rev" : "_YNEZ6xy--B" + "_rev" : "_YOn09ci--_" } -arangosh> db.five.save({ name : "four" }); +arangosh> db.five.insert({ name : "four" }); { "_id" : "five/151", "_key" : "151", - "_rev" : "_YNEZ6xy--D" + "_rev" : "_YOn09ci--B" } -arangosh> db.five.save({ name : "five" }); +arangosh> db.five.insert({ name : "five" }); { "_id" : "five/154", "_key" : "154", - "_rev" : "_YNEZ6x2--_" + "_rev" : "_YOn09ci--D" } arangosh> db.five.all().limit(2).toArray(); [ { "_key" : "141", "_id" : "five/141", - "_rev" : "_YNEZ6xu--B", + "_rev" : "_YOn09ce--_", "name" : "one" }, { "_key" : "151", "_id" : "five/151", - "_rev" : "_YNEZ6xy--D", + "_rev" : "_YOn09ci--B", "name" : "four" } ] diff --git a/Documentation/Examples/003_collectionByExample.generated b/Documentation/Examples/003_collectionByExample.generated index 4c3d2a7209..f351fc9dfb 100644 --- a/Documentation/Examples/003_collectionByExample.generated +++ b/Documentation/Examples/003_collectionByExample.generated @@ -1,39 +1,39 @@ -arangosh> db.users.save({ name: "Gerhard" }); +arangosh> db.users.insert({ name: "Gerhard" }); { "_id" : "users/170", "_key" : "170", - "_rev" : "_YNEZ6yy--_" + "_rev" : "_YOn09de--_" } -arangosh> db.users.save({ name: "Helmut" }); +arangosh> db.users.insert({ name: "Helmut" }); { "_id" : "users/174", "_key" : "174", - "_rev" : "_YNEZ6yy--B" + "_rev" : "_YOn09de--B" } -arangosh> db.users.save({ name: "Angela" }); +arangosh> db.users.insert({ name: "Angela" }); { "_id" : "users/177", "_key" : "177", - "_rev" : "_YNEZ6y2--_" + "_rev" : "_YOn09de--D" } arangosh> db.users.all().toArray(); [ { "_key" : "174", "_id" : "users/174", - "_rev" : "_YNEZ6yy--B", + "_rev" : "_YOn09de--B", "name" : "Helmut" }, { "_key" : "170", "_id" : "users/170", - "_rev" : "_YNEZ6yy--_", + "_rev" : "_YOn09de--_", "name" : "Gerhard" }, { "_key" : "177", "_id" : "users/177", - "_rev" : "_YNEZ6y2--_", + "_rev" : "_YOn09de--D", "name" : "Angela" } ] @@ -44,7 +44,7 @@ arangosh> db.users.byExample({ "name" : "_key" : "170", "_id" : "users/170", - "_rev" : "_YNEZ6yy--_", + "_rev" : "_YOn09de--_", "name" : "Gerhard" } ] diff --git a/Documentation/Examples/004_collectionByExampleNext.generated b/Documentation/Examples/004_collectionByExampleNext.generated index 0e93426952..2ffae1cde6 100644 --- a/Documentation/Examples/004_collectionByExampleNext.generated +++ b/Documentation/Examples/004_collectionByExampleNext.generated @@ -1,26 +1,26 @@ -arangosh> db.users.save({ name: "Gerhard" }); +arangosh> db.users.insert({ name: "Gerhard" }); { "_id" : "users/196", "_key" : "196", - "_rev" : "_YNEZ60O--_" + "_rev" : "_YOn09ee--B" } -arangosh> db.users.save({ name: "Helmut" }); +arangosh> db.users.insert({ name: "Helmut" }); { "_id" : "users/200", "_key" : "200", - "_rev" : "_YNEZ60O--B" + "_rev" : "_YOn09ei--_" } -arangosh> db.users.save({ name: "Angela" }); +arangosh> db.users.insert({ name: "Angela" }); { "_id" : "users/203", "_key" : "203", - "_rev" : "_YNEZ60S--_" + "_rev" : "_YOn09ei--B" } arangosh> var a = db.users.byExample( {"name" : "Angela" } ); arangosh> while (a.hasNext()) print(a.next()); { "_key" : "203", "_id" : "users/203", - "_rev" : "_YNEZ60S--_", + "_rev" : "_YOn09ei--B", "name" : "Angela" } diff --git a/Documentation/Examples/005_collectionRange.generated b/Documentation/Examples/005_collectionRange.generated index ed7bf46f34..096167d0c3 100644 --- a/Documentation/Examples/005_collectionRange.generated +++ b/Documentation/Examples/005_collectionRange.generated @@ -11,36 +11,36 @@ arangosh> db.old.ensureIndex({ type: "unique" : false, "code" : 201 } -arangosh> db.old.save({ age: 15 }); +arangosh> db.old.insert({ age: 15 }); { "_id" : "old/221", "_key" : "221", - "_rev" : "_YNEZ62W--_" + "_rev" : "_YOn09gi--_" } -arangosh> db.old.save({ age: 25 }); +arangosh> db.old.insert({ age: 25 }); { "_id" : "old/225", "_key" : "225", - "_rev" : "_YNEZ62W--B" + "_rev" : "_YOn09gi--B" } -arangosh> db.old.save({ age: 30 }); +arangosh> db.old.insert({ age: 30 }); { "_id" : "old/228", "_key" : "228", - "_rev" : "_YNEZ62W--D" + "_rev" : "_YOn09gm--_" } arangosh> db.old.range("age", 10, 30).toArray(); [ { "_key" : "221", "_id" : "old/221", - "_rev" : "_YNEZ62W--_", + "_rev" : "_YOn09gi--_", "age" : 15 }, { "_key" : "225", "_id" : "old/225", - "_rev" : "_YNEZ62W--B", + "_rev" : "_YOn09gi--B", "age" : 25 } ] diff --git a/Documentation/Examples/006_collectionClosedRange.generated b/Documentation/Examples/006_collectionClosedRange.generated index 21668adf19..02dbfb3fdc 100644 --- a/Documentation/Examples/006_collectionClosedRange.generated +++ b/Documentation/Examples/006_collectionClosedRange.generated @@ -4,49 +4,49 @@ arangosh> db.old.ensureIndex({ type: "fields" : [ "age" ], - "id" : "old/244", + "id" : "old/245", "isNewlyCreated" : true, "sparse" : false, "type" : "skiplist", "unique" : false, "code" : 201 } -arangosh> db.old.save({ age: 15 }); +arangosh> db.old.insert({ age: 15 }); { - "_id" : "old/247", - "_key" : "247", - "_rev" : "_YNEZ64W--_" + "_id" : "old/248", + "_key" : "248", + "_rev" : "_YOn09im--_" } -arangosh> db.old.save({ age: 25 }); +arangosh> db.old.insert({ age: 25 }); { - "_id" : "old/251", - "_key" : "251", - "_rev" : "_YNEZ64a--_" + "_id" : "old/252", + "_key" : "252", + "_rev" : "_YOn09im--B" } -arangosh> db.old.save({ age: 30 }); +arangosh> db.old.insert({ age: 30 }); { - "_id" : "old/254", - "_key" : "254", - "_rev" : "_YNEZ64a--B" + "_id" : "old/255", + "_key" : "255", + "_rev" : "_YOn09iq--_" } arangosh> db.old.closedRange("age", 10, 30).toArray(); [ { - "_key" : "247", - "_id" : "old/247", - "_rev" : "_YNEZ64W--_", + "_key" : "248", + "_id" : "old/248", + "_rev" : "_YOn09im--_", "age" : 15 }, { - "_key" : "251", - "_id" : "old/251", - "_rev" : "_YNEZ64a--_", + "_key" : "252", + "_id" : "old/252", + "_rev" : "_YOn09im--B", "age" : 25 }, { - "_key" : "254", - "_id" : "old/254", - "_rev" : "_YNEZ64a--B", + "_key" : "255", + "_id" : "old/255", + "_rev" : "_YOn09iq--_", "age" : 30 } ] diff --git a/Documentation/Examples/007_collectionNear.generated b/Documentation/Examples/007_collectionNear.generated index 6ddbbdbc4d..72dda5f76c 100644 --- a/Documentation/Examples/007_collectionNear.generated +++ b/Documentation/Examples/007_collectionNear.generated @@ -5,7 +5,7 @@ arangosh> db.geo.ensureIndex({ type: "loc" ], "geoJson" : false, - "id" : "geo/270", + "id" : "geo/271", "isNewlyCreated" : true, "maxNumCoverCells" : 8, "sparse" : true, @@ -23,9 +23,9 @@ arangosh> for (v arangosh> db.geo.near(0, 0).limit(2).toArray(); [ { - "_key" : "1327", - "_id" : "geo/1327", - "_rev" : "_YNEZ69e--J", + "_key" : "1328", + "_id" : "geo/1328", + "_rev" : "_YOn09o6--D", "name" : "Name/0/0", "loc" : [ 0, @@ -33,9 +33,9 @@ arangosh> db.geo.near(0, "_key" : "1216", - "_id" : "geo/1216", - "_rev" : "_YNEZ69O--D", + "_key" : "1217", + "_id" : "geo/1217", + "_rev" : "_YOn09nS--_", "name" : "Name/-10/0", "loc" : [ -10, diff --git a/Documentation/Examples/008_collectionNearDistance.generated b/Documentation/Examples/008_collectionNearDistance.generated index 2fe70188c7..1894b56feb 100644 --- a/Documentation/Examples/008_collectionNearDistance.generated +++ b/Documentation/Examples/008_collectionNearDistance.generated @@ -25,7 +25,7 @@ arangosh> db.geo.near(0, "_id" : "geo/3456", "_key" : "3456", - "_rev" : "_YNEZ7Ge--F", + "_rev" : "_YOn09za--H", "loc" : [ 0, 0 @@ -36,7 +36,7 @@ arangosh> db.geo.near(0, "_id" : "geo/3345", "_key" : "3345", - "_rev" : "_YNEZ7GK--J", + "_rev" : "_YOn09zC--_", "loc" : [ -10, 0 diff --git a/Documentation/Examples/009_collectionWithin.generated b/Documentation/Examples/009_collectionWithin.generated index e69ea17108..e372467e56 100644 --- a/Documentation/Examples/009_collectionWithin.generated +++ b/Documentation/Examples/009_collectionWithin.generated @@ -6,7 +6,7 @@ arangosh> db.geo.within(0, "_id" : "geo/5584", "_key" : "5584", - "_rev" : "_YNEZ7Oy--N", + "_rev" : "_YOn099m--J", "loc" : [ 0, 0 @@ -17,7 +17,7 @@ arangosh> db.geo.within(0, "_id" : "geo/5587", "_key" : "5587", - "_rev" : "_YNEZ7O2--_", + "_rev" : "_YOn099q--_", "loc" : [ 0, 10 @@ -28,7 +28,7 @@ arangosh> db.geo.within(0, "_id" : "geo/5581", "_key" : "5581", - "_rev" : "_YNEZ7Oy--L", + "_rev" : "_YOn099m--H", "loc" : [ 0, -10 @@ -39,7 +39,7 @@ arangosh> db.geo.within(0, "_id" : "geo/5695", "_key" : "5695", - "_rev" : "_YNEZ7PG--B", + "_rev" : "_YOn1--C--B", "loc" : [ 10, 0 @@ -50,7 +50,7 @@ arangosh> db.geo.within(0, "_id" : "geo/5473", "_key" : "5473", - "_rev" : "_YNEZ7Oi--F", + "_rev" : "_YOn099O--B", "loc" : [ -10, 0 @@ -61,7 +61,7 @@ arangosh> db.geo.within(0, "_id" : "geo/5692", "_key" : "5692", - "_rev" : "_YNEZ7PG--_", + "_rev" : "_YOn1--C--_", "loc" : [ 10, -10 @@ -72,7 +72,7 @@ arangosh> db.geo.within(0, "_id" : "geo/5698", "_key" : "5698", - "_rev" : "_YNEZ7PG--D", + "_rev" : "_YOn1--C--D", "loc" : [ 10, 10 @@ -83,7 +83,7 @@ arangosh> db.geo.within(0, "_id" : "geo/5470", "_key" : "5470", - "_rev" : "_YNEZ7Oi--D", + "_rev" : "_YOn099O--_", "loc" : [ -10, -10 @@ -94,7 +94,7 @@ arangosh> db.geo.within(0, "_id" : "geo/5476", "_key" : "5476", - "_rev" : "_YNEZ7Oi--H", + "_rev" : "_YOn099O--D", "loc" : [ -10, 10 diff --git a/Documentation/Examples/011_documentsCollectionReplaceByExample.generated b/Documentation/Examples/011_documentsCollectionReplaceByExample.generated index 2e4d7e4e53..e428937ecb 100644 --- a/Documentation/Examples/011_documentsCollectionReplaceByExample.generated +++ b/Documentation/Examples/011_documentsCollectionReplaceByExample.generated @@ -1,8 +1,8 @@ -arangosh> db.example.save({ Hello : "world" }); +arangosh> db.example.insert({ Hello : "world" }); { "_id" : "example/6675", "_key" : "6675", - "_rev" : "_YNEZ7Y---B" + "_rev" : "_YOn1-Cy--B" } 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 0504c83671..6a6515ed07 100644 --- a/Documentation/Examples/012_documentsCollectionUpdateByExample.generated +++ b/Documentation/Examples/012_documentsCollectionUpdateByExample.generated @@ -1,8 +1,8 @@ -arangosh> db.example.save({ Hello : "world", foo : "bar" }); +arangosh> db.example.insert({ Hello : "world", foo : "bar" }); { "_id" : "example/6695", "_key" : "6695", - "_rev" : "_YNEZ7ZG--_" + "_rev" : "_YOn1-D2--_" } arangosh> db.example.updateByExample({ Hello: "world" }, { Hello: "foo", World: "bar" }, false); 1 @@ -11,7 +11,7 @@ arangosh> db.example.byExample({ Hello: "_key" : "6695", "_id" : "example/6695", - "_rev" : "_YNEZ7Ze---", + "_rev" : "_YOn1-D6--_", "Hello" : "foo", "foo" : "bar", "World" : "bar" diff --git a/Documentation/Examples/01_workWithAQL_all.generated b/Documentation/Examples/01_workWithAQL_all.generated index 22f00c2e71..8bca7876e4 100644 --- a/Documentation/Examples/01_workWithAQL_all.generated +++ b/Documentation/Examples/01_workWithAQL_all.generated @@ -4,7 +4,7 @@ arangosh> db.mycollection.save({ _key: "_id" : "mycollection/testKey", "_key" : "testKey", - "_rev" : "_YNEZ7aO--_" + "_rev" : "_YOn1-E6--_" } arangosh> db._query('FOR my IN mycollection RETURN my._key').toArray() [ diff --git a/Documentation/Examples/01_workWithAQL_databaseProfileQuery.generated b/Documentation/Examples/01_workWithAQL_databaseProfileQuery.generated index b54b2b05e0..03265c740c 100644 --- a/Documentation/Examples/01_workWithAQL_databaseProfileQuery.generated +++ b/Documentation/Examples/01_workWithAQL_databaseProfileQuery.generated @@ -6,8 +6,8 @@ Execution plan: Id NodeType Calls Items Runtime [s] Comment 1 SingletonNode 1 1 0.00000 * ROOT 4 CalculationNode 1 1 0.00000 - LET #2 = 1 /* json expression */ /* const assignment */ - 2 CalculationNode 1 1 0.27103 - LET s = SLEEP(0.25) /* simple expression */ - 3 CalculationNode 1 1 0.51221 - LET t = SLEEP(0.5) /* simple expression */ + 2 CalculationNode 1 1 0.27102 - LET s = SLEEP(0.25) /* simple expression */ + 3 CalculationNode 1 1 0.51239 - LET t = SLEEP(0.5) /* simple expression */ 5 ReturnNode 1 1 0.00001 - RETURN #2 Indexes used: @@ -19,17 +19,17 @@ Optimization rules applied: Query Statistics: Writes Exec Writes Ign Scan Full Scan Index Filtered Exec Time [s] - 0 0 0 0 0 0.78354 + 0 0 0 0 0 0.78371 Query Profile: Query Stage Duration [s] initializing 0.00000 - parsing 0.00003 + parsing 0.00002 optimizing ast 0.00000 loading collections 0.00000 instantiating plan 0.00001 - optimizing plan 0.00006 - executing 0.78328 - finalizing 0.00015 + optimizing plan 0.00005 + executing 0.78345 + finalizing 0.00017 diff --git a/Documentation/Examples/01_workWithAQL_profileQuerySimple.generated b/Documentation/Examples/01_workWithAQL_profileQuerySimple.generated index 6400035a8f..2358cadefc 100644 --- a/Documentation/Examples/01_workWithAQL_profileQuerySimple.generated +++ b/Documentation/Examples/01_workWithAQL_profileQuerySimple.generated @@ -11,9 +11,9 @@ Query String: Execution plan: Id NodeType Calls Items Runtime [s] Comment 1 SingletonNode 1 1 0.00000 * ROOT - 2 EnumerateCollectionNode 11 10000 0.00353 - FOR doc IN acollection /* full collection scan */ + 2 EnumerateCollectionNode 11 10000 0.00319 - FOR doc IN acollection /* full collection scan */ 3 CalculationNode 11 10000 0.00291 - LET #1 = (doc.`value` < 10) /* simple expression */ /* collections used: doc : acollection */ - 4 FilterNode 1 10 0.00044 - FILTER #1 + 4 FilterNode 1 10 0.00053 - FILTER #1 5 ReturnNode 1 10 0.00000 - RETURN doc Indexes used: @@ -24,7 +24,7 @@ Optimization rules applied: Query Statistics: Writes Exec Writes Ign Scan Full Scan Index Filtered Exec Time [s] - 0 0 10000 0 9990 0.00711 + 0 0 10000 0 9990 0.00686 Query Profile: Query Stage Duration [s] @@ -34,7 +34,7 @@ Query Profile: loading collections 0.00000 instantiating plan 0.00002 optimizing plan 0.00010 - executing 0.00689 + executing 0.00664 finalizing 0.00005 diff --git a/Documentation/Examples/02_workWithAQL_aqlCollectionQuery.generated b/Documentation/Examples/02_workWithAQL_aqlCollectionQuery.generated index 1e8c9f473f..97e3a1fac8 100644 --- a/Documentation/Examples/02_workWithAQL_aqlCollectionQuery.generated +++ b/Documentation/Examples/02_workWithAQL_aqlCollectionQuery.generated @@ -5,7 +5,7 @@ arangosh> db._query(aql`FOR doc IN "_key" : "testKey", "_id" : "mycollection/testKey", - "_rev" : "_YNEZ7aO--_", + "_rev" : "_YOn1-E6--_", "Hello" : "World" } ] diff --git a/Documentation/Examples/02_workWithAQL_profileQuerySimpleIndex.generated b/Documentation/Examples/02_workWithAQL_profileQuerySimpleIndex.generated index 0a68683a7d..8d1f2f27dc 100644 --- a/Documentation/Examples/02_workWithAQL_profileQuerySimpleIndex.generated +++ b/Documentation/Examples/02_workWithAQL_profileQuerySimpleIndex.generated @@ -26,17 +26,17 @@ Optimization rules applied: Query Statistics: Writes Exec Writes Ign Scan Full Scan Index Filtered Exec Time [s] - 0 0 0 10 0 0.00027 + 0 0 0 10 0 0.00022 Query Profile: Query Stage Duration [s] initializing 0.00000 parsing 0.00003 optimizing ast 0.00000 - loading collections 0.00001 + loading collections 0.00000 instantiating plan 0.00001 - optimizing plan 0.00010 - executing 0.00004 - finalizing 0.00007 + optimizing plan 0.00008 + executing 0.00003 + finalizing 0.00005 diff --git a/Documentation/Examples/03_workWithAQL_getExtra.generated b/Documentation/Examples/03_workWithAQL_getExtra.generated index 77d20082de..ae0ed31ecb 100644 --- a/Documentation/Examples/03_workWithAQL_getExtra.generated +++ b/Documentation/Examples/03_workWithAQL_getExtra.generated @@ -10,7 +10,7 @@ arangosh> db._query(`FOR i IN 1..100 "scannedIndex" : 0, "filtered" : 0, "httpRequests" : 0, - "executionTime" : 0.0005764961242675781, + "executionTime" : 0.00045371055603027344, "peakMemoryUsage" : 50576 }, "warnings" : [ ] diff --git a/Documentation/Examples/03_workWithAQL_profileQuerySubquery.generated b/Documentation/Examples/03_workWithAQL_profileQuerySubquery.generated index 0cbd26c17a..b85dd69b3d 100644 --- a/Documentation/Examples/03_workWithAQL_profileQuerySubquery.generated +++ b/Documentation/Examples/03_workWithAQL_profileQuerySubquery.generated @@ -13,15 +13,15 @@ Query String: Execution plan: Id NodeType Calls Items Runtime [s] Comment 1 SingletonNode 1 1 0.00000 * ROOT - 7 SubqueryNode 1 1 0.01090 - LET list = ... /* const subquery */ + 7 SubqueryNode 1 1 0.01278 - LET list = ... /* const subquery */ 2 SingletonNode 1 1 0.00000 * ROOT - 3 EnumerateCollectionNode 11 10000 0.00382 - FOR doc IN acollection /* full collection scan */ - 4 CalculationNode 11 10000 0.00318 - LET #5 = (doc.`value` > 90) /* simple expression */ /* collections used: doc : acollection */ - 5 FilterNode 10 9909 0.00240 - FILTER #5 - 6 ReturnNode 10 9909 0.00149 - RETURN doc - 8 EnumerateListNode 10 9909 0.00171 - FOR a IN list /* list iteration */ - 9 CalculationNode 10 9909 0.00314 - LET #7 = (a.`value` < 91) /* simple expression */ - 10 FilterNode 1 0 0.00049 - FILTER #7 + 3 EnumerateCollectionNode 11 10000 0.00443 - FOR doc IN acollection /* full collection scan */ + 4 CalculationNode 11 10000 0.00400 - LET #5 = (doc.`value` > 90) /* simple expression */ /* collections used: doc : acollection */ + 5 FilterNode 10 9909 0.00270 - FILTER #5 + 6 ReturnNode 10 9909 0.00164 - RETURN doc + 8 EnumerateListNode 10 9909 0.00109 - FOR a IN list /* list iteration */ + 9 CalculationNode 10 9909 0.00237 - LET #7 = (a.`value` < 91) /* simple expression */ + 10 FilterNode 1 0 0.00042 - FILTER #7 11 ReturnNode 1 0 0.00000 - RETURN a Indexes used: @@ -32,17 +32,17 @@ Optimization rules applied: Query Statistics: Writes Exec Writes Ign Scan Full Scan Index Filtered Exec Time [s] - 0 0 10000 0 10000 0.01656 + 0 0 10000 0 10000 0.01700 Query Profile: Query Stage Duration [s] initializing 0.00000 - parsing 0.00004 + parsing 0.00005 optimizing ast 0.00001 - loading collections 0.00000 - instantiating plan 0.00002 - optimizing plan 0.00008 - executing 0.01626 - finalizing 0.00014 + loading collections 0.00001 + instantiating plan 0.00003 + optimizing plan 0.00009 + executing 0.01668 + finalizing 0.00012 diff --git a/Documentation/Examples/04_workWithAQL_profileQueryAggregation.generated b/Documentation/Examples/04_workWithAQL_profileQueryAggregation.generated index a4f4928e72..e41f09c3f0 100644 --- a/Documentation/Examples/04_workWithAQL_profileQueryAggregation.generated +++ b/Documentation/Examples/04_workWithAQL_profileQueryAggregation.generated @@ -26,10 +26,10 @@ Execution plan: 2 EnumerateCollectionNode 1 20 0.00002 - FOR u IN myusers /* full collection scan */ 3 CalculationNode 1 20 0.00002 - LET #5 = (FLOOR((u.`age` / 10)) * 10) /* simple expression */ /* collections used: u : myusers */ 4 CalculationNode 1 20 0.00001 - LET #7 = u.`age` /* attribute expression */ /* collections used: u : myusers */ - 6 CollectNode 1 7 0.00002 - COLLECT ageGroup = #5 AGGREGATE minAge = MIN(#7), maxAge = MAX(#7), len = LENGTH(u) /* hash */ - 9 SortNode 1 7 0.00003 - SORT ageGroup ASC /* sorting strategy: standard */ - 7 CalculationNode 1 7 0.00001 - LET #11 = { "ageGroup" : ageGroup, "minAge" : minAge, "maxAge" : maxAge, "len" : len } /* simple expression */ - 8 ReturnNode 1 7 0.00000 - RETURN #11 + 6 CollectNode 1 8 0.00002 - COLLECT ageGroup = #5 AGGREGATE minAge = MIN(#7), maxAge = MAX(#7), len = LENGTH(u) /* hash */ + 9 SortNode 1 8 0.00001 - SORT ageGroup ASC /* sorting strategy: standard */ + 7 CalculationNode 1 8 0.00001 - LET #11 = { "ageGroup" : ageGroup, "minAge" : minAge, "maxAge" : maxAge, "len" : len } /* simple expression */ + 8 ReturnNode 1 8 0.00000 - RETURN #11 Indexes used: none @@ -44,7 +44,7 @@ Optimization rules applied: Query Statistics: Writes Exec Writes Ign Scan Full Scan Index Filtered Exec Time [s] - 0 0 20 0 0 0.00053 + 0 0 20 0 0 0.00051 Query Profile: Query Stage Duration [s] @@ -54,7 +54,7 @@ Query Profile: loading collections 0.00000 instantiating plan 0.00003 optimizing plan 0.00021 - executing 0.00012 + executing 0.00010 finalizing 0.00009 diff --git a/Documentation/Examples/06_workWithAQL_statements12.generated b/Documentation/Examples/06_workWithAQL_statements12.generated index 47e985393e..6e32723685 100644 --- a/Documentation/Examples/06_workWithAQL_statements12.generated +++ b/Documentation/Examples/06_workWithAQL_statements12.generated @@ -8,18 +8,18 @@ arangosh> c.getExtra(); "scannedIndex" : 0, "filtered" : 0, "httpRequests" : 0, - "executionTime" : 0.00010156631469726562, + "executionTime" : 0.000095367431640625, "peakMemoryUsage" : 34168 }, "warnings" : [ ], "profile" : { - "initializing" : 9.5367431640625e-7, - "parsing" : 0.000013828277587890625, - "optimizing ast" : 0.0000011920928955078125, + "initializing" : 0.0000011920928955078125, + "parsing" : 0.00001239776611328125, + "optimizing ast" : 0.000001430511474609375, "loading collections" : 0.000001430511474609375, - "instantiating plan" : 0.0000073909759521484375, - "optimizing plan" : 0.000035762786865234375, - "executing" : 0.000026464462280273438, - "finalizing" : 0.000010251998901367188 + "instantiating plan" : 0.000007152557373046875, + "optimizing plan" : 0.00003409385681152344, + "executing" : 0.000021457672119140625, + "finalizing" : 0.000011444091796875 } } diff --git a/Documentation/Examples/06_workWithAQL_statementsExtra.generated b/Documentation/Examples/06_workWithAQL_statementsExtra.generated index fa0f0d7a4a..7d24b2c19f 100644 --- a/Documentation/Examples/06_workWithAQL_statementsExtra.generated +++ b/Documentation/Examples/06_workWithAQL_statementsExtra.generated @@ -15,7 +15,7 @@ arangosh> db._query(` "filtered" : 0, "httpRequests" : 0, "fullCount" : 0, - "executionTime" : 0.0005481243133544922, + "executionTime" : 0.0005605220794677734, "peakMemoryUsage" : 50632 }, "warnings" : [ ] @@ -36,7 +36,7 @@ arangosh> db._query({ "filtered" : 0, "httpRequests" : 0, "fullCount" : 0, - "executionTime" : 0.00048732757568359375, + "executionTime" : 0.0005362033843994141, "peakMemoryUsage" : 50632 }, "warnings" : [ ] diff --git a/Documentation/Examples/EDGCOL_01_SaveEdgeCol.generated b/Documentation/Examples/EDGCOL_01_SaveEdgeCol.generated index 46b4763bbf..d895a68705 100644 --- a/Documentation/Examples/EDGCOL_01_SaveEdgeCol.generated +++ b/Documentation/Examples/EDGCOL_01_SaveEdgeCol.generated @@ -6,19 +6,19 @@ arangosh> v1 = db.vertex.insert({ name : "_id" : "vertex/98293", "_key" : "98293", - "_rev" : "_YNEaD-G--B" + "_rev" : "_YOn1FYu--_" } arangosh> v2 = db.vertex.insert({ name : "vertex 2" }); { "_id" : "vertex/98297", "_key" : "98297", - "_rev" : "_YNEaD-K--_" + "_rev" : "_YOn1FYu--B" } arangosh> e1 = db.relation.insert(v1, v2, { label : "knows" }); { "_id" : "relation/98300", "_key" : "98300", - "_rev" : "_YNEaD-K--B" + "_rev" : "_YOn1FYu--D" } arangosh> db._document(e1); { @@ -26,6 +26,6 @@ arangosh> db._document(e1); "_id" : "relation/98300", "_from" : "vertex/98293", "_to" : "vertex/98297", - "_rev" : "_YNEaD-K--B", + "_rev" : "_YOn1FYu--D", "label" : "knows" } diff --git a/Documentation/Examples/EDGCOL_02_Relation.generated b/Documentation/Examples/EDGCOL_02_Relation.generated index baa645797f..e2ce48e264 100644 --- a/Documentation/Examples/EDGCOL_02_Relation.generated +++ b/Documentation/Examples/EDGCOL_02_Relation.generated @@ -7,20 +7,20 @@ arangosh> myGraph.v1 = db.vertex.insert({ name { "_id" : "vertex/98326", "_key" : "98326", - "_rev" : "_YNEaDAO--_" + "_rev" : "_YOn1Fay--B" } arangosh> myGraph.v2 = db.vertex.insert({ name : "vertex 2" }); { "_id" : "vertex/98330", "_key" : "98330", - "_rev" : "_YNEaDAO--B" + "_rev" : "_YOn1Fay--D" } arangosh> myGraph.e1 = db.relation.insert(myGraph.v1, myGraph.v2, ........> { label : "knows"}); { "_id" : "relation/98333", "_key" : "98333", - "_rev" : "_YNEaDAO--D" + "_rev" : "_YOn1Fa2--_" } arangosh> db._document(myGraph.e1); { @@ -28,7 +28,7 @@ arangosh> db._document(myGraph.e1); "_id" : "relation/98333", "_from" : "vertex/98326", "_to" : "vertex/98330", - "_rev" : "_YNEaDAO--D", + "_rev" : "_YOn1Fa2--_", "label" : "knows" } arangosh> db.relation.edges(myGraph.e1._id); diff --git a/Documentation/Examples/EDGCOL_02_inEdges.generated b/Documentation/Examples/EDGCOL_02_inEdges.generated index 6e19f1d492..25136fe5e2 100644 --- a/Documentation/Examples/EDGCOL_02_inEdges.generated +++ b/Documentation/Examples/EDGCOL_02_inEdges.generated @@ -6,20 +6,20 @@ arangosh> myGraph.v1 = db.vertex.insert({ name { "_id" : "vertex/98360", "_key" : "98360", - "_rev" : "_YNEaDCS--B" + "_rev" : "_YOn1Fc6--_" } arangosh> myGraph.v2 = db.vertex.insert({ name : "vertex 2" }); { "_id" : "vertex/98364", "_key" : "98364", - "_rev" : "_YNEaDCW--_" + "_rev" : "_YOn1Fc6--B" } arangosh> myGraph.e1 = db.relation.insert(myGraph.v1, myGraph.v2, ........> { label : "knows"}); { "_id" : "relation/98367", "_key" : "98367", - "_rev" : "_YNEaDCW--B" + "_rev" : "_YOn1Fc6--D" } arangosh> db._document(myGraph.e1); { @@ -27,7 +27,7 @@ arangosh> db._document(myGraph.e1); "_id" : "relation/98367", "_from" : "vertex/98360", "_to" : "vertex/98364", - "_rev" : "_YNEaDCW--B", + "_rev" : "_YOn1Fc6--D", "label" : "knows" } arangosh> db.relation.inEdges(myGraph.v1._id); @@ -39,7 +39,7 @@ arangosh> db.relation.inEdges(myGraph.v2._id); "_id" : "relation/98367", "_from" : "vertex/98360", "_to" : "vertex/98364", - "_rev" : "_YNEaDCW--B", + "_rev" : "_YOn1Fc6--D", "label" : "knows" } ] diff --git a/Documentation/Examples/EDGCOL_02_outEdges.generated b/Documentation/Examples/EDGCOL_02_outEdges.generated index 329fc44324..930497c6f4 100644 --- a/Documentation/Examples/EDGCOL_02_outEdges.generated +++ b/Documentation/Examples/EDGCOL_02_outEdges.generated @@ -6,20 +6,20 @@ arangosh> myGraph.v1 = db.vertex.insert({ name { "_id" : "vertex/98395", "_key" : "98395", - "_rev" : "_YNEaDEa--_" + "_rev" : "_YOn1Ff---_" } arangosh> myGraph.v2 = db.vertex.insert({ name : "vertex 2" }); { "_id" : "vertex/98399", "_key" : "98399", - "_rev" : "_YNEaDEa--B" + "_rev" : "_YOn1Ff---B" } arangosh> myGraph.e1 = db.relation.insert(myGraph.v1, myGraph.v2, ........> { label : "knows"}); { "_id" : "relation/98402", "_key" : "98402", - "_rev" : "_YNEaDEa--D" + "_rev" : "_YOn1Ff---D" } arangosh> db._document(myGraph.e1); { @@ -27,7 +27,7 @@ arangosh> db._document(myGraph.e1); "_id" : "relation/98402", "_from" : "vertex/98395", "_to" : "vertex/98399", - "_rev" : "_YNEaDEa--D", + "_rev" : "_YOn1Ff---D", "label" : "knows" } arangosh> db.relation.outEdges(myGraph.v1._id); @@ -37,7 +37,7 @@ arangosh> db.relation.outEdges(myGraph.v1._id); "_id" : "relation/98402", "_from" : "vertex/98395", "_to" : "vertex/98399", - "_rev" : "_YNEaDEa--D", + "_rev" : "_YOn1Ff---D", "label" : "knows" } ] diff --git a/Documentation/Examples/GRAPHSP_01_create_graph.generated b/Documentation/Examples/GRAPHSP_01_create_graph.generated index fa46038095..b59b74bc10 100644 --- a/Documentation/Examples/GRAPHSP_01_create_graph.generated +++ b/Documentation/Examples/GRAPHSP_01_create_graph.generated @@ -5,67 +5,67 @@ arangosh> db.circles.toArray(); { "_key" : "I", "_id" : "circles/I", - "_rev" : "_YNEaDGq--F", + "_rev" : "_YOn1FhK--L", "label" : "9" }, { "_key" : "G", "_id" : "circles/G", - "_rev" : "_YNEaDGq--B", + "_rev" : "_YOn1FhK--H", "label" : "7" }, { "_key" : "F", "_id" : "circles/F", - "_rev" : "_YNEaDGq--_", + "_rev" : "_YOn1FhK--F", "label" : "6" }, { "_key" : "A", "_id" : "circles/A", - "_rev" : "_YNEaDGi--_", + "_rev" : "_YOn1FhG--_", "label" : "1" }, { "_key" : "E", "_id" : "circles/E", - "_rev" : "_YNEaDGm--F", + "_rev" : "_YOn1FhK--D", "label" : "5" }, { "_key" : "C", "_id" : "circles/C", - "_rev" : "_YNEaDGm--B", + "_rev" : "_YOn1FhK--_", "label" : "3" }, { "_key" : "D", "_id" : "circles/D", - "_rev" : "_YNEaDGm--D", + "_rev" : "_YOn1FhK--B", "label" : "4" }, { "_key" : "J", "_id" : "circles/J", - "_rev" : "_YNEaDGq--H", + "_rev" : "_YOn1FhO--_", "label" : "10" }, { "_key" : "B", "_id" : "circles/B", - "_rev" : "_YNEaDGm--_", + "_rev" : "_YOn1FhG--B", "label" : "2" }, { "_key" : "H", "_id" : "circles/H", - "_rev" : "_YNEaDGq--D", + "_rev" : "_YOn1FhK--J", "label" : "8" }, { "_key" : "K", "_id" : "circles/K", - "_rev" : "_YNEaDGq--J", + "_rev" : "_YOn1FhO--B", "label" : "11" } ] @@ -76,7 +76,7 @@ arangosh> db.edges.toArray(); "_id" : "edges/98474", "_from" : "circles/A", "_to" : "circles/G", - "_rev" : "_YNEaDGu--H", + "_rev" : "_YOn1FhS--A", "theFalse" : false, "theTruth" : true, "label" : "right_foo" @@ -86,7 +86,7 @@ arangosh> db.edges.toArray(); "_id" : "edges/98483", "_from" : "circles/G", "_to" : "circles/J", - "_rev" : "_YNEaDGy--D", + "_rev" : "_YOn1FhS--G", "theFalse" : false, "theTruth" : true, "label" : "right_zip" @@ -96,7 +96,7 @@ arangosh> db.edges.toArray(); "_id" : "edges/98458", "_from" : "circles/A", "_to" : "circles/B", - "_rev" : "_YNEaDGq--L", + "_rev" : "_YOn1FhO--D", "theFalse" : false, "theTruth" : true, "label" : "left_bar" @@ -106,7 +106,7 @@ arangosh> db.edges.toArray(); "_id" : "edges/98468", "_from" : "circles/B", "_to" : "circles/E", - "_rev" : "_YNEaDGu--D", + "_rev" : "_YOn1FhO--J", "theFalse" : false, "theTruth" : true, "label" : "left_blub" @@ -116,7 +116,7 @@ arangosh> db.edges.toArray(); "_id" : "edges/98477", "_from" : "circles/G", "_to" : "circles/H", - "_rev" : "_YNEaDGy--_", + "_rev" : "_YOn1FhS--C", "theFalse" : false, "theTruth" : true, "label" : "right_blob" @@ -126,7 +126,7 @@ arangosh> db.edges.toArray(); "_id" : "edges/98486", "_from" : "circles/J", "_to" : "circles/K", - "_rev" : "_YNEaDGy--F", + "_rev" : "_YOn1FhS--I", "theFalse" : false, "theTruth" : true, "label" : "right_zup" @@ -136,7 +136,7 @@ arangosh> db.edges.toArray(); "_id" : "edges/98471", "_from" : "circles/E", "_to" : "circles/F", - "_rev" : "_YNEaDGu--F", + "_rev" : "_YOn1FhS---", "theFalse" : false, "theTruth" : true, "label" : "left_schubi" @@ -146,7 +146,7 @@ arangosh> db.edges.toArray(); "_id" : "edges/98462", "_from" : "circles/B", "_to" : "circles/C", - "_rev" : "_YNEaDGu--_", + "_rev" : "_YOn1FhO--F", "theFalse" : false, "theTruth" : true, "label" : "left_blarg" @@ -156,7 +156,7 @@ arangosh> db.edges.toArray(); "_id" : "edges/98465", "_from" : "circles/C", "_to" : "circles/D", - "_rev" : "_YNEaDGu--B", + "_rev" : "_YOn1FhO--H", "theFalse" : false, "theTruth" : true, "label" : "left_blorg" @@ -166,7 +166,7 @@ arangosh> db.edges.toArray(); "_id" : "edges/98480", "_from" : "circles/H", "_to" : "circles/I", - "_rev" : "_YNEaDGy--B", + "_rev" : "_YOn1FhS--E", "theFalse" : false, "theTruth" : true, "label" : "right_blub" diff --git a/Documentation/Examples/GRAPHTRAV_01_create_graph.generated b/Documentation/Examples/GRAPHTRAV_01_create_graph.generated index 3ff272bb74..b6347136e2 100644 --- a/Documentation/Examples/GRAPHTRAV_01_create_graph.generated +++ b/Documentation/Examples/GRAPHTRAV_01_create_graph.generated @@ -5,67 +5,67 @@ arangosh> db.circles.toArray(); { "_key" : "I", "_id" : "circles/I", - "_rev" : "_YNEaDJe--F", + "_rev" : "_YOn1Fju--J", "label" : "9" }, { "_key" : "G", "_id" : "circles/G", - "_rev" : "_YNEaDJe--B", + "_rev" : "_YOn1Fju--F", "label" : "7" }, { "_key" : "F", "_id" : "circles/F", - "_rev" : "_YNEaDJe--_", + "_rev" : "_YOn1Fju--D", "label" : "6" }, { "_key" : "A", "_id" : "circles/A", - "_rev" : "_YNEaDJW--_", + "_rev" : "_YOn1Fjq--_", "label" : "1" }, { "_key" : "E", "_id" : "circles/E", - "_rev" : "_YNEaDJa--F", + "_rev" : "_YOn1Fju--B", "label" : "5" }, { "_key" : "C", "_id" : "circles/C", - "_rev" : "_YNEaDJa--B", + "_rev" : "_YOn1Fjq--D", "label" : "3" }, { "_key" : "D", "_id" : "circles/D", - "_rev" : "_YNEaDJa--D", + "_rev" : "_YOn1Fju--_", "label" : "4" }, { "_key" : "J", "_id" : "circles/J", - "_rev" : "_YNEaDJe--H", + "_rev" : "_YOn1Fjy--_", "label" : "10" }, { "_key" : "B", "_id" : "circles/B", - "_rev" : "_YNEaDJa--_", + "_rev" : "_YOn1Fjq--B", "label" : "2" }, { "_key" : "H", "_id" : "circles/H", - "_rev" : "_YNEaDJe--D", + "_rev" : "_YOn1Fju--H", "label" : "8" }, { "_key" : "K", "_id" : "circles/K", - "_rev" : "_YNEaDJe--J", + "_rev" : "_YOn1Fjy--B", "label" : "11" } ] @@ -76,7 +76,7 @@ arangosh> db.edges.toArray(); "_id" : "edges/98585", "_from" : "circles/G", "_to" : "circles/J", - "_rev" : "_YNEaDJm--_", + "_rev" : "_YOn1Fj2--D", "theFalse" : false, "theTruth" : true, "label" : "right_zip" @@ -86,7 +86,7 @@ arangosh> db.edges.toArray(); "_id" : "edges/98573", "_from" : "circles/E", "_to" : "circles/F", - "_rev" : "_YNEaDJi--F", + "_rev" : "_YOn1Fjy--L", "theFalse" : false, "theTruth" : true, "label" : "left_schubi" @@ -96,7 +96,7 @@ arangosh> db.edges.toArray(); "_id" : "edges/98588", "_from" : "circles/J", "_to" : "circles/K", - "_rev" : "_YNEaDJm--B", + "_rev" : "_YOn1Fj2--F", "theFalse" : false, "theTruth" : true, "label" : "right_zup" @@ -106,7 +106,7 @@ arangosh> db.edges.toArray(); "_id" : "edges/98570", "_from" : "circles/B", "_to" : "circles/E", - "_rev" : "_YNEaDJi--D", + "_rev" : "_YOn1Fjy--J", "theFalse" : false, "theTruth" : true, "label" : "left_blub" @@ -116,7 +116,7 @@ arangosh> db.edges.toArray(); "_id" : "edges/98582", "_from" : "circles/H", "_to" : "circles/I", - "_rev" : "_YNEaDJi--L", + "_rev" : "_YOn1Fj2--B", "theFalse" : false, "theTruth" : true, "label" : "right_blub" @@ -126,7 +126,7 @@ arangosh> db.edges.toArray(); "_id" : "edges/98576", "_from" : "circles/A", "_to" : "circles/G", - "_rev" : "_YNEaDJi--H", + "_rev" : "_YOn1Fjy--N", "theFalse" : false, "theTruth" : true, "label" : "right_foo" @@ -136,7 +136,7 @@ arangosh> db.edges.toArray(); "_id" : "edges/98567", "_from" : "circles/C", "_to" : "circles/D", - "_rev" : "_YNEaDJi--B", + "_rev" : "_YOn1Fjy--H", "theFalse" : false, "theTruth" : true, "label" : "left_blorg" @@ -146,7 +146,7 @@ arangosh> db.edges.toArray(); "_id" : "edges/98579", "_from" : "circles/G", "_to" : "circles/H", - "_rev" : "_YNEaDJi--J", + "_rev" : "_YOn1Fj2--_", "theFalse" : false, "theTruth" : true, "label" : "right_blob" @@ -156,7 +156,7 @@ arangosh> db.edges.toArray(); "_id" : "edges/98564", "_from" : "circles/B", "_to" : "circles/C", - "_rev" : "_YNEaDJi--_", + "_rev" : "_YOn1Fjy--F", "theFalse" : false, "theTruth" : true, "label" : "left_blarg" @@ -166,7 +166,7 @@ arangosh> db.edges.toArray(); "_id" : "edges/98560", "_from" : "circles/A", "_to" : "circles/B", - "_rev" : "_YNEaDJe--L", + "_rev" : "_YOn1Fjy--D", "theFalse" : false, "theTruth" : true, "label" : "left_bar" diff --git a/Documentation/Examples/HttpGharialAddEdge.generated b/Documentation/Examples/HttpGharialAddEdge.generated index 2bfaac4661..361824b139 100644 --- a/Documentation/Examples/HttpGharialAddEdge.generated +++ b/Documentation/Examples/HttpGharialAddEdge.generated @@ -8,7 +8,7 @@ EOF HTTP/1.1 Accepted content-type: application/json; charset=utf-8 -etag: _YNEaEJa--_ +etag: _YOn1Gku--_ x-content-type-options: nosniff { @@ -17,6 +17,6 @@ x-content-type-options: nosniff "edge" : { "_id" : "relation/100926", "_key" : "100926", - "_rev" : "_YNEaEJa--_" + "_rev" : "_YOn1Gku--_" } } diff --git a/Documentation/Examples/HttpGharialAddEdgeCol.generated b/Documentation/Examples/HttpGharialAddEdgeCol.generated index 45fbd20480..b2a53ecf16 100644 --- a/Documentation/Examples/HttpGharialAddEdgeCol.generated +++ b/Documentation/Examples/HttpGharialAddEdgeCol.generated @@ -13,7 +13,7 @@ EOF HTTP/1.1 Accepted content-type: application/json; charset=utf-8 -etag: _YNEaENW--B +etag: _YOn1Goy--B x-content-type-options: nosniff { @@ -48,7 +48,7 @@ x-content-type-options: nosniff } ], "orphanCollections" : [ ], - "_rev" : "_YNEaENW--B", + "_rev" : "_YOn1Goy--B", "_id" : "_graphs/social", "name" : "social" } diff --git a/Documentation/Examples/HttpGharialAddVertex.generated b/Documentation/Examples/HttpGharialAddVertex.generated index 870ca72cbc..f85e4d7603 100644 --- a/Documentation/Examples/HttpGharialAddVertex.generated +++ b/Documentation/Examples/HttpGharialAddVertex.generated @@ -6,7 +6,7 @@ EOF HTTP/1.1 Accepted content-type: application/json; charset=utf-8 -etag: _YNEaERu--J +etag: _YOn1GtO--_ x-content-type-options: nosniff { @@ -15,6 +15,6 @@ x-content-type-options: nosniff "vertex" : { "_id" : "male/101105", "_key" : "101105", - "_rev" : "_YNEaERu--J" + "_rev" : "_YOn1GtO--_" } } diff --git a/Documentation/Examples/HttpGharialAddVertexCol.generated b/Documentation/Examples/HttpGharialAddVertexCol.generated index 52a169f133..2823e1ca84 100644 --- a/Documentation/Examples/HttpGharialAddVertexCol.generated +++ b/Documentation/Examples/HttpGharialAddVertexCol.generated @@ -6,7 +6,7 @@ EOF HTTP/1.1 Accepted content-type: application/json; charset=utf-8 -etag: _YNEaEU6--B +etag: _YOn1Gwm--B x-content-type-options: nosniff { @@ -33,7 +33,7 @@ x-content-type-options: nosniff "orphanCollections" : [ "otherVertices" ], - "_rev" : "_YNEaEU6--B", + "_rev" : "_YOn1Gwm--B", "_id" : "_graphs/social", "name" : "social" } diff --git a/Documentation/Examples/HttpGharialCreate.generated b/Documentation/Examples/HttpGharialCreate.generated index 13319829ff..2b76b4fcf8 100644 --- a/Documentation/Examples/HttpGharialCreate.generated +++ b/Documentation/Examples/HttpGharialCreate.generated @@ -17,7 +17,7 @@ EOF HTTP/1.1 Accepted content-type: application/json; charset=utf-8 -etag: _YNEaEYi--B +etag: _YOn1G0O--B x-content-type-options: nosniff { @@ -40,7 +40,7 @@ x-content-type-options: nosniff } ], "orphanCollections" : [ ], - "_rev" : "_YNEaEYi--B", + "_rev" : "_YOn1G0O--B", "_id" : "_graphs/myGraph", "name" : "myGraph" } diff --git a/Documentation/Examples/HttpGharialCreate2.generated b/Documentation/Examples/HttpGharialCreate2.generated index 8571a95ec3..47711e9c4e 100644 --- a/Documentation/Examples/HttpGharialCreate2.generated +++ b/Documentation/Examples/HttpGharialCreate2.generated @@ -23,7 +23,7 @@ EOF HTTP/1.1 Accepted content-type: application/json; charset=utf-8 -etag: _YNEaEbq--B +etag: _YOn1G3a--_ x-content-type-options: nosniff { @@ -49,7 +49,7 @@ x-content-type-options: nosniff "initial" : "startVertices", "initialCid" : 101271, "smartGraphAttribute" : "region", - "_rev" : "_YNEaEbq--B", + "_rev" : "_YOn1G3a--_", "_id" : "_graphs/myGraph", "name" : "myGraph" } diff --git a/Documentation/Examples/HttpGharialEdgeDefinitionRemove.generated b/Documentation/Examples/HttpGharialEdgeDefinitionRemove.generated index a90e8cf86c..0234d440e7 100644 --- a/Documentation/Examples/HttpGharialEdgeDefinitionRemove.generated +++ b/Documentation/Examples/HttpGharialEdgeDefinitionRemove.generated @@ -2,7 +2,7 @@ HTTP/1.1 Accepted content-type: application/json; charset=utf-8 -etag: _YNEaEqu--D +etag: _YOn1HG---F x-content-type-options: nosniff { @@ -18,7 +18,7 @@ x-content-type-options: nosniff "female", "male" ], - "_rev" : "_YNEaEqu--D", + "_rev" : "_YOn1HG---F", "_id" : "_graphs/social", "name" : "social" } diff --git a/Documentation/Examples/HttpGharialGetEdge.generated b/Documentation/Examples/HttpGharialGetEdge.generated index f7339d48c3..f897ece018 100644 --- a/Documentation/Examples/HttpGharialGetEdge.generated +++ b/Documentation/Examples/HttpGharialGetEdge.generated @@ -1,20 +1,20 @@ -shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/gharial/social/edge/relation/101673 +shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/gharial/social/edge/relation/101670 HTTP/1.1 OK content-type: application/json; charset=utf-8 -etag: _YNEaEuu--D +etag: _YOn1HJG--J x-content-type-options: nosniff { "error" : false, "code" : 200, "edge" : { - "_key" : "101673", - "_id" : "relation/101673", - "_from" : "male/charly", - "_to" : "female/diana", - "_rev" : "_YNEaEuu--D", - "type" : "married", - "vertex" : "charly" + "_key" : "101670", + "_id" : "relation/101670", + "_from" : "female/alice", + "_to" : "male/charly", + "_rev" : "_YOn1HJG--J", + "type" : "friend", + "vertex" : "alice" } } diff --git a/Documentation/Examples/HttpGharialGetGraph.generated b/Documentation/Examples/HttpGharialGetGraph.generated index c84ab20be0..6afc0576b2 100644 --- a/Documentation/Examples/HttpGharialGetGraph.generated +++ b/Documentation/Examples/HttpGharialGetGraph.generated @@ -24,7 +24,7 @@ x-content-type-options: nosniff } ], "orphanCollections" : [ ], - "_rev" : "_YNEaEzW--B", + "_rev" : "_YOn1HMu--B", "_id" : "_graphs/myGraph", "name" : "myGraph" } diff --git a/Documentation/Examples/HttpGharialGetVertex.generated b/Documentation/Examples/HttpGharialGetVertex.generated index 492faa5826..9df47506a1 100644 --- a/Documentation/Examples/HttpGharialGetVertex.generated +++ b/Documentation/Examples/HttpGharialGetVertex.generated @@ -2,7 +2,7 @@ HTTP/1.1 OK content-type: application/json; charset=utf-8 -etag: _YNEaE2i--_ +etag: _YOn1HP6--_ x-content-type-options: nosniff { @@ -11,7 +11,7 @@ x-content-type-options: nosniff "vertex" : { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_YNEaE2i--_", + "_rev" : "_YOn1HP6--_", "name" : "Alice" } } diff --git a/Documentation/Examples/HttpGharialList.generated b/Documentation/Examples/HttpGharialList.generated index b8470eb249..6a392b4281 100644 --- a/Documentation/Examples/HttpGharialList.generated +++ b/Documentation/Examples/HttpGharialList.generated @@ -11,7 +11,7 @@ x-content-type-options: nosniff { "_key" : "routeplanner", "_id" : "_graphs/routeplanner", - "_rev" : "_YNEaE9G--B", + "_rev" : "_YOn1HVm--B", "numberOfShards" : 1, "replicationFactor" : 1, "isSmart" : false, @@ -51,7 +51,7 @@ x-content-type-options: nosniff { "_key" : "social", "_id" : "_graphs/social", - "_rev" : "_YNEaE6C--B", + "_rev" : "_YOn1HT---B", "numberOfShards" : 1, "replicationFactor" : 1, "isSmart" : false, diff --git a/Documentation/Examples/HttpGharialModifyVertex.generated b/Documentation/Examples/HttpGharialModifyVertex.generated index 42943268b2..bd27da73e4 100644 --- a/Documentation/Examples/HttpGharialModifyVertex.generated +++ b/Documentation/Examples/HttpGharialModifyVertex.generated @@ -6,7 +6,7 @@ EOF HTTP/1.1 Accepted content-type: application/json; charset=utf-8 -etag: _YNEaFLO--J +etag: _YOn1Hjy--J x-content-type-options: nosniff { @@ -15,7 +15,7 @@ x-content-type-options: nosniff "vertex" : { "_id" : "female/alice", "_key" : "alice", - "_oldRev" : "_YNEaFLK--_", - "_rev" : "_YNEaFLO--J" + "_oldRev" : "_YOn1Hju--_", + "_rev" : "_YOn1Hjy--J" } } diff --git a/Documentation/Examples/HttpGharialPatchEdge.generated b/Documentation/Examples/HttpGharialPatchEdge.generated index 46b3f03959..5b1119d4e7 100644 --- a/Documentation/Examples/HttpGharialPatchEdge.generated +++ b/Documentation/Examples/HttpGharialPatchEdge.generated @@ -1,4 +1,4 @@ -shell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge/relation/102286 <<EOF +shell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge/relation/102283 <<EOF { "since" : "01.01.2001" } @@ -6,16 +6,16 @@ EOF HTTP/1.1 Accepted content-type: application/json; charset=utf-8 -etag: _YNEaFOa--_ +etag: _YOn1HnK--_ x-content-type-options: nosniff { "error" : false, "code" : 202, "edge" : { - "_id" : "relation/102286", - "_key" : "102286", - "_oldRev" : "_YNEaFOW--F", - "_rev" : "_YNEaFOa--_" + "_id" : "relation/102283", + "_key" : "102283", + "_oldRev" : "_YOn1HnG--D", + "_rev" : "_YOn1HnK--_" } } diff --git a/Documentation/Examples/HttpGharialPutEdge.generated b/Documentation/Examples/HttpGharialPutEdge.generated index d04a238a1f..bc4b3937de 100644 --- a/Documentation/Examples/HttpGharialPutEdge.generated +++ b/Documentation/Examples/HttpGharialPutEdge.generated @@ -1,4 +1,4 @@ -shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge/relation/102353 <<EOF +shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge/relation/102360 <<EOF { "type" : "divorced", "_from" : "female/alice", @@ -8,16 +8,16 @@ EOF HTTP/1.1 Accepted content-type: application/json; charset=utf-8 -etag: _YNEaFRm--_ +etag: _YOn1HqS--_ x-content-type-options: nosniff { "error" : false, "code" : 202, "edge" : { - "_id" : "relation/102353", - "_key" : "102353", - "_oldRev" : "_YNEaFRe--H", - "_rev" : "_YNEaFRm--_" + "_id" : "relation/102360", + "_key" : "102360", + "_oldRev" : "_YOn1HqO--D", + "_rev" : "_YOn1HqS--_" } } diff --git a/Documentation/Examples/HttpGharialRemoveVertexCollection.generated b/Documentation/Examples/HttpGharialRemoveVertexCollection.generated index 653a30ded3..1ee466ecea 100644 --- a/Documentation/Examples/HttpGharialRemoveVertexCollection.generated +++ b/Documentation/Examples/HttpGharialRemoveVertexCollection.generated @@ -2,7 +2,7 @@ HTTP/1.1 Accepted content-type: application/json; charset=utf-8 -etag: _YNEaFVS--_ +etag: _YOn1Htu--_ x-content-type-options: nosniff { @@ -27,7 +27,7 @@ x-content-type-options: nosniff } ], "orphanCollections" : [ ], - "_rev" : "_YNEaFVS--_", + "_rev" : "_YOn1Htu--_", "_id" : "_graphs/social", "name" : "social" } diff --git a/Documentation/Examples/HttpGharialReplaceEdgeCol.generated b/Documentation/Examples/HttpGharialReplaceEdgeCol.generated index aa03cf4394..e28b25eabd 100644 --- a/Documentation/Examples/HttpGharialReplaceEdgeCol.generated +++ b/Documentation/Examples/HttpGharialReplaceEdgeCol.generated @@ -16,7 +16,7 @@ EOF HTTP/1.1 Accepted content-type: application/json; charset=utf-8 -etag: _YNEaFeK--_ +etag: _YOn1H1K--B x-content-type-options: nosniff { @@ -43,7 +43,7 @@ x-content-type-options: nosniff } ], "orphanCollections" : [ ], - "_rev" : "_YNEaFeK--_", + "_rev" : "_YOn1H1K--B", "_id" : "_graphs/social", "name" : "social" } diff --git a/Documentation/Examples/HttpGharialReplaceVertex.generated b/Documentation/Examples/HttpGharialReplaceVertex.generated index 2a971c1bbf..2124dc2054 100644 --- a/Documentation/Examples/HttpGharialReplaceVertex.generated +++ b/Documentation/Examples/HttpGharialReplaceVertex.generated @@ -7,7 +7,7 @@ EOF HTTP/1.1 Accepted content-type: application/json; charset=utf-8 -etag: _YNEaFiS--L +etag: _YOn1H5C--D x-content-type-options: nosniff { @@ -16,7 +16,7 @@ x-content-type-options: nosniff "vertex" : { "_id" : "female/alice", "_key" : "alice", - "_oldRev" : "_YNEaFiO--_", - "_rev" : "_YNEaFiS--L" + "_oldRev" : "_YOn1H5---_", + "_rev" : "_YOn1H5C--D" } } diff --git a/Documentation/Examples/QUERY_02_listQueries.generated b/Documentation/Examples/QUERY_02_listQueries.generated index 16ae32b1d9..535e0c24af 100644 --- a/Documentation/Examples/QUERY_02_listQueries.generated +++ b/Documentation/Examples/QUERY_02_listQueries.generated @@ -8,7 +8,7 @@ arangosh> tasks.register({ { "id" : "mytask-1", "name" : "this is a sample task to spawn a slow aql query", - "created" : 1550241767.0978193, + "created" : 1550658775.0549188, "type" : "timed", "offset" : 0, "command" : "(function (params) { require('@arangodb').db._query('FOR sleepLoooong IN 1..5 LET sleepLoooonger = SLEEP(1000) RETURN sleepLoooong'); } )(params);", @@ -21,8 +21,8 @@ arangosh> queries.current(); "query" : "FOR sleepLoooong IN 1..5 LET sleepLoooonger = SLEEP(1000) RETURN sleepLoooong", "bindVars" : { }, - "started" : "2019-02-15T14:42:47Z", - "runTime" : 1.0292930603027344, + "started" : "2019-02-20T10:32:55Z", + "runTime" : 2.0032975673675537, "state" : "executing", "stream" : false } diff --git a/Documentation/Examples/RestAdminStatistics1.generated b/Documentation/Examples/RestAdminStatistics1.generated index 0494e07d4d..c16d8be77a 100644 --- a/Documentation/Examples/RestAdminStatistics1.generated +++ b/Documentation/Examples/RestAdminStatistics1.generated @@ -5,17 +5,17 @@ content-type: application/json; charset=utf-8 x-content-type-options: nosniff { - "time" : 1550241768.1350324, + "time" : 1550658777.0711348, "enabled" : true, "system" : { - "minorPageFaults" : 80568, - "majorPageFaults" : 187, - "userTime" : 3.46, - "systemTime" : 1.63, + "minorPageFaults" : 82857, + "majorPageFaults" : 3, + "userTime" : 3.56, + "systemTime" : 1.71, "numberOfThreads" : 50, - "residentSize" : 374484992, - "residentSizePercent" : 0.022428219614873516, - "virtualSize" : 2187247616 + "residentSize" : 361426944, + "residentSizePercent" : 0.021646172810734898, + "virtualSize" : 1353252864 }, "client" : { "httpConnections" : 1, @@ -30,12 +30,12 @@ x-content-type-options: nosniff ] }, "totalTime" : { - "sum" : 8.175549745559692, - "count" : 34234, + "sum" : 8.05157732963562, + "count" : 34249, "counts" : [ - 34022, - 210, - 1, + 34044, + 202, + 2, 0, 0, 1, @@ -43,12 +43,12 @@ x-content-type-options: nosniff ] }, "requestTime" : { - "sum" : 4.975844860076904, - "count" : 34234, + "sum" : 4.962236642837524, + "count" : 34249, "counts" : [ - 34102, - 130, - 1, + 34120, + 126, + 2, 0, 0, 1, @@ -69,11 +69,11 @@ x-content-type-options: nosniff ] }, "ioTime" : { - "sum" : 3.199704885482788, - "count" : 34234, + "sum" : 3.0893406867980957, + "count" : 34249, "counts" : [ - 34154, - 80, + 34173, + 76, 0, 0, 0, @@ -82,23 +82,23 @@ x-content-type-options: nosniff ] }, "bytesSent" : { - "sum" : 10100744, - "count" : 34234, + "sum" : 10108900, + "count" : 34249, "counts" : [ - 236, - 33641, - 328, + 240, + 33648, + 332, 28, 1, 0 ] }, "bytesReceived" : { - "sum" : 8040361, - "count" : 34234, + "sum" : 8043129, + "count" : 34249, "counts" : [ - 33549, - 685, + 33568, + 681, 0, 0, 0, @@ -107,20 +107,20 @@ x-content-type-options: nosniff } }, "http" : { - "requestsTotal" : 34234, + "requestsTotal" : 34249, "requestsAsync" : 0, - "requestsGet" : 782, + "requestsGet" : 795, "requestsHead" : 0, "requestsPost" : 33323, "requestsPut" : 31, "requestsPatch" : 2, - "requestsDelete" : 96, + "requestsDelete" : 98, "requestsOptions" : 0, "requestsOther" : 0 }, "server" : { - "uptime" : 13.509510278701782, - "physicalMemory" : 16697044992, + "uptime" : 14.283366203308105, + "physicalMemory" : 16697036800, "v8Context" : { "available" : 2, "busy" : 1, diff --git a/Documentation/Examples/RestBatchMultipartHeader.generated b/Documentation/Examples/RestBatchMultipartHeader.generated index b7444cc023..1020a4f2c1 100644 --- a/Documentation/Examples/RestBatchMultipartHeader.generated +++ b/Documentation/Examples/RestBatchMultipartHeader.generated @@ -39,4 +39,4 @@ content-type: application/json x-arango-errors: 1 x-content-type-options: nosniff -"--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: myId1\r\n\r\nHTTP/1.1 200 OK\r\nServer: \r\nConnection: \r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 66\r\n\r\n{\"server\":\"arango\",\"version\":\"3.5.0-devel\",\"license\":\"enterprise\"}\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: myId2\r\n\r\nHTTP/1.1 404 Not Found\r\nServer: \r\nConnection: \r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 87\r\n\r\n{\"error\":true,\"errorMessage\":\"collection or view not found\",\"code\":404,\"errorNum\":1203}\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: someId\r\n\r\nHTTP/1.1 200 OK\r\nServer: \r\nConnection: \r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 328\r\n\r\n{\"error\":false,\"code\":200,\"waitForSync\":false,\"type\":2,\"status\":3,\"journalSize\":33554432,\"keyOptions\":{\"allowUserKeys\":true,\"type\":\"traditional\",\"lastValue\":0},\"globallyUniqueId\":\"h402518FDD080/102789\",\"statusString\":\"loaded\",\"id\":\"102789\",\"name\":\"products\",\"doCompact\":true,\"isSystem\":false,\"indexBuckets\":8,\"isVolatile\":false}\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: nextId\r\n\r\nHTTP/1.1 200 OK\r\nServer: \r\nLocation: /_api/collection/products/figures\r\nConnection: \r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 835\r\n\r\n{\"error\":false,\"code\":200,\"type\":2,\"status\":3,\"journalSize\":33554432,\"isVolatile\":false,\"name\":\"products\",\"doCompact\":true,\"isSystem\":false,\"count\":0,\"waitForSync\":false,\"figures\":{\"indexes\":{\"count\":1,\"size\":32128},\"documentReferences\":0,\"waitingFor\":\"-\",\"alive\":{\"count\":0,\"size\":0},\"dead\":{\"count\":0,\"size\":0,\"deletion\":0},\"compactionStatus\":{\"message\":\"compaction not yet started\",\"time\":\"2019-02-15T14:42:48Z\",\"count\":0,\"filesCombined\":0,\"bytesRead\":0,\"bytesWritten\":0},\"datafiles\":{\"count\":0,\"fileSize\":0},\"journals\":{\"count\":0,\"fileSize\":0},\"compactors\":{\"count\":0,\"fileSize\":0},\"revisions\":{\"count\":0,\"size\":48192},\"lastTick\":0,\"uncollectedLogfileEntries\":0},\"keyOptions\":{\"allowUserKeys\":true,\"type\":\"traditional\",\"lastValue\":0},\"globallyUniqueId\":\"h402518FDD080/102789\",\"statusString\":\"loaded\",\"id\":\"102789\",\"indexBuckets\":8}\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: otherId\r\n\r\nHTTP/1.1 200 OK\r\nServer: \r\nConnection: \r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 40\r\n\r\n{\"error\":false,\"code\":200,\"id\":\"102789\"}\r\n--SomeBoundaryValue--" +"--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: myId1\r\n\r\nHTTP/1.1 200 OK\r\nServer: \r\nConnection: \r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 66\r\n\r\n{\"server\":\"arango\",\"version\":\"3.5.0-devel\",\"license\":\"enterprise\"}\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: myId2\r\n\r\nHTTP/1.1 404 Not Found\r\nServer: \r\nConnection: \r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 87\r\n\r\n{\"error\":true,\"errorMessage\":\"collection or view not found\",\"code\":404,\"errorNum\":1203}\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: someId\r\n\r\nHTTP/1.1 200 OK\r\nServer: \r\nConnection: \r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 328\r\n\r\n{\"error\":false,\"code\":200,\"waitForSync\":false,\"type\":2,\"status\":3,\"journalSize\":33554432,\"keyOptions\":{\"allowUserKeys\":true,\"type\":\"traditional\",\"lastValue\":0},\"globallyUniqueId\":\"h8B2B671BCFD0/102789\",\"statusString\":\"loaded\",\"id\":\"102789\",\"name\":\"products\",\"doCompact\":true,\"isSystem\":false,\"indexBuckets\":8,\"isVolatile\":false}\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: nextId\r\n\r\nHTTP/1.1 200 OK\r\nServer: \r\nLocation: /_api/collection/products/figures\r\nConnection: \r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 835\r\n\r\n{\"error\":false,\"code\":200,\"type\":2,\"status\":3,\"journalSize\":33554432,\"isVolatile\":false,\"name\":\"products\",\"doCompact\":true,\"isSystem\":false,\"count\":0,\"waitForSync\":false,\"figures\":{\"indexes\":{\"count\":1,\"size\":32128},\"documentReferences\":0,\"waitingFor\":\"-\",\"alive\":{\"count\":0,\"size\":0},\"dead\":{\"count\":0,\"size\":0,\"deletion\":0},\"compactionStatus\":{\"message\":\"compaction not yet started\",\"time\":\"2019-02-20T10:32:57Z\",\"count\":0,\"filesCombined\":0,\"bytesRead\":0,\"bytesWritten\":0},\"datafiles\":{\"count\":0,\"fileSize\":0},\"journals\":{\"count\":0,\"fileSize\":0},\"compactors\":{\"count\":0,\"fileSize\":0},\"revisions\":{\"count\":0,\"size\":48192},\"lastTick\":0,\"uncollectedLogfileEntries\":0},\"keyOptions\":{\"allowUserKeys\":true,\"type\":\"traditional\",\"lastValue\":0},\"globallyUniqueId\":\"h8B2B671BCFD0/102789\",\"statusString\":\"loaded\",\"id\":\"102789\",\"indexBuckets\":8}\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: otherId\r\n\r\nHTTP/1.1 200 OK\r\nServer: \r\nConnection: \r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 40\r\n\r\n{\"error\":false,\"code\":200,\"id\":\"102789\"}\r\n--SomeBoundaryValue--" diff --git a/Documentation/Examples/RestCollectionCreateCollection.generated b/Documentation/Examples/RestCollectionCreateCollection.generated index d1ef16ff0e..3cf648a48b 100644 --- a/Documentation/Examples/RestCollectionCreateCollection.generated +++ b/Documentation/Examples/RestCollectionCreateCollection.generated @@ -20,7 +20,7 @@ x-content-type-options: nosniff "type" : "traditional", "lastValue" : 0 }, - "globallyUniqueId" : "h402518FDD080/102801", + "globallyUniqueId" : "h8B2B671BCFD0/102801", "statusString" : "loaded", "id" : "102801", "name" : "testCollectionBasics", @@ -52,7 +52,7 @@ x-content-type-options: nosniff "type" : "traditional", "lastValue" : 0 }, - "globallyUniqueId" : "h402518FDD080/102807", + "globallyUniqueId" : "h8B2B671BCFD0/102807", "statusString" : "loaded", "id" : "102807", "name" : "testCollectionEdges", diff --git a/Documentation/Examples/RestCollectionCreateKeyopt.generated b/Documentation/Examples/RestCollectionCreateKeyopt.generated index bc4f5b809d..49705d5b91 100644 --- a/Documentation/Examples/RestCollectionCreateKeyopt.generated +++ b/Documentation/Examples/RestCollectionCreateKeyopt.generated @@ -27,7 +27,7 @@ x-content-type-options: nosniff "increment" : 5, "lastValue" : 0 }, - "globallyUniqueId" : "h402518FDD080/102822", + "globallyUniqueId" : "h8B2B671BCFD0/102822", "statusString" : "loaded", "id" : "102822", "name" : "testCollectionUsers", diff --git a/Documentation/Examples/RestCollectionGetAllCollections.generated b/Documentation/Examples/RestCollectionGetAllCollections.generated index fdc22eab84..b07bcb4508 100644 --- a/Documentation/Examples/RestCollectionGetAllCollections.generated +++ b/Documentation/Examples/RestCollectionGetAllCollections.generated @@ -70,7 +70,7 @@ x-content-type-options: nosniff "status" : 3, "type" : 2, "isSystem" : false, - "globallyUniqueId" : "h402518FDD080/87" + "globallyUniqueId" : "h8B2B671BCFD0/87" }, { "id" : "13", @@ -118,7 +118,7 @@ x-content-type-options: nosniff "status" : 3, "type" : 2, "isSystem" : false, - "globallyUniqueId" : "h402518FDD080/96" + "globallyUniqueId" : "h8B2B671BCFD0/96" } ] } diff --git a/Documentation/Examples/RestCollectionGetCollectionChecksum.generated b/Documentation/Examples/RestCollectionGetCollectionChecksum.generated index 64d349262e..9dfe715743 100644 --- a/Documentation/Examples/RestCollectionGetCollectionChecksum.generated +++ b/Documentation/Examples/RestCollectionGetCollectionChecksum.generated @@ -8,11 +8,11 @@ x-content-type-options: nosniff { "error" : false, "code" : 200, - "globallyUniqueId" : "h402518FDD080/102861", + "globallyUniqueId" : "h8B2B671BCFD0/102861", "isSystem" : false, "id" : "102861", "name" : "products", - "revision" : "_YNEaG2G--B", + "revision" : "_YOn1KHS--_", "checksum" : "2089246606277080887", "status" : 3, "type" : 2 diff --git a/Documentation/Examples/RestCollectionGetCollectionChecksumNoRev.generated b/Documentation/Examples/RestCollectionGetCollectionChecksumNoRev.generated index 54aa0ebc39..4660fc693c 100644 --- a/Documentation/Examples/RestCollectionGetCollectionChecksumNoRev.generated +++ b/Documentation/Examples/RestCollectionGetCollectionChecksumNoRev.generated @@ -8,11 +8,11 @@ x-content-type-options: nosniff { "error" : false, "code" : 200, - "globallyUniqueId" : "h402518FDD080/102877", + "globallyUniqueId" : "h8B2B671BCFD0/102877", "isSystem" : false, "id" : "102877", "name" : "products", - "revision" : "_YNEaG3G--B", + "revision" : "_YOn1KJC--B", "checksum" : "6947804677053586772", "status" : 3, "type" : 2 diff --git a/Documentation/Examples/RestCollectionGetCollectionCount.generated b/Documentation/Examples/RestCollectionGetCollectionCount.generated index 5f2eff8885..89ed098ad5 100644 --- a/Documentation/Examples/RestCollectionGetCollectionCount.generated +++ b/Documentation/Examples/RestCollectionGetCollectionCount.generated @@ -22,7 +22,7 @@ x-content-type-options: nosniff "type" : "traditional", "lastValue" : 103198 }, - "globallyUniqueId" : "h402518FDD080/102893", + "globallyUniqueId" : "h8B2B671BCFD0/102893", "statusString" : "loaded", "id" : "102893", "indexBuckets" : 8 diff --git a/Documentation/Examples/RestCollectionGetCollectionFigures.generated b/Documentation/Examples/RestCollectionGetCollectionFigures.generated index 68bfff3b73..130be64501 100644 --- a/Documentation/Examples/RestCollectionGetCollectionFigures.generated +++ b/Documentation/Examples/RestCollectionGetCollectionFigures.generated @@ -35,7 +35,7 @@ x-content-type-options: nosniff }, "compactionStatus" : { "message" : "skipped compaction because collection has no datafiles", - "time" : "2019-02-15T14:42:48Z", + "time" : "2019-02-20T10:32:57Z", "count" : 0, "filesCombined" : 0, "bytesRead" : 0, @@ -65,7 +65,7 @@ x-content-type-options: nosniff "type" : "traditional", "lastValue" : 103213 }, - "globallyUniqueId" : "h402518FDD080/103206", + "globallyUniqueId" : "h8B2B671BCFD0/103206", "statusString" : "loaded", "id" : "103206", "indexBuckets" : 8 diff --git a/Documentation/Examples/RestCollectionGetCollectionIdentifier.generated b/Documentation/Examples/RestCollectionGetCollectionIdentifier.generated index 8182e63d48..361b9c811e 100644 --- a/Documentation/Examples/RestCollectionGetCollectionIdentifier.generated +++ b/Documentation/Examples/RestCollectionGetCollectionIdentifier.generated @@ -17,7 +17,7 @@ x-content-type-options: nosniff "type" : "traditional", "lastValue" : 0 }, - "globallyUniqueId" : "h402518FDD080/103234", + "globallyUniqueId" : "h8B2B671BCFD0/103234", "statusString" : "loaded", "id" : "103234", "name" : "products", diff --git a/Documentation/Examples/RestCollectionGetCollectionName.generated b/Documentation/Examples/RestCollectionGetCollectionName.generated index 9ad188904d..959fe80bab 100644 --- a/Documentation/Examples/RestCollectionGetCollectionName.generated +++ b/Documentation/Examples/RestCollectionGetCollectionName.generated @@ -17,7 +17,7 @@ x-content-type-options: nosniff "type" : "traditional", "lastValue" : 0 }, - "globallyUniqueId" : "h402518FDD080/103246", + "globallyUniqueId" : "h8B2B671BCFD0/103246", "statusString" : "loaded", "id" : "103246", "name" : "products", diff --git a/Documentation/Examples/RestCollectionGetCollectionRevision.generated b/Documentation/Examples/RestCollectionGetCollectionRevision.generated index bc8e08cfbf..1f81baa025 100644 --- a/Documentation/Examples/RestCollectionGetCollectionRevision.generated +++ b/Documentation/Examples/RestCollectionGetCollectionRevision.generated @@ -18,7 +18,7 @@ x-content-type-options: nosniff "type" : "traditional", "lastValue" : 0 }, - "globallyUniqueId" : "h402518FDD080/103258", + "globallyUniqueId" : "h8B2B671BCFD0/103258", "statusString" : "loaded", "id" : "103258", "revision" : "0", diff --git a/Documentation/Examples/RestCollectionIdentifierLoad.generated b/Documentation/Examples/RestCollectionIdentifierLoad.generated index 4823dfed7d..ca00293633 100644 --- a/Documentation/Examples/RestCollectionIdentifierLoad.generated +++ b/Documentation/Examples/RestCollectionIdentifierLoad.generated @@ -9,7 +9,7 @@ x-content-type-options: nosniff "error" : false, "code" : 200, "type" : 2, - "globallyUniqueId" : "h402518FDD080/103270", + "globallyUniqueId" : "h8B2B671BCFD0/103270", "id" : "103270", "count" : 0, "isSystem" : false, diff --git a/Documentation/Examples/RestCollectionIdentifierPropertiesSync.generated b/Documentation/Examples/RestCollectionIdentifierPropertiesSync.generated index 3ae831d5c1..64604a1021 100644 --- a/Documentation/Examples/RestCollectionIdentifierPropertiesSync.generated +++ b/Documentation/Examples/RestCollectionIdentifierPropertiesSync.generated @@ -21,7 +21,7 @@ x-content-type-options: nosniff "type" : "traditional", "lastValue" : 0 }, - "globallyUniqueId" : "h402518FDD080/103295", + "globallyUniqueId" : "h8B2B671BCFD0/103295", "statusString" : "loaded", "id" : "103295", "name" : "products", diff --git a/Documentation/Examples/RestCollectionIdentifierRename.generated b/Documentation/Examples/RestCollectionIdentifierRename.generated index bb4fbb7945..b5f41a09aa 100644 --- a/Documentation/Examples/RestCollectionIdentifierRename.generated +++ b/Documentation/Examples/RestCollectionIdentifierRename.generated @@ -16,6 +16,6 @@ x-content-type-options: nosniff "name" : "newname", "type" : 2, "isSystem" : false, - "globallyUniqueId" : "h402518FDD080/103309", + "globallyUniqueId" : "h8B2B671BCFD0/103309", "id" : "103309" } diff --git a/Documentation/Examples/RestCollectionIdentifierTruncate.generated b/Documentation/Examples/RestCollectionIdentifierTruncate.generated index acc2479b32..3620d4214b 100644 --- a/Documentation/Examples/RestCollectionIdentifierTruncate.generated +++ b/Documentation/Examples/RestCollectionIdentifierTruncate.generated @@ -12,6 +12,6 @@ x-content-type-options: nosniff "name" : "products", "type" : 2, "isSystem" : false, - "globallyUniqueId" : "h402518FDD080/103319", + "globallyUniqueId" : "h8B2B671BCFD0/103319", "id" : "103319" } diff --git a/Documentation/Examples/RestCollectionIdentifierUnload.generated b/Documentation/Examples/RestCollectionIdentifierUnload.generated index 67a62563bb..406d837705 100644 --- a/Documentation/Examples/RestCollectionIdentifierUnload.generated +++ b/Documentation/Examples/RestCollectionIdentifierUnload.generated @@ -12,6 +12,6 @@ x-content-type-options: nosniff "name" : "products", "type" : 2, "isSystem" : false, - "globallyUniqueId" : "h402518FDD080/103332", + "globallyUniqueId" : "h8B2B671BCFD0/103332", "id" : "103332" } diff --git a/Documentation/Examples/RestCursorCreateCursorForLimitReturn.generated b/Documentation/Examples/RestCursorCreateCursorForLimitReturn.generated index 11a79a3bc0..6c91e6899e 100644 --- a/Documentation/Examples/RestCursorCreateCursorForLimitReturn.generated +++ b/Documentation/Examples/RestCursorCreateCursorForLimitReturn.generated @@ -13,20 +13,20 @@ x-content-type-options: nosniff { "result" : [ { - "_key" : "103402", - "_id" : "products/103402", - "_rev" : "_YNEaJaK--_", - "hello5" : "world1" + "_key" : "103394", + "_id" : "products/103394", + "_rev" : "_YOn1M2q--D", + "hello2" : "world1" }, { - "_key" : "103389", - "_id" : "products/103389", - "_rev" : "_YNEaJaG--_", - "hello1" : "world1" + "_key" : "103403", + "_id" : "products/103403", + "_rev" : "_YOn1M2u--D", + "hello5" : "world1" } ], "hasMore" : true, - "id" : "103405", + "id" : "103406", "count" : 5, "extra" : { "stats" : { @@ -36,7 +36,7 @@ x-content-type-options: nosniff "scannedIndex" : 0, "filtered" : 0, "httpRequests" : 0, - "executionTime" : 0.0001316070556640625, + "executionTime" : 0.00016999244689941406, "peakMemoryUsage" : 18120 }, "warnings" : [ ] diff --git a/Documentation/Examples/RestCursorCreateCursorForLimitReturnSingle.generated b/Documentation/Examples/RestCursorCreateCursorForLimitReturnSingle.generated index ca6148586f..81a5a3421b 100644 --- a/Documentation/Examples/RestCursorCreateCursorForLimitReturnSingle.generated +++ b/Documentation/Examples/RestCursorCreateCursorForLimitReturnSingle.generated @@ -13,15 +13,15 @@ x-content-type-options: nosniff { "result" : [ { - "_key" : "103418", - "_id" : "products/103418", - "_rev" : "_YNEaJbG--_", + "_key" : "103419", + "_id" : "products/103419", + "_rev" : "_YOn1M3u--_", "hello1" : "world1" }, { - "_key" : "103422", - "_id" : "products/103422", - "_rev" : "_YNEaJbG--B", + "_key" : "103423", + "_id" : "products/103423", + "_rev" : "_YOn1M3u--B", "hello2" : "world1" } ], @@ -36,7 +36,7 @@ x-content-type-options: nosniff "scannedIndex" : 0, "filtered" : 0, "httpRequests" : 0, - "executionTime" : 0.00015401840209960938, + "executionTime" : 0.0001518726348876953, "peakMemoryUsage" : 18072 }, "warnings" : [ ] diff --git a/Documentation/Examples/RestCursorCreateCursorOption.generated b/Documentation/Examples/RestCursorCreateCursorOption.generated index bf0c2e0bd5..a39f6d3ab0 100644 --- a/Documentation/Examples/RestCursorCreateCursorOption.generated +++ b/Documentation/Examples/RestCursorCreateCursorOption.generated @@ -37,7 +37,7 @@ x-content-type-options: nosniff "filtered" : 500, "httpRequests" : 0, "fullCount" : 500, - "executionTime" : 0.0008275508880615234, + "executionTime" : 0.0007300376892089844, "peakMemoryUsage" : 147416 }, "warnings" : [ ] diff --git a/Documentation/Examples/RestCursorDelete.generated b/Documentation/Examples/RestCursorDelete.generated index 85154fef16..eec3a60f2c 100644 --- a/Documentation/Examples/RestCursorDelete.generated +++ b/Documentation/Examples/RestCursorDelete.generated @@ -13,20 +13,20 @@ x-content-type-options: nosniff { "result" : [ { - "_key" : "103442", - "_id" : "products/103442", - "_rev" : "_YNEaJce--_", - "hello1" : "world1" + "_key" : "103456", + "_id" : "products/103456", + "_rev" : "_YOn1M5---H", + "hello5" : "world1" }, { - "_key" : "103455", - "_id" : "products/103455", - "_rev" : "_YNEaJci--_", - "hello5" : "world1" + "_key" : "103443", + "_id" : "products/103443", + "_rev" : "_YOn1M5---_", + "hello1" : "world1" } ], "hasMore" : true, - "id" : "103458", + "id" : "103459", "count" : 5, "extra" : { "stats" : { @@ -36,7 +36,7 @@ x-content-type-options: nosniff "scannedIndex" : 0, "filtered" : 0, "httpRequests" : 0, - "executionTime" : 0.00014257431030273438, + "executionTime" : 0.00012540817260742188, "peakMemoryUsage" : 18120 }, "warnings" : [ ] @@ -45,5 +45,5 @@ x-content-type-options: nosniff "error" : false, "code" : 201 } -shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/cursor/103458 +shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/cursor/103459 diff --git a/Documentation/Examples/RestCursorDeleteIgnore.generated b/Documentation/Examples/RestCursorDeleteIgnore.generated index 6c2b026ea7..a18903417e 100644 --- a/Documentation/Examples/RestCursorDeleteIgnore.generated +++ b/Documentation/Examples/RestCursorDeleteIgnore.generated @@ -20,7 +20,7 @@ x-content-type-options: nosniff "scannedIndex" : 0, "filtered" : 0, "httpRequests" : 0, - "executionTime" : 0.0001366138458251953, + "executionTime" : 0.00013828277587890625, "peakMemoryUsage" : 1944 }, "warnings" : [ ] diff --git a/Documentation/Examples/RestCursorDeleteQuery.generated b/Documentation/Examples/RestCursorDeleteQuery.generated index 579b30652f..c94be30bb2 100644 --- a/Documentation/Examples/RestCursorDeleteQuery.generated +++ b/Documentation/Examples/RestCursorDeleteQuery.generated @@ -20,7 +20,7 @@ x-content-type-options: nosniff "scannedIndex" : 0, "filtered" : 0, "httpRequests" : 0, - "executionTime" : 0.00016760826110839844, + "executionTime" : 0.0001308917999267578, "peakMemoryUsage" : 18040 }, "warnings" : [ ] diff --git a/Documentation/Examples/RestCursorForLimitReturnCont.generated b/Documentation/Examples/RestCursorForLimitReturnCont.generated index 89726e59c1..ab083c93b7 100644 --- a/Documentation/Examples/RestCursorForLimitReturnCont.generated +++ b/Documentation/Examples/RestCursorForLimitReturnCont.generated @@ -6,7 +6,7 @@ } EOF -shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/cursor/103541 +shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/cursor/103542 HTTP/1.1 OK content-type: application/json; charset=utf-8 @@ -15,20 +15,20 @@ x-content-type-options: nosniff { "result" : [ { - "_key" : "103532", - "_id" : "products/103532", - "_rev" : "_YNEaJgq--B", - "hello3" : "world1" + "_key" : "103539", + "_id" : "products/103539", + "_rev" : "_YOn1M9G--B", + "hello5" : "world1" }, { - "_key" : "103535", - "_id" : "products/103535", - "_rev" : "_YNEaJgq--D", - "hello4" : "world1" + "_key" : "103526", + "_id" : "products/103526", + "_rev" : "_YOn1M9C--B", + "hello1" : "world1" } ], "hasMore" : true, - "id" : "103541", + "id" : "103542", "count" : 5, "extra" : { "stats" : { @@ -38,7 +38,7 @@ x-content-type-options: nosniff "scannedIndex" : 0, "filtered" : 0, "httpRequests" : 0, - "executionTime" : 0.00013709068298339844, + "executionTime" : 0.00013566017150878906, "peakMemoryUsage" : 18120 }, "warnings" : [ ] diff --git a/Documentation/Examples/RestCursorOptimizerRules.generated b/Documentation/Examples/RestCursorOptimizerRules.generated index 319ea1e2d1..da71bb3884 100644 --- a/Documentation/Examples/RestCursorOptimizerRules.generated +++ b/Documentation/Examples/RestCursorOptimizerRules.generated @@ -42,7 +42,7 @@ x-content-type-options: nosniff "scannedIndex" : 0, "filtered" : 0, "httpRequests" : 0, - "executionTime" : 0.00018334388732910156, + "executionTime" : 0.0001652240753173828, "peakMemoryUsage" : 82856 }, "warnings" : [ ] diff --git a/Documentation/Examples/RestCursorProfileQuery.generated b/Documentation/Examples/RestCursorProfileQuery.generated index 4bad9a8940..a816c3fb51 100644 --- a/Documentation/Examples/RestCursorProfileQuery.generated +++ b/Documentation/Examples/RestCursorProfileQuery.generated @@ -166,51 +166,51 @@ x-content-type-options: nosniff "scannedIndex" : 0, "filtered" : 0, "httpRequests" : 0, - "executionTime" : 0.783747673034668, + "executionTime" : 0.7833671569824219, "peakMemoryUsage" : 2312, "nodes" : [ { "id" : 1, "calls" : 1, "items" : 1, - "runtime" : 0.0000021457672119140625 + "runtime" : 0.000001430511474609375 }, { "id" : 2, "calls" : 1, "items" : 1, - "runtime" : 0.2712290287017822 + "runtime" : 0.2710738182067871 }, { "id" : 3, "calls" : 1, "items" : 1, - "runtime" : 0.7835254669189453 + "runtime" : 0.7831518650054932 }, { "id" : 4, "calls" : 1, "items" : 1, - "runtime" : 0.000005245208740234375 + "runtime" : 0.0000030994415283203125 }, { "id" : 5, "calls" : 1, "items" : 1, - "runtime" : 0.7835321426391602 + "runtime" : 0.7831592559814453 } ] }, "warnings" : [ ], "profile" : { - "initializing" : 0.000001430511474609375, - "parsing" : 0.000020265579223632812, - "optimizing ast" : 0.0000030994415283203125, - "loading collections" : 0.0000016689300537109375, - "instantiating plan" : 0.000008821487426757812, - "optimizing plan" : 0.00005316734313964844, - "executing" : 0.7835474014282227, - "finalizing" : 0.00010704994201660156 + "initializing" : 7.152557373046875e-7, + "parsing" : 0.0000171661376953125, + "optimizing ast" : 0.0000019073486328125, + "loading collections" : 0.000001430511474609375, + "instantiating plan" : 0.0000069141387939453125, + "optimizing plan" : 0.00004315376281738281, + "executing" : 0.7831752300262451, + "finalizing" : 0.0001163482666015625 } }, "error" : false, diff --git a/Documentation/Examples/RestDatabaseGetInfo.generated b/Documentation/Examples/RestDatabaseGetInfo.generated index 1d5bf90bfa..21f4023ab6 100644 --- a/Documentation/Examples/RestDatabaseGetInfo.generated +++ b/Documentation/Examples/RestDatabaseGetInfo.generated @@ -10,7 +10,7 @@ x-content-type-options: nosniff "result" : { "name" : "_system", "id" : "1", - "path" : "/tmp/arangosh_q2Dy3I/tmp-13879-1274251971/data/databases/database-1", + "path" : "/tmp/arangosh_uprJb4/tmp-27793-56941049/data/databases/database-1", "isSystem" : true } } diff --git a/Documentation/Examples/RestDocumentHandlerDeleteDocument.generated b/Documentation/Examples/RestDocumentHandlerDeleteDocument.generated index f80fa7c971..0408deba88 100644 --- a/Documentation/Examples/RestDocumentHandlerDeleteDocument.generated +++ b/Documentation/Examples/RestDocumentHandlerDeleteDocument.generated @@ -1,13 +1,13 @@ -shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103675 +shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103685 HTTP/1.1 OK content-type: application/json; charset=utf-8 -etag: "_YNEaKv6--_" -location: /_db/_system/_api/document/products/103675 +etag: "_YOn1O4q--_" +location: /_db/_system/_api/document/products/103685 x-content-type-options: nosniff { - "_id" : "products/103675", - "_key" : "103675", - "_rev" : "_YNEaKv6--_" + "_id" : "products/103685", + "_key" : "103685", + "_rev" : "_YOn1O4q--_" } diff --git a/Documentation/Examples/RestDocumentHandlerDeleteDocumentIfMatchOther.generated b/Documentation/Examples/RestDocumentHandlerDeleteDocumentIfMatchOther.generated index dd10d1e49d..9fba0c7bbf 100644 --- a/Documentation/Examples/RestDocumentHandlerDeleteDocumentIfMatchOther.generated +++ b/Documentation/Examples/RestDocumentHandlerDeleteDocumentIfMatchOther.generated @@ -1,8 +1,8 @@ -shell> curl -X DELETE --header 'If-Match: "_YNEaKxK--D"' --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103692 +shell> curl -X DELETE --header 'If-Match: "_YOn1O52--D"' --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103702 HTTP/1.1 Precondition Failed content-type: application/json; charset=utf-8 -etag: "_YNEaKxK--B" +etag: "_YOn1O52--B" x-content-type-options: nosniff { @@ -10,7 +10,7 @@ x-content-type-options: nosniff "code" : 412, "errorNum" : 1200, "errorMessage" : "precondition failed", - "_id" : "products/103692", - "_key" : "103692", - "_rev" : "_YNEaKxK--B" + "_id" : "products/103702", + "_key" : "103702", + "_rev" : "_YOn1O52--B" } diff --git a/Documentation/Examples/RestDocumentHandlerDeleteDocumentIfMatchOtherMulti.generated b/Documentation/Examples/RestDocumentHandlerDeleteDocumentIfMatchOtherMulti.generated index 300f5dbf25..cf99b54d58 100644 --- a/Documentation/Examples/RestDocumentHandlerDeleteDocumentIfMatchOtherMulti.generated +++ b/Documentation/Examples/RestDocumentHandlerDeleteDocumentIfMatchOtherMulti.generated @@ -1,8 +1,8 @@ -shell> curl -X DELETE --header 'If-Match: "_YNEaKyO--_"' --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103711 +shell> curl -X DELETE --header 'If-Match: "_YOn1O66--B"' --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103721 HTTP/1.1 Precondition Failed content-type: application/json; charset=utf-8 -etag: "_YNEaKyK--B" +etag: "_YOn1O66--_" x-content-type-options: nosniff { @@ -10,7 +10,7 @@ x-content-type-options: nosniff "code" : 412, "errorNum" : 1200, "errorMessage" : "precondition failed", - "_id" : "products/103711", - "_key" : "103711", - "_rev" : "_YNEaKyK--B" + "_id" : "products/103721", + "_key" : "103721", + "_rev" : "_YOn1O66--_" } diff --git a/Documentation/Examples/RestDocumentHandlerDeleteDocumentMulti.generated b/Documentation/Examples/RestDocumentHandlerDeleteDocumentMulti.generated index 1a715b4e5e..52e257ed9a 100644 --- a/Documentation/Examples/RestDocumentHandlerDeleteDocumentMulti.generated +++ b/Documentation/Examples/RestDocumentHandlerDeleteDocumentMulti.generated @@ -1,13 +1,13 @@ -shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103730 +shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103740 HTTP/1.1 OK content-type: application/json; charset=utf-8 -etag: "_YNEaKzO--_" -location: /_db/_system/_api/document/products/103730 +etag: "_YOn1O76--B" +location: /_db/_system/_api/document/products/103740 x-content-type-options: nosniff { - "_id" : "products/103730", - "_key" : "103730", - "_rev" : "_YNEaKzO--_" + "_id" : "products/103740", + "_key" : "103740", + "_rev" : "_YOn1O76--B" } diff --git a/Documentation/Examples/RestDocumentHandlerDeleteDocumentUnknownHandle.generated b/Documentation/Examples/RestDocumentHandlerDeleteDocumentUnknownHandle.generated index f6966be2bf..799aadcabb 100644 --- a/Documentation/Examples/RestDocumentHandlerDeleteDocumentUnknownHandle.generated +++ b/Documentation/Examples/RestDocumentHandlerDeleteDocumentUnknownHandle.generated @@ -1,4 +1,4 @@ -shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103747 +shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103757 HTTP/1.1 Not Found content-type: application/json; charset=utf-8 diff --git a/Documentation/Examples/RestDocumentHandlerDeleteDocumentUnknownHandleMulti.generated b/Documentation/Examples/RestDocumentHandlerDeleteDocumentUnknownHandleMulti.generated index a18ba0b9a4..405b92a95a 100644 --- a/Documentation/Examples/RestDocumentHandlerDeleteDocumentUnknownHandleMulti.generated +++ b/Documentation/Examples/RestDocumentHandlerDeleteDocumentUnknownHandleMulti.generated @@ -1,4 +1,4 @@ -shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103765 +shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103775 HTTP/1.1 Not Found content-type: application/json; charset=utf-8 diff --git a/Documentation/Examples/RestDocumentHandlerPatchDocument.generated b/Documentation/Examples/RestDocumentHandlerPatchDocument.generated index ab1d8a5f82..f56bb78acb 100644 --- a/Documentation/Examples/RestDocumentHandlerPatchDocument.generated +++ b/Documentation/Examples/RestDocumentHandlerPatchDocument.generated @@ -1,4 +1,4 @@ -shell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/103783 <<EOF +shell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/103793 <<EOF { "hello" : "world" } @@ -6,17 +6,17 @@ EOF HTTP/1.1 Accepted content-type: application/json; charset=utf-8 -etag: "_YNEaK4---_" -location: /_db/_system/_api/document/products/103783 +etag: "_YOn1PAq--_" +location: /_db/_system/_api/document/products/103793 x-content-type-options: nosniff { - "_id" : "products/103783", - "_key" : "103783", - "_rev" : "_YNEaK4---_", - "_oldRev" : "_YNEaK36--B" + "_id" : "products/103793", + "_key" : "103793", + "_rev" : "_YOn1PAq--_", + "_oldRev" : "_YOn1PAm--B" } -shell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/103783 <<EOF +shell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/103793 <<EOF { "numbers" : { "one" : 1, @@ -29,27 +29,27 @@ EOF HTTP/1.1 Accepted content-type: application/json; charset=utf-8 -etag: "_YNEaK4C--_" -location: /_db/_system/_api/document/products/103783 +etag: "_YOn1PAu--_" +location: /_db/_system/_api/document/products/103793 x-content-type-options: nosniff { - "_id" : "products/103783", - "_key" : "103783", - "_rev" : "_YNEaK4C--_", - "_oldRev" : "_YNEaK4---_" + "_id" : "products/103793", + "_key" : "103793", + "_rev" : "_YOn1PAu--_", + "_oldRev" : "_YOn1PAq--_" } -shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103783 +shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103793 HTTP/1.1 OK content-type: application/json; charset=utf-8 -etag: "_YNEaK4C--_" +etag: "_YOn1PAu--_" x-content-type-options: nosniff { - "_key" : "103783", - "_id" : "products/103783", - "_rev" : "_YNEaK4C--_", + "_key" : "103793", + "_id" : "products/103793", + "_rev" : "_YOn1PAu--_", "one" : "world", "hello" : "world", "numbers" : { @@ -59,7 +59,7 @@ x-content-type-options: nosniff "empty" : null } } -shell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/103783?keepNull=false <<EOF +shell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/103793?keepNull=false <<EOF { "hello" : null, "numbers" : { @@ -70,27 +70,27 @@ EOF HTTP/1.1 Accepted content-type: application/json; charset=utf-8 -etag: "_YNEaK4K--_" -location: /_db/_system/_api/document/products/103783 +etag: "_YOn1PA2--_" +location: /_db/_system/_api/document/products/103793 x-content-type-options: nosniff { - "_id" : "products/103783", - "_key" : "103783", - "_rev" : "_YNEaK4K--_", - "_oldRev" : "_YNEaK4C--_" + "_id" : "products/103793", + "_key" : "103793", + "_rev" : "_YOn1PA2--_", + "_oldRev" : "_YOn1PAu--_" } -shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103783 +shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103793 HTTP/1.1 OK content-type: application/json; charset=utf-8 -etag: "_YNEaK4K--_" +etag: "_YOn1PA2--_" x-content-type-options: nosniff { - "_key" : "103783", - "_id" : "products/103783", - "_rev" : "_YNEaK4K--_", + "_key" : "103793", + "_id" : "products/103793", + "_rev" : "_YOn1PA2--_", "one" : "world", "numbers" : { "empty" : null, diff --git a/Documentation/Examples/RestDocumentHandlerPatchDocumentMerge.generated b/Documentation/Examples/RestDocumentHandlerPatchDocumentMerge.generated index 9d4b95a3e0..4e4343c01d 100644 --- a/Documentation/Examples/RestDocumentHandlerPatchDocumentMerge.generated +++ b/Documentation/Examples/RestDocumentHandlerPatchDocumentMerge.generated @@ -1,21 +1,21 @@ -shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103806 +shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103816 HTTP/1.1 OK content-type: application/json; charset=utf-8 -etag: "_YNEaK5---B" +etag: "_YOn1PBq--B" x-content-type-options: nosniff { - "_key" : "103806", - "_id" : "products/103806", - "_rev" : "_YNEaK5---B", + "_key" : "103816", + "_id" : "products/103816", + "_rev" : "_YOn1PBq--B", "inhabitants" : { "china" : 1366980000, "india" : 1263590000, "usa" : 319220000 } } -shell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/103806?mergeObjects=true <<EOF +shell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/103816?mergeObjects=true <<EOF { "inhabitants" : { "indonesia" : 252164800, @@ -24,17 +24,17 @@ x-content-type-options: nosniff } EOF -shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103806 +shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103816 HTTP/1.1 OK content-type: application/json; charset=utf-8 -etag: "_YNEaK5G--_" +etag: "_YOn1PBy--_" x-content-type-options: nosniff { - "_key" : "103806", - "_id" : "products/103806", - "_rev" : "_YNEaK5G--_", + "_key" : "103816", + "_id" : "products/103816", + "_rev" : "_YOn1PBy--_", "inhabitants" : { "china" : 1366980000, "india" : 1263590000, @@ -43,7 +43,7 @@ x-content-type-options: nosniff "brazil" : 203553000 } } -shell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/103806?mergeObjects=false <<EOF +shell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/103816?mergeObjects=false <<EOF { "inhabitants" : { "pakistan" : 188346000 @@ -53,27 +53,27 @@ EOF HTTP/1.1 Accepted content-type: application/json; charset=utf-8 -etag: "_YNEaK5O--_" -location: /_db/_system/_api/document/products/103806 +etag: "_YOn1PB2--_" +location: /_db/_system/_api/document/products/103816 x-content-type-options: nosniff { - "_id" : "products/103806", - "_key" : "103806", - "_rev" : "_YNEaK5O--_", - "_oldRev" : "_YNEaK5G--_" + "_id" : "products/103816", + "_key" : "103816", + "_rev" : "_YOn1PB2--_", + "_oldRev" : "_YOn1PBy--_" } -shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103806 +shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103816 HTTP/1.1 OK content-type: application/json; charset=utf-8 -etag: "_YNEaK5O--_" +etag: "_YOn1PB2--_" x-content-type-options: nosniff { - "_key" : "103806", - "_id" : "products/103806", - "_rev" : "_YNEaK5O--_", + "_key" : "103816", + "_id" : "products/103816", + "_rev" : "_YOn1PB2--_", "inhabitants" : { "pakistan" : 188346000 } diff --git a/Documentation/Examples/RestDocumentHandlerPostAccept1.generated b/Documentation/Examples/RestDocumentHandlerPostAccept1.generated index ef8375c0d4..e37ed855ac 100644 --- a/Documentation/Examples/RestDocumentHandlerPostAccept1.generated +++ b/Documentation/Examples/RestDocumentHandlerPostAccept1.generated @@ -4,12 +4,12 @@ EOF HTTP/1.1 Accepted content-type: application/json; charset=utf-8 -etag: "_YNEaK6C--B" -location: /_db/_system/_api/document/products/103828 +etag: "_YOn1PCu--_" +location: /_db/_system/_api/document/products/103838 x-content-type-options: nosniff { - "_id" : "products/103828", - "_key" : "103828", - "_rev" : "_YNEaK6C--B" + "_id" : "products/103838", + "_key" : "103838", + "_rev" : "_YOn1PCu--_" } diff --git a/Documentation/Examples/RestDocumentHandlerPostCreate1.generated b/Documentation/Examples/RestDocumentHandlerPostCreate1.generated index 0f3e42d4bb..f422a0ceb7 100644 --- a/Documentation/Examples/RestDocumentHandlerPostCreate1.generated +++ b/Documentation/Examples/RestDocumentHandlerPostCreate1.generated @@ -4,12 +4,12 @@ EOF HTTP/1.1 Created content-type: application/json; charset=utf-8 -etag: "_YNEaK8S--B" -location: /_db/_system/_api/document/products/103854 +etag: "_YOn1PEy--_" +location: /_db/_system/_api/document/products/103864 x-content-type-options: nosniff { - "_id" : "products/103854", - "_key" : "103854", - "_rev" : "_YNEaK8S--B" + "_id" : "products/103864", + "_key" : "103864", + "_rev" : "_YOn1PEy--_" } diff --git a/Documentation/Examples/RestDocumentHandlerPostMulti1.generated b/Documentation/Examples/RestDocumentHandlerPostMulti1.generated index 0333a3d713..de7b0eaf0f 100644 --- a/Documentation/Examples/RestDocumentHandlerPostMulti1.generated +++ b/Documentation/Examples/RestDocumentHandlerPostMulti1.generated @@ -8,18 +8,18 @@ x-content-type-options: nosniff [ { - "_id" : "products/103869", - "_key" : "103869", - "_rev" : "_YNEaK92--_" + "_id" : "products/103879", + "_key" : "103879", + "_rev" : "_YOn1PGW--B" }, { - "_id" : "products/103873", - "_key" : "103873", - "_rev" : "_YNEaK92--B" + "_id" : "products/103883", + "_key" : "103883", + "_rev" : "_YOn1PGW--D" }, { - "_id" : "products/103875", - "_key" : "103875", - "_rev" : "_YNEaK92--D" + "_id" : "products/103885", + "_key" : "103885", + "_rev" : "_YOn1PGW--F" } ] diff --git a/Documentation/Examples/RestDocumentHandlerPostMulti2.generated b/Documentation/Examples/RestDocumentHandlerPostMulti2.generated index 569c5bbde0..ad4117bfe9 100644 --- a/Documentation/Examples/RestDocumentHandlerPostMulti2.generated +++ b/Documentation/Examples/RestDocumentHandlerPostMulti2.generated @@ -4,18 +4,18 @@ EOF HTTP/1.1 Accepted content-type: application/json; charset=utf-8 -etag: "_YNEaL-2--B" -location: /_db/_system/_api/document/products/103890 +etag: "_YOn1PHa--B" +location: /_db/_system/_api/document/products/103900 x-content-type-options: nosniff { - "_id" : "products/103890", - "_key" : "103890", - "_rev" : "_YNEaL-2--B", + "_id" : "products/103900", + "_key" : "103900", + "_rev" : "_YOn1PHa--B", "new" : { - "_key" : "103890", - "_id" : "products/103890", - "_rev" : "_YNEaL-2--B", + "_key" : "103900", + "_id" : "products/103900", + "_rev" : "_YOn1PHa--B", "Hello" : "World" } } diff --git a/Documentation/Examples/RestDocumentHandlerPostOverwrite.generated b/Documentation/Examples/RestDocumentHandlerPostOverwrite.generated index d43c7862f3..6a013200bc 100644 --- a/Documentation/Examples/RestDocumentHandlerPostOverwrite.generated +++ b/Documentation/Examples/RestDocumentHandlerPostOverwrite.generated @@ -4,14 +4,14 @@ EOF HTTP/1.1 Created content-type: application/json; charset=utf-8 -etag: "_YNEaL_6--_" +etag: "_YOn1PIe--B" location: /_db/_system/_api/document/products/lock x-content-type-options: nosniff { "_id" : "products/lock", "_key" : "lock", - "_rev" : "_YNEaL_6--_" + "_rev" : "_YOn1PIe--B" } shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products?overwrite=true <<EOF { "Hello": "Universe", "_key" : "lock" } @@ -19,13 +19,13 @@ EOF HTTP/1.1 Created content-type: application/json; charset=utf-8 -etag: "_YNEaLAe--B" +etag: "_YOn1PI6--B" location: /_db/_system/_api/document/products/lock x-content-type-options: nosniff { "_id" : "products/lock", "_key" : "lock", - "_rev" : "_YNEaLAe--B", - "_oldRev" : "_YNEaL_6--_" + "_rev" : "_YOn1PI6--B", + "_oldRev" : "_YOn1PIe--B" } diff --git a/Documentation/Examples/RestDocumentHandlerPostWait1.generated b/Documentation/Examples/RestDocumentHandlerPostWait1.generated index ef3f6906b2..4a4e691dc8 100644 --- a/Documentation/Examples/RestDocumentHandlerPostWait1.generated +++ b/Documentation/Examples/RestDocumentHandlerPostWait1.generated @@ -4,12 +4,12 @@ EOF HTTP/1.1 Created content-type: application/json; charset=utf-8 -etag: "_YNEaLBm--B" -location: /_db/_system/_api/document/products/103926 +etag: "_YOn1PKK--B" +location: /_db/_system/_api/document/products/103936 x-content-type-options: nosniff { - "_id" : "products/103926", - "_key" : "103926", - "_rev" : "_YNEaLBm--B" + "_id" : "products/103936", + "_key" : "103936", + "_rev" : "_YOn1PKK--B" } diff --git a/Documentation/Examples/RestDocumentHandlerReadDocument.generated b/Documentation/Examples/RestDocumentHandlerReadDocument.generated index 2b0ad1a031..4a8178c36f 100644 --- a/Documentation/Examples/RestDocumentHandlerReadDocument.generated +++ b/Documentation/Examples/RestDocumentHandlerReadDocument.generated @@ -1,13 +1,13 @@ -shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103941 +shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103951 HTTP/1.1 OK content-type: application/json; charset=utf-8 -etag: "_YNEaLDK--B" +etag: "_YOn1PLW--B" x-content-type-options: nosniff { - "_key" : "103941", - "_id" : "products/103941", - "_rev" : "_YNEaLDK--B", + "_key" : "103951", + "_id" : "products/103951", + "_rev" : "_YOn1PLW--B", "hello" : "world" } diff --git a/Documentation/Examples/RestDocumentHandlerReadDocumentAllKey.generated b/Documentation/Examples/RestDocumentHandlerReadDocumentAllKey.generated index f89fab2df3..042d2e5c3b 100644 --- a/Documentation/Examples/RestDocumentHandlerReadDocumentAllKey.generated +++ b/Documentation/Examples/RestDocumentHandlerReadDocumentAllKey.generated @@ -11,9 +11,9 @@ x-content-type-options: nosniff { "result" : [ - "products/103958", - "products/103965", - "products/103962" + "products/103975", + "products/103972", + "products/103968" ], "hasMore" : false, "cached" : false, @@ -25,7 +25,7 @@ x-content-type-options: nosniff "scannedIndex" : 0, "filtered" : 0, "httpRequests" : 0, - "executionTime" : 0.00019621849060058594, + "executionTime" : 0.0001857280731201172, "peakMemoryUsage" : 34040 }, "warnings" : [ ] diff --git a/Documentation/Examples/RestDocumentHandlerReadDocumentAllPath.generated b/Documentation/Examples/RestDocumentHandlerReadDocumentAllPath.generated index 08565e8096..9046ea57c0 100644 --- a/Documentation/Examples/RestDocumentHandlerReadDocumentAllPath.generated +++ b/Documentation/Examples/RestDocumentHandlerReadDocumentAllPath.generated @@ -10,9 +10,9 @@ x-content-type-options: nosniff { "result" : [ - "/_db/_system/_api/document/products/103987", - "/_db/_system/_api/document/products/103980", - "/_db/_system/_api/document/products/103984" + "/_db/_system/_api/document/products/103997", + "/_db/_system/_api/document/products/103994", + "/_db/_system/_api/document/products/103990" ], "hasMore" : false, "cached" : false, @@ -24,7 +24,7 @@ x-content-type-options: nosniff "scannedIndex" : 0, "filtered" : 0, "httpRequests" : 0, - "executionTime" : 0.00017881393432617188, + "executionTime" : 0.00018358230590820312, "peakMemoryUsage" : 34208 }, "warnings" : [ ] diff --git a/Documentation/Examples/RestDocumentHandlerReadDocumentHead.generated b/Documentation/Examples/RestDocumentHandlerReadDocumentHead.generated index 24f4151767..7eb2e8d213 100644 --- a/Documentation/Examples/RestDocumentHandlerReadDocumentHead.generated +++ b/Documentation/Examples/RestDocumentHandlerReadDocumentHead.generated @@ -1,2 +1,2 @@ -shell> curl -X HEAD --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/104002 +shell> curl -X HEAD --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/104012 diff --git a/Documentation/Examples/RestDocumentHandlerReadDocumentIfNoneMatch.generated b/Documentation/Examples/RestDocumentHandlerReadDocumentIfNoneMatch.generated index b3c9ccd678..8374c21fcc 100644 --- a/Documentation/Examples/RestDocumentHandlerReadDocumentIfNoneMatch.generated +++ b/Documentation/Examples/RestDocumentHandlerReadDocumentIfNoneMatch.generated @@ -1,2 +1,2 @@ -shell> curl --header 'If-None-Match: "_YNEaLHW--B"' --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/104018 +shell> curl --header 'If-None-Match: "_YOn1PQK--B"' --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/104028 diff --git a/Documentation/Examples/RestDocumentHandlerUpdateDocument.generated b/Documentation/Examples/RestDocumentHandlerUpdateDocument.generated index 1af5204dd6..d3430f5eef 100644 --- a/Documentation/Examples/RestDocumentHandlerUpdateDocument.generated +++ b/Documentation/Examples/RestDocumentHandlerUpdateDocument.generated @@ -1,16 +1,16 @@ -shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/104036 <<EOF +shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/104046 <<EOF {"Hello": "you"} EOF HTTP/1.1 Accepted content-type: application/json; charset=utf-8 -etag: "_YNEaLIe--_" -location: /_db/_system/_api/document/products/104036 +etag: "_YOn1PRa--D" +location: /_db/_system/_api/document/products/104046 x-content-type-options: nosniff { - "_id" : "products/104036", - "_key" : "104036", - "_rev" : "_YNEaLIe--_", - "_oldRev" : "_YNEaLIa--B" + "_id" : "products/104046", + "_key" : "104046", + "_rev" : "_YOn1PRa--D", + "_oldRev" : "_YOn1PRa--B" } diff --git a/Documentation/Examples/RestDocumentHandlerUpdateDocumentIfMatchOther.generated b/Documentation/Examples/RestDocumentHandlerUpdateDocumentIfMatchOther.generated index 536cb3b84b..4410f7f626 100644 --- a/Documentation/Examples/RestDocumentHandlerUpdateDocumentIfMatchOther.generated +++ b/Documentation/Examples/RestDocumentHandlerUpdateDocumentIfMatchOther.generated @@ -1,10 +1,10 @@ -shell> curl -X PUT --header 'If-Match: "_YNEaLJe--B"' --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/104053 <<EOF +shell> curl -X PUT --header 'If-Match: "_YOn1PSi--B"' --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/104063 <<EOF {"other":"content"} EOF HTTP/1.1 Precondition Failed content-type: application/json; charset=utf-8 -etag: "_YNEaLJe--_" +etag: "_YOn1PSi--_" x-content-type-options: nosniff { @@ -12,7 +12,7 @@ x-content-type-options: nosniff "code" : 412, "errorNum" : 1200, "errorMessage" : "precondition failed", - "_id" : "products/104053", - "_key" : "104053", - "_rev" : "_YNEaLJe--_" + "_id" : "products/104063", + "_key" : "104063", + "_rev" : "_YOn1PSi--_" } diff --git a/Documentation/Examples/RestDocumentHandlerUpdateDocumentUnknownHandle.generated b/Documentation/Examples/RestDocumentHandlerUpdateDocumentUnknownHandle.generated index 08d0ae01e8..d2347a7c01 100644 --- a/Documentation/Examples/RestDocumentHandlerUpdateDocumentUnknownHandle.generated +++ b/Documentation/Examples/RestDocumentHandlerUpdateDocumentUnknownHandle.generated @@ -1,4 +1,4 @@ -shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/104072 <<EOF +shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/104082 <<EOF {} EOF diff --git a/Documentation/Examples/RestEdgesReadEdgesAny.generated b/Documentation/Examples/RestEdgesReadEdgesAny.generated index 0a74da528f..3e11f2ac89 100644 --- a/Documentation/Examples/RestEdgesReadEdgesAny.generated +++ b/Documentation/Examples/RestEdgesReadEdgesAny.generated @@ -11,7 +11,7 @@ x-content-type-options: nosniff "_id" : "edges/6", "_from" : "vertices/2", "_to" : "vertices/1", - "_rev" : "_YNEaLMG--F", + "_rev" : "_YOn1PWK--B", "$label" : "v2 -> v1" }, { @@ -19,7 +19,7 @@ x-content-type-options: nosniff "_id" : "edges/7", "_from" : "vertices/4", "_to" : "vertices/1", - "_rev" : "_YNEaLMG--H", + "_rev" : "_YOn1PWK--D", "$label" : "v4 -> v1" }, { @@ -27,7 +27,7 @@ x-content-type-options: nosniff "_id" : "edges/5", "_from" : "vertices/1", "_to" : "vertices/3", - "_rev" : "_YNEaLMG--D", + "_rev" : "_YOn1PWK--_", "$label" : "v1 -> v3" } ], diff --git a/Documentation/Examples/RestEdgesReadEdgesIn.generated b/Documentation/Examples/RestEdgesReadEdgesIn.generated index 1649696e62..a62267da4f 100644 --- a/Documentation/Examples/RestEdgesReadEdgesIn.generated +++ b/Documentation/Examples/RestEdgesReadEdgesIn.generated @@ -11,7 +11,7 @@ x-content-type-options: nosniff "_id" : "edges/6", "_from" : "vertices/2", "_to" : "vertices/1", - "_rev" : "_YNEaLOK--D", + "_rev" : "_YOn1PYy--H", "$label" : "v2 -> v1" }, { @@ -19,7 +19,7 @@ x-content-type-options: nosniff "_id" : "edges/7", "_from" : "vertices/4", "_to" : "vertices/1", - "_rev" : "_YNEaLOK--F", + "_rev" : "_YOn1PYy--J", "$label" : "v4 -> v1" } ], diff --git a/Documentation/Examples/RestEdgesReadEdgesOut.generated b/Documentation/Examples/RestEdgesReadEdgesOut.generated index 9f505e6a48..8068f57b9d 100644 --- a/Documentation/Examples/RestEdgesReadEdgesOut.generated +++ b/Documentation/Examples/RestEdgesReadEdgesOut.generated @@ -11,7 +11,7 @@ x-content-type-options: nosniff "_id" : "edges/5", "_from" : "vertices/1", "_to" : "vertices/3", - "_rev" : "_YNEaLQO--D", + "_rev" : "_YOn1Pba--F", "$label" : "v1 -> v3" } ], diff --git a/Documentation/Examples/RestEndpointGet.generated b/Documentation/Examples/RestEndpointGet.generated index ebcb767bd2..cc29b20323 100644 --- a/Documentation/Examples/RestEndpointGet.generated +++ b/Documentation/Examples/RestEndpointGet.generated @@ -6,6 +6,6 @@ x-content-type-options: nosniff [ { - "endpoint" : "http://127.0.0.1:33956" + "endpoint" : "http://127.0.0.1:18836" } ] diff --git a/Documentation/Examples/RestExplainAllPlans.generated b/Documentation/Examples/RestExplainAllPlans.generated index ed6950c4da..cc613fee5c 100644 --- a/Documentation/Examples/RestExplainAllPlans.generated +++ b/Documentation/Examples/RestExplainAllPlans.generated @@ -43,7 +43,7 @@ x-content-type-options: nosniff "indexCoversProjections" : false, "indexes" : [ { - "id" : "104206", + "id" : "104216", "type" : "hash", "fields" : [ "id" diff --git a/Documentation/Examples/RestExplainOptimizerRules.generated b/Documentation/Examples/RestExplainOptimizerRules.generated index ded2c064d8..405eb83841 100644 --- a/Documentation/Examples/RestExplainOptimizerRules.generated +++ b/Documentation/Examples/RestExplainOptimizerRules.generated @@ -39,7 +39,7 @@ x-content-type-options: nosniff "indexCoversProjections" : false, "indexes" : [ { - "id" : "104244", + "id" : "104254", "type" : "skiplist", "fields" : [ "id" diff --git a/Documentation/Examples/RestExplainOptions.generated b/Documentation/Examples/RestExplainOptions.generated index 25b317276d..0218553b2f 100644 --- a/Documentation/Examples/RestExplainOptions.generated +++ b/Documentation/Examples/RestExplainOptions.generated @@ -51,7 +51,7 @@ x-content-type-options: nosniff "indexCoversProjections" : false, "indexes" : [ { - "id" : "104290", + "id" : "104300", "type" : "skiplist", "fields" : [ "id" diff --git a/Documentation/Examples/RestFetchAllUser.generated b/Documentation/Examples/RestFetchAllUser.generated index c139ec19d8..7aaace86b0 100644 --- a/Documentation/Examples/RestFetchAllUser.generated +++ b/Documentation/Examples/RestFetchAllUser.generated @@ -8,6 +8,12 @@ x-content-type-options: nosniff "error" : false, "code" : 200, "result" : [ + { + "user" : "tester", + "active" : false, + "extra" : { + } + }, { "user" : "admin", "active" : true, @@ -19,12 +25,6 @@ x-content-type-options: nosniff "active" : true, "extra" : { } - }, - { - "user" : "tester", - "active" : false, - "extra" : { - } } ] } diff --git a/Documentation/Examples/RestIResearchViewPatchProperties.generated b/Documentation/Examples/RestIResearchViewPatchProperties.generated index c70ff60306..f41d1953eb 100644 --- a/Documentation/Examples/RestIResearchViewPatchProperties.generated +++ b/Documentation/Examples/RestIResearchViewPatchProperties.generated @@ -9,8 +9,8 @@ content-type: application/json; charset=utf-8 x-content-type-options: nosniff { - "globallyUniqueId" : "h402518FDD080/104442", - "id" : "104442", + "globallyUniqueId" : "h8B2B671BCFD0/104452", + "id" : "104452", "name" : "products", "type" : "arangosearch", "cleanupIntervalStep" : 10, diff --git a/Documentation/Examples/RestIResearchViewPostView.generated b/Documentation/Examples/RestIResearchViewPostView.generated index 714b715824..d26456253d 100644 --- a/Documentation/Examples/RestIResearchViewPostView.generated +++ b/Documentation/Examples/RestIResearchViewPostView.generated @@ -10,8 +10,8 @@ content-type: application/json; charset=utf-8 x-content-type-options: nosniff { - "globallyUniqueId" : "h402518FDD080/104450", - "id" : "104450", + "globallyUniqueId" : "h8B2B671BCFD0/104460", + "id" : "104460", "name" : "testViewBasics", "type" : "arangosearch", "cleanupIntervalStep" : 10, diff --git a/Documentation/Examples/RestIResearchViewPutProperties.generated b/Documentation/Examples/RestIResearchViewPutProperties.generated index b9458ae6a5..d391334db2 100644 --- a/Documentation/Examples/RestIResearchViewPutProperties.generated +++ b/Documentation/Examples/RestIResearchViewPutProperties.generated @@ -9,8 +9,8 @@ content-type: application/json; charset=utf-8 x-content-type-options: nosniff { - "globallyUniqueId" : "h402518FDD080/104456", - "id" : "104456", + "globallyUniqueId" : "h8B2B671BCFD0/104466", + "id" : "104466", "name" : "products", "type" : "arangosearch", "cleanupIntervalStep" : 10, diff --git a/Documentation/Examples/RestIndexAllIndexes.generated b/Documentation/Examples/RestIndexAllIndexes.generated index f389825589..e4dc4607a3 100644 --- a/Documentation/Examples/RestIndexAllIndexes.generated +++ b/Documentation/Examples/RestIndexAllIndexes.generated @@ -23,7 +23,7 @@ x-content-type-options: nosniff "fields" : [ "name" ], - "id" : "products/104718", + "id" : "products/104728", "selectivityEstimate" : 1, "sparse" : false, "type" : "hash", @@ -34,7 +34,7 @@ x-content-type-options: nosniff "fields" : [ "price" ], - "id" : "products/104721", + "id" : "products/104731", "sparse" : true, "type" : "skiplist", "unique" : false @@ -51,23 +51,23 @@ x-content-type-options: nosniff "type" : "primary", "unique" : true }, - "products/104718" : { + "products/104728" : { "deduplicate" : true, "fields" : [ "name" ], - "id" : "products/104718", + "id" : "products/104728", "selectivityEstimate" : 1, "sparse" : false, "type" : "hash", "unique" : false }, - "products/104721" : { + "products/104731" : { "deduplicate" : true, "fields" : [ "price" ], - "id" : "products/104721", + "id" : "products/104731", "sparse" : true, "type" : "skiplist", "unique" : false diff --git a/Documentation/Examples/RestIndexCreateGeoLatitudeLongitude.generated b/Documentation/Examples/RestIndexCreateGeoLatitudeLongitude.generated index 55349fdbd7..2e699ebbea 100644 --- a/Documentation/Examples/RestIndexCreateGeoLatitudeLongitude.generated +++ b/Documentation/Examples/RestIndexCreateGeoLatitudeLongitude.generated @@ -19,7 +19,7 @@ x-content-type-options: nosniff "f" ], "geoJson" : false, - "id" : "products/104736", + "id" : "products/104746", "isNewlyCreated" : true, "maxNumCoverCells" : 8, "sparse" : true, diff --git a/Documentation/Examples/RestIndexCreateGeoLocation.generated b/Documentation/Examples/RestIndexCreateGeoLocation.generated index 0c037a9c62..4417f29351 100644 --- a/Documentation/Examples/RestIndexCreateGeoLocation.generated +++ b/Documentation/Examples/RestIndexCreateGeoLocation.generated @@ -17,7 +17,7 @@ x-content-type-options: nosniff "b" ], "geoJson" : false, - "id" : "products/104750", + "id" : "products/104760", "isNewlyCreated" : true, "maxNumCoverCells" : 8, "sparse" : true, diff --git a/Documentation/Examples/RestIndexCreateNewFulltext.generated b/Documentation/Examples/RestIndexCreateNewFulltext.generated index 46b912b3a5..643d01421e 100644 --- a/Documentation/Examples/RestIndexCreateNewFulltext.generated +++ b/Documentation/Examples/RestIndexCreateNewFulltext.generated @@ -15,7 +15,7 @@ x-content-type-options: nosniff "fields" : [ "text" ], - "id" : "products/104764", + "id" : "products/104774", "isNewlyCreated" : true, "minLength" : 2, "sparse" : true, diff --git a/Documentation/Examples/RestIndexCreateNewHashIndex.generated b/Documentation/Examples/RestIndexCreateNewHashIndex.generated index 43fa0c5672..ffc9366ff9 100644 --- a/Documentation/Examples/RestIndexCreateNewHashIndex.generated +++ b/Documentation/Examples/RestIndexCreateNewHashIndex.generated @@ -19,7 +19,7 @@ x-content-type-options: nosniff "a", "b" ], - "id" : "products/104778", + "id" : "products/104788", "isNewlyCreated" : true, "selectivityEstimate" : 1, "sparse" : false, diff --git a/Documentation/Examples/RestIndexCreateNewPersistent.generated b/Documentation/Examples/RestIndexCreateNewPersistent.generated index 9073ba457f..4fb2d75d41 100644 --- a/Documentation/Examples/RestIndexCreateNewPersistent.generated +++ b/Documentation/Examples/RestIndexCreateNewPersistent.generated @@ -19,7 +19,7 @@ x-content-type-options: nosniff "a", "b" ], - "id" : "products/104792", + "id" : "products/104802", "isNewlyCreated" : true, "sparse" : false, "type" : "persistent", diff --git a/Documentation/Examples/RestIndexCreateNewSkiplist.generated b/Documentation/Examples/RestIndexCreateNewSkiplist.generated index c5afccfb5d..97d8770531 100644 --- a/Documentation/Examples/RestIndexCreateNewSkiplist.generated +++ b/Documentation/Examples/RestIndexCreateNewSkiplist.generated @@ -19,7 +19,7 @@ x-content-type-options: nosniff "a", "b" ], - "id" : "products/104806", + "id" : "products/104816", "isNewlyCreated" : true, "sparse" : false, "type" : "skiplist", diff --git a/Documentation/Examples/RestIndexCreateNewTtlIndex.generated b/Documentation/Examples/RestIndexCreateNewTtlIndex.generated index eb085d37da..71631901f5 100644 --- a/Documentation/Examples/RestIndexCreateNewTtlIndex.generated +++ b/Documentation/Examples/RestIndexCreateNewTtlIndex.generated @@ -17,7 +17,7 @@ x-content-type-options: nosniff "fields" : [ "createdAt" ], - "id" : "sessions/104820", + "id" : "sessions/104830", "isNewlyCreated" : true, "sparse" : true, "type" : "ttl", diff --git a/Documentation/Examples/RestIndexCreateNewUniqueConstraint.generated b/Documentation/Examples/RestIndexCreateNewUniqueConstraint.generated index b60493dbd6..80f2ba2b5b 100644 --- a/Documentation/Examples/RestIndexCreateNewUniqueConstraint.generated +++ b/Documentation/Examples/RestIndexCreateNewUniqueConstraint.generated @@ -19,7 +19,7 @@ x-content-type-options: nosniff "a", "b" ], - "id" : "products/104834", + "id" : "products/104844", "isNewlyCreated" : true, "selectivityEstimate" : 1, "sparse" : false, diff --git a/Documentation/Examples/RestIndexCreateSparseHashIndex.generated b/Documentation/Examples/RestIndexCreateSparseHashIndex.generated index b54e1b4bc6..1aaa2e53ea 100644 --- a/Documentation/Examples/RestIndexCreateSparseHashIndex.generated +++ b/Documentation/Examples/RestIndexCreateSparseHashIndex.generated @@ -18,7 +18,7 @@ x-content-type-options: nosniff "fields" : [ "a" ], - "id" : "products/104848", + "id" : "products/104858", "isNewlyCreated" : true, "selectivityEstimate" : 1, "sparse" : true, diff --git a/Documentation/Examples/RestIndexCreateSparsePersistent.generated b/Documentation/Examples/RestIndexCreateSparsePersistent.generated index 4047ef4dc6..13d609456e 100644 --- a/Documentation/Examples/RestIndexCreateSparsePersistent.generated +++ b/Documentation/Examples/RestIndexCreateSparsePersistent.generated @@ -18,7 +18,7 @@ x-content-type-options: nosniff "fields" : [ "a" ], - "id" : "products/104862", + "id" : "products/104872", "isNewlyCreated" : true, "sparse" : true, "type" : "persistent", diff --git a/Documentation/Examples/RestIndexCreateSparseSkiplist.generated b/Documentation/Examples/RestIndexCreateSparseSkiplist.generated index 17b6161284..0083af92b5 100644 --- a/Documentation/Examples/RestIndexCreateSparseSkiplist.generated +++ b/Documentation/Examples/RestIndexCreateSparseSkiplist.generated @@ -18,7 +18,7 @@ x-content-type-options: nosniff "fields" : [ "a" ], - "id" : "products/104876", + "id" : "products/104895", "isNewlyCreated" : true, "sparse" : true, "type" : "skiplist", diff --git a/Documentation/Examples/RestIndexDeleteUniqueSkiplist.generated b/Documentation/Examples/RestIndexDeleteUniqueSkiplist.generated index 7222552b1b..9ae126fc4d 100644 --- a/Documentation/Examples/RestIndexDeleteUniqueSkiplist.generated +++ b/Documentation/Examples/RestIndexDeleteUniqueSkiplist.generated @@ -1,11 +1,11 @@ -shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/index/products/104890 +shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/index/products/104909 HTTP/1.1 OK content-type: application/json; charset=utf-8 x-content-type-options: nosniff { - "id" : "products/104890", + "id" : "products/104909", "error" : false, "code" : 200 } diff --git a/Documentation/Examples/RestReplicationApplierStart.generated b/Documentation/Examples/RestReplicationApplierStart.generated index 844cbb4bae..10f1b5d42d 100644 --- a/Documentation/Examples/RestReplicationApplierStart.generated +++ b/Documentation/Examples/RestReplicationApplierStart.generated @@ -14,7 +14,7 @@ x-content-type-options: nosniff "safeResumeTick" : null, "ticksBehind" : 0, "progress" : { - "time" : "2019-02-15T14:42:34Z", + "time" : "2019-02-20T10:32:42Z", "message" : "applier initially created for database '_system'", "failedConnects" : 0 }, @@ -26,11 +26,11 @@ x-content-type-options: nosniff "lastError" : { "errorNum" : 0 }, - "time" : "2019-02-15T14:42:53Z" + "time" : "2019-02-20T10:33:03Z" }, "server" : { "version" : "3.5.0-devel", - "serverId" : "70528077254784" + "serverId" : "153018529730512" }, "endpoint" : "tcp://127.0.0.1:8529", "database" : "_system" diff --git a/Documentation/Examples/RestReplicationApplierStateNotRunning.generated b/Documentation/Examples/RestReplicationApplierStateNotRunning.generated index f2b8dfe2c4..0127dcb8cf 100644 --- a/Documentation/Examples/RestReplicationApplierStateNotRunning.generated +++ b/Documentation/Examples/RestReplicationApplierStateNotRunning.generated @@ -13,23 +13,23 @@ x-content-type-options: nosniff "lastAvailableContinuousTick" : null, "safeResumeTick" : null, "progress" : { - "time" : "2019-02-15T14:42:54Z", + "time" : "2019-02-20T10:33:03Z", "message" : "applier shut down", - "failedConnects" : 1 + "failedConnects" : 0 }, - "totalRequests" : 2, - "totalFailedConnects" : 1, + "totalRequests" : 1, + "totalFailedConnects" : 0, "totalEvents" : 0, "totalResyncs" : 0, "totalOperationsExcluded" : 0, "lastError" : { "errorNum" : 0 }, - "time" : "2019-02-15T14:42:54Z" + "time" : "2019-02-20T10:33:03Z" }, "server" : { "version" : "3.5.0-devel", - "serverId" : "70528077254784" + "serverId" : "153018529730512" }, "endpoint" : "tcp://127.0.0.1:8529", "database" : "_system" diff --git a/Documentation/Examples/RestReplicationApplierStateRunning.generated b/Documentation/Examples/RestReplicationApplierStateRunning.generated index 8cf32f6e5b..4d878440dd 100644 --- a/Documentation/Examples/RestReplicationApplierStateRunning.generated +++ b/Documentation/Examples/RestReplicationApplierStateRunning.generated @@ -14,23 +14,23 @@ x-content-type-options: nosniff "safeResumeTick" : null, "ticksBehind" : 0, "progress" : { - "time" : "2019-02-15T14:42:54Z", + "time" : "2019-02-20T10:33:03Z", "message" : "fetching master state information", "failedConnects" : 0 }, - "totalRequests" : 2, - "totalFailedConnects" : 1, + "totalRequests" : 1, + "totalFailedConnects" : 0, "totalEvents" : 0, "totalResyncs" : 0, "totalOperationsExcluded" : 0, "lastError" : { "errorNum" : 0 }, - "time" : "2019-02-15T14:42:54Z" + "time" : "2019-02-20T10:33:03Z" }, "server" : { "version" : "3.5.0-devel", - "serverId" : "70528077254784" + "serverId" : "153018529730512" }, "endpoint" : "tcp://127.0.0.1:8529", "database" : "_system" diff --git a/Documentation/Examples/RestReplicationApplierStop.generated b/Documentation/Examples/RestReplicationApplierStop.generated index eb515227d4..456753630f 100644 --- a/Documentation/Examples/RestReplicationApplierStop.generated +++ b/Documentation/Examples/RestReplicationApplierStop.generated @@ -13,23 +13,23 @@ x-content-type-options: nosniff "lastAvailableContinuousTick" : null, "safeResumeTick" : null, "progress" : { - "time" : "2019-02-15T14:42:55Z", + "time" : "2019-02-20T10:33:03Z", "message" : "applier shut down", "failedConnects" : 0 }, - "totalRequests" : 6, - "totalFailedConnects" : 3, + "totalRequests" : 3, + "totalFailedConnects" : 0, "totalEvents" : 0, "totalResyncs" : 0, "totalOperationsExcluded" : 0, "lastError" : { "errorNum" : 0 }, - "time" : "2019-02-15T14:42:55Z" + "time" : "2019-02-20T10:33:03Z" }, "server" : { "version" : "3.5.0-devel", - "serverId" : "70528077254784" + "serverId" : "153018529730512" }, "endpoint" : "tcp://127.0.0.1:8529", "database" : "_system" diff --git a/Documentation/Examples/RestReplicationDump.generated b/Documentation/Examples/RestReplicationDump.generated index c7d3899a6f..19bf8670c2 100644 --- a/Documentation/Examples/RestReplicationDump.generated +++ b/Documentation/Examples/RestReplicationDump.generated @@ -3,34 +3,34 @@ HTTP/1.1 OK content-type: application/x-arango-dump; charset=utf-8 x-arango-replication-checkmore: false -x-arango-replication-lastincluded: 104945 +x-arango-replication-lastincluded: 104964 x-content-type-options: nosniff { - "tick" : "104939", + "tick" : "104958", "type" : 2300, "data" : { "_key" : "123456", "_id" : "testCollection/123456", - "_rev" : "_YNEaNxC--B", + "_rev" : "_YOn1QmK--_", "b" : 1, "c" : false, "d" : "additional value" } }↩ { - "tick" : "104943", + "tick" : "104962", "type" : 2302, "data" : { "_key" : "foobar", - "_rev" : "_YNEaNxG--_" + "_rev" : "_YOn1QmK--D" } }↩ { - "tick" : "104945", + "tick" : "104964", "type" : 2302, "data" : { "_key" : "abcdef", - "_rev" : "_YNEaNxG--B" + "_rev" : "_YOn1QmO--_" } }↩ diff --git a/Documentation/Examples/RestReplicationInventory.generated b/Documentation/Examples/RestReplicationInventory.generated index c4c37db544..2a8a8034ff 100644 --- a/Documentation/Examples/RestReplicationInventory.generated +++ b/Documentation/Examples/RestReplicationInventory.generated @@ -221,7 +221,7 @@ x-content-type-options: nosniff "keyOptions" : { "allowUserKeys" : true, "type" : "traditional", - "lastValue" : 104914 + "lastValue" : 104933 }, "name" : "_users", "numberOfShards" : 1, @@ -246,7 +246,7 @@ x-content-type-options: nosniff "count" : 0, "deleted" : false, "doCompact" : true, - "globallyUniqueId" : "h402518FDD080/96", + "globallyUniqueId" : "h8B2B671BCFD0/96", "id" : "96", "indexBuckets" : 8, "isSmart" : false, @@ -281,7 +281,7 @@ x-content-type-options: nosniff "count" : 0, "deleted" : false, "doCompact" : true, - "globallyUniqueId" : "h402518FDD080/87", + "globallyUniqueId" : "h8B2B671BCFD0/87", "id" : "87", "indexBuckets" : 8, "isSmart" : false, @@ -311,7 +311,7 @@ x-content-type-options: nosniff ], "views" : [ { - "globallyUniqueId" : "h402518FDD080/102", + "globallyUniqueId" : "h8B2B671BCFD0/102", "id" : "102", "name" : "demoView", "type" : "arangosearch", @@ -331,10 +331,10 @@ x-content-type-options: nosniff ], "state" : { "running" : true, - "lastLogTick" : "104972", - "lastUncommittedLogTick" : "104980", - "totalEvents" : 35256, - "time" : "2019-02-15T14:42:57Z" + "lastLogTick" : "104983", + "lastUncommittedLogTick" : "104989", + "totalEvents" : 35260, + "time" : "2019-02-20T10:33:06Z" }, - "tick" : "104981" + "tick" : "104990" } diff --git a/Documentation/Examples/RestReplicationInventoryIndexes.generated b/Documentation/Examples/RestReplicationInventoryIndexes.generated index 49dc114c48..df70ddee6e 100644 --- a/Documentation/Examples/RestReplicationInventoryIndexes.generated +++ b/Documentation/Examples/RestReplicationInventoryIndexes.generated @@ -9,7 +9,7 @@ x-content-type-options: nosniff { "indexes" : [ { - "id" : "104991", + "id" : "105000", "type" : "hash", "fields" : [ "name" @@ -19,7 +19,7 @@ x-content-type-options: nosniff "deduplicate" : true }, { - "id" : "104994", + "id" : "105003", "type" : "skiplist", "fields" : [ "a", @@ -32,12 +32,12 @@ x-content-type-options: nosniff ], "parameters" : { "allowUserKeys" : true, - "cid" : "104984", + "cid" : "104993", "count" : 0, "deleted" : false, "doCompact" : true, - "globallyUniqueId" : "h402518FDD080/104984", - "id" : "104984", + "globallyUniqueId" : "h8B2B671BCFD0/104993", + "id" : "104993", "indexBuckets" : 8, "isSmart" : false, "isSystem" : false, @@ -50,7 +50,7 @@ x-content-type-options: nosniff }, "name" : "IndexedCollection1", "numberOfShards" : 1, - "planId" : "104984", + "planId" : "104993", "replicationFactor" : 1, "shardKeys" : [ "_key" @@ -66,7 +66,7 @@ x-content-type-options: nosniff { "indexes" : [ { - "id" : "105003", + "id" : "105012", "type" : "fulltext", "fields" : [ "text" @@ -76,7 +76,7 @@ x-content-type-options: nosniff "minLength" : 10 }, { - "id" : "105006", + "id" : "105015", "type" : "skiplist", "fields" : [ "a" @@ -88,12 +88,12 @@ x-content-type-options: nosniff ], "parameters" : { "allowUserKeys" : true, - "cid" : "104996", + "cid" : "105005", "count" : 0, "deleted" : false, "doCompact" : true, - "globallyUniqueId" : "h402518FDD080/104996", - "id" : "104996", + "globallyUniqueId" : "h8B2B671BCFD0/105005", + "id" : "105005", "indexBuckets" : 8, "isSmart" : false, "isSystem" : false, @@ -106,7 +106,7 @@ x-content-type-options: nosniff }, "name" : "IndexedCollection2", "numberOfShards" : 1, - "planId" : "104996", + "planId" : "105005", "replicationFactor" : 1, "shardKeys" : [ "_key" @@ -334,7 +334,7 @@ x-content-type-options: nosniff "keyOptions" : { "allowUserKeys" : true, "type" : "traditional", - "lastValue" : 104914 + "lastValue" : 104933 }, "name" : "_users", "numberOfShards" : 1, @@ -359,7 +359,7 @@ x-content-type-options: nosniff "count" : 0, "deleted" : false, "doCompact" : true, - "globallyUniqueId" : "h402518FDD080/96", + "globallyUniqueId" : "h8B2B671BCFD0/96", "id" : "96", "indexBuckets" : 8, "isSmart" : false, @@ -394,7 +394,7 @@ x-content-type-options: nosniff "count" : 0, "deleted" : false, "doCompact" : true, - "globallyUniqueId" : "h402518FDD080/87", + "globallyUniqueId" : "h8B2B671BCFD0/87", "id" : "87", "indexBuckets" : 8, "isSmart" : false, @@ -424,7 +424,7 @@ x-content-type-options: nosniff ], "views" : [ { - "globallyUniqueId" : "h402518FDD080/102", + "globallyUniqueId" : "h8B2B671BCFD0/102", "id" : "102", "name" : "demoView", "type" : "arangosearch", @@ -444,10 +444,10 @@ x-content-type-options: nosniff ], "state" : { "running" : true, - "lastLogTick" : "104980", - "lastUncommittedLogTick" : "105007", - "totalEvents" : 35264, - "time" : "2019-02-15T14:42:57Z" + "lastLogTick" : "104983", + "lastUncommittedLogTick" : "105016", + "totalEvents" : 35268, + "time" : "2019-02-20T10:33:06Z" }, - "tick" : "105007" + "tick" : "105016" } diff --git a/Documentation/Examples/RestReplicationLoggerFollowBufferLimit.generated b/Documentation/Examples/RestReplicationLoggerFollowBufferLimit.generated index f78c91dda4..5c8a3e4377 100644 --- a/Documentation/Examples/RestReplicationLoggerFollowBufferLimit.generated +++ b/Documentation/Examples/RestReplicationLoggerFollowBufferLimit.generated @@ -1,29 +1,29 @@ -shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/logger-follow?from=105016&chunkSize=400 +shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/logger-follow?from=105025&chunkSize=400 HTTP/1.1 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: 105020 -x-arango-replication-lastscanned: 105020 -x-arango-replication-lasttick: 105037 +x-arango-replication-lastincluded: 105029 +x-arango-replication-lastscanned: 105029 +x-arango-replication-lasttick: 105046 x-content-type-options: nosniff { - "tick" : "105020", + "tick" : "105029", "type" : 2000, "database" : "1", - "cid" : "105019", + "cid" : "105028", "cname" : "products", "data" : { "allowUserKeys" : true, - "cid" : "105019", + "cid" : "105028", "count" : 0, "deleted" : false, "doCompact" : true, - "globallyUniqueId" : "h402518FDD080/105019", - "id" : "105019", + "globallyUniqueId" : "h8B2B671BCFD0/105028", + "id" : "105028", "indexBuckets" : 8, "indexes" : [ { @@ -47,7 +47,7 @@ x-content-type-options: nosniff }, "name" : "products", "numberOfShards" : 1, - "planId" : "105019", + "planId" : "105028", "replicationFactor" : 1, "shardKeys" : [ "_key" diff --git a/Documentation/Examples/RestReplicationLoggerFollowEmpty.generated b/Documentation/Examples/RestReplicationLoggerFollowEmpty.generated index 430e19f9bd..9e5f1e2756 100644 --- a/Documentation/Examples/RestReplicationLoggerFollowEmpty.generated +++ b/Documentation/Examples/RestReplicationLoggerFollowEmpty.generated @@ -1,4 +1,4 @@ -shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/logger-follow?from=105037 +shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/logger-follow?from=105046 HTTP/1.1 No Content content-type: application/x-arango-dump; charset=utf-8 @@ -6,7 +6,7 @@ x-arango-replication-active: true x-arango-replication-checkmore: false x-arango-replication-frompresent: true x-arango-replication-lastincluded: 0 -x-arango-replication-lastscanned: 105037 -x-arango-replication-lasttick: 105037 +x-arango-replication-lastscanned: 105046 +x-arango-replication-lasttick: 105046 x-content-type-options: nosniff diff --git a/Documentation/Examples/RestReplicationLoggerFollowSome.generated b/Documentation/Examples/RestReplicationLoggerFollowSome.generated index dfb024500d..70db612e5b 100644 --- a/Documentation/Examples/RestReplicationLoggerFollowSome.generated +++ b/Documentation/Examples/RestReplicationLoggerFollowSome.generated @@ -1,29 +1,29 @@ -shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/logger-follow?from=105037 +shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/logger-follow?from=105046 HTTP/1.1 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: 105058 -x-arango-replication-lastscanned: 105058 -x-arango-replication-lasttick: 105058 +x-arango-replication-lastincluded: 105067 +x-arango-replication-lastscanned: 105067 +x-arango-replication-lasttick: 105067 x-content-type-options: nosniff { - "tick" : "105041", + "tick" : "105050", "type" : 2000, "database" : "1", - "cid" : "105040", + "cid" : "105049", "cname" : "products", "data" : { "allowUserKeys" : true, - "cid" : "105040", + "cid" : "105049", "count" : 0, "deleted" : false, "doCompact" : true, - "globallyUniqueId" : "h402518FDD080/105040", - "id" : "105040", + "globallyUniqueId" : "h8B2B671BCFD0/105049", + "id" : "105049", "indexBuckets" : 8, "indexes" : [ { @@ -47,7 +47,7 @@ x-content-type-options: nosniff }, "name" : "products", "numberOfShards" : 1, - "planId" : "105040", + "planId" : "105049", "replicationFactor" : 1, "shardKeys" : [ "_key" @@ -61,7 +61,7 @@ x-content-type-options: nosniff } }↩ { - "tick" : "105044", + "tick" : "105053", "type" : 2300, "tid" : "0", "database" : "1", @@ -70,14 +70,14 @@ x-content-type-options: nosniff "data" : { "_key" : "58", "_id" : "_users/58", - "_rev" : "_YNEaQx6--_", + "_rev" : "_YOn1VSi--_", "user" : "root", "source" : "LOCAL", "authData" : { "active" : true, "simple" : { - "hash" : "60a0e3e3fb13484ace3c71fcca2b8a21647ab72cf81fe55bad49f2983b185888", - "salt" : "24a0094b", + "hash" : "ba63424cac2432f605d770a3a2ca1c066f164ee2e022b3f6fa1c41bfa2391f6c", + "salt" : "93971d8d", "method" : "sha256" } }, @@ -138,75 +138,75 @@ x-content-type-options: nosniff } }↩ { - "tick" : "105048", + "tick" : "105057", "type" : 2300, "tid" : "0", "database" : "1", - "cid" : "105040", + "cid" : "105049", "cname" : "products", "data" : { "_key" : "p1", "_id" : "_unknown/p1", - "_rev" : "_YNEaQx6--B", + "_rev" : "_YOn1VSm--_", "name" : "flux compensator" } }↩ { - "tick" : "105050", + "tick" : "105059", "type" : 2300, "tid" : "0", "database" : "1", - "cid" : "105040", + "cid" : "105049", "cname" : "products", "data" : { "_key" : "p2", "_id" : "_unknown/p2", - "_rev" : "_YNEaQy---_", + "_rev" : "_YOn1VSm--B", "name" : "hybrid hovercraft", "hp" : 5100 } }↩ { - "tick" : "105052", + "tick" : "105061", "type" : 2302, "tid" : "0", "database" : "1", - "cid" : "105040", + "cid" : "105049", "cname" : "products", "data" : { "_key" : "p1", - "_rev" : "_YNEaQy---B" + "_rev" : "_YOn1VSm--D" } }↩ { - "tick" : "105054", + "tick" : "105063", "type" : 2300, "tid" : "0", "database" : "1", - "cid" : "105040", + "cid" : "105049", "cname" : "products", "data" : { "_key" : "p2", "_id" : "_unknown/p2", - "_rev" : "_YNEaQy---D", + "_rev" : "_YOn1VSq--_", "name" : "broken hovercraft", "hp" : 5100 } }↩ { - "tick" : "105055", + "tick" : "105064", "type" : 2001, "database" : "1", - "cid" : "105040", + "cid" : "105049", "cname" : "products", "data" : { - "id" : "105040", + "id" : "105049", "name" : "products", - "cuid" : "h402518FDD080/105040" + "cuid" : "h8B2B671BCFD0/105049" } }↩ { - "tick" : "105058", + "tick" : "105067", "type" : 2300, "tid" : "0", "database" : "1", @@ -215,14 +215,14 @@ x-content-type-options: nosniff "data" : { "_key" : "58", "_id" : "_users/58", - "_rev" : "_YNEaQya--_", + "_rev" : "_YOn1VTC--_", "user" : "root", "source" : "LOCAL", "authData" : { "active" : true, "simple" : { - "hash" : "60a0e3e3fb13484ace3c71fcca2b8a21647ab72cf81fe55bad49f2983b185888", - "salt" : "24a0094b", + "hash" : "ba63424cac2432f605d770a3a2ca1c066f164ee2e022b3f6fa1c41bfa2391f6c", + "salt" : "93971d8d", "method" : "sha256" } }, diff --git a/Documentation/Examples/RestReplicationLoggerStateActive.generated b/Documentation/Examples/RestReplicationLoggerStateActive.generated index 0a3047c3a6..2161a48100 100644 --- a/Documentation/Examples/RestReplicationLoggerStateActive.generated +++ b/Documentation/Examples/RestReplicationLoggerStateActive.generated @@ -7,14 +7,14 @@ x-content-type-options: nosniff { "state" : { "running" : true, - "lastLogTick" : "105058", - "lastUncommittedLogTick" : "105058", - "totalEvents" : 35284, - "time" : "2019-02-15T14:42:59Z" + "lastLogTick" : "105067", + "lastUncommittedLogTick" : "105067", + "totalEvents" : 35288, + "time" : "2019-02-20T10:33:10Z" }, "server" : { "version" : "3.5.0-devel", - "serverId" : "70528077254784", + "serverId" : "153018529730512", "engine" : "mmfiles" }, "clients" : [ ] diff --git a/Documentation/Examples/RestReplicationLoggerTickRanges.generated b/Documentation/Examples/RestReplicationLoggerTickRanges.generated index 37c2adbfdb..1992f352d7 100644 --- a/Documentation/Examples/RestReplicationLoggerTickRanges.generated +++ b/Documentation/Examples/RestReplicationLoggerTickRanges.generated @@ -6,33 +6,33 @@ x-content-type-options: nosniff [ { - "datafile" : "/tmp/arangosh_q2Dy3I/tmp-13879-1274251971/data/journals/logfile-3.db", + "datafile" : "/tmp/arangosh_uprJb4/tmp-27793-56941049/data/journals/logfile-3.db", "status" : "collected", "tickMin" : "5", "tickMax" : "103215" }, { - "datafile" : "/tmp/arangosh_q2Dy3I/tmp-13879-1274251971/data/journals/logfile-85.db", + "datafile" : "/tmp/arangosh_uprJb4/tmp-27793-56941049/data/journals/logfile-85.db", "status" : "collected", "tickMin" : "103229", "tickMax" : "103352" }, { - "datafile" : "/tmp/arangosh_q2Dy3I/tmp-13879-1274251971/data/journals/logfile-2040.db", + "datafile" : "/tmp/arangosh_uprJb4/tmp-27793-56941049/data/journals/logfile-232.db", "status" : "collected", - "tickMin" : "103359", - "tickMax" : "104945" + "tickMin" : "103360", + "tickMax" : "104964" }, { - "datafile" : "/tmp/arangosh_q2Dy3I/tmp-13879-1274251971/data/journals/logfile-103218.db", + "datafile" : "/tmp/arangosh_uprJb4/tmp-27793-56941049/data/journals/logfile-103218.db", "status" : "collected", - "tickMin" : "104952", - "tickMax" : "104969" + "tickMin" : "104968", + "tickMax" : "104980" }, { - "datafile" : "/tmp/arangosh_q2Dy3I/tmp-13879-1274251971/data/journals/logfile-103355.db", + "datafile" : "/tmp/arangosh_uprJb4/tmp-27793-56941049/data/journals/logfile-103355.db", "status" : "open", - "tickMin" : "104977", - "tickMax" : "105058" + "tickMin" : "104986", + "tickMax" : "105067" } ] diff --git a/Documentation/Examples/RestReplicationServerId.generated b/Documentation/Examples/RestReplicationServerId.generated index 7915b178ea..2c0702e7e1 100644 --- a/Documentation/Examples/RestReplicationServerId.generated +++ b/Documentation/Examples/RestReplicationServerId.generated @@ -5,5 +5,5 @@ content-type: application/json; charset=utf-8 x-content-type-options: nosniff { - "serverId" : "70528077254784" + "serverId" : "153018529730512" } diff --git a/Documentation/Examples/RestSimpleAllBatch.generated b/Documentation/Examples/RestSimpleAllBatch.generated index 35335b6c47..6f1a4010ff 100644 --- a/Documentation/Examples/RestSimpleAllBatch.generated +++ b/Documentation/Examples/RestSimpleAllBatch.generated @@ -9,26 +9,26 @@ x-content-type-options: nosniff { "result" : [ { - "_key" : "105098", - "_id" : "products/105098", - "_rev" : "_YNEaR1G--_", - "Hello1" : "World1" - }, - { - "_key" : "105102", - "_id" : "products/105102", - "_rev" : "_YNEaR1G--B", - "Hello2" : "World2" - }, - { - "_key" : "105111", - "_id" : "products/105111", - "_rev" : "_YNEaR1G--H", + "_key" : "105120", + "_id" : "products/105120", + "_rev" : "_YOn1XS6--H", "Hello5" : "World5" + }, + { + "_key" : "105117", + "_id" : "products/105117", + "_rev" : "_YOn1XS6--F", + "Hello4" : "World4" + }, + { + "_key" : "105114", + "_id" : "products/105114", + "_rev" : "_YOn1XS6--D", + "Hello3" : "World3" } ], "hasMore" : true, - "id" : "105114", + "id" : "105123", "count" : 5, "extra" : { "stats" : { @@ -38,7 +38,7 @@ x-content-type-options: nosniff "scannedIndex" : 0, "filtered" : 0, "httpRequests" : 0, - "executionTime" : 0.00013375282287597656, + "executionTime" : 0.00013184547424316406, "peakMemoryUsage" : 17984 }, "warnings" : [ ] diff --git a/Documentation/Examples/RestSimpleAllSkipLimit.generated b/Documentation/Examples/RestSimpleAllSkipLimit.generated index 55956a8c37..3db420d906 100644 --- a/Documentation/Examples/RestSimpleAllSkipLimit.generated +++ b/Documentation/Examples/RestSimpleAllSkipLimit.generated @@ -9,16 +9,16 @@ x-content-type-options: nosniff { "result" : [ { - "_key" : "105131", - "_id" : "products/105131", - "_rev" : "_YNEaR2G--D", - "Hello2" : "World2" + "_key" : "105136", + "_id" : "products/105136", + "_rev" : "_YOn1XT6--_", + "Hello1" : "World1" }, { - "_key" : "105137", - "_id" : "products/105137", - "_rev" : "_YNEaR2K--B", - "Hello4" : "World4" + "_key" : "105149", + "_id" : "products/105149", + "_rev" : "_YOn1XU---D", + "Hello5" : "World5" } ], "hasMore" : false, @@ -32,7 +32,7 @@ x-content-type-options: nosniff "scannedIndex" : 0, "filtered" : 0, "httpRequests" : 0, - "executionTime" : 0.00015664100646972656, + "executionTime" : 0.00012993812561035156, "peakMemoryUsage" : 18328 }, "warnings" : [ ] diff --git a/Documentation/Examples/RestSimpleAny.generated b/Documentation/Examples/RestSimpleAny.generated index 2fd74348fb..5a68ff6d2a 100644 --- a/Documentation/Examples/RestSimpleAny.generated +++ b/Documentation/Examples/RestSimpleAny.generated @@ -10,9 +10,9 @@ x-content-type-options: nosniff { "document" : { - "_key" : "105159", - "_id" : "products/105159", - "_rev" : "_YNEaR3K--_", + "_key" : "105168", + "_id" : "products/105168", + "_rev" : "_YOn1XU6--D", "Hello2" : "World2" }, "error" : false, diff --git a/Documentation/Examples/RestSimpleByExample.generated b/Documentation/Examples/RestSimpleByExample.generated index aacd3a3753..5652d23776 100644 --- a/Documentation/Examples/RestSimpleByExample.generated +++ b/Documentation/Examples/RestSimpleByExample.generated @@ -14,28 +14,9 @@ x-content-type-options: nosniff { "result" : [ { - "_key" : "105187", - "_id" : "products/105187", - "_rev" : "_YNEaR4O--_", - "a" : { - "j" : 1 - }, - "i" : 1 - }, - { - "_key" : "105193", - "_id" : "products/105193", - "_rev" : "_YNEaR4O--D", - "a" : { - "k" : 2, - "j" : 2 - }, - "i" : 1 - }, - { - "_key" : "105183", - "_id" : "products/105183", - "_rev" : "_YNEaR4K--B", + "_key" : "105192", + "_id" : "products/105192", + "_rev" : "_YOn1XW---_", "a" : { "k" : 1, "j" : 1 @@ -43,9 +24,28 @@ x-content-type-options: nosniff "i" : 1 }, { - "_key" : "105190", - "_id" : "products/105190", - "_rev" : "_YNEaR4O--B", + "_key" : "105202", + "_id" : "products/105202", + "_rev" : "_YOn1XW---F", + "a" : { + "k" : 2, + "j" : 2 + }, + "i" : 1 + }, + { + "_key" : "105196", + "_id" : "products/105196", + "_rev" : "_YOn1XW---B", + "a" : { + "j" : 1 + }, + "i" : 1 + }, + { + "_key" : "105199", + "_id" : "products/105199", + "_rev" : "_YOn1XW---D", "i" : 1 } ], @@ -60,7 +60,7 @@ x-content-type-options: nosniff "scannedIndex" : 0, "filtered" : 0, "httpRequests" : 0, - "executionTime" : 0.0002338886260986328, + "executionTime" : 0.0002498626708984375, "peakMemoryUsage" : 68336 }, "warnings" : [ ] diff --git a/Documentation/Examples/RestSimpleByExample2.generated b/Documentation/Examples/RestSimpleByExample2.generated index 68eb34c09d..859c9c5abf 100644 --- a/Documentation/Examples/RestSimpleByExample2.generated +++ b/Documentation/Examples/RestSimpleByExample2.generated @@ -14,9 +14,9 @@ x-content-type-options: nosniff { "result" : [ { - "_key" : "105208", - "_id" : "products/105208", - "_rev" : "_YNEaR5O--B", + "_key" : "105217", + "_id" : "products/105217", + "_rev" : "_YOn1XXC--_", "a" : { "k" : 1, "j" : 1 @@ -24,9 +24,9 @@ x-content-type-options: nosniff "i" : 1 }, { - "_key" : "105212", - "_id" : "products/105212", - "_rev" : "_YNEaR5S--_", + "_key" : "105221", + "_id" : "products/105221", + "_rev" : "_YOn1XXC--B", "a" : { "j" : 1 }, @@ -44,7 +44,7 @@ x-content-type-options: nosniff "scannedIndex" : 0, "filtered" : 2, "httpRequests" : 0, - "executionTime" : 0.00022029876708984375, + "executionTime" : 0.0002300739288330078, "peakMemoryUsage" : 68616 }, "warnings" : [ ] diff --git a/Documentation/Examples/RestSimpleByExample3.generated b/Documentation/Examples/RestSimpleByExample3.generated index 41e3ca7cf6..017497482b 100644 --- a/Documentation/Examples/RestSimpleByExample3.generated +++ b/Documentation/Examples/RestSimpleByExample3.generated @@ -16,9 +16,9 @@ x-content-type-options: nosniff { "result" : [ { - "_key" : "105237", - "_id" : "products/105237", - "_rev" : "_YNEaR6W--B", + "_key" : "105246", + "_id" : "products/105246", + "_rev" : "_YOn1XYC--D", "a" : { "j" : 1 }, @@ -36,7 +36,7 @@ x-content-type-options: nosniff "scannedIndex" : 0, "filtered" : 3, "httpRequests" : 0, - "executionTime" : 0.00020432472229003906, + "executionTime" : 0.00022554397583007812, "peakMemoryUsage" : 68896 }, "warnings" : [ ] diff --git a/Documentation/Examples/RestSimpleFirstExample.generated b/Documentation/Examples/RestSimpleFirstExample.generated index 5a11f76c7d..c269e6ddf6 100644 --- a/Documentation/Examples/RestSimpleFirstExample.generated +++ b/Documentation/Examples/RestSimpleFirstExample.generated @@ -13,9 +13,9 @@ x-content-type-options: nosniff { "document" : { - "_key" : "105268", - "_id" : "products/105268", - "_rev" : "_YNEaR7i--_", + "_key" : "105277", + "_id" : "products/105277", + "_rev" : "_YOn1XZG--D", "a" : { "k" : 2, "j" : 2 diff --git a/Documentation/Examples/RestSimpleFulltext.generated b/Documentation/Examples/RestSimpleFulltext.generated index f7be17578d..5d901eb2f1 100644 --- a/Documentation/Examples/RestSimpleFulltext.generated +++ b/Documentation/Examples/RestSimpleFulltext.generated @@ -13,15 +13,15 @@ x-content-type-options: nosniff { "result" : [ { - "_key" : "105308", - "_id" : "products/105308", - "_rev" : "_YNEaR92--B", + "_key" : "105317", + "_id" : "products/105317", + "_rev" : "_YOn1XbK--_", "text" : "this text contains word" }, { - "_key" : "105312", - "_id" : "products/105312", - "_rev" : "_YNEaR92--D", + "_key" : "105321", + "_id" : "products/105321", + "_rev" : "_YOn1XbK--B", "text" : "this text also has a word" } ], diff --git a/Documentation/Examples/RestSimpleLookup.generated b/Documentation/Examples/RestSimpleLookup.generated index 425f5c376d..98cc9bfaec 100644 --- a/Documentation/Examples/RestSimpleLookup.generated +++ b/Documentation/Examples/RestSimpleLookup.generated @@ -25,61 +25,61 @@ x-content-type-options: nosniff { "_key" : "test0", "_id" : "test/test0", - "_rev" : "_YNEaSAG--B", + "_rev" : "_YOn1XdO--B", "value" : 0 }, { "_key" : "test1", "_id" : "test/test1", - "_rev" : "_YNEaSAK--_", + "_rev" : "_YOn1XdS--_", "value" : 1 }, { "_key" : "test2", "_id" : "test/test2", - "_rev" : "_YNEaSAK--B", + "_rev" : "_YOn1XdS--B", "value" : 2 }, { "_key" : "test3", "_id" : "test/test3", - "_rev" : "_YNEaSAK--D", + "_rev" : "_YOn1XdS--D", "value" : 3 }, { "_key" : "test4", "_id" : "test/test4", - "_rev" : "_YNEaSAK--F", + "_rev" : "_YOn1XdS--F", "value" : 4 }, { "_key" : "test5", "_id" : "test/test5", - "_rev" : "_YNEaSAK--H", + "_rev" : "_YOn1XdW--_", "value" : 5 }, { "_key" : "test6", "_id" : "test/test6", - "_rev" : "_YNEaSAK--J", + "_rev" : "_YOn1XdW--B", "value" : 6 }, { "_key" : "test7", "_id" : "test/test7", - "_rev" : "_YNEaSAK--L", + "_rev" : "_YOn1XdW--D", "value" : 7 }, { "_key" : "test8", "_id" : "test/test8", - "_rev" : "_YNEaSAO--_", + "_rev" : "_YOn1XdW--F", "value" : 8 }, { "_key" : "test9", "_id" : "test/test9", - "_rev" : "_YNEaSAO--B", + "_rev" : "_YOn1XdW--H", "value" : 9 } ], diff --git a/Documentation/Examples/RestSimpleNear.generated b/Documentation/Examples/RestSimpleNear.generated index b7c22019d0..7e9a3e123d 100644 --- a/Documentation/Examples/RestSimpleNear.generated +++ b/Documentation/Examples/RestSimpleNear.generated @@ -15,9 +15,9 @@ x-content-type-options: nosniff { "result" : [ { - "_key" : "105417", - "_id" : "products/105417", - "_rev" : "_YNEaSDS--D", + "_key" : "105426", + "_id" : "products/105426", + "_rev" : "_YOn1XgW--D", "name" : "Name/-0.002/", "loc" : [ -0.002, @@ -25,9 +25,9 @@ x-content-type-options: nosniff ] }, { - "_key" : "105423", - "_id" : "products/105423", - "_rev" : "_YNEaSDW--_", + "_key" : "105432", + "_id" : "products/105432", + "_rev" : "_YOn1XgW--H", "name" : "Name/0.002/", "loc" : [ 0.002, diff --git a/Documentation/Examples/RestSimpleNearDistance.generated b/Documentation/Examples/RestSimpleNearDistance.generated index 8118def8ad..34ae489448 100644 --- a/Documentation/Examples/RestSimpleNearDistance.generated +++ b/Documentation/Examples/RestSimpleNearDistance.generated @@ -16,9 +16,9 @@ x-content-type-options: nosniff { "result" : [ { - "_id" : "products/105468", - "_key" : "105468", - "_rev" : "_YNEaSFW--D", + "_id" : "products/105477", + "_key" : "105477", + "_rev" : "_YOn1Xie--_", "loc" : [ -0.002, 0 @@ -27,9 +27,9 @@ x-content-type-options: nosniff "distance" : 222.3898532891175 }, { - "_id" : "products/105474", - "_key" : "105474", - "_rev" : "_YNEaSFW--H", + "_id" : "products/105483", + "_key" : "105483", + "_rev" : "_YOn1Xie--D", "loc" : [ 0.002, 0 @@ -38,9 +38,9 @@ x-content-type-options: nosniff "distance" : 222.3898532891175 }, { - "_id" : "products/105477", - "_key" : "105477", - "_rev" : "_YNEaSFa--_", + "_id" : "products/105486", + "_key" : "105486", + "_rev" : "_YOn1Xie--F", "loc" : [ 0.004, 0 diff --git a/Documentation/Examples/RestSimpleRange.generated b/Documentation/Examples/RestSimpleRange.generated index dc449e0d9c..0ead4b6ada 100644 --- a/Documentation/Examples/RestSimpleRange.generated +++ b/Documentation/Examples/RestSimpleRange.generated @@ -14,15 +14,15 @@ x-content-type-options: nosniff { "result" : [ { - "_key" : "105510", - "_id" : "products/105510", - "_rev" : "_YNEaSHa--_", + "_key" : "105519", + "_id" : "products/105519", + "_rev" : "_YOn1Xke--B", "i" : 2 }, { - "_key" : "105513", - "_id" : "products/105513", - "_rev" : "_YNEaSHa--B", + "_key" : "105522", + "_id" : "products/105522", + "_rev" : "_YOn1Xke--D", "i" : 3 } ], diff --git a/Documentation/Examples/RestSimpleWithin.generated b/Documentation/Examples/RestSimpleWithin.generated index 2af719ad4c..1845fc91e2 100644 --- a/Documentation/Examples/RestSimpleWithin.generated +++ b/Documentation/Examples/RestSimpleWithin.generated @@ -16,9 +16,9 @@ x-content-type-options: nosniff { "result" : [ { - "_key" : "105830", - "_id" : "products/105830", - "_rev" : "_YNEaSW---D", + "_key" : "105839", + "_id" : "products/105839", + "_rev" : "_YOn1Xx6--D", "name" : "Name/-0.002/", "loc" : [ -0.002, @@ -26,9 +26,9 @@ x-content-type-options: nosniff ] }, { - "_key" : "105836", - "_id" : "products/105836", - "_rev" : "_YNEaSW---H", + "_key" : "105845", + "_id" : "products/105845", + "_rev" : "_YOn1Xy---_", "name" : "Name/0.002/", "loc" : [ 0.002, diff --git a/Documentation/Examples/RestSimpleWithinDistance.generated b/Documentation/Examples/RestSimpleWithinDistance.generated index b7c32f5a3e..4352970ef3 100644 --- a/Documentation/Examples/RestSimpleWithinDistance.generated +++ b/Documentation/Examples/RestSimpleWithinDistance.generated @@ -17,9 +17,9 @@ x-content-type-options: nosniff { "result" : [ { - "_id" : "products/105881", - "_key" : "105881", - "_rev" : "_YNEaSYG--B", + "_id" : "products/105890", + "_key" : "105890", + "_rev" : "_YOn1X1G--H", "loc" : [ -0.002, 0 @@ -28,9 +28,9 @@ x-content-type-options: nosniff "distance" : 222.3898532891175 }, { - "_id" : "products/105887", - "_key" : "105887", - "_rev" : "_YNEaSYG--F", + "_id" : "products/105896", + "_key" : "105896", + "_rev" : "_YOn1X1K--B", "loc" : [ 0.002, 0 @@ -39,9 +39,9 @@ x-content-type-options: nosniff "distance" : 222.3898532891175 }, { - "_id" : "products/105890", - "_key" : "105890", - "_rev" : "_YNEaSYG--H", + "_id" : "products/105899", + "_key" : "105899", + "_rev" : "_YOn1X1K--D", "loc" : [ 0.004, 0 diff --git a/Documentation/Examples/RestSimpleWithinRectangle.generated b/Documentation/Examples/RestSimpleWithinRectangle.generated index 8acd4817ca..bb021d617c 100644 --- a/Documentation/Examples/RestSimpleWithinRectangle.generated +++ b/Documentation/Examples/RestSimpleWithinRectangle.generated @@ -17,9 +17,9 @@ x-content-type-options: nosniff { "result" : [ { - "_key" : "105947", - "_id" : "products/105947", - "_rev" : "_YNEaSaK--J", + "_key" : "105956", + "_id" : "products/105956", + "_rev" : "_YOn1X3O--J", "name" : "Name/0.008/", "loc" : [ 0.008, @@ -27,9 +27,9 @@ x-content-type-options: nosniff ] }, { - "_key" : "105944", - "_id" : "products/105944", - "_rev" : "_YNEaSaK--H", + "_key" : "105953", + "_id" : "products/105953", + "_rev" : "_YOn1X3O--H", "name" : "Name/0.006/", "loc" : [ 0.006, diff --git a/Documentation/Examples/RestTasksCreate.generated b/Documentation/Examples/RestTasksCreate.generated index e2c4de93bc..395cb340a7 100644 --- a/Documentation/Examples/RestTasksCreate.generated +++ b/Documentation/Examples/RestTasksCreate.generated @@ -15,14 +15,14 @@ content-type: application/json; charset=utf-8 x-content-type-options: nosniff { - "id" : "105960", + "id" : "105969", "name" : "SampleTask", - "created" : 1550241780.1720579, + "created" : 1550658791.3249488, "type" : "periodic", "period" : 2, "offset" : 0, "command" : "(function (params) { (function(params) { require('@arangodb').print(params); })(params) } )(params);", "database" : "_system" } -shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/tasks/105960 +shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/tasks/105969 diff --git a/Documentation/Examples/RestTasksListAll.generated b/Documentation/Examples/RestTasksListAll.generated index 37a3811452..ee58744184 100644 --- a/Documentation/Examples/RestTasksListAll.generated +++ b/Documentation/Examples/RestTasksListAll.generated @@ -8,7 +8,7 @@ x-content-type-options: nosniff { "id" : "55", "name" : "user-defined task", - "created" : 1550241755.3885667, + "created" : 1550658763.4988394, "type" : "periodic", "period" : 1, "offset" : 0.000001, diff --git a/Documentation/Examples/RestTasksListOne.generated b/Documentation/Examples/RestTasksListOne.generated index ff7c4e0786..9ff4aba0a2 100644 --- a/Documentation/Examples/RestTasksListOne.generated +++ b/Documentation/Examples/RestTasksListOne.generated @@ -11,7 +11,7 @@ x-content-type-options: nosniff { "id" : "testTask", "name" : "user-defined task", - "created" : 1550241780.1837342, + "created" : 1550658791.3349102, "type" : "timed", "offset" : 10000, "command" : "(function (params) { console.log('Hello from task!'); } )(params);", diff --git a/Documentation/Examples/RestTasksPutWithId.generated b/Documentation/Examples/RestTasksPutWithId.generated index 2b1b83399f..eab255045e 100644 --- a/Documentation/Examples/RestTasksPutWithId.generated +++ b/Documentation/Examples/RestTasksPutWithId.generated @@ -18,7 +18,7 @@ x-content-type-options: nosniff { "id" : "sampleTask", "name" : "SampleTask", - "created" : 1550241780.1868074, + "created" : 1550658791.336974, "type" : "periodic", "period" : 2, "offset" : 0, diff --git a/Documentation/Examples/RestTransactionAbortInternal.generated b/Documentation/Examples/RestTransactionAbortInternal.generated index 17c687a7f5..9145505bab 100644 --- a/Documentation/Examples/RestTransactionAbortInternal.generated +++ b/Documentation/Examples/RestTransactionAbortInternal.generated @@ -13,7 +13,7 @@ x-content-type-options: nosniff { "error" : true, - "errorMessage" : "unique constraint violated - in index 0 of type primary over '_key'; conflicting key: abc", + "errorMessage" : " - in index 0 of type primary over '_key'; conflicting key: abc", "code" : 409, "errorNum" : 1210 } diff --git a/Documentation/Examples/RestTraversalAny.generated b/Documentation/Examples/RestTraversalAny.generated index fc82b6563d..289a753cbe 100644 --- a/Documentation/Examples/RestTraversalAny.generated +++ b/Documentation/Examples/RestTraversalAny.generated @@ -21,37 +21,37 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSim--_", + "_rev" : "_YOn1Y_G--_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaSim--B", + "_rev" : "_YOn1Y_G--B", "name" : "Bob" }, { "_key" : "charlie", "_id" : "persons/charlie", - "_rev" : "_YNEaSim--D", + "_rev" : "_YOn1Y_G--D", "name" : "Charlie" }, { "_key" : "dave", "_id" : "persons/dave", - "_rev" : "_YNEaSim--F", + "_rev" : "_YOn1Y_G--F", "name" : "Dave" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaSim--H", + "_rev" : "_YOn1Y_G--H", "name" : "Eve" }, { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSim--_", + "_rev" : "_YOn1Y_G--_", "name" : "Alice" } ], @@ -62,7 +62,7 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSim--_", + "_rev" : "_YOn1Y_G--_", "name" : "Alice" } ] @@ -70,11 +70,11 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106087", - "_id" : "knows/106087", + "_key" : "106096", + "_id" : "knows/106096", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_YNEaSiq--_", + "_rev" : "_YOn1Y_K--_", "vertex" : "alice" } ], @@ -82,13 +82,13 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSim--_", + "_rev" : "_YOn1Y_G--_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaSim--B", + "_rev" : "_YOn1Y_G--B", "name" : "Bob" } ] @@ -96,19 +96,19 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106087", - "_id" : "knows/106087", + "_key" : "106096", + "_id" : "knows/106096", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_YNEaSiq--_", + "_rev" : "_YOn1Y_K--_", "vertex" : "alice" }, { - "_key" : "106091", - "_id" : "knows/106091", + "_key" : "106100", + "_id" : "knows/106100", "_from" : "persons/bob", "_to" : "persons/charlie", - "_rev" : "_YNEaSiq--B", + "_rev" : "_YOn1Y_K--B", "vertex" : "bob" } ], @@ -116,19 +116,19 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSim--_", + "_rev" : "_YOn1Y_G--_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaSim--B", + "_rev" : "_YOn1Y_G--B", "name" : "Bob" }, { "_key" : "charlie", "_id" : "persons/charlie", - "_rev" : "_YNEaSim--D", + "_rev" : "_YOn1Y_G--D", "name" : "Charlie" } ] @@ -136,19 +136,19 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106087", - "_id" : "knows/106087", + "_key" : "106096", + "_id" : "knows/106096", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_YNEaSiq--_", + "_rev" : "_YOn1Y_K--_", "vertex" : "alice" }, { - "_key" : "106094", - "_id" : "knows/106094", + "_key" : "106103", + "_id" : "knows/106103", "_from" : "persons/bob", "_to" : "persons/dave", - "_rev" : "_YNEaSiq--D", + "_rev" : "_YOn1Y_K--D", "vertex" : "bob" } ], @@ -156,19 +156,19 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSim--_", + "_rev" : "_YOn1Y_G--_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaSim--B", + "_rev" : "_YOn1Y_G--B", "name" : "Bob" }, { "_key" : "dave", "_id" : "persons/dave", - "_rev" : "_YNEaSim--F", + "_rev" : "_YOn1Y_G--F", "name" : "Dave" } ] @@ -176,19 +176,19 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106087", - "_id" : "knows/106087", + "_key" : "106096", + "_id" : "knows/106096", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_YNEaSiq--_", + "_rev" : "_YOn1Y_K--_", "vertex" : "alice" }, { - "_key" : "106100", - "_id" : "knows/106100", + "_key" : "106109", + "_id" : "knows/106109", "_from" : "persons/eve", "_to" : "persons/bob", - "_rev" : "_YNEaSiq--H", + "_rev" : "_YOn1Y_K--H", "vertex" : "eve" } ], @@ -196,19 +196,19 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSim--_", + "_rev" : "_YOn1Y_G--_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaSim--B", + "_rev" : "_YOn1Y_G--B", "name" : "Bob" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaSim--H", + "_rev" : "_YOn1Y_G--H", "name" : "Eve" } ] @@ -216,27 +216,27 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106087", - "_id" : "knows/106087", + "_key" : "106096", + "_id" : "knows/106096", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_YNEaSiq--_", + "_rev" : "_YOn1Y_K--_", "vertex" : "alice" }, { - "_key" : "106100", - "_id" : "knows/106100", + "_key" : "106109", + "_id" : "knows/106109", "_from" : "persons/eve", "_to" : "persons/bob", - "_rev" : "_YNEaSiq--H", + "_rev" : "_YOn1Y_K--H", "vertex" : "eve" }, { - "_key" : "106097", - "_id" : "knows/106097", + "_key" : "106106", + "_id" : "knows/106106", "_from" : "persons/eve", "_to" : "persons/alice", - "_rev" : "_YNEaSiq--F", + "_rev" : "_YOn1Y_K--F", "vertex" : "eve" } ], @@ -244,25 +244,25 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSim--_", + "_rev" : "_YOn1Y_G--_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaSim--B", + "_rev" : "_YOn1Y_G--B", "name" : "Bob" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaSim--H", + "_rev" : "_YOn1Y_G--H", "name" : "Eve" }, { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSim--_", + "_rev" : "_YOn1Y_G--_", "name" : "Alice" } ] diff --git a/Documentation/Examples/RestTraversalBackwardItemOrder.generated b/Documentation/Examples/RestTraversalBackwardItemOrder.generated index 4e616d54da..ef8e0eba6d 100644 --- a/Documentation/Examples/RestTraversalBackwardItemOrder.generated +++ b/Documentation/Examples/RestTraversalBackwardItemOrder.generated @@ -18,67 +18,67 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSlW--_", + "_rev" : "_YOn1YBq--_", "name" : "Alice" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaSla--B", + "_rev" : "_YOn1YBu--C", "name" : "Eve" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaSlW--B", + "_rev" : "_YOn1YBq--B", "name" : "Bob" }, { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSlW--_", + "_rev" : "_YOn1YBq--_", "name" : "Alice" }, { "_key" : "dave", "_id" : "persons/dave", - "_rev" : "_YNEaSla--_", + "_rev" : "_YOn1YBu--A", "name" : "Dave" }, { "_key" : "charlie", "_id" : "persons/charlie", - "_rev" : "_YNEaSlW--D", + "_rev" : "_YOn1YBu---", "name" : "Charlie" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaSlW--B", + "_rev" : "_YOn1YBq--B", "name" : "Bob" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaSla--B", + "_rev" : "_YOn1YBu--C", "name" : "Eve" }, { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSlW--_", + "_rev" : "_YOn1YBq--_", "name" : "Alice" }, { "_key" : "dave", "_id" : "persons/dave", - "_rev" : "_YNEaSla--_", + "_rev" : "_YOn1YBu--A", "name" : "Dave" }, { "_key" : "charlie", "_id" : "persons/charlie", - "_rev" : "_YNEaSlW--D", + "_rev" : "_YOn1YBu---", "name" : "Charlie" } ], @@ -89,7 +89,7 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSlW--_", + "_rev" : "_YOn1YBq--_", "name" : "Alice" } ] @@ -97,11 +97,11 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106181", - "_id" : "knows/106181", + "_key" : "106190", + "_id" : "knows/106190", "_from" : "persons/eve", "_to" : "persons/alice", - "_rev" : "_YNEaSla--J", + "_rev" : "_YOn1YBy--B", "vertex" : "eve" } ], @@ -109,13 +109,13 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSlW--_", + "_rev" : "_YOn1YBq--_", "name" : "Alice" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaSla--B", + "_rev" : "_YOn1YBu--C", "name" : "Eve" } ] @@ -123,19 +123,19 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106181", - "_id" : "knows/106181", + "_key" : "106190", + "_id" : "knows/106190", "_from" : "persons/eve", "_to" : "persons/alice", - "_rev" : "_YNEaSla--J", + "_rev" : "_YOn1YBy--B", "vertex" : "eve" }, { - "_key" : "106184", - "_id" : "knows/106184", + "_key" : "106193", + "_id" : "knows/106193", "_from" : "persons/eve", "_to" : "persons/bob", - "_rev" : "_YNEaSla--L", + "_rev" : "_YOn1YBy--D", "vertex" : "eve" } ], @@ -143,19 +143,19 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSlW--_", + "_rev" : "_YOn1YBq--_", "name" : "Alice" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaSla--B", + "_rev" : "_YOn1YBu--C", "name" : "Eve" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaSlW--B", + "_rev" : "_YOn1YBq--B", "name" : "Bob" } ] @@ -163,27 +163,27 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106181", - "_id" : "knows/106181", + "_key" : "106190", + "_id" : "knows/106190", "_from" : "persons/eve", "_to" : "persons/alice", - "_rev" : "_YNEaSla--J", + "_rev" : "_YOn1YBy--B", "vertex" : "eve" }, { - "_key" : "106184", - "_id" : "knows/106184", + "_key" : "106193", + "_id" : "knows/106193", "_from" : "persons/eve", "_to" : "persons/bob", - "_rev" : "_YNEaSla--L", + "_rev" : "_YOn1YBy--D", "vertex" : "eve" }, { - "_key" : "106171", - "_id" : "knows/106171", + "_key" : "106180", + "_id" : "knows/106180", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_YNEaSla--D", + "_rev" : "_YOn1YBu--E", "vertex" : "alice" } ], @@ -191,25 +191,25 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSlW--_", + "_rev" : "_YOn1YBq--_", "name" : "Alice" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaSla--B", + "_rev" : "_YOn1YBu--C", "name" : "Eve" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaSlW--B", + "_rev" : "_YOn1YBq--B", "name" : "Bob" }, { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSlW--_", + "_rev" : "_YOn1YBq--_", "name" : "Alice" } ] @@ -217,27 +217,27 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106181", - "_id" : "knows/106181", + "_key" : "106190", + "_id" : "knows/106190", "_from" : "persons/eve", "_to" : "persons/alice", - "_rev" : "_YNEaSla--J", + "_rev" : "_YOn1YBy--B", "vertex" : "eve" }, { - "_key" : "106184", - "_id" : "knows/106184", + "_key" : "106193", + "_id" : "knows/106193", "_from" : "persons/eve", "_to" : "persons/bob", - "_rev" : "_YNEaSla--L", + "_rev" : "_YOn1YBy--D", "vertex" : "eve" }, { - "_key" : "106178", - "_id" : "knows/106178", + "_key" : "106187", + "_id" : "knows/106187", "_from" : "persons/bob", "_to" : "persons/dave", - "_rev" : "_YNEaSla--H", + "_rev" : "_YOn1YBy--_", "vertex" : "bob" } ], @@ -245,25 +245,25 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSlW--_", + "_rev" : "_YOn1YBq--_", "name" : "Alice" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaSla--B", + "_rev" : "_YOn1YBu--C", "name" : "Eve" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaSlW--B", + "_rev" : "_YOn1YBq--B", "name" : "Bob" }, { "_key" : "dave", "_id" : "persons/dave", - "_rev" : "_YNEaSla--_", + "_rev" : "_YOn1YBu--A", "name" : "Dave" } ] @@ -271,27 +271,27 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106181", - "_id" : "knows/106181", + "_key" : "106190", + "_id" : "knows/106190", "_from" : "persons/eve", "_to" : "persons/alice", - "_rev" : "_YNEaSla--J", + "_rev" : "_YOn1YBy--B", + "vertex" : "eve" + }, + { + "_key" : "106193", + "_id" : "knows/106193", + "_from" : "persons/eve", + "_to" : "persons/bob", + "_rev" : "_YOn1YBy--D", "vertex" : "eve" }, { "_key" : "106184", "_id" : "knows/106184", - "_from" : "persons/eve", - "_to" : "persons/bob", - "_rev" : "_YNEaSla--L", - "vertex" : "eve" - }, - { - "_key" : "106175", - "_id" : "knows/106175", "_from" : "persons/bob", "_to" : "persons/charlie", - "_rev" : "_YNEaSla--F", + "_rev" : "_YOn1YBu--G", "vertex" : "bob" } ], @@ -299,25 +299,25 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSlW--_", + "_rev" : "_YOn1YBq--_", "name" : "Alice" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaSla--B", + "_rev" : "_YOn1YBu--C", "name" : "Eve" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaSlW--B", + "_rev" : "_YOn1YBq--B", "name" : "Bob" }, { "_key" : "charlie", "_id" : "persons/charlie", - "_rev" : "_YNEaSlW--D", + "_rev" : "_YOn1YBu---", "name" : "Charlie" } ] @@ -325,11 +325,11 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106171", - "_id" : "knows/106171", + "_key" : "106180", + "_id" : "knows/106180", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_YNEaSla--D", + "_rev" : "_YOn1YBu--E", "vertex" : "alice" } ], @@ -337,13 +337,13 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSlW--_", + "_rev" : "_YOn1YBq--_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaSlW--B", + "_rev" : "_YOn1YBq--B", "name" : "Bob" } ] @@ -351,19 +351,19 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106171", - "_id" : "knows/106171", + "_key" : "106180", + "_id" : "knows/106180", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_YNEaSla--D", + "_rev" : "_YOn1YBu--E", "vertex" : "alice" }, { - "_key" : "106184", - "_id" : "knows/106184", + "_key" : "106193", + "_id" : "knows/106193", "_from" : "persons/eve", "_to" : "persons/bob", - "_rev" : "_YNEaSla--L", + "_rev" : "_YOn1YBy--D", "vertex" : "eve" } ], @@ -371,19 +371,19 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSlW--_", + "_rev" : "_YOn1YBq--_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaSlW--B", + "_rev" : "_YOn1YBq--B", "name" : "Bob" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaSla--B", + "_rev" : "_YOn1YBu--C", "name" : "Eve" } ] @@ -391,27 +391,27 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106171", - "_id" : "knows/106171", + "_key" : "106180", + "_id" : "knows/106180", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_YNEaSla--D", + "_rev" : "_YOn1YBu--E", "vertex" : "alice" }, { - "_key" : "106184", - "_id" : "knows/106184", + "_key" : "106193", + "_id" : "knows/106193", "_from" : "persons/eve", "_to" : "persons/bob", - "_rev" : "_YNEaSla--L", + "_rev" : "_YOn1YBy--D", "vertex" : "eve" }, { - "_key" : "106181", - "_id" : "knows/106181", + "_key" : "106190", + "_id" : "knows/106190", "_from" : "persons/eve", "_to" : "persons/alice", - "_rev" : "_YNEaSla--J", + "_rev" : "_YOn1YBy--B", "vertex" : "eve" } ], @@ -419,25 +419,25 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSlW--_", + "_rev" : "_YOn1YBq--_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaSlW--B", + "_rev" : "_YOn1YBq--B", "name" : "Bob" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaSla--B", + "_rev" : "_YOn1YBu--C", "name" : "Eve" }, { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSlW--_", + "_rev" : "_YOn1YBq--_", "name" : "Alice" } ] @@ -445,19 +445,19 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106171", - "_id" : "knows/106171", + "_key" : "106180", + "_id" : "knows/106180", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_YNEaSla--D", + "_rev" : "_YOn1YBu--E", "vertex" : "alice" }, { - "_key" : "106178", - "_id" : "knows/106178", + "_key" : "106187", + "_id" : "knows/106187", "_from" : "persons/bob", "_to" : "persons/dave", - "_rev" : "_YNEaSla--H", + "_rev" : "_YOn1YBy--_", "vertex" : "bob" } ], @@ -465,19 +465,19 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSlW--_", + "_rev" : "_YOn1YBq--_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaSlW--B", + "_rev" : "_YOn1YBq--B", "name" : "Bob" }, { "_key" : "dave", "_id" : "persons/dave", - "_rev" : "_YNEaSla--_", + "_rev" : "_YOn1YBu--A", "name" : "Dave" } ] @@ -485,19 +485,19 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106171", - "_id" : "knows/106171", + "_key" : "106180", + "_id" : "knows/106180", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_YNEaSla--D", + "_rev" : "_YOn1YBu--E", "vertex" : "alice" }, { - "_key" : "106175", - "_id" : "knows/106175", + "_key" : "106184", + "_id" : "knows/106184", "_from" : "persons/bob", "_to" : "persons/charlie", - "_rev" : "_YNEaSla--F", + "_rev" : "_YOn1YBu--G", "vertex" : "bob" } ], @@ -505,19 +505,19 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSlW--_", + "_rev" : "_YOn1YBq--_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaSlW--B", + "_rev" : "_YOn1YBq--B", "name" : "Bob" }, { "_key" : "charlie", "_id" : "persons/charlie", - "_rev" : "_YNEaSlW--D", + "_rev" : "_YOn1YBu---", "name" : "Charlie" } ] diff --git a/Documentation/Examples/RestTraversalDepthFirst.generated b/Documentation/Examples/RestTraversalDepthFirst.generated index a1f9431606..6bdb723c8f 100644 --- a/Documentation/Examples/RestTraversalDepthFirst.generated +++ b/Documentation/Examples/RestTraversalDepthFirst.generated @@ -18,67 +18,67 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSoS--_", + "_rev" : "_YOn1YEe--_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaSoS--B", + "_rev" : "_YOn1YEe--B", "name" : "Bob" }, { "_key" : "charlie", "_id" : "persons/charlie", - "_rev" : "_YNEaSoW--_", + "_rev" : "_YOn1YEe--D", "name" : "Charlie" }, { "_key" : "dave", "_id" : "persons/dave", - "_rev" : "_YNEaSoW--B", + "_rev" : "_YOn1YEe--F", "name" : "Dave" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaSoW--D", + "_rev" : "_YOn1YEi--_", "name" : "Eve" }, { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSoS--_", + "_rev" : "_YOn1YEe--_", "name" : "Alice" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaSoW--D", + "_rev" : "_YOn1YEi--_", "name" : "Eve" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaSoS--B", + "_rev" : "_YOn1YEe--B", "name" : "Bob" }, { "_key" : "charlie", "_id" : "persons/charlie", - "_rev" : "_YNEaSoW--_", + "_rev" : "_YOn1YEe--D", "name" : "Charlie" }, { "_key" : "dave", "_id" : "persons/dave", - "_rev" : "_YNEaSoW--B", + "_rev" : "_YOn1YEe--F", "name" : "Dave" }, { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSoS--_", + "_rev" : "_YOn1YEe--_", "name" : "Alice" } ], @@ -89,7 +89,7 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSoS--_", + "_rev" : "_YOn1YEe--_", "name" : "Alice" } ] @@ -97,11 +97,11 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106270", - "_id" : "knows/106270", + "_key" : "106279", + "_id" : "knows/106279", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_YNEaSoW--F", + "_rev" : "_YOn1YEi--B", "vertex" : "alice" } ], @@ -109,13 +109,13 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSoS--_", + "_rev" : "_YOn1YEe--_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaSoS--B", + "_rev" : "_YOn1YEe--B", "name" : "Bob" } ] @@ -123,19 +123,19 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106270", - "_id" : "knows/106270", + "_key" : "106279", + "_id" : "knows/106279", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_YNEaSoW--F", + "_rev" : "_YOn1YEi--B", "vertex" : "alice" }, { - "_key" : "106274", - "_id" : "knows/106274", + "_key" : "106283", + "_id" : "knows/106283", "_from" : "persons/bob", "_to" : "persons/charlie", - "_rev" : "_YNEaSoW--H", + "_rev" : "_YOn1YEi--D", "vertex" : "bob" } ], @@ -143,19 +143,19 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSoS--_", + "_rev" : "_YOn1YEe--_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaSoS--B", + "_rev" : "_YOn1YEe--B", "name" : "Bob" }, { "_key" : "charlie", "_id" : "persons/charlie", - "_rev" : "_YNEaSoW--_", + "_rev" : "_YOn1YEe--D", "name" : "Charlie" } ] @@ -163,19 +163,19 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106270", - "_id" : "knows/106270", + "_key" : "106279", + "_id" : "knows/106279", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_YNEaSoW--F", + "_rev" : "_YOn1YEi--B", "vertex" : "alice" }, { - "_key" : "106277", - "_id" : "knows/106277", + "_key" : "106286", + "_id" : "knows/106286", "_from" : "persons/bob", "_to" : "persons/dave", - "_rev" : "_YNEaSoW--J", + "_rev" : "_YOn1YEi--F", "vertex" : "bob" } ], @@ -183,19 +183,19 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSoS--_", + "_rev" : "_YOn1YEe--_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaSoS--B", + "_rev" : "_YOn1YEe--B", "name" : "Bob" }, { "_key" : "dave", "_id" : "persons/dave", - "_rev" : "_YNEaSoW--B", + "_rev" : "_YOn1YEe--F", "name" : "Dave" } ] @@ -203,19 +203,19 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106270", - "_id" : "knows/106270", + "_key" : "106279", + "_id" : "knows/106279", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_YNEaSoW--F", + "_rev" : "_YOn1YEi--B", "vertex" : "alice" }, { - "_key" : "106283", - "_id" : "knows/106283", + "_key" : "106292", + "_id" : "knows/106292", "_from" : "persons/eve", "_to" : "persons/bob", - "_rev" : "_YNEaSoa--_", + "_rev" : "_YOn1YEi--J", "vertex" : "eve" } ], @@ -223,19 +223,19 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSoS--_", + "_rev" : "_YOn1YEe--_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaSoS--B", + "_rev" : "_YOn1YEe--B", "name" : "Bob" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaSoW--D", + "_rev" : "_YOn1YEi--_", "name" : "Eve" } ] @@ -243,27 +243,27 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106270", - "_id" : "knows/106270", + "_key" : "106279", + "_id" : "knows/106279", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_YNEaSoW--F", + "_rev" : "_YOn1YEi--B", "vertex" : "alice" }, { - "_key" : "106283", - "_id" : "knows/106283", + "_key" : "106292", + "_id" : "knows/106292", "_from" : "persons/eve", "_to" : "persons/bob", - "_rev" : "_YNEaSoa--_", + "_rev" : "_YOn1YEi--J", "vertex" : "eve" }, { - "_key" : "106280", - "_id" : "knows/106280", + "_key" : "106289", + "_id" : "knows/106289", "_from" : "persons/eve", "_to" : "persons/alice", - "_rev" : "_YNEaSoW--L", + "_rev" : "_YOn1YEi--H", "vertex" : "eve" } ], @@ -271,25 +271,25 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSoS--_", + "_rev" : "_YOn1YEe--_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaSoS--B", + "_rev" : "_YOn1YEe--B", "name" : "Bob" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaSoW--D", + "_rev" : "_YOn1YEi--_", "name" : "Eve" }, { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSoS--_", + "_rev" : "_YOn1YEe--_", "name" : "Alice" } ] @@ -297,11 +297,11 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106280", - "_id" : "knows/106280", + "_key" : "106289", + "_id" : "knows/106289", "_from" : "persons/eve", "_to" : "persons/alice", - "_rev" : "_YNEaSoW--L", + "_rev" : "_YOn1YEi--H", "vertex" : "eve" } ], @@ -309,13 +309,13 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSoS--_", + "_rev" : "_YOn1YEe--_", "name" : "Alice" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaSoW--D", + "_rev" : "_YOn1YEi--_", "name" : "Eve" } ] @@ -323,19 +323,19 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106280", - "_id" : "knows/106280", + "_key" : "106289", + "_id" : "knows/106289", "_from" : "persons/eve", "_to" : "persons/alice", - "_rev" : "_YNEaSoW--L", + "_rev" : "_YOn1YEi--H", "vertex" : "eve" }, { - "_key" : "106283", - "_id" : "knows/106283", + "_key" : "106292", + "_id" : "knows/106292", "_from" : "persons/eve", "_to" : "persons/bob", - "_rev" : "_YNEaSoa--_", + "_rev" : "_YOn1YEi--J", "vertex" : "eve" } ], @@ -343,19 +343,19 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSoS--_", + "_rev" : "_YOn1YEe--_", "name" : "Alice" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaSoW--D", + "_rev" : "_YOn1YEi--_", "name" : "Eve" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaSoS--B", + "_rev" : "_YOn1YEe--B", "name" : "Bob" } ] @@ -363,27 +363,27 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106280", - "_id" : "knows/106280", + "_key" : "106289", + "_id" : "knows/106289", "_from" : "persons/eve", "_to" : "persons/alice", - "_rev" : "_YNEaSoW--L", + "_rev" : "_YOn1YEi--H", + "vertex" : "eve" + }, + { + "_key" : "106292", + "_id" : "knows/106292", + "_from" : "persons/eve", + "_to" : "persons/bob", + "_rev" : "_YOn1YEi--J", "vertex" : "eve" }, { "_key" : "106283", "_id" : "knows/106283", - "_from" : "persons/eve", - "_to" : "persons/bob", - "_rev" : "_YNEaSoa--_", - "vertex" : "eve" - }, - { - "_key" : "106274", - "_id" : "knows/106274", "_from" : "persons/bob", "_to" : "persons/charlie", - "_rev" : "_YNEaSoW--H", + "_rev" : "_YOn1YEi--D", "vertex" : "bob" } ], @@ -391,25 +391,25 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSoS--_", + "_rev" : "_YOn1YEe--_", "name" : "Alice" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaSoW--D", + "_rev" : "_YOn1YEi--_", "name" : "Eve" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaSoS--B", + "_rev" : "_YOn1YEe--B", "name" : "Bob" }, { "_key" : "charlie", "_id" : "persons/charlie", - "_rev" : "_YNEaSoW--_", + "_rev" : "_YOn1YEe--D", "name" : "Charlie" } ] @@ -417,27 +417,27 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106280", - "_id" : "knows/106280", + "_key" : "106289", + "_id" : "knows/106289", "_from" : "persons/eve", "_to" : "persons/alice", - "_rev" : "_YNEaSoW--L", + "_rev" : "_YOn1YEi--H", "vertex" : "eve" }, { - "_key" : "106283", - "_id" : "knows/106283", + "_key" : "106292", + "_id" : "knows/106292", "_from" : "persons/eve", "_to" : "persons/bob", - "_rev" : "_YNEaSoa--_", + "_rev" : "_YOn1YEi--J", "vertex" : "eve" }, { - "_key" : "106277", - "_id" : "knows/106277", + "_key" : "106286", + "_id" : "knows/106286", "_from" : "persons/bob", "_to" : "persons/dave", - "_rev" : "_YNEaSoW--J", + "_rev" : "_YOn1YEi--F", "vertex" : "bob" } ], @@ -445,25 +445,25 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSoS--_", + "_rev" : "_YOn1YEe--_", "name" : "Alice" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaSoW--D", + "_rev" : "_YOn1YEi--_", "name" : "Eve" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaSoS--B", + "_rev" : "_YOn1YEe--B", "name" : "Bob" }, { "_key" : "dave", "_id" : "persons/dave", - "_rev" : "_YNEaSoW--B", + "_rev" : "_YOn1YEe--F", "name" : "Dave" } ] @@ -471,27 +471,27 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106280", - "_id" : "knows/106280", + "_key" : "106289", + "_id" : "knows/106289", "_from" : "persons/eve", "_to" : "persons/alice", - "_rev" : "_YNEaSoW--L", + "_rev" : "_YOn1YEi--H", "vertex" : "eve" }, { - "_key" : "106283", - "_id" : "knows/106283", + "_key" : "106292", + "_id" : "knows/106292", "_from" : "persons/eve", "_to" : "persons/bob", - "_rev" : "_YNEaSoa--_", + "_rev" : "_YOn1YEi--J", "vertex" : "eve" }, { - "_key" : "106270", - "_id" : "knows/106270", + "_key" : "106279", + "_id" : "knows/106279", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_YNEaSoW--F", + "_rev" : "_YOn1YEi--B", "vertex" : "alice" } ], @@ -499,25 +499,25 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSoS--_", + "_rev" : "_YOn1YEe--_", "name" : "Alice" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaSoW--D", + "_rev" : "_YOn1YEi--_", "name" : "Eve" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaSoS--B", + "_rev" : "_YOn1YEe--B", "name" : "Bob" }, { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSoS--_", + "_rev" : "_YOn1YEe--_", "name" : "Alice" } ] diff --git a/Documentation/Examples/RestTraversalEdgeUniqueness.generated b/Documentation/Examples/RestTraversalEdgeUniqueness.generated index 326fa1269a..651c99edf0 100644 --- a/Documentation/Examples/RestTraversalEdgeUniqueness.generated +++ b/Documentation/Examples/RestTraversalEdgeUniqueness.generated @@ -21,37 +21,37 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSrK--_", + "_rev" : "_YOn1YHG--_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaSrO--_", + "_rev" : "_YOn1YHK--_", "name" : "Bob" }, { "_key" : "charlie", "_id" : "persons/charlie", - "_rev" : "_YNEaSrO--B", + "_rev" : "_YOn1YHK--B", "name" : "Charlie" }, { "_key" : "dave", "_id" : "persons/dave", - "_rev" : "_YNEaSrO--D", + "_rev" : "_YOn1YHK--D", "name" : "Dave" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaSrO--F", + "_rev" : "_YOn1YHK--F", "name" : "Eve" }, { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSrK--_", + "_rev" : "_YOn1YHG--_", "name" : "Alice" } ], @@ -62,7 +62,7 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSrK--_", + "_rev" : "_YOn1YHG--_", "name" : "Alice" } ] @@ -70,11 +70,11 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106369", - "_id" : "knows/106369", + "_key" : "106378", + "_id" : "knows/106378", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_YNEaSrO--H", + "_rev" : "_YOn1YHO--_", "vertex" : "alice" } ], @@ -82,13 +82,13 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSrK--_", + "_rev" : "_YOn1YHG--_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaSrO--_", + "_rev" : "_YOn1YHK--_", "name" : "Bob" } ] @@ -96,19 +96,19 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106369", - "_id" : "knows/106369", + "_key" : "106378", + "_id" : "knows/106378", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_YNEaSrO--H", + "_rev" : "_YOn1YHO--_", "vertex" : "alice" }, { - "_key" : "106373", - "_id" : "knows/106373", + "_key" : "106382", + "_id" : "knows/106382", "_from" : "persons/bob", "_to" : "persons/charlie", - "_rev" : "_YNEaSrO--J", + "_rev" : "_YOn1YHO--B", "vertex" : "bob" } ], @@ -116,19 +116,19 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSrK--_", + "_rev" : "_YOn1YHG--_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaSrO--_", + "_rev" : "_YOn1YHK--_", "name" : "Bob" }, { "_key" : "charlie", "_id" : "persons/charlie", - "_rev" : "_YNEaSrO--B", + "_rev" : "_YOn1YHK--B", "name" : "Charlie" } ] @@ -136,19 +136,19 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106369", - "_id" : "knows/106369", + "_key" : "106378", + "_id" : "knows/106378", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_YNEaSrO--H", + "_rev" : "_YOn1YHO--_", "vertex" : "alice" }, { - "_key" : "106376", - "_id" : "knows/106376", + "_key" : "106385", + "_id" : "knows/106385", "_from" : "persons/bob", "_to" : "persons/dave", - "_rev" : "_YNEaSrO--L", + "_rev" : "_YOn1YHO--D", "vertex" : "bob" } ], @@ -156,19 +156,19 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSrK--_", + "_rev" : "_YOn1YHG--_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaSrO--_", + "_rev" : "_YOn1YHK--_", "name" : "Bob" }, { "_key" : "dave", "_id" : "persons/dave", - "_rev" : "_YNEaSrO--D", + "_rev" : "_YOn1YHK--D", "name" : "Dave" } ] @@ -176,19 +176,19 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106369", - "_id" : "knows/106369", + "_key" : "106378", + "_id" : "knows/106378", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_YNEaSrO--H", + "_rev" : "_YOn1YHO--_", "vertex" : "alice" }, { - "_key" : "106382", - "_id" : "knows/106382", + "_key" : "106391", + "_id" : "knows/106391", "_from" : "persons/eve", "_to" : "persons/bob", - "_rev" : "_YNEaSrS--B", + "_rev" : "_YOn1YHO--H", "vertex" : "eve" } ], @@ -196,19 +196,19 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSrK--_", + "_rev" : "_YOn1YHG--_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaSrO--_", + "_rev" : "_YOn1YHK--_", "name" : "Bob" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaSrO--F", + "_rev" : "_YOn1YHK--F", "name" : "Eve" } ] @@ -216,27 +216,27 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106369", - "_id" : "knows/106369", + "_key" : "106378", + "_id" : "knows/106378", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_YNEaSrO--H", + "_rev" : "_YOn1YHO--_", "vertex" : "alice" }, { - "_key" : "106382", - "_id" : "knows/106382", + "_key" : "106391", + "_id" : "knows/106391", "_from" : "persons/eve", "_to" : "persons/bob", - "_rev" : "_YNEaSrS--B", + "_rev" : "_YOn1YHO--H", "vertex" : "eve" }, { - "_key" : "106379", - "_id" : "knows/106379", + "_key" : "106388", + "_id" : "knows/106388", "_from" : "persons/eve", "_to" : "persons/alice", - "_rev" : "_YNEaSrS--_", + "_rev" : "_YOn1YHO--F", "vertex" : "eve" } ], @@ -244,25 +244,25 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSrK--_", + "_rev" : "_YOn1YHG--_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaSrO--_", + "_rev" : "_YOn1YHK--_", "name" : "Bob" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaSrO--F", + "_rev" : "_YOn1YHK--F", "name" : "Eve" }, { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSrK--_", + "_rev" : "_YOn1YHG--_", "name" : "Alice" } ] diff --git a/Documentation/Examples/RestTraversalFilterExclude.generated b/Documentation/Examples/RestTraversalFilterExclude.generated index 32b76ca154..4bfec80a98 100644 --- a/Documentation/Examples/RestTraversalFilterExclude.generated +++ b/Documentation/Examples/RestTraversalFilterExclude.generated @@ -18,13 +18,13 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaStu--_", + "_rev" : "_YOn1YJi--_", "name" : "Alice" }, { "_key" : "dave", "_id" : "persons/dave", - "_rev" : "_YNEaStu--F", + "_rev" : "_YOn1YJm--B", "name" : "Dave" } ], @@ -35,7 +35,7 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaStu--_", + "_rev" : "_YOn1YJi--_", "name" : "Alice" } ] @@ -43,19 +43,19 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106453", - "_id" : "knows/106453", + "_key" : "106462", + "_id" : "knows/106462", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_YNEaSty--_", + "_rev" : "_YOn1YJm--F", "vertex" : "alice" }, { - "_key" : "106460", - "_id" : "knows/106460", + "_key" : "106469", + "_id" : "knows/106469", "_from" : "persons/bob", "_to" : "persons/dave", - "_rev" : "_YNEaSty--D", + "_rev" : "_YOn1YJm--J", "vertex" : "bob" } ], @@ -63,19 +63,19 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaStu--_", + "_rev" : "_YOn1YJi--_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaStu--B", + "_rev" : "_YOn1YJi--B", "name" : "Bob" }, { "_key" : "dave", "_id" : "persons/dave", - "_rev" : "_YNEaStu--F", + "_rev" : "_YOn1YJm--B", "name" : "Dave" } ] diff --git a/Documentation/Examples/RestTraversalFilterPrune.generated b/Documentation/Examples/RestTraversalFilterPrune.generated index 22d96bf7df..a2696132b3 100644 --- a/Documentation/Examples/RestTraversalFilterPrune.generated +++ b/Documentation/Examples/RestTraversalFilterPrune.generated @@ -18,13 +18,13 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSv6--_", + "_rev" : "_YOn1YLu--_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaSv6--B", + "_rev" : "_YOn1YLu--B", "name" : "Bob" } ], @@ -35,7 +35,7 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSv6--_", + "_rev" : "_YOn1YLu--_", "name" : "Alice" } ] @@ -43,11 +43,11 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106526", - "_id" : "knows/106526", + "_key" : "106535", + "_id" : "knows/106535", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_YNEaSw---_", + "_rev" : "_YOn1YLy--B", "vertex" : "alice" } ], @@ -55,13 +55,13 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSv6--_", + "_rev" : "_YOn1YLu--_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaSv6--B", + "_rev" : "_YOn1YLu--B", "name" : "Bob" } ] diff --git a/Documentation/Examples/RestTraversalInbound.generated b/Documentation/Examples/RestTraversalInbound.generated index 1bce91511a..bae487fe21 100644 --- a/Documentation/Examples/RestTraversalInbound.generated +++ b/Documentation/Examples/RestTraversalInbound.generated @@ -17,13 +17,13 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSyG--_", + "_rev" : "_YOn1YN2--_", "name" : "Alice" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaSyK--F", + "_rev" : "_YOn1YN6--D", "name" : "Eve" } ], @@ -34,7 +34,7 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSyG--_", + "_rev" : "_YOn1YN2--_", "name" : "Alice" } ] @@ -42,11 +42,11 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106604", - "_id" : "knows/106604", + "_key" : "106613", + "_id" : "knows/106613", "_from" : "persons/eve", "_to" : "persons/alice", - "_rev" : "_YNEaSyO--B", + "_rev" : "_YOn1YN6--L", "vertex" : "eve" } ], @@ -54,13 +54,13 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaSyG--_", + "_rev" : "_YOn1YN2--_", "name" : "Alice" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaSyK--F", + "_rev" : "_YOn1YN6--D", "name" : "Eve" } ] diff --git a/Documentation/Examples/RestTraversalMaxDepth.generated b/Documentation/Examples/RestTraversalMaxDepth.generated index 3984a371bc..e57f10083f 100644 --- a/Documentation/Examples/RestTraversalMaxDepth.generated +++ b/Documentation/Examples/RestTraversalMaxDepth.generated @@ -18,13 +18,13 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaS0S--_", + "_rev" : "_YOn1YQ---_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaS0S--B", + "_rev" : "_YOn1YQ---B", "name" : "Bob" } ], @@ -35,7 +35,7 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaS0S--_", + "_rev" : "_YOn1YQ---_", "name" : "Alice" } ] @@ -43,11 +43,11 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106663", - "_id" : "knows/106663", + "_key" : "106672", + "_id" : "knows/106672", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_YNEaS0W--F", + "_rev" : "_YOn1YQC--_", "vertex" : "alice" } ], @@ -55,13 +55,13 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaS0S--_", + "_rev" : "_YOn1YQ---_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaS0S--B", + "_rev" : "_YOn1YQ---B", "name" : "Bob" } ] diff --git a/Documentation/Examples/RestTraversalMinDepth.generated b/Documentation/Examples/RestTraversalMinDepth.generated index 684c0919b3..1efff4c070 100644 --- a/Documentation/Examples/RestTraversalMinDepth.generated +++ b/Documentation/Examples/RestTraversalMinDepth.generated @@ -18,13 +18,13 @@ x-content-type-options: nosniff { "_key" : "charlie", "_id" : "persons/charlie", - "_rev" : "_YNEaS4m--D", + "_rev" : "_YOn1YUO--D", "name" : "Charlie" }, { "_key" : "dave", "_id" : "persons/dave", - "_rev" : "_YNEaS4m--F", + "_rev" : "_YOn1YUO--F", "name" : "Dave" } ], @@ -32,19 +32,19 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106833", - "_id" : "knows/106833", + "_key" : "106842", + "_id" : "knows/106842", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_YNEaS4q--B", + "_rev" : "_YOn1YUS--B", "vertex" : "alice" }, { - "_key" : "106837", - "_id" : "knows/106837", + "_key" : "106846", + "_id" : "knows/106846", "_from" : "persons/bob", "_to" : "persons/charlie", - "_rev" : "_YNEaS4q--D", + "_rev" : "_YOn1YUS--D", "vertex" : "bob" } ], @@ -52,19 +52,19 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaS4m--_", + "_rev" : "_YOn1YUO--_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaS4m--B", + "_rev" : "_YOn1YUO--B", "name" : "Bob" }, { "_key" : "charlie", "_id" : "persons/charlie", - "_rev" : "_YNEaS4m--D", + "_rev" : "_YOn1YUO--D", "name" : "Charlie" } ] @@ -72,19 +72,19 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106833", - "_id" : "knows/106833", + "_key" : "106842", + "_id" : "knows/106842", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_YNEaS4q--B", + "_rev" : "_YOn1YUS--B", "vertex" : "alice" }, { - "_key" : "106840", - "_id" : "knows/106840", + "_key" : "106849", + "_id" : "knows/106849", "_from" : "persons/bob", "_to" : "persons/dave", - "_rev" : "_YNEaS4q--F", + "_rev" : "_YOn1YUS--F", "vertex" : "bob" } ], @@ -92,19 +92,19 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaS4m--_", + "_rev" : "_YOn1YUO--_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaS4m--B", + "_rev" : "_YOn1YUO--B", "name" : "Bob" }, { "_key" : "dave", "_id" : "persons/dave", - "_rev" : "_YNEaS4m--F", + "_rev" : "_YOn1YUO--F", "name" : "Dave" } ] diff --git a/Documentation/Examples/RestTraversalOutbound.generated b/Documentation/Examples/RestTraversalOutbound.generated index 9d3a923605..3b917a70e6 100644 --- a/Documentation/Examples/RestTraversalOutbound.generated +++ b/Documentation/Examples/RestTraversalOutbound.generated @@ -17,25 +17,25 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaS62--_", + "_rev" : "_YOn1YXy--_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaS66--_", + "_rev" : "_YOn1YXy--B", "name" : "Bob" }, { "_key" : "charlie", "_id" : "persons/charlie", - "_rev" : "_YNEaS66--B", + "_rev" : "_YOn1YXy--D", "name" : "Charlie" }, { "_key" : "dave", "_id" : "persons/dave", - "_rev" : "_YNEaS66--D", + "_rev" : "_YOn1YXy--F", "name" : "Dave" } ], @@ -46,7 +46,7 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaS62--_", + "_rev" : "_YOn1YXy--_", "name" : "Alice" } ] @@ -54,11 +54,11 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106906", - "_id" : "knows/106906", + "_key" : "106915", + "_id" : "knows/106915", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_YNEaS66--H", + "_rev" : "_YOn1YX2--B", "vertex" : "alice" } ], @@ -66,13 +66,13 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaS62--_", + "_rev" : "_YOn1YXy--_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaS66--_", + "_rev" : "_YOn1YXy--B", "name" : "Bob" } ] @@ -80,19 +80,19 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106906", - "_id" : "knows/106906", + "_key" : "106915", + "_id" : "knows/106915", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_YNEaS66--H", + "_rev" : "_YOn1YX2--B", "vertex" : "alice" }, { - "_key" : "106910", - "_id" : "knows/106910", + "_key" : "106919", + "_id" : "knows/106919", "_from" : "persons/bob", "_to" : "persons/charlie", - "_rev" : "_YNEaS7---_", + "_rev" : "_YOn1YX2--D", "vertex" : "bob" } ], @@ -100,19 +100,19 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaS62--_", + "_rev" : "_YOn1YXy--_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaS66--_", + "_rev" : "_YOn1YXy--B", "name" : "Bob" }, { "_key" : "charlie", "_id" : "persons/charlie", - "_rev" : "_YNEaS66--B", + "_rev" : "_YOn1YXy--D", "name" : "Charlie" } ] @@ -120,19 +120,19 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106906", - "_id" : "knows/106906", + "_key" : "106915", + "_id" : "knows/106915", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_YNEaS66--H", + "_rev" : "_YOn1YX2--B", "vertex" : "alice" }, { - "_key" : "106913", - "_id" : "knows/106913", + "_key" : "106922", + "_id" : "knows/106922", "_from" : "persons/bob", "_to" : "persons/dave", - "_rev" : "_YNEaS7---B", + "_rev" : "_YOn1YX2--F", "vertex" : "bob" } ], @@ -140,19 +140,19 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaS62--_", + "_rev" : "_YOn1YXy--_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaS66--_", + "_rev" : "_YOn1YXy--B", "name" : "Bob" }, { "_key" : "dave", "_id" : "persons/dave", - "_rev" : "_YNEaS66--D", + "_rev" : "_YOn1YXy--F", "name" : "Dave" } ] diff --git a/Documentation/Examples/RestTraversalPostorder.generated b/Documentation/Examples/RestTraversalPostorder.generated index f556f9bb5f..e9d093f255 100644 --- a/Documentation/Examples/RestTraversalPostorder.generated +++ b/Documentation/Examples/RestTraversalPostorder.generated @@ -18,67 +18,67 @@ x-content-type-options: nosniff { "_key" : "charlie", "_id" : "persons/charlie", - "_rev" : "_YNEaS9G--D", + "_rev" : "_YOn1YaC--_", "name" : "Charlie" }, { "_key" : "dave", "_id" : "persons/dave", - "_rev" : "_YNEaS9G--F", + "_rev" : "_YOn1YaC--B", "name" : "Dave" }, { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaS9G--_", + "_rev" : "_YOn1Ya---_", "name" : "Alice" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaS9K--_", + "_rev" : "_YOn1YaC--D", "name" : "Eve" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaS9G--B", + "_rev" : "_YOn1Ya---B", "name" : "Bob" }, { "_key" : "charlie", "_id" : "persons/charlie", - "_rev" : "_YNEaS9G--D", + "_rev" : "_YOn1YaC--_", "name" : "Charlie" }, { "_key" : "dave", "_id" : "persons/dave", - "_rev" : "_YNEaS9G--F", + "_rev" : "_YOn1YaC--B", "name" : "Dave" }, { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaS9G--_", + "_rev" : "_YOn1Ya---_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaS9G--B", + "_rev" : "_YOn1Ya---B", "name" : "Bob" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaS9K--_", + "_rev" : "_YOn1YaC--D", "name" : "Eve" }, { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaS9G--_", + "_rev" : "_YOn1Ya---_", "name" : "Alice" } ], @@ -86,19 +86,19 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106979", - "_id" : "knows/106979", + "_key" : "106988", + "_id" : "knows/106988", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_YNEaS9K--B", + "_rev" : "_YOn1YaC--F", "vertex" : "alice" }, { - "_key" : "106983", - "_id" : "knows/106983", + "_key" : "106992", + "_id" : "knows/106992", "_from" : "persons/bob", "_to" : "persons/charlie", - "_rev" : "_YNEaS9K--D", + "_rev" : "_YOn1YaC--H", "vertex" : "bob" } ], @@ -106,19 +106,19 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaS9G--_", + "_rev" : "_YOn1Ya---_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaS9G--B", + "_rev" : "_YOn1Ya---B", "name" : "Bob" }, { "_key" : "charlie", "_id" : "persons/charlie", - "_rev" : "_YNEaS9G--D", + "_rev" : "_YOn1YaC--_", "name" : "Charlie" } ] @@ -126,19 +126,19 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106979", - "_id" : "knows/106979", + "_key" : "106988", + "_id" : "knows/106988", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_YNEaS9K--B", + "_rev" : "_YOn1YaC--F", "vertex" : "alice" }, { - "_key" : "106986", - "_id" : "knows/106986", + "_key" : "106995", + "_id" : "knows/106995", "_from" : "persons/bob", "_to" : "persons/dave", - "_rev" : "_YNEaS9K--F", + "_rev" : "_YOn1YaC--J", "vertex" : "bob" } ], @@ -146,19 +146,19 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaS9G--_", + "_rev" : "_YOn1Ya---_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaS9G--B", + "_rev" : "_YOn1Ya---B", "name" : "Bob" }, { "_key" : "dave", "_id" : "persons/dave", - "_rev" : "_YNEaS9G--F", + "_rev" : "_YOn1YaC--B", "name" : "Dave" } ] @@ -166,27 +166,27 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106979", - "_id" : "knows/106979", + "_key" : "106988", + "_id" : "knows/106988", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_YNEaS9K--B", + "_rev" : "_YOn1YaC--F", "vertex" : "alice" }, { - "_key" : "106992", - "_id" : "knows/106992", + "_key" : "107001", + "_id" : "knows/107001", "_from" : "persons/eve", "_to" : "persons/bob", - "_rev" : "_YNEaS9O--_", + "_rev" : "_YOn1YaG--B", "vertex" : "eve" }, { - "_key" : "106989", - "_id" : "knows/106989", + "_key" : "106998", + "_id" : "knows/106998", "_from" : "persons/eve", "_to" : "persons/alice", - "_rev" : "_YNEaS9K--H", + "_rev" : "_YOn1YaG--_", "vertex" : "eve" } ], @@ -194,25 +194,25 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaS9G--_", + "_rev" : "_YOn1Ya---_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaS9G--B", + "_rev" : "_YOn1Ya---B", "name" : "Bob" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaS9K--_", + "_rev" : "_YOn1YaC--D", "name" : "Eve" }, { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaS9G--_", + "_rev" : "_YOn1Ya---_", "name" : "Alice" } ] @@ -220,19 +220,19 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106979", - "_id" : "knows/106979", + "_key" : "106988", + "_id" : "knows/106988", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_YNEaS9K--B", + "_rev" : "_YOn1YaC--F", "vertex" : "alice" }, { - "_key" : "106992", - "_id" : "knows/106992", + "_key" : "107001", + "_id" : "knows/107001", "_from" : "persons/eve", "_to" : "persons/bob", - "_rev" : "_YNEaS9O--_", + "_rev" : "_YOn1YaG--B", "vertex" : "eve" } ], @@ -240,19 +240,19 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaS9G--_", + "_rev" : "_YOn1Ya---_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaS9G--B", + "_rev" : "_YOn1Ya---B", "name" : "Bob" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaS9K--_", + "_rev" : "_YOn1YaC--D", "name" : "Eve" } ] @@ -260,11 +260,11 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106979", - "_id" : "knows/106979", + "_key" : "106988", + "_id" : "knows/106988", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_YNEaS9K--B", + "_rev" : "_YOn1YaC--F", "vertex" : "alice" } ], @@ -272,13 +272,13 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaS9G--_", + "_rev" : "_YOn1Ya---_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaS9G--B", + "_rev" : "_YOn1Ya---B", "name" : "Bob" } ] @@ -286,27 +286,27 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106989", - "_id" : "knows/106989", + "_key" : "106998", + "_id" : "knows/106998", "_from" : "persons/eve", "_to" : "persons/alice", - "_rev" : "_YNEaS9K--H", + "_rev" : "_YOn1YaG--_", + "vertex" : "eve" + }, + { + "_key" : "107001", + "_id" : "knows/107001", + "_from" : "persons/eve", + "_to" : "persons/bob", + "_rev" : "_YOn1YaG--B", "vertex" : "eve" }, { "_key" : "106992", "_id" : "knows/106992", - "_from" : "persons/eve", - "_to" : "persons/bob", - "_rev" : "_YNEaS9O--_", - "vertex" : "eve" - }, - { - "_key" : "106983", - "_id" : "knows/106983", "_from" : "persons/bob", "_to" : "persons/charlie", - "_rev" : "_YNEaS9K--D", + "_rev" : "_YOn1YaC--H", "vertex" : "bob" } ], @@ -314,25 +314,25 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaS9G--_", + "_rev" : "_YOn1Ya---_", "name" : "Alice" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaS9K--_", + "_rev" : "_YOn1YaC--D", "name" : "Eve" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaS9G--B", + "_rev" : "_YOn1Ya---B", "name" : "Bob" }, { "_key" : "charlie", "_id" : "persons/charlie", - "_rev" : "_YNEaS9G--D", + "_rev" : "_YOn1YaC--_", "name" : "Charlie" } ] @@ -340,27 +340,27 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106989", - "_id" : "knows/106989", + "_key" : "106998", + "_id" : "knows/106998", "_from" : "persons/eve", "_to" : "persons/alice", - "_rev" : "_YNEaS9K--H", + "_rev" : "_YOn1YaG--_", "vertex" : "eve" }, { - "_key" : "106992", - "_id" : "knows/106992", + "_key" : "107001", + "_id" : "knows/107001", "_from" : "persons/eve", "_to" : "persons/bob", - "_rev" : "_YNEaS9O--_", + "_rev" : "_YOn1YaG--B", "vertex" : "eve" }, { - "_key" : "106986", - "_id" : "knows/106986", + "_key" : "106995", + "_id" : "knows/106995", "_from" : "persons/bob", "_to" : "persons/dave", - "_rev" : "_YNEaS9K--F", + "_rev" : "_YOn1YaC--J", "vertex" : "bob" } ], @@ -368,25 +368,25 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaS9G--_", + "_rev" : "_YOn1Ya---_", "name" : "Alice" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaS9K--_", + "_rev" : "_YOn1YaC--D", "name" : "Eve" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaS9G--B", + "_rev" : "_YOn1Ya---B", "name" : "Bob" }, { "_key" : "dave", "_id" : "persons/dave", - "_rev" : "_YNEaS9G--F", + "_rev" : "_YOn1YaC--B", "name" : "Dave" } ] @@ -394,27 +394,27 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106989", - "_id" : "knows/106989", + "_key" : "106998", + "_id" : "knows/106998", "_from" : "persons/eve", "_to" : "persons/alice", - "_rev" : "_YNEaS9K--H", + "_rev" : "_YOn1YaG--_", "vertex" : "eve" }, { - "_key" : "106992", - "_id" : "knows/106992", + "_key" : "107001", + "_id" : "knows/107001", "_from" : "persons/eve", "_to" : "persons/bob", - "_rev" : "_YNEaS9O--_", + "_rev" : "_YOn1YaG--B", "vertex" : "eve" }, { - "_key" : "106979", - "_id" : "knows/106979", + "_key" : "106988", + "_id" : "knows/106988", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_YNEaS9K--B", + "_rev" : "_YOn1YaC--F", "vertex" : "alice" } ], @@ -422,25 +422,25 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaS9G--_", + "_rev" : "_YOn1Ya---_", "name" : "Alice" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaS9K--_", + "_rev" : "_YOn1YaC--D", "name" : "Eve" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaS9G--B", + "_rev" : "_YOn1Ya---B", "name" : "Bob" }, { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaS9G--_", + "_rev" : "_YOn1Ya---_", "name" : "Alice" } ] @@ -448,19 +448,19 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106989", - "_id" : "knows/106989", + "_key" : "106998", + "_id" : "knows/106998", "_from" : "persons/eve", "_to" : "persons/alice", - "_rev" : "_YNEaS9K--H", + "_rev" : "_YOn1YaG--_", "vertex" : "eve" }, { - "_key" : "106992", - "_id" : "knows/106992", + "_key" : "107001", + "_id" : "knows/107001", "_from" : "persons/eve", "_to" : "persons/bob", - "_rev" : "_YNEaS9O--_", + "_rev" : "_YOn1YaG--B", "vertex" : "eve" } ], @@ -468,19 +468,19 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaS9G--_", + "_rev" : "_YOn1Ya---_", "name" : "Alice" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaS9K--_", + "_rev" : "_YOn1YaC--D", "name" : "Eve" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaS9G--B", + "_rev" : "_YOn1Ya---B", "name" : "Bob" } ] @@ -488,11 +488,11 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "106989", - "_id" : "knows/106989", + "_key" : "106998", + "_id" : "knows/106998", "_from" : "persons/eve", "_to" : "persons/alice", - "_rev" : "_YNEaS9K--H", + "_rev" : "_YOn1YaG--_", "vertex" : "eve" } ], @@ -500,13 +500,13 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaS9G--_", + "_rev" : "_YOn1Ya---_", "name" : "Alice" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaS9K--_", + "_rev" : "_YOn1YaC--D", "name" : "Eve" } ] @@ -517,7 +517,7 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaS9G--_", + "_rev" : "_YOn1Ya---_", "name" : "Alice" } ] diff --git a/Documentation/Examples/RestTraversalVisitorCountAndList.generated b/Documentation/Examples/RestTraversalVisitorCountAndList.generated index 72d365dafb..daa8a64d72 100644 --- a/Documentation/Examples/RestTraversalVisitorCountAndList.generated +++ b/Documentation/Examples/RestTraversalVisitorCountAndList.generated @@ -19,25 +19,25 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaTAC--_", + "_rev" : "_YOn1Yci--_", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaTAG--_", + "_rev" : "_YOn1Ycm--_", "name" : "Bob" }, { "_key" : "charlie", "_id" : "persons/charlie", - "_rev" : "_YNEaTAG--B", + "_rev" : "_YOn1Ycm--B", "name" : "Charlie" }, { "_key" : "dave", "_id" : "persons/dave", - "_rev" : "_YNEaTAG--D", + "_rev" : "_YOn1Ycm--D", "name" : "Dave" } ] diff --git a/Documentation/Examples/RestTraversalVisitorExpander.generated b/Documentation/Examples/RestTraversalVisitorExpander.generated index 53bb8328ba..426872100f 100644 --- a/Documentation/Examples/RestTraversalVisitorExpander.generated +++ b/Documentation/Examples/RestTraversalVisitorExpander.generated @@ -17,19 +17,19 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaTCK--_", + "_rev" : "_YOn1Yeq--_", "name" : "Alice" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaTCO--F", + "_rev" : "_YOn1Yeu--B", "name" : "Eve" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaTCO--_", + "_rev" : "_YOn1Yeq--B", "name" : "Bob" } ], @@ -40,7 +40,7 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaTCK--_", + "_rev" : "_YOn1Yeq--_", "name" : "Alice" } ] @@ -48,11 +48,11 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "107161", - "_id" : "knows/107161", + "_key" : "107170", + "_id" : "knows/107170", "_from" : "persons/eve", "_to" : "persons/alice", - "_rev" : "_YNEaTCS--D", + "_rev" : "_YOn1Yeu--J", "vertex" : "eve" } ], @@ -60,13 +60,13 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaTCK--_", + "_rev" : "_YOn1Yeq--_", "name" : "Alice" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaTCO--F", + "_rev" : "_YOn1Yeu--B", "name" : "Eve" } ] @@ -74,19 +74,19 @@ x-content-type-options: nosniff { "edges" : [ { - "_key" : "107161", - "_id" : "knows/107161", + "_key" : "107170", + "_id" : "knows/107170", "_from" : "persons/eve", "_to" : "persons/alice", - "_rev" : "_YNEaTCS--D", + "_rev" : "_YOn1Yeu--J", "vertex" : "eve" }, { - "_key" : "107164", - "_id" : "knows/107164", + "_key" : "107173", + "_id" : "knows/107173", "_from" : "persons/eve", "_to" : "persons/bob", - "_rev" : "_YNEaTCS--F", + "_rev" : "_YOn1Yey--_", "vertex" : "eve" } ], @@ -94,19 +94,19 @@ x-content-type-options: nosniff { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaTCK--_", + "_rev" : "_YOn1Yeq--_", "name" : "Alice" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaTCO--F", + "_rev" : "_YOn1Yeu--B", "name" : "Eve" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaTCO--_", + "_rev" : "_YOn1Yeq--B", "name" : "Bob" } ] diff --git a/Documentation/Examples/RestVersionDetails.generated b/Documentation/Examples/RestVersionDetails.generated index 5b0442349b..42b1d5393b 100644 --- a/Documentation/Examples/RestVersionDetails.generated +++ b/Documentation/Examples/RestVersionDetails.generated @@ -16,8 +16,8 @@ x-content-type-options: nosniff "assertions" : "true", "avx2" : "true", "boost-version" : "1.69.0", - "build-date" : "2019-02-15 10:01:13", - "build-repository" : "heads/feature/ttl-index-0-g5d46b69bbd-dirty", + "build-date" : "2019-02-20 08:48:55", + "build-repository" : "heads/bug-fix/fix-query-cache-shutdown-0-gd977f1786a", "compiler" : "gcc [8.2.0]", "cplusplus" : "201402", "curl-version" : "libcurl/7.63.0 OpenSSL/1.1.0g", @@ -27,7 +27,7 @@ x-content-type-options: nosniff "failure-tests" : "true", "fd-client-event-handler" : "poll", "fd-setsize" : "1024", - "full-version-string" : "ArangoDB 3.5.0-devel enterprise [linux] 64bit maintainer mode, using jemalloc, build heads/feature/ttl-index-0-g5d46b69bbd-dirty, VPack 0.1.33, RocksDB 5.18.0, ICU 58.1, V8 5.7.492.77, OpenSSL 1.1.0g 2 Nov 2017", + "full-version-string" : "ArangoDB 3.5.0-devel enterprise [linux] 64bit maintainer mode, using jemalloc, build heads/bug-fix/fix-query-cache-shutdown-0-gd977f1786a, VPack 0.1.33, RocksDB 5.18.0, ICU 58.1, V8 7.1.302.28, OpenSSL 1.1.0g 2 Nov 2017", "icu-version" : "58.1", "iresearch-version" : "1.0.0.0", "jemalloc" : "true", @@ -46,7 +46,7 @@ x-content-type-options: nosniff "sizeof void*" : "8", "sse42" : "true", "unaligned-access" : "true", - "v8-version" : "5.7.492.77", + "v8-version" : "7.1.302.28", "vpack-version" : "0.1.33", "zlib-version" : "1.2.11", "mode" : "server", diff --git a/Documentation/Examples/RestViewDeleteViewIdentifier.generated b/Documentation/Examples/RestViewDeleteViewIdentifier.generated index f93e4e33d4..6bb8c0c7c2 100644 --- a/Documentation/Examples/RestViewDeleteViewIdentifier.generated +++ b/Documentation/Examples/RestViewDeleteViewIdentifier.generated @@ -1,4 +1,4 @@ -shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/view/107276 +shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/view/107285 HTTP/1.1 OK content-type: application/json; charset=utf-8 diff --git a/Documentation/Examples/RestViewGetAllViews.generated b/Documentation/Examples/RestViewGetAllViews.generated index 38e3dd5ae8..38b4406808 100644 --- a/Documentation/Examples/RestViewGetAllViews.generated +++ b/Documentation/Examples/RestViewGetAllViews.generated @@ -9,7 +9,7 @@ x-content-type-options: nosniff "code" : 200, "result" : [ { - "globallyUniqueId" : "h402518FDD080/102", + "globallyUniqueId" : "h8B2B671BCFD0/102", "id" : "102", "name" : "demoView", "type" : "arangosearch" diff --git a/Documentation/Examples/RestViewGetViewIdentifier.generated b/Documentation/Examples/RestViewGetViewIdentifier.generated index 527d77b984..20c9a9a0ec 100644 --- a/Documentation/Examples/RestViewGetViewIdentifier.generated +++ b/Documentation/Examples/RestViewGetViewIdentifier.generated @@ -1,4 +1,4 @@ -shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/view/107288 +shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/view/107297 HTTP/1.1 OK content-type: application/json; charset=utf-8 @@ -9,6 +9,6 @@ x-content-type-options: nosniff "code" : 200, "type" : "arangosearch", "name" : "testView", - "globallyUniqueId" : "h402518FDD080/107288", - "id" : "107288" + "globallyUniqueId" : "h8B2B671BCFD0/107297", + "id" : "107297" } diff --git a/Documentation/Examples/RestViewGetViewName.generated b/Documentation/Examples/RestViewGetViewName.generated index 2ac1f65136..d81032fd46 100644 --- a/Documentation/Examples/RestViewGetViewName.generated +++ b/Documentation/Examples/RestViewGetViewName.generated @@ -9,6 +9,6 @@ x-content-type-options: nosniff "code" : 200, "type" : "arangosearch", "name" : "testView", - "globallyUniqueId" : "h402518FDD080/107294", - "id" : "107294" + "globallyUniqueId" : "h8B2B671BCFD0/107303", + "id" : "107303" } diff --git a/Documentation/Examples/RestViewGetViewPropertiesIdentifier.generated b/Documentation/Examples/RestViewGetViewPropertiesIdentifier.generated index 6897b5aaff..f3cdb06c62 100644 --- a/Documentation/Examples/RestViewGetViewPropertiesIdentifier.generated +++ b/Documentation/Examples/RestViewGetViewPropertiesIdentifier.generated @@ -1,4 +1,4 @@ -shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/view/107300/properties +shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/view/107309/properties HTTP/1.1 OK content-type: application/json; charset=utf-8 @@ -17,9 +17,9 @@ x-content-type-options: nosniff "type" : "bytes_accum", "threshold" : 0.10000000149011612 }, - "globallyUniqueId" : "h402518FDD080/107300", + "globallyUniqueId" : "h8B2B671BCFD0/107309", "cleanupIntervalStep" : 10, - "id" : "107300", + "id" : "107309", "links" : { }, "consolidationIntervalMsec" : 60000 diff --git a/Documentation/Examples/RestViewGetViewPropertiesName.generated b/Documentation/Examples/RestViewGetViewPropertiesName.generated index 0e64772064..d64ce89f6e 100644 --- a/Documentation/Examples/RestViewGetViewPropertiesName.generated +++ b/Documentation/Examples/RestViewGetViewPropertiesName.generated @@ -17,9 +17,9 @@ x-content-type-options: nosniff "type" : "bytes_accum", "threshold" : 0.10000000149011612 }, - "globallyUniqueId" : "h402518FDD080/107307", + "globallyUniqueId" : "h8B2B671BCFD0/107316", "cleanupIntervalStep" : 10, - "id" : "107307", + "id" : "107316", "links" : { }, "consolidationIntervalMsec" : 60000 diff --git a/Documentation/Examples/RestViewPatchProperties.generated b/Documentation/Examples/RestViewPatchProperties.generated index bec8f2213a..d44203ef39 100644 --- a/Documentation/Examples/RestViewPatchProperties.generated +++ b/Documentation/Examples/RestViewPatchProperties.generated @@ -8,8 +8,8 @@ content-type: application/json; charset=utf-8 x-content-type-options: nosniff { - "globallyUniqueId" : "h402518FDD080/107314", - "id" : "107314", + "globallyUniqueId" : "h8B2B671BCFD0/107323", + "id" : "107323", "name" : "products", "type" : "arangosearch", "cleanupIntervalStep" : 10, diff --git a/Documentation/Examples/RestViewPostView.generated b/Documentation/Examples/RestViewPostView.generated index 0dd1c8f51a..6f2a6b661e 100644 --- a/Documentation/Examples/RestViewPostView.generated +++ b/Documentation/Examples/RestViewPostView.generated @@ -10,8 +10,8 @@ content-type: application/json; charset=utf-8 x-content-type-options: nosniff { - "globallyUniqueId" : "h402518FDD080/107322", - "id" : "107322", + "globallyUniqueId" : "h8B2B671BCFD0/107331", + "id" : "107331", "name" : "testViewBasics", "type" : "arangosearch", "cleanupIntervalStep" : 10, diff --git a/Documentation/Examples/RestViewPutProperties.generated b/Documentation/Examples/RestViewPutProperties.generated index 29f53d1f37..81e1ab1bf7 100644 --- a/Documentation/Examples/RestViewPutProperties.generated +++ b/Documentation/Examples/RestViewPutProperties.generated @@ -8,8 +8,8 @@ content-type: application/json; charset=utf-8 x-content-type-options: nosniff { - "globallyUniqueId" : "h402518FDD080/107328", - "id" : "107328", + "globallyUniqueId" : "h8B2B671BCFD0/107337", + "id" : "107337", "name" : "products", "type" : "arangosearch", "cleanupIntervalStep" : 10, diff --git a/Documentation/Examples/RestViewPutViewRename.generated b/Documentation/Examples/RestViewPutViewRename.generated index 299985f19d..c09ac2cf4e 100644 --- a/Documentation/Examples/RestViewPutViewRename.generated +++ b/Documentation/Examples/RestViewPutViewRename.generated @@ -13,6 +13,6 @@ x-content-type-options: nosniff "code" : 200, "type" : "arangosearch", "name" : "viewNewName", - "globallyUniqueId" : "h402518FDD080/107336", - "id" : "107336" + "globallyUniqueId" : "h8B2B671BCFD0/107345", + "id" : "107345" } diff --git a/Documentation/Examples/RestWalAccessFirstTick.generated b/Documentation/Examples/RestWalAccessFirstTick.generated index 6447996f50..49591f1590 100644 --- a/Documentation/Examples/RestWalAccessFirstTick.generated +++ b/Documentation/Examples/RestWalAccessFirstTick.generated @@ -5,10 +5,10 @@ content-type: application/json; charset=utf-8 x-content-type-options: nosniff { - "time" : "2019-02-15T14:43:01Z", - "tick" : "107343", + "time" : "2019-02-20T10:33:12Z", + "tick" : "107352", "server" : { "version" : "3.5.0-devel", - "serverId" : "70528077254784" + "serverId" : "153018529730512" } } diff --git a/Documentation/Examples/RestWalAccessTailingBufferLimit.generated b/Documentation/Examples/RestWalAccessTailingBufferLimit.generated index d3a25a455f..9637f8915d 100644 --- a/Documentation/Examples/RestWalAccessTailingBufferLimit.generated +++ b/Documentation/Examples/RestWalAccessTailingBufferLimit.generated @@ -1,17 +1,17 @@ -shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/wal/tail?from=107343&chunkSize=400 +shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/wal/tail?from=107352&chunkSize=400 HTTP/1.1 OK content-type: application/x-arango-dump; charset=utf-8 x-arango-replication-checkmore: true x-arango-replication-frompresent: true -x-arango-replication-lastincluded: 107361 -x-arango-replication-lastscanned: 107364 -x-arango-replication-lasttick: 107364 +x-arango-replication-lastincluded: 107370 +x-arango-replication-lastscanned: 107382 +x-arango-replication-lasttick: 107382 x-content-type-options: nosniff { - "tick" : "107361", + "tick" : "107370", "type" : 2001, "db" : "_system", - "cuid" : "h402518FDD080/107346" + "cuid" : "h8B2B671BCFD0/107355" } diff --git a/Documentation/Examples/RestWalAccessTailingEmpty.generated b/Documentation/Examples/RestWalAccessTailingEmpty.generated index 38dae4a59b..b23bfab797 100644 --- a/Documentation/Examples/RestWalAccessTailingEmpty.generated +++ b/Documentation/Examples/RestWalAccessTailingEmpty.generated @@ -1,11 +1,11 @@ -shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/wal/tail?from=107364 +shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/wal/tail?from=107382 HTTP/1.1 No Content content-type: application/x-arango-dump; charset=utf-8 x-arango-replication-checkmore: false x-arango-replication-frompresent: true x-arango-replication-lastincluded: 0 -x-arango-replication-lastscanned: 107364 -x-arango-replication-lasttick: 107364 +x-arango-replication-lastscanned: 107382 +x-arango-replication-lasttick: 107382 x-content-type-options: nosniff diff --git a/Documentation/Examples/RestWalAccessTailingSome.generated b/Documentation/Examples/RestWalAccessTailingSome.generated index e2b3730524..bacaca86a8 100644 --- a/Documentation/Examples/RestWalAccessTailingSome.generated +++ b/Documentation/Examples/RestWalAccessTailingSome.generated @@ -1,17 +1,17 @@ -shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/wal/tail?from=107364 +shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/wal/tail?from=107382 HTTP/1.1 OK content-type: application/x-arango-dump; charset=utf-8 x-arango-replication-checkmore: true x-arango-replication-frompresent: true -x-arango-replication-lastincluded: 107382 -x-arango-replication-lastscanned: 107385 -x-arango-replication-lasttick: 107385 +x-arango-replication-lastincluded: 107400 +x-arango-replication-lastscanned: 107403 +x-arango-replication-lasttick: 107403 x-content-type-options: nosniff { - "tick" : "107382", + "tick" : "107400", "type" : 2001, "db" : "_system", - "cuid" : "h402518FDD080/107367" + "cuid" : "h8B2B671BCFD0/107385" }↩ diff --git a/Documentation/Examples/RestWalAccessTickRange.generated b/Documentation/Examples/RestWalAccessTickRange.generated index 855320e243..2e179d20fe 100644 --- a/Documentation/Examples/RestWalAccessTickRange.generated +++ b/Documentation/Examples/RestWalAccessTickRange.generated @@ -5,11 +5,11 @@ content-type: application/json; charset=utf-8 x-content-type-options: nosniff { - "time" : "2019-02-15T14:43:03Z", + "time" : "2019-02-20T10:33:16Z", "tickMin" : "5", - "tickMax" : "107385", + "tickMax" : "107403", "server" : { "version" : "3.5.0-devel", - "serverId" : "70528077254784" + "serverId" : "153018529730512" } } diff --git a/Documentation/Examples/USER_06_AllUsers.generated b/Documentation/Examples/USER_06_AllUsers.generated index 1e3059a851..092efde07f 100644 --- a/Documentation/Examples/USER_06_AllUsers.generated +++ b/Documentation/Examples/USER_06_AllUsers.generated @@ -1,5 +1,17 @@ arangosh> require("@arangodb/users").all(); [ + { + "user" : "tester", + "active" : false, + "extra" : { + } + }, + { + "user" : "my-user", + "active" : true, + "extra" : { + } + }, { "user" : "admin", "active" : true, @@ -11,17 +23,5 @@ arangosh> require("active" : true, "extra" : { } - }, - { - "user" : "my-user", - "active" : true, - "extra" : { - } - }, - { - "user" : "tester", - "active" : false, - "extra" : { - } } ] diff --git a/Documentation/Examples/accessViaGeoIndex.generated b/Documentation/Examples/accessViaGeoIndex.generated index c7adcf3c9b..8215373127 100644 --- a/Documentation/Examples/accessViaGeoIndex.generated +++ b/Documentation/Examples/accessViaGeoIndex.generated @@ -1,6 +1,6 @@ arangosh> for (i = -90; i <= 90; i += 10) { ........> for (j = -180; j <= 180; j += 10) { -........> db.example.save({ name : "Name/" + i + "/" + j, +........> db.example.insert({ name : "Name/" + i + "/" + j, ........> home : [ i, j ], ........> work : [ -i, -j ] }); ........> } @@ -13,7 +13,7 @@ arangosh> db.example.ensureIndex({ type: "home" ], "geoJson" : false, - "id" : "example/109535", + "id" : "example/109553", "isNewlyCreated" : true, "maxNumCoverCells" : 8, "sparse" : true, @@ -26,5 +26,5 @@ arangosh> items = db.example.getIndexes().map(1]); [ "example/0", - "example/109535" + "example/109553" ] diff --git a/Documentation/Examples/aqlArrayUnion_2.generated b/Documentation/Examples/aqlArrayUnion_2.generated index b9b69300db..17c22294f2 100644 --- a/Documentation/Examples/aqlArrayUnion_2.generated +++ b/Documentation/Examples/aqlArrayUnion_2.generated @@ -9,8 +9,8 @@ RETURN UNIQUE( @R [ [ - 3, + 1, 2, - 1 + 3 ] ] \ No newline at end of file diff --git a/Documentation/Examples/aqlArrayUnique_1.generated b/Documentation/Examples/aqlArrayUnique_1.generated index c9620e5dad..42442303b1 100644 --- a/Documentation/Examples/aqlArrayUnique_1.generated +++ b/Documentation/Examples/aqlArrayUnique_1.generated @@ -4,10 +4,10 @@ RETURN UNIQUE( [ 1,2< @R [ [ - 5, - 4, - 3, + 1, 2, - 1 + 3, + 4, + 5 ] ] \ No newline at end of file diff --git a/Documentation/Examples/arangod.json b/Documentation/Examples/arangod.json index 7ca7f0bd45..faf3f08aca 100644 --- a/Documentation/Examples/arangod.json +++ b/Documentation/Examples/arangod.json @@ -283,7 +283,7 @@ }, "cache.size" : { "category" : "option", - "default" : 3637390336, + "default" : 3637388288, "deprecatedIn" : null, "description" : "size of cache in bytes", "dynamic" : true, @@ -2318,7 +2318,7 @@ }, "rocksdb.block-cache-size" : { "category" : "option", - "default" : 4364868403, + "default" : 4364865945, "deprecatedIn" : null, "description" : "size of block cache in bytes", "dynamic" : true, @@ -2766,7 +2766,7 @@ }, "rocksdb.total-write-buffer-size" : { "category" : "option", - "default" : 5819824537, + "default" : 5819821260, "deprecatedIn" : null, "description" : "maximum total size of in-memory write buffers (0 = unbounded)", "dynamic" : true, diff --git a/Documentation/Examples/col_dropIndex.generated b/Documentation/Examples/col_dropIndex.generated index 963c2bc682..873df4af0f 100644 --- a/Documentation/Examples/col_dropIndex.generated +++ b/Documentation/Examples/col_dropIndex.generated @@ -5,7 +5,7 @@ arangosh> db.example.ensureSkiplist("a", "a", "b" ], - "id" : "example/109663", + "id" : "example/109681", "isNewlyCreated" : true, "sparse" : false, "type" : "skiplist", @@ -31,7 +31,7 @@ arangosh> indexInfo; "a", "b" ], - "id" : "example/109663", + "id" : "example/109681", "sparse" : false, "type" : "skiplist", "unique" : false diff --git a/Documentation/Examples/collectionDatabaseCollectionName.generated b/Documentation/Examples/collectionDatabaseCollectionName.generated index 52c34f8510..473c6637ae 100644 --- a/Documentation/Examples/collectionDatabaseCollectionName.generated +++ b/Documentation/Examples/collectionDatabaseCollectionName.generated @@ -1,2 +1,2 @@ arangosh> db.example; -[ArangoCollection 109687, "example" (type document, status loaded)] +[ArangoCollection 109705, "example" (type document, status loaded)] diff --git a/Documentation/Examples/collectionDatabaseCreate.generated b/Documentation/Examples/collectionDatabaseCreate.generated index 22232595be..8a90224962 100644 --- a/Documentation/Examples/collectionDatabaseCreate.generated +++ b/Documentation/Examples/collectionDatabaseCreate.generated @@ -1,5 +1,5 @@ arangosh> c = db._create("users"); -[ArangoCollection 109698, "users" (type document, status loaded)] +[ArangoCollection 109716, "users" (type document, status loaded)] arangosh> c.properties(); { "doCompact" : true, diff --git a/Documentation/Examples/collectionDatabaseCreateKey.generated b/Documentation/Examples/collectionDatabaseCreateKey.generated index 1eefc93952..46cf8a4518 100644 --- a/Documentation/Examples/collectionDatabaseCreateKey.generated +++ b/Documentation/Examples/collectionDatabaseCreateKey.generated @@ -1,21 +1,21 @@ arangosh> db._create("users", ........> { keyOptions: { type: "autoincrement", offset: 10, increment: 5 } }); -[ArangoCollection 109710, "users" (type document, status loaded)] +[ArangoCollection 109728, "users" (type document, status loaded)] arangosh> db.users.save({ name: "user 1" }); { "_id" : "users/10", "_key" : "10", - "_rev" : "_YNEaVvO--B" + "_rev" : "_YOn1dK---_" } arangosh> db.users.save({ name: "user 2" }); { "_id" : "users/15", "_key" : "15", - "_rev" : "_YNEaVvS--_" + "_rev" : "_YOn1dK---B" } arangosh> db.users.save({ name: "user 3" }); { "_id" : "users/20", "_key" : "20", - "_rev" : "_YNEaVvS--B" + "_rev" : "_YOn1dK---D" } diff --git a/Documentation/Examples/collectionDatabaseCreateProperties.generated b/Documentation/Examples/collectionDatabaseCreateProperties.generated index 40be7bd3fd..49e06ebfde 100644 --- a/Documentation/Examples/collectionDatabaseCreateProperties.generated +++ b/Documentation/Examples/collectionDatabaseCreateProperties.generated @@ -1,6 +1,6 @@ arangosh> c = db._create("users", { waitForSync : true, ........> journalSize : 1024 * 1204}); -[ArangoCollection 109728, "users" (type document, status loaded)] +[ArangoCollection 109746, "users" (type document, status loaded)] arangosh> c.properties(); { "doCompact" : true, diff --git a/Documentation/Examples/collectionDatabaseCreateSpecialKey.generated b/Documentation/Examples/collectionDatabaseCreateSpecialKey.generated index 97a5ae5f64..ee592ecf0a 100644 --- a/Documentation/Examples/collectionDatabaseCreateSpecialKey.generated +++ b/Documentation/Examples/collectionDatabaseCreateSpecialKey.generated @@ -1,16 +1,16 @@ arangosh> db._create("users", { keyOptions: { allowUserKeys: false } }); -[ArangoCollection 109740, "users" (type document, status loaded)] +[ArangoCollection 109758, "users" (type document, status loaded)] arangosh> db.users.save({ name: "user 1" }); { - "_id" : "users/109747", - "_key" : "109747", - "_rev" : "_YNEaVxW--_" + "_id" : "users/109765", + "_key" : "109765", + "_rev" : "_YOn1dMC--_" } arangosh> db.users.save({ name: "user 2", _key: "myuser" }); [ArangoError 1222: unexpected document key] arangosh> db.users.save({ name: "user 3" }); { - "_id" : "users/109752", - "_key" : "109752", - "_rev" : "_YNEaVxa--_" + "_id" : "users/109770", + "_key" : "109770", + "_rev" : "_YOn1dMC--C" } diff --git a/Documentation/Examples/collectionDatabaseCreateSuccess.generated b/Documentation/Examples/collectionDatabaseCreateSuccess.generated index 91ff195768..74ddc8f998 100644 --- a/Documentation/Examples/collectionDatabaseCreateSuccess.generated +++ b/Documentation/Examples/collectionDatabaseCreateSuccess.generated @@ -1,5 +1,5 @@ arangosh> c = db._create("users"); -[ArangoCollection 109759, "users" (type document, status loaded)] +[ArangoCollection 109777, "users" (type document, status loaded)] arangosh> c.properties(); { "doCompact" : true, diff --git a/Documentation/Examples/collectionDatabaseDrop.generated b/Documentation/Examples/collectionDatabaseDrop.generated index d14acd4ebe..7fc3398f27 100644 --- a/Documentation/Examples/collectionDatabaseDrop.generated +++ b/Documentation/Examples/collectionDatabaseDrop.generated @@ -1,5 +1,5 @@ arangosh> col = db.example; -[ArangoCollection 109771, "example" (type document, status loaded)] +[ArangoCollection 109789, "example" (type document, status loaded)] arangosh> db._drop(col); arangosh> col; -[ArangoCollection 109771, "example" (type document, status loaded)] +[ArangoCollection 109789, "example" (type document, status loaded)] diff --git a/Documentation/Examples/collectionDatabaseDropByObject.generated b/Documentation/Examples/collectionDatabaseDropByObject.generated index ef8fb2c9cf..93d1435e84 100644 --- a/Documentation/Examples/collectionDatabaseDropByObject.generated +++ b/Documentation/Examples/collectionDatabaseDropByObject.generated @@ -1,5 +1,5 @@ arangosh> col = db.example; -[ArangoCollection 109782, "example" (type document, status loaded)] +[ArangoCollection 109800, "example" (type document, status loaded)] arangosh> db._drop(col); arangosh> col; -[ArangoCollection 109782, "example" (type document, status loaded)] +[ArangoCollection 109800, "example" (type document, status loaded)] diff --git a/Documentation/Examples/collectionDatabaseDropName.generated b/Documentation/Examples/collectionDatabaseDropName.generated index 89e435f8ce..ba8fae1c6e 100644 --- a/Documentation/Examples/collectionDatabaseDropName.generated +++ b/Documentation/Examples/collectionDatabaseDropName.generated @@ -1,5 +1,5 @@ arangosh> col = db.example; -[ArangoCollection 109793, "example" (type document, status loaded)] +[ArangoCollection 109811, "example" (type document, status loaded)] arangosh> db._drop("example"); arangosh> col; -[ArangoCollection 109793, "example" (type document, status deleted)] +[ArangoCollection 109811, "example" (type document, status deleted)] diff --git a/Documentation/Examples/collectionDatabaseDropSystem.generated b/Documentation/Examples/collectionDatabaseDropSystem.generated index cf1e1831d1..b9154dea61 100644 --- a/Documentation/Examples/collectionDatabaseDropSystem.generated +++ b/Documentation/Examples/collectionDatabaseDropSystem.generated @@ -1,5 +1,5 @@ arangosh> col = db._example; -[ArangoCollection 109804, "_example" (type document, status loaded)] +[ArangoCollection 109822, "_example" (type document, status loaded)] arangosh> db._drop("_example", { isSystem: true }); arangosh> col; -[ArangoCollection 109804, "_example" (type document, status deleted)] +[ArangoCollection 109822, "_example" (type document, status deleted)] diff --git a/Documentation/Examples/collectionDatabaseTruncate.generated b/Documentation/Examples/collectionDatabaseTruncate.generated index 5aabd73d23..3dfda56c2e 100644 --- a/Documentation/Examples/collectionDatabaseTruncate.generated +++ b/Documentation/Examples/collectionDatabaseTruncate.generated @@ -1,10 +1,10 @@ arangosh> col = db.example; -[ArangoCollection 109812, "example" (type document, status loaded)] +[ArangoCollection 109830, "example" (type document, status loaded)] arangosh> col.save({ "Hello" : "World" }); { - "_id" : "example/109819", - "_key" : "109819", - "_rev" : "_YNEaV3m--_" + "_id" : "example/109837", + "_key" : "109837", + "_rev" : "_YOn1dSS--B" } arangosh> col.count(); 1 diff --git a/Documentation/Examples/collectionDatabaseTruncateByObject.generated b/Documentation/Examples/collectionDatabaseTruncateByObject.generated index b1bb2eb745..d56ce7f3d4 100644 --- a/Documentation/Examples/collectionDatabaseTruncateByObject.generated +++ b/Documentation/Examples/collectionDatabaseTruncateByObject.generated @@ -1,10 +1,10 @@ arangosh> col = db.example; -[ArangoCollection 109835, "example" (type document, status loaded)] +[ArangoCollection 109853, "example" (type document, status loaded)] arangosh> col.save({ "Hello" : "World" }); { - "_id" : "example/109842", - "_key" : "109842", - "_rev" : "_YNEaV4m--B" + "_id" : "example/109860", + "_key" : "109860", + "_rev" : "_YOn1dTW--_" } arangosh> col.count(); 1 diff --git a/Documentation/Examples/collectionDatabaseTruncateName.generated b/Documentation/Examples/collectionDatabaseTruncateName.generated index 435f37978f..a033d8e957 100644 --- a/Documentation/Examples/collectionDatabaseTruncateName.generated +++ b/Documentation/Examples/collectionDatabaseTruncateName.generated @@ -1,10 +1,10 @@ arangosh> col = db.example; -[ArangoCollection 109858, "example" (type document, status loaded)] +[ArangoCollection 109877, "example" (type document, status loaded)] arangosh> col.save({ "Hello" : "World" }); { - "_id" : "example/109865", - "_key" : "109865", - "_rev" : "_YNEaV5q--B" + "_id" : "example/109884", + "_key" : "109884", + "_rev" : "_YOn1dUa--_" } arangosh> col.count(); 1 diff --git a/Documentation/Examples/collectionDrop.generated b/Documentation/Examples/collectionDrop.generated index 6952ac8908..70fc107f05 100644 --- a/Documentation/Examples/collectionDrop.generated +++ b/Documentation/Examples/collectionDrop.generated @@ -1,5 +1,5 @@ arangosh> col = db.example; -[ArangoCollection 109882, "example" (type document, status loaded)] +[ArangoCollection 109900, "example" (type document, status loaded)] arangosh> col.drop(); arangosh> col; -[ArangoCollection 109882, "example" (type document, status deleted)] +[ArangoCollection 109900, "example" (type document, status deleted)] diff --git a/Documentation/Examples/collectionDropSystem.generated b/Documentation/Examples/collectionDropSystem.generated index 30d36b8367..8a6ab7f1cf 100644 --- a/Documentation/Examples/collectionDropSystem.generated +++ b/Documentation/Examples/collectionDropSystem.generated @@ -1,5 +1,5 @@ arangosh> col = db._example; -[ArangoCollection 109893, "_example" (type document, status loaded)] +[ArangoCollection 109911, "_example" (type document, status loaded)] arangosh> col.drop({ isSystem: true }); arangosh> col; -[ArangoCollection 109893, "_example" (type document, status deleted)] +[ArangoCollection 109911, "_example" (type document, status deleted)] diff --git a/Documentation/Examples/collectionEnsureIndex.generated b/Documentation/Examples/collectionEnsureIndex.generated index cacc16b49f..120c0aa55e 100644 --- a/Documentation/Examples/collectionEnsureIndex.generated +++ b/Documentation/Examples/collectionEnsureIndex.generated @@ -4,7 +4,7 @@ arangosh> db.test.ensureIndex({ type: "fields" : [ "a" ], - "id" : "test/109905", + "id" : "test/109923", "isNewlyCreated" : true, "selectivityEstimate" : 1, "sparse" : true, @@ -19,7 +19,7 @@ arangosh> db.test.ensureIndex({ type: "a", "b" ], - "id" : "test/109908", + "id" : "test/109926", "isNewlyCreated" : true, "selectivityEstimate" : 1, "sparse" : false, diff --git a/Documentation/Examples/collectionFigures.generated b/Documentation/Examples/collectionFigures.generated index 6083151a26..213cc2d818 100644 --- a/Documentation/Examples/collectionFigures.generated +++ b/Documentation/Examples/collectionFigures.generated @@ -17,7 +17,7 @@ arangosh> db.demo.figures() }, "compactionStatus" : { "message" : "skipped compaction because collection has no datafiles", - "time" : "2019-02-15T14:42:56Z", + "time" : "2019-02-20T10:33:14Z", "count" : 0, "filesCombined" : 0, "bytesRead" : 0, diff --git a/Documentation/Examples/collectionFirstExample.generated b/Documentation/Examples/collectionFirstExample.generated index 1d8c71b9b3..25ad34df5c 100644 --- a/Documentation/Examples/collectionFirstExample.generated +++ b/Documentation/Examples/collectionFirstExample.generated @@ -1,7 +1,7 @@ arangosh> db.users.firstExample("name", "Angela"); { - "_key" : "109937", - "_id" : "users/109937", - "_rev" : "_YNEaXei--B", + "_key" : "109957", + "_id" : "users/109957", + "_rev" : "_YOn1e3u--B", "name" : "Angela" } diff --git a/Documentation/Examples/collectionFulltext.generated b/Documentation/Examples/collectionFulltext.generated index 597ed0a9e4..47ead3f9b5 100644 --- a/Documentation/Examples/collectionFulltext.generated +++ b/Documentation/Examples/collectionFulltext.generated @@ -3,7 +3,7 @@ arangosh> db.emails.ensureFulltextIndex("content""fields" : [ "content" ], - "id" : "emails/109952", + "id" : "emails/109972", "isNewlyCreated" : true, "minLength" : 2, "sparse" : true, @@ -14,35 +14,35 @@ arangosh> db.emails.ensureFulltextIndex("content"content: ........> "Hello Alice, how are you doing? Regards, Bob"}); { - "_id" : "emails/109955", - "_key" : "109955", - "_rev" : "_YNEaXgi--_" + "_id" : "emails/109975", + "_key" : "109975", + "_rev" : "_YOn1e5q--_" } arangosh> db.emails.save({ content: ........> "Hello Charlie, do Alice and Bob know about it?"}); { - "_id" : "emails/109959", - "_key" : "109959", - "_rev" : "_YNEaXgi--B" + "_id" : "emails/109979", + "_key" : "109979", + "_rev" : "_YOn1e5u--_" } arangosh> db.emails.save({ content: "I think they don't know. Regards, Eve" }); { - "_id" : "emails/109962", - "_key" : "109962", - "_rev" : "_YNEaXgm--_" + "_id" : "emails/109982", + "_key" : "109982", + "_rev" : "_YOn1e5u--B" } arangosh> db.emails.fulltext("content", "charlie,|eve").toArray(); [ { - "_key" : "109959", - "_id" : "emails/109959", - "_rev" : "_YNEaXgi--B", + "_key" : "109979", + "_id" : "emails/109979", + "_rev" : "_YOn1e5u--_", "content" : "Hello Charlie, do Alice and Bob know about it?" }, { - "_key" : "109962", - "_id" : "emails/109962", - "_rev" : "_YNEaXgm--_", + "_key" : "109982", + "_id" : "emails/109982", + "_rev" : "_YOn1e5u--B", "content" : "I think they don't know. Regards, Eve" } ] diff --git a/Documentation/Examples/collectionGetIndexes.generated b/Documentation/Examples/collectionGetIndexes.generated index e904e5e6a4..3b0d4141dc 100644 --- a/Documentation/Examples/collectionGetIndexes.generated +++ b/Documentation/Examples/collectionGetIndexes.generated @@ -6,7 +6,7 @@ arangosh> db.test.ensureHashIndex("hashListAttribut "hashListAttribute", "hashListSecondAttribute.subAttribute" ], - "id" : "test/109985", + "id" : "test/110005", "isNewlyCreated" : true, "selectivityEstimate" : 1, "sparse" : false, @@ -31,7 +31,7 @@ arangosh> db.test.getIndexes(); "fields" : [ "skiplistAttribute" ], - "id" : "test/109979", + "id" : "test/109999", "sparse" : false, "type" : "skiplist", "unique" : true @@ -41,7 +41,7 @@ arangosh> db.test.getIndexes(); "fields" : [ "skiplistUniqueAttribute" ], - "id" : "test/109982", + "id" : "test/110002", "sparse" : false, "type" : "skiplist", "unique" : true @@ -52,7 +52,7 @@ arangosh> db.test.getIndexes(); "hashListAttribute", "hashListSecondAttribute.subAttribute" ], - "id" : "test/109985", + "id" : "test/110005", "selectivityEstimate" : 1, "sparse" : false, "type" : "hash", diff --git a/Documentation/Examples/collectionLoad.generated b/Documentation/Examples/collectionLoad.generated index 47cf779b49..69213fdaac 100644 --- a/Documentation/Examples/collectionLoad.generated +++ b/Documentation/Examples/collectionLoad.generated @@ -1,5 +1,5 @@ arangosh> col = db.example; -[ArangoCollection 109993, "example" (type document, status loaded)] +[ArangoCollection 110013, "example" (type document, status loaded)] arangosh> col.load(); arangosh> col; -[ArangoCollection 109993, "example" (type document, status loaded)] +[ArangoCollection 110013, "example" (type document, status loaded)] diff --git a/Documentation/Examples/collectionLookupByKeys.generated b/Documentation/Examples/collectionLookupByKeys.generated index 09c286912f..c9bdeb7204 100644 --- a/Documentation/Examples/collectionLookupByKeys.generated +++ b/Documentation/Examples/collectionLookupByKeys.generated @@ -10,61 +10,61 @@ arangosh> db.example.documents(keys); { "_key" : "test0", "_id" : "example/test0", - "_rev" : "_YNEaXm2--_", + "_rev" : "_YOn1f_6--B", "value" : 0 }, { "_key" : "test1", "_id" : "example/test1", - "_rev" : "_YNEaXm2--B", + "_rev" : "_YOn1f_6--D", "value" : 1 }, { "_key" : "test2", "_id" : "example/test2", - "_rev" : "_YNEaXm2--D", + "_rev" : "_YOn1fA---_", "value" : 2 }, { "_key" : "test3", "_id" : "example/test3", - "_rev" : "_YNEaXm2--F", + "_rev" : "_YOn1fA---B", "value" : 3 }, { "_key" : "test4", "_id" : "example/test4", - "_rev" : "_YNEaXm2--H", + "_rev" : "_YOn1fA---D", "value" : 4 }, { "_key" : "test5", "_id" : "example/test5", - "_rev" : "_YNEaXm6--_", + "_rev" : "_YOn1fA---F", "value" : 5 }, { "_key" : "test6", "_id" : "example/test6", - "_rev" : "_YNEaXm6--B", + "_rev" : "_YOn1fA---H", "value" : 6 }, { "_key" : "test7", "_id" : "example/test7", - "_rev" : "_YNEaXm6--D", + "_rev" : "_YOn1fA---J", "value" : 7 }, { "_key" : "test8", "_id" : "example/test8", - "_rev" : "_YNEaXm6--F", + "_rev" : "_YOn1fAC--_", "value" : 8 }, { "_key" : "test9", "_id" : "example/test9", - "_rev" : "_YNEaXm6--H", + "_rev" : "_YOn1fAC--B", "value" : 9 } ] diff --git a/Documentation/Examples/collectionRename.generated b/Documentation/Examples/collectionRename.generated index 36b2d82da2..bebdf76cd5 100644 --- a/Documentation/Examples/collectionRename.generated +++ b/Documentation/Examples/collectionRename.generated @@ -1,5 +1,5 @@ arangosh> c = db.example; -[ArangoCollection 110111, "example" (type document, status loaded)] +[ArangoCollection 110131, "example" (type document, status loaded)] arangosh> c.rename("better-example"); arangosh> c; -[ArangoCollection 110111, "better-example" (type document, status loaded)] +[ArangoCollection 110131, "better-example" (type document, status loaded)] diff --git a/Documentation/Examples/collectionTruncate.generated b/Documentation/Examples/collectionTruncate.generated index 8e84a74f1d..a24d773f20 100644 --- a/Documentation/Examples/collectionTruncate.generated +++ b/Documentation/Examples/collectionTruncate.generated @@ -1,10 +1,10 @@ arangosh> col = db.example; -[ArangoCollection 110130, "example" (type document, status loaded)] +[ArangoCollection 110141, "example" (type document, status loaded)] arangosh> col.save({ "Hello" : "World" }); { - "_id" : "example/110137", - "_key" : "110137", - "_rev" : "_YNEaXtC--_" + "_id" : "example/110148", + "_key" : "110148", + "_rev" : "_YOn1fGK--_" } arangosh> col.count(); 1 diff --git a/Documentation/Examples/collectionsDatabaseName.generated b/Documentation/Examples/collectionsDatabaseName.generated index a6ea149426..a325da7385 100644 --- a/Documentation/Examples/collectionsDatabaseName.generated +++ b/Documentation/Examples/collectionsDatabaseName.generated @@ -14,5 +14,5 @@ arangosh> db._collections(); [ArangoCollection 8, "_users" (type document, status loaded)], [ArangoCollection 96, "animals" (type document, status loaded)], [ArangoCollection 87, "demo" (type document, status loaded)], - [ArangoCollection 110153, "example" (type document, status loaded)] + [ArangoCollection 110164, "example" (type document, status loaded)] ] diff --git a/Documentation/Examples/cursorHasNext.generated b/Documentation/Examples/cursorHasNext.generated index 25f7f01b53..b76a428f33 100644 --- a/Documentation/Examples/cursorHasNext.generated +++ b/Documentation/Examples/cursorHasNext.generated @@ -1,32 +1,32 @@ arangosh> var a = db._query("FOR x IN five RETURN x"); arangosh> while (a.hasNext()) print(a.next()); { - "_key" : "110265", - "_id" : "five/110265", - "_rev" : "_YNEaXyS--D", - "name" : "three" -} -{ - "_key" : "110258", - "_id" : "five/110258", - "_rev" : "_YNEaXyS--_", + "_key" : "110269", + "_id" : "five/110269", + "_rev" : "_YOn1fLW--_", "name" : "one" } { - "_key" : "110271", - "_id" : "five/110271", - "_rev" : "_YNEaXyW--B", - "name" : "five" -} -{ - "_key" : "110262", - "_id" : "five/110262", - "_rev" : "_YNEaXyS--B", + "_key" : "110273", + "_id" : "five/110273", + "_rev" : "_YOn1fLW--B", "name" : "two" } { - "_key" : "110268", - "_id" : "five/110268", - "_rev" : "_YNEaXyW--_", + "_key" : "110282", + "_id" : "five/110282", + "_rev" : "_YOn1fLa---", + "name" : "five" +} +{ + "_key" : "110276", + "_id" : "five/110276", + "_rev" : "_YOn1fLW--D", + "name" : "three" +} +{ + "_key" : "110279", + "_id" : "five/110279", + "_rev" : "_YOn1fLW--F", "name" : "four" } diff --git a/Documentation/Examples/cursorNext.generated b/Documentation/Examples/cursorNext.generated index fc539a4f21..d50ae89f44 100644 --- a/Documentation/Examples/cursorNext.generated +++ b/Documentation/Examples/cursorNext.generated @@ -1,7 +1,7 @@ arangosh> db._query("FOR x IN five RETURN x").next(); { - "_key" : "110293", - "_id" : "five/110293", - "_rev" : "_YNEaXzW--_", - "name" : "three" + "_key" : "110297", + "_id" : "five/110297", + "_rev" : "_YOn1fMW--B", + "name" : "one" } diff --git a/Documentation/Examples/dbPath.generated b/Documentation/Examples/dbPath.generated index f6538c4ea8..21b1d8d744 100644 --- a/Documentation/Examples/dbPath.generated +++ b/Documentation/Examples/dbPath.generated @@ -1,2 +1,2 @@ arangosh> require("@arangodb").db._path(); -/tmp/arangosh_q2Dy3I/tmp-13879-1274251971/data/databases/database-1 +/tmp/arangosh_uprJb4/tmp-27793-56941049/data/databases/database-1 diff --git a/Documentation/Examples/documentDocumentRemove.generated b/Documentation/Examples/documentDocumentRemove.generated index c7634aad6f..1359af8f74 100644 --- a/Documentation/Examples/documentDocumentRemove.generated +++ b/Documentation/Examples/documentDocumentRemove.generated @@ -1,21 +1,21 @@ arangosh> a1 = db.example.insert({ a : 1 }); { - "_id" : "example/110318", - "_key" : "110318", - "_rev" : "_YNEaX0W--_" + "_id" : "example/110329", + "_key" : "110329", + "_rev" : "_YOn1fNW--B" } arangosh> db.example.document(a1); { - "_key" : "110318", - "_id" : "example/110318", - "_rev" : "_YNEaX0W--_", + "_key" : "110329", + "_id" : "example/110329", + "_rev" : "_YOn1fNW--B", "a" : 1 } arangosh> db.example.remove(a1); { - "_id" : "example/110318", - "_key" : "110318", - "_rev" : "_YNEaX0W--_" + "_id" : "example/110329", + "_key" : "110329", + "_rev" : "_YOn1fNW--B" } arangosh> db.example.document(a1); [ArangoError 1202: document not found] diff --git a/Documentation/Examples/documentDocumentRemoveConflict.generated b/Documentation/Examples/documentDocumentRemoveConflict.generated index 2b74c6d623..d5171d2aa2 100644 --- a/Documentation/Examples/documentDocumentRemoveConflict.generated +++ b/Documentation/Examples/documentDocumentRemoveConflict.generated @@ -1,23 +1,23 @@ arangosh> a1 = db.example.insert({ a : 1 }); { - "_id" : "example/110337", - "_key" : "110337", - "_rev" : "_YNEaX1W--B" + "_id" : "example/110348", + "_key" : "110348", + "_rev" : "_YOn1fOa--B" } arangosh> a2 = db.example.replace(a1, { a : 2 }); { - "_id" : "example/110337", - "_key" : "110337", - "_rev" : "_YNEaX1a--_", - "_oldRev" : "_YNEaX1W--B" + "_id" : "example/110348", + "_key" : "110348", + "_rev" : "_YOn1fOe--_", + "_oldRev" : "_YOn1fOa--B" } arangosh> db.example.remove(a1); [ArangoError 1200: precondition failed] arangosh> db.example.remove(a1, true); { - "_id" : "example/110337", - "_key" : "110337", - "_rev" : "_YNEaX1a--_" + "_id" : "example/110348", + "_key" : "110348", + "_rev" : "_YOn1fOe--_" } arangosh> db.example.document(a1); [ArangoError 1202: document not found] diff --git a/Documentation/Examples/documentDocumentRemoveSimple.generated b/Documentation/Examples/documentDocumentRemoveSimple.generated index c2a2b4fe5c..07470bb663 100644 --- a/Documentation/Examples/documentDocumentRemoveSimple.generated +++ b/Documentation/Examples/documentDocumentRemoveSimple.generated @@ -1,21 +1,21 @@ arangosh> a1 = db.example.insert({ a : 1 }); { - "_id" : "example/110358", - "_key" : "110358", - "_rev" : "_YNEaX2a--_" + "_id" : "example/110369", + "_key" : "110369", + "_rev" : "_YOn1fPe--_" } arangosh> db.example.document(a1); { - "_key" : "110358", - "_id" : "example/110358", - "_rev" : "_YNEaX2a--_", + "_key" : "110369", + "_id" : "example/110369", + "_rev" : "_YOn1fPe--_", "a" : 1 } arangosh> db.example.remove(a1); { - "_id" : "example/110358", - "_key" : "110358", - "_rev" : "_YNEaX2a--_" + "_id" : "example/110369", + "_key" : "110369", + "_rev" : "_YOn1fPe--_" } arangosh> db.example.document(a1); [ArangoError 1202: document not found] diff --git a/Documentation/Examples/documentDocumentUpdate.generated b/Documentation/Examples/documentDocumentUpdate.generated index e2dc391c0f..aba966e72f 100644 --- a/Documentation/Examples/documentDocumentUpdate.generated +++ b/Documentation/Examples/documentDocumentUpdate.generated @@ -1,15 +1,15 @@ arangosh> a1 = db.example.insert({ a : 1 }); { - "_id" : "example/110377", - "_key" : "110377", - "_rev" : "_YNEaX3e--_" + "_id" : "example/110388", + "_key" : "110388", + "_rev" : "_YOn1fQe--B" } arangosh> a2 = db._update(a1, { b : 2 }); { - "_id" : "example/110377", - "_key" : "110377", - "_rev" : "_YNEaX3i--_", - "_oldRev" : "_YNEaX3e--_" + "_id" : "example/110388", + "_key" : "110388", + "_rev" : "_YOn1fQi--_", + "_oldRev" : "_YOn1fQe--B" } arangosh> a3 = db._update(a1, { c : 3 }); [ArangoError 1200: precondition failed] diff --git a/Documentation/Examples/documentsCollectionInsert.generated b/Documentation/Examples/documentsCollectionInsert.generated index 37dda20f84..4d599620c3 100644 --- a/Documentation/Examples/documentsCollectionInsert.generated +++ b/Documentation/Examples/documentsCollectionInsert.generated @@ -1,12 +1,12 @@ arangosh> db.example.insert({ Hello : "World" }); { - "_id" : "example/110395", - "_key" : "110395", - "_rev" : "_YNEaX4i--_" + "_id" : "example/110406", + "_key" : "110406", + "_rev" : "_YOn1fRi--_" } arangosh> db.example.insert({ Hello : "World" }, true); { - "_id" : "example/110399", - "_key" : "110399", - "_rev" : "_YNEaX4i--B" + "_id" : "example/110410", + "_key" : "110410", + "_rev" : "_YOn1fRi--B" } diff --git a/Documentation/Examples/documentsCollectionInsertMulti.generated b/Documentation/Examples/documentsCollectionInsertMulti.generated index d8390add8f..7786f90751 100644 --- a/Documentation/Examples/documentsCollectionInsertMulti.generated +++ b/Documentation/Examples/documentsCollectionInsertMulti.generated @@ -1,26 +1,26 @@ arangosh> db.example.insert([{ Hello : "World" }, {Hello: "there"}]) [ { - "_id" : "example/110413", - "_key" : "110413", - "_rev" : "_YNEaX5i--B" + "_id" : "example/110424", + "_key" : "110424", + "_rev" : "_YOn1fSi--B" }, { - "_id" : "example/110417", - "_key" : "110417", - "_rev" : "_YNEaX5i--D" + "_id" : "example/110428", + "_key" : "110428", + "_rev" : "_YOn1fSi--D" } ] arangosh> db.example.insert([{ Hello : "World" }, {}], {waitForSync: true}); [ { - "_id" : "example/110421", - "_key" : "110421", - "_rev" : "_YNEaX5m--_" + "_id" : "example/110432", + "_key" : "110432", + "_rev" : "_YOn1fSm--_" }, { - "_id" : "example/110425", - "_key" : "110425", - "_rev" : "_YNEaX5m--B" + "_id" : "example/110436", + "_key" : "110436", + "_rev" : "_YOn1fSm--B" } ] diff --git a/Documentation/Examples/documentsCollectionInsertSingle.generated b/Documentation/Examples/documentsCollectionInsertSingle.generated index 695c024114..6982d71750 100644 --- a/Documentation/Examples/documentsCollectionInsertSingle.generated +++ b/Documentation/Examples/documentsCollectionInsertSingle.generated @@ -1,12 +1,12 @@ arangosh> db.example.insert({ Hello : "World" }); { - "_id" : "example/110440", - "_key" : "110440", - "_rev" : "_YNEaX7G--B" + "_id" : "example/110451", + "_key" : "110451", + "_rev" : "_YOn1fUG--B" } arangosh> db.example.insert({ Hello : "World" }, {waitForSync: true}); { - "_id" : "example/110444", - "_key" : "110444", - "_rev" : "_YNEaX7K--_" + "_id" : "example/110455", + "_key" : "110455", + "_rev" : "_YOn1fUK--_" } diff --git a/Documentation/Examples/documentsCollectionInsertSingleOverwrite.generated b/Documentation/Examples/documentsCollectionInsertSingleOverwrite.generated index e1935187f8..4e94557808 100644 --- a/Documentation/Examples/documentsCollectionInsertSingleOverwrite.generated +++ b/Documentation/Examples/documentsCollectionInsertSingleOverwrite.generated @@ -2,18 +2,18 @@ arangosh> db.example.insert({ _key : "_id" : "example/666", "_key" : "666", - "_rev" : "_YNEaX8O--_" + "_rev" : "_YOn1fVO--B" } arangosh> db.example.insert({ _key : "666", Hello : "Universe" }, {overwrite: true, returnOld: true}); { "_id" : "example/666", "_key" : "666", - "_rev" : "_YNEaX8O--D", - "_oldRev" : "_YNEaX8O--_", + "_rev" : "_YOn1fVS--B", + "_oldRev" : "_YOn1fVO--B", "old" : { "_key" : "666", "_id" : "example/666", - "_rev" : "_YNEaX8O--_", + "_rev" : "_YOn1fVO--B", "Hello" : "World" } } diff --git a/Documentation/Examples/documentsCollectionName.generated b/Documentation/Examples/documentsCollectionName.generated index ab4bf9c036..b116e771ff 100644 --- a/Documentation/Examples/documentsCollectionName.generated +++ b/Documentation/Examples/documentsCollectionName.generated @@ -2,5 +2,5 @@ arangosh> db.example.document("example/2873916""_key" : "2873916", "_id" : "example/2873916", - "_rev" : "_YNEaX9O--B" + "_rev" : "_YOn1fWS--_" } diff --git a/Documentation/Examples/documentsCollectionNameValidByKey.generated b/Documentation/Examples/documentsCollectionNameValidByKey.generated index c0bb6de18e..af7d8826b4 100644 --- a/Documentation/Examples/documentsCollectionNameValidByKey.generated +++ b/Documentation/Examples/documentsCollectionNameValidByKey.generated @@ -2,5 +2,5 @@ arangosh> db.example.document("2873916"); { "_key" : "2873916", "_id" : "example/2873916", - "_rev" : "_YNEaYAS--B" + "_rev" : "_YOn1fZW--B" } diff --git a/Documentation/Examples/documentsCollectionNameValidByObject.generated b/Documentation/Examples/documentsCollectionNameValidByObject.generated index d0412c73eb..28a3aba1a0 100644 --- a/Documentation/Examples/documentsCollectionNameValidByObject.generated +++ b/Documentation/Examples/documentsCollectionNameValidByObject.generated @@ -2,5 +2,5 @@ arangosh> db.example.document({_id: "_key" : "2873916", "_id" : "example/2873916", - "_rev" : "_YNEaYBW--B" + "_rev" : "_YOn1faa--_" } diff --git a/Documentation/Examples/documentsCollectionNameValidMulti.generated b/Documentation/Examples/documentsCollectionNameValidMulti.generated index 3ce4b07856..a42622c57a 100644 --- a/Documentation/Examples/documentsCollectionNameValidMulti.generated +++ b/Documentation/Examples/documentsCollectionNameValidMulti.generated @@ -3,11 +3,11 @@ arangosh> db.example.document(["2873916","_key" : "2873916", "_id" : "example/2873916", - "_rev" : "_YNEaYCa--B" + "_rev" : "_YOn1fba--_" }, { "_key" : "2873917", "_id" : "example/2873917", - "_rev" : "_YNEaYCa--D" + "_rev" : "_YOn1fba--B" } ] diff --git a/Documentation/Examples/documentsCollectionNameValidPlain.generated b/Documentation/Examples/documentsCollectionNameValidPlain.generated index 52395484f8..2c41512cc3 100644 --- a/Documentation/Examples/documentsCollectionNameValidPlain.generated +++ b/Documentation/Examples/documentsCollectionNameValidPlain.generated @@ -2,5 +2,5 @@ arangosh> db.example.document("example/2873916""_key" : "2873916", "_id" : "example/2873916", - "_rev" : "_YNEaYDe--_" + "_rev" : "_YOn1fce--_" } diff --git a/Documentation/Examples/documentsCollectionRemoveConflict.generated b/Documentation/Examples/documentsCollectionRemoveConflict.generated index b4062f7320..91c4404edc 100644 --- a/Documentation/Examples/documentsCollectionRemoveConflict.generated +++ b/Documentation/Examples/documentsCollectionRemoveConflict.generated @@ -1,23 +1,23 @@ arangosh> a1 = db.example.insert({ a : 1 }); { - "_id" : "example/110580", - "_key" : "110580", - "_rev" : "_YNEaYEi--_" + "_id" : "example/110591", + "_key" : "110591", + "_rev" : "_YOn1fde--_" } arangosh> a2 = db._replace(a1, { a : 2 }); { - "_id" : "example/110580", - "_key" : "110580", - "_rev" : "_YNEaYEi--B", - "_oldRev" : "_YNEaYEi--_" + "_id" : "example/110591", + "_key" : "110591", + "_rev" : "_YOn1fde--B", + "_oldRev" : "_YOn1fde--_" } arangosh> db._remove(a1); [ArangoError 1200: precondition failed] arangosh> db._remove(a1, {overwrite: true} ); { - "_id" : "example/110580", - "_key" : "110580", - "_rev" : "_YNEaYEi--B" + "_id" : "example/110591", + "_key" : "110591", + "_rev" : "_YOn1fde--B" } arangosh> db._document(a1); [ArangoError 1202: document not found] diff --git a/Documentation/Examples/documentsCollectionRemoveSignature.generated b/Documentation/Examples/documentsCollectionRemoveSignature.generated index 568b866684..141a88456b 100644 --- a/Documentation/Examples/documentsCollectionRemoveSignature.generated +++ b/Documentation/Examples/documentsCollectionRemoveSignature.generated @@ -2,12 +2,12 @@ arangosh> db.example.insert({ _key: "_id" : "example/11265325374", "_key" : "11265325374", - "_rev" : "_YNEaYFi--_" + "_rev" : "_YOn1fee--B" } arangosh> db.example.remove("example/11265325374", ........> { overwrite: true, waitForSync: false}) { "_id" : "example/11265325374", "_key" : "11265325374", - "_rev" : "_YNEaYFi--_" + "_rev" : "_YOn1fee--B" } diff --git a/Documentation/Examples/documentsCollectionRemoveSuccess.generated b/Documentation/Examples/documentsCollectionRemoveSuccess.generated index 5d858e7edb..1a0aff742f 100644 --- a/Documentation/Examples/documentsCollectionRemoveSuccess.generated +++ b/Documentation/Examples/documentsCollectionRemoveSuccess.generated @@ -1,14 +1,14 @@ arangosh> a1 = db.example.insert({ a : 1 }); { - "_id" : "example/110617", - "_key" : "110617", - "_rev" : "_YNEaYGi--B" + "_id" : "example/110628", + "_key" : "110628", + "_rev" : "_YOn1ffi--B" } arangosh> db._remove(a1); { - "_id" : "example/110617", - "_key" : "110617", - "_rev" : "_YNEaYGi--B" + "_id" : "example/110628", + "_key" : "110628", + "_rev" : "_YOn1ffi--B" } arangosh> db._remove(a1); [ArangoError 1202: document not found] diff --git a/Documentation/Examples/documentsCollectionReplace.generated b/Documentation/Examples/documentsCollectionReplace.generated index 2be871f7d6..19034d1223 100644 --- a/Documentation/Examples/documentsCollectionReplace.generated +++ b/Documentation/Examples/documentsCollectionReplace.generated @@ -1,15 +1,15 @@ arangosh> a1 = db.example.insert({ a : 1 }); { - "_id" : "example/110636", - "_key" : "110636", - "_rev" : "_YNEaYHm--_" + "_id" : "example/110647", + "_key" : "110647", + "_rev" : "_YOn1fgm--_" } arangosh> a2 = db.example.replace(a1, { a : 2 }); { - "_id" : "example/110636", - "_key" : "110636", - "_rev" : "_YNEaYHm--B", - "_oldRev" : "_YNEaYHm--_" + "_id" : "example/110647", + "_key" : "110647", + "_rev" : "_YOn1fgm--B", + "_oldRev" : "_YOn1fgm--_" } arangosh> a3 = db.example.replace(a1, { a : 3 }); [ArangoError 1200: precondition failed] diff --git a/Documentation/Examples/documentsCollectionReplace1.generated b/Documentation/Examples/documentsCollectionReplace1.generated index a36d8bf1d4..35ca78c075 100644 --- a/Documentation/Examples/documentsCollectionReplace1.generated +++ b/Documentation/Examples/documentsCollectionReplace1.generated @@ -1,15 +1,15 @@ arangosh> a1 = db.example.insert({ a : 1 }); { - "_id" : "example/110654", - "_key" : "110654", - "_rev" : "_YNEaYIq--_" + "_id" : "example/110665", + "_key" : "110665", + "_rev" : "_YOn1fhm--B" } arangosh> a2 = db.example.replace(a1, { a : 2 }); { - "_id" : "example/110654", - "_key" : "110654", - "_rev" : "_YNEaYIq--B", - "_oldRev" : "_YNEaYIq--_" + "_id" : "example/110665", + "_key" : "110665", + "_rev" : "_YOn1fhq--_", + "_oldRev" : "_YOn1fhm--B" } 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 57a40023cc..0556c0f3c3 100644 --- a/Documentation/Examples/documentsCollectionReplaceHandle.generated +++ b/Documentation/Examples/documentsCollectionReplaceHandle.generated @@ -2,12 +2,12 @@ arangosh> a1 = db.example.insert({ a : "_id" : "example/3903045", "_key" : "3903045", - "_rev" : "_YNEaYJu--B" + "_rev" : "_YOn1fiq--D" } arangosh> a2 = db.example.replace("example/3903044", { a : 2 }); { "_id" : "example/3903044", "_key" : "3903044", - "_rev" : "_YNEaYJu--D", - "_oldRev" : "_YNEaYJu--_" + "_rev" : "_YOn1fiu--_", + "_oldRev" : "_YOn1fiq--B" } diff --git a/Documentation/Examples/documentsCollectionUpdate.generated b/Documentation/Examples/documentsCollectionUpdate.generated index dd885fef1c..d52697c2ae 100644 --- a/Documentation/Examples/documentsCollectionUpdate.generated +++ b/Documentation/Examples/documentsCollectionUpdate.generated @@ -1,30 +1,30 @@ arangosh> a1 = db.example.insert({"a" : 1}); { - "_id" : "example/110691", - "_key" : "110691", - "_rev" : "_YNEaYL---B" + "_id" : "example/110702", + "_key" : "110702", + "_rev" : "_YOn1fju--_" } arangosh> a2 = db.example.update(a1, {"b" : 2, "c" : 3}); { - "_id" : "example/110691", - "_key" : "110691", - "_rev" : "_YNEaYLC--_", - "_oldRev" : "_YNEaYL---B" + "_id" : "example/110702", + "_key" : "110702", + "_rev" : "_YOn1fju--B", + "_oldRev" : "_YOn1fju--_" } arangosh> a3 = db.example.update(a1, {"d" : 4}); [ArangoError 1200: precondition failed] arangosh> a4 = db.example.update(a2, {"e" : 5, "f" : 6 }); { - "_id" : "example/110691", - "_key" : "110691", - "_rev" : "_YNEaYLC--C", - "_oldRev" : "_YNEaYLC--_" + "_id" : "example/110702", + "_key" : "110702", + "_rev" : "_YOn1fjy--_", + "_oldRev" : "_YOn1fju--B" } arangosh> db.example.document(a4); { - "_key" : "110691", - "_id" : "example/110691", - "_rev" : "_YNEaYLC--C", + "_key" : "110702", + "_id" : "example/110702", + "_rev" : "_YOn1fjy--_", "a" : 1, "c" : 3, "b" : 2, @@ -33,16 +33,16 @@ arangosh> db.example.document(a4); } arangosh> a5 = db.example.update(a4, {"a" : 1, c : 9, e : 42 }); { - "_id" : "example/110691", - "_key" : "110691", - "_rev" : "_YNEaYLG--_", - "_oldRev" : "_YNEaYLC--C" + "_id" : "example/110702", + "_key" : "110702", + "_rev" : "_YOn1fjy--B", + "_oldRev" : "_YOn1fjy--_" } arangosh> db.example.document(a5); { - "_key" : "110691", - "_id" : "example/110691", - "_rev" : "_YNEaYLG--_", + "_key" : "110702", + "_id" : "example/110702", + "_rev" : "_YOn1fjy--B", "a" : 1, "c" : 9, "b" : 2, diff --git a/Documentation/Examples/documentsCollectionUpdateHandle.generated b/Documentation/Examples/documentsCollectionUpdateHandle.generated index 377d3487aa..d1c3d514b7 100644 --- a/Documentation/Examples/documentsCollectionUpdateHandle.generated +++ b/Documentation/Examples/documentsCollectionUpdateHandle.generated @@ -2,12 +2,12 @@ arangosh> a1 = db.example.insert({"a" : "_id" : "example/18612116", "_key" : "18612116", - "_rev" : "_YNEaYMG--B" + "_rev" : "_YOn1fku--D" } arangosh> a2 = db.example.update("example/18612115", { "x" : 1, "y" : 2 }); { "_id" : "example/18612115", "_key" : "18612115", - "_rev" : "_YNEaYMG--D", - "_oldRev" : "_YNEaYMG--_" + "_rev" : "_YOn1fky--_", + "_oldRev" : "_YOn1fku--B" } diff --git a/Documentation/Examples/documentsCollectionUpdateHandleArray.generated b/Documentation/Examples/documentsCollectionUpdateHandleArray.generated index f1a6e1f231..1a607686aa 100644 --- a/Documentation/Examples/documentsCollectionUpdateHandleArray.generated +++ b/Documentation/Examples/documentsCollectionUpdateHandleArray.generated @@ -3,21 +3,21 @@ arangosh> db.example.insert({"a" : { "_id" : "example/20774804", "_key" : "20774804", - "_rev" : "_YNEaYN---B" + "_rev" : "_YOn1flu--D" } arangosh> db.example.update("example/20774803", {"a" : { "four" : 4 }, ........> "b" : { "b1" : 1 }}); { "_id" : "example/20774803", "_key" : "20774803", - "_rev" : "_YNEaYN---D", - "_oldRev" : "_YNEaYN---_" + "_rev" : "_YOn1fly--_", + "_oldRev" : "_YOn1flu--B" } arangosh> db.example.document("example/20774803"); { "_key" : "20774803", "_id" : "example/20774803", - "_rev" : "_YNEaYN---D", + "_rev" : "_YOn1fly--_", "b" : { "b1" : 1 }, @@ -31,14 +31,14 @@ arangosh> db.example.update("example/20774803""_id" : "example/20774803", "_key" : "20774803", - "_rev" : "_YNEaYNC--_", - "_oldRev" : "_YNEaYN---D" + "_rev" : "_YOn1fly--B", + "_oldRev" : "_YOn1fly--_" } arangosh> db.example.document("example/20774803"); { "_key" : "20774803", "_id" : "example/20774803", - "_rev" : "_YNEaYNC--_", + "_rev" : "_YOn1fly--B", "a" : { "four" : 4 } diff --git a/Documentation/Examples/documentsCollectionUpdateHandleKeepNull.generated b/Documentation/Examples/documentsCollectionUpdateHandleKeepNull.generated index ef37ec03a4..b494b6b92a 100644 --- a/Documentation/Examples/documentsCollectionUpdateHandleKeepNull.generated +++ b/Documentation/Examples/documentsCollectionUpdateHandleKeepNull.generated @@ -2,21 +2,21 @@ arangosh> db.example.insert({"a" : "_id" : "example/19988372", "_key" : "19988372", - "_rev" : "_YNEaYOC--_" + "_rev" : "_YOn1fmy--B" } arangosh> db.example.update("example/19988371", ........> { "b" : null, "c" : null, "d" : 3 }); { "_id" : "example/19988371", "_key" : "19988371", - "_rev" : "_YNEaYOC--B", - "_oldRev" : "_YNEaYO---B" + "_rev" : "_YOn1fm2--_", + "_oldRev" : "_YOn1fmy--_" } arangosh> db.example.document("example/19988371"); { "_key" : "19988371", "_id" : "example/19988371", - "_rev" : "_YNEaYOC--B", + "_rev" : "_YOn1fm2--_", "d" : 3, "b" : null, "c" : null @@ -25,14 +25,14 @@ arangosh> db.example.update("example/19988371""_id" : "example/19988371", "_key" : "19988371", - "_rev" : "_YNEaYOC--D", - "_oldRev" : "_YNEaYOC--B" + "_rev" : "_YOn1fm2--B", + "_oldRev" : "_YOn1fm2--_" } arangosh> db.example.document("example/19988371"); { "_key" : "19988371", "_id" : "example/19988371", - "_rev" : "_YNEaYOC--D", + "_rev" : "_YOn1fm2--B", "d" : 3, "b" : null, "c" : null @@ -42,12 +42,12 @@ arangosh> db.example.update("example/19988371""_id" : "example/19988371", "_key" : "19988371", - "_rev" : "_YNEaYOG--_", - "_oldRev" : "_YNEaYOC--D" + "_rev" : "_YOn1fm2--D", + "_oldRev" : "_YOn1fm2--B" } arangosh> db.example.document("example/19988371"); { "_key" : "19988371", "_id" : "example/19988371", - "_rev" : "_YNEaYOG--_" + "_rev" : "_YOn1fm2--D" } diff --git a/Documentation/Examples/documentsCollection_UpdateDocument.generated b/Documentation/Examples/documentsCollection_UpdateDocument.generated index 5e30c9bd9b..98d515ff62 100644 --- a/Documentation/Examples/documentsCollection_UpdateDocument.generated +++ b/Documentation/Examples/documentsCollection_UpdateDocument.generated @@ -1,30 +1,30 @@ arangosh> a1 = db.example.insert({"a" : 1}); { - "_id" : "example/110783", - "_key" : "110783", - "_rev" : "_YNEaYP---B" + "_id" : "example/110794", + "_key" : "110794", + "_rev" : "_YOn1fny--B" } arangosh> a2 = db.example.update(a1, {"b" : 2, "c" : 3}); { - "_id" : "example/110783", - "_key" : "110783", - "_rev" : "_YNEaYPC--_", - "_oldRev" : "_YNEaYP---B" + "_id" : "example/110794", + "_key" : "110794", + "_rev" : "_YOn1fn2--_", + "_oldRev" : "_YOn1fny--B" } arangosh> a3 = db.example.update(a1, {"d" : 4}); [ArangoError 1200: precondition failed] arangosh> a4 = db.example.update(a2, {"e" : 5, "f" : 6 }); { - "_id" : "example/110783", - "_key" : "110783", - "_rev" : "_YNEaYPC--C", - "_oldRev" : "_YNEaYPC--_" + "_id" : "example/110794", + "_key" : "110794", + "_rev" : "_YOn1fn2--C", + "_oldRev" : "_YOn1fn2--_" } arangosh> db.example.document(a4); { - "_key" : "110783", - "_id" : "example/110783", - "_rev" : "_YNEaYPC--C", + "_key" : "110794", + "_id" : "example/110794", + "_rev" : "_YOn1fn2--C", "a" : 1, "c" : 3, "b" : 2, @@ -33,16 +33,16 @@ arangosh> db.example.document(a4); } arangosh> a5 = db.example.update(a4, {"a" : 1, c : 9, e : 42 }); { - "_id" : "example/110783", - "_key" : "110783", - "_rev" : "_YNEaYPG--_", - "_oldRev" : "_YNEaYPC--C" + "_id" : "example/110794", + "_key" : "110794", + "_rev" : "_YOn1fn6--_", + "_oldRev" : "_YOn1fn2--C" } arangosh> db.example.document(a5); { - "_key" : "110783", - "_id" : "example/110783", - "_rev" : "_YNEaYPG--_", + "_key" : "110794", + "_id" : "example/110794", + "_rev" : "_YOn1fn6--_", "a" : 1, "c" : 9, "b" : 2, diff --git a/Documentation/Examples/documentsCollection_UpdateHandleArray.generated b/Documentation/Examples/documentsCollection_UpdateHandleArray.generated index 9430b3d4e4..20312d2a18 100644 --- a/Documentation/Examples/documentsCollection_UpdateHandleArray.generated +++ b/Documentation/Examples/documentsCollection_UpdateHandleArray.generated @@ -3,21 +3,21 @@ arangosh> db.example.insert({"a" : { "_id" : "example/20774804", "_key" : "20774804", - "_rev" : "_YNEaYQC--B" + "_rev" : "_YOn1fo6--_" } arangosh> db.example.update("example/20774803", {"a" : { "four" : 4 }, ........> "b" : { "b1" : 1 }}); { "_id" : "example/20774803", "_key" : "20774803", - "_rev" : "_YNEaYQG--_", - "_oldRev" : "_YNEaYQC--_" + "_rev" : "_YOn1fo6--B", + "_oldRev" : "_YOn1fo2--B" } arangosh> db.example.document("example/20774803"); { "_key" : "20774803", "_id" : "example/20774803", - "_rev" : "_YNEaYQG--_", + "_rev" : "_YOn1fo6--B", "b" : { "b1" : 1 }, @@ -31,14 +31,14 @@ arangosh> db.example.update("example/20774803""_id" : "example/20774803", "_key" : "20774803", - "_rev" : "_YNEaYQG--B", - "_oldRev" : "_YNEaYQG--_" + "_rev" : "_YOn1fo6--D", + "_oldRev" : "_YOn1fo6--B" } arangosh> db.example.document("example/20774803"); { "_key" : "20774803", "_id" : "example/20774803", - "_rev" : "_YNEaYQG--B", + "_rev" : "_YOn1fo6--D", "a" : { "four" : 4 } diff --git a/Documentation/Examples/documentsCollection_UpdateHandleKeepNull.generated b/Documentation/Examples/documentsCollection_UpdateHandleKeepNull.generated index fa2aaa26b8..54ced0663b 100644 --- a/Documentation/Examples/documentsCollection_UpdateHandleKeepNull.generated +++ b/Documentation/Examples/documentsCollection_UpdateHandleKeepNull.generated @@ -2,21 +2,21 @@ arangosh> db.example.insert({"a" : "_id" : "example/19988372", "_key" : "19988372", - "_rev" : "_YNEaYRG--B" + "_rev" : "_YOn1fp6--_" } arangosh> db.example.update("example/19988371", ........> { "b" : null, "c" : null, "d" : 3 }); { "_id" : "example/19988371", "_key" : "19988371", - "_rev" : "_YNEaYRG--D", - "_oldRev" : "_YNEaYRG--_" + "_rev" : "_YOn1fp6--B", + "_oldRev" : "_YOn1fp2--B" } arangosh> db.example.document("example/19988371"); { "_key" : "19988371", "_id" : "example/19988371", - "_rev" : "_YNEaYRG--D", + "_rev" : "_YOn1fp6--B", "d" : 3, "b" : null, "c" : null @@ -25,14 +25,14 @@ arangosh> db.example.update("example/19988371""_id" : "example/19988371", "_key" : "19988371", - "_rev" : "_YNEaYRK--_", - "_oldRev" : "_YNEaYRG--D" + "_rev" : "_YOn1fq---_", + "_oldRev" : "_YOn1fp6--B" } arangosh> db.example.document("example/19988371"); { "_key" : "19988371", "_id" : "example/19988371", - "_rev" : "_YNEaYRK--_", + "_rev" : "_YOn1fq---_", "d" : 3, "b" : null, "c" : null @@ -42,12 +42,12 @@ arangosh> db.example.update("example/19988371""_id" : "example/19988371", "_key" : "19988371", - "_rev" : "_YNEaYRO--_", - "_oldRev" : "_YNEaYRK--_" + "_rev" : "_YOn1fq---B", + "_oldRev" : "_YOn1fq---_" } arangosh> db.example.document("example/19988371"); { "_key" : "19988371", "_id" : "example/19988371", - "_rev" : "_YNEaYRO--_" + "_rev" : "_YOn1fq---B" } diff --git a/Documentation/Examples/documentsCollection_UpdateHandleSingle.generated b/Documentation/Examples/documentsCollection_UpdateHandleSingle.generated index 388f6e8ffb..c5b1f5ce4a 100644 --- a/Documentation/Examples/documentsCollection_UpdateHandleSingle.generated +++ b/Documentation/Examples/documentsCollection_UpdateHandleSingle.generated @@ -2,12 +2,12 @@ arangosh> a1 = db.example.insert({"a" : "_id" : "example/18612116", "_key" : "18612116", - "_rev" : "_YNEaYSG--B" + "_rev" : "_YOn1fq6--D" } arangosh> a2 = db.example.update("example/18612115", { "x" : 1, "y" : 2 }); { "_id" : "example/18612115", "_key" : "18612115", - "_rev" : "_YNEaYSK---", - "_oldRev" : "_YNEaYSG--_" + "_rev" : "_YOn1fr---_", + "_oldRev" : "_YOn1fq6--B" } diff --git a/Documentation/Examples/documentsDocumentName.generated b/Documentation/Examples/documentsDocumentName.generated index a5661677c4..0122ea6aab 100644 --- a/Documentation/Examples/documentsDocumentName.generated +++ b/Documentation/Examples/documentsDocumentName.generated @@ -2,5 +2,5 @@ arangosh> db._document("example/12345"); { "_key" : "12345", "_id" : "example/12345", - "_rev" : "_YNEaYVO--_" + "_rev" : "_YOn1fs---_" } diff --git a/Documentation/Examples/documentsDocumentReplace.generated b/Documentation/Examples/documentsDocumentReplace.generated index 50ce665db5..d87cbd1501 100644 --- a/Documentation/Examples/documentsDocumentReplace.generated +++ b/Documentation/Examples/documentsDocumentReplace.generated @@ -1,15 +1,15 @@ arangosh> a1 = db.example.insert({ a : 1 }); { - "_id" : "example/110890", - "_key" : "110890", - "_rev" : "_YNEaYW---B" + "_id" : "example/110901", + "_key" : "110901", + "_rev" : "_YOn1ft---B" } arangosh> a2 = db._replace(a1, { a : 2 }); { - "_id" : "example/110890", - "_key" : "110890", - "_rev" : "_YNEaYWC--_", - "_oldRev" : "_YNEaYW---B" + "_id" : "example/110901", + "_key" : "110901", + "_rev" : "_YOn1ft---D", + "_oldRev" : "_YOn1ft---B" } arangosh> a3 = db._replace(a1, { a : 3 }); [ArangoError 1200: precondition failed] diff --git a/Documentation/Examples/dropIndex.generated b/Documentation/Examples/dropIndex.generated index bd19214331..cd270d9f5d 100644 --- a/Documentation/Examples/dropIndex.generated +++ b/Documentation/Examples/dropIndex.generated @@ -5,7 +5,7 @@ arangosh> db.example.ensureIndex({ type: "a", "b" ], - "id" : "example/110908", + "id" : "example/110919", "isNewlyCreated" : true, "sparse" : false, "type" : "skiplist", @@ -31,7 +31,7 @@ arangosh> indexInfo; "a", "b" ], - "id" : "example/110908", + "id" : "example/110919", "sparse" : false, "type" : "skiplist", "unique" : false diff --git a/Documentation/Examples/ensureFulltextIndex.generated b/Documentation/Examples/ensureFulltextIndex.generated index 0ceba0837f..72f0536371 100644 --- a/Documentation/Examples/ensureFulltextIndex.generated +++ b/Documentation/Examples/ensureFulltextIndex.generated @@ -3,7 +3,7 @@ arangosh> db.example.ensureIndex({ type: "fields" : [ "text" ], - "id" : "example/110927", + "id" : "example/110938", "isNewlyCreated" : true, "minLength" : 3, "sparse" : true, @@ -13,79 +13,79 @@ arangosh> db.example.ensureIndex({ type: text : "the quick brown", b : { c : 1 } }); { - "_id" : "example/110930", - "_key" : "110930", - "_rev" : "_YNEaYam--_" + "_id" : "example/110941", + "_key" : "110941", + "_rev" : "_YOn1fxq--_" } arangosh> db.example.save({ text : "quick brown fox", b : { c : 2 } }); { - "_id" : "example/110934", - "_key" : "110934", - "_rev" : "_YNEaYaq--_" + "_id" : "example/110945", + "_key" : "110945", + "_rev" : "_YOn1fxq--B" } arangosh> db.example.save({ text : "brown fox jums", b : { c : 3 } }); { - "_id" : "example/110937", - "_key" : "110937", - "_rev" : "_YNEaYaq--B" + "_id" : "example/110948", + "_key" : "110948", + "_rev" : "_YOn1fxu--_" } arangosh> db.example.save({ text : "fox jumps over", b : { c : 4 } }); { - "_id" : "example/110940", - "_key" : "110940", - "_rev" : "_YNEaYaq--D" + "_id" : "example/110951", + "_key" : "110951", + "_rev" : "_YOn1fxu--B" } arangosh> db.example.save({ text : "jumps over the", b : { c : 5 } }); { - "_id" : "example/110943", - "_key" : "110943", - "_rev" : "_YNEaYau--_" + "_id" : "example/110954", + "_key" : "110954", + "_rev" : "_YOn1fxu--D" } arangosh> db.example.save({ text : "over the lazy", b : { c : 6 } }); { - "_id" : "example/110946", - "_key" : "110946", - "_rev" : "_YNEaYau--B" + "_id" : "example/110957", + "_key" : "110957", + "_rev" : "_YOn1fxy--_" } arangosh> db.example.save({ text : "the lazy dog", b : { c : 7 } }); { - "_id" : "example/110949", - "_key" : "110949", - "_rev" : "_YNEaYay--_" + "_id" : "example/110960", + "_key" : "110960", + "_rev" : "_YOn1fxy--B" } arangosh> db._query("FOR document IN FULLTEXT(example, 'text', 'the') RETURN document"); [ { - "_key" : "110930", - "_id" : "example/110930", - "_rev" : "_YNEaYam--_", + "_key" : "110941", + "_id" : "example/110941", + "_rev" : "_YOn1fxq--_", "text" : "the quick brown", "b" : { "c" : 1 } }, { - "_key" : "110943", - "_id" : "example/110943", - "_rev" : "_YNEaYau--_", + "_key" : "110954", + "_id" : "example/110954", + "_rev" : "_YOn1fxu--D", "text" : "jumps over the", "b" : { "c" : 5 } }, { - "_key" : "110946", - "_id" : "example/110946", - "_rev" : "_YNEaYau--B", + "_key" : "110957", + "_id" : "example/110957", + "_rev" : "_YOn1fxy--_", "text" : "over the lazy", "b" : { "c" : 6 } }, { - "_key" : "110949", - "_id" : "example/110949", - "_rev" : "_YNEaYay--_", + "_key" : "110960", + "_id" : "example/110960", + "_rev" : "_YOn1fxy--B", "text" : "the lazy dog", "b" : { "c" : 7 diff --git a/Documentation/Examples/ensureHashIndex.generated b/Documentation/Examples/ensureHashIndex.generated index 914ac9e0ba..cf636007a1 100644 --- a/Documentation/Examples/ensureHashIndex.generated +++ b/Documentation/Examples/ensureHashIndex.generated @@ -4,7 +4,7 @@ arangosh> db.test.ensureIndex({ type: "fields" : [ "a" ], - "id" : "test/110964", + "id" : "test/110975", "isNewlyCreated" : true, "selectivityEstimate" : 1, "sparse" : false, @@ -14,19 +14,19 @@ arangosh> db.test.ensureIndex({ type: a : 1 }); { - "_id" : "test/110967", - "_key" : "110967", - "_rev" : "_YNEaYcq--_" + "_id" : "test/110978", + "_key" : "110978", + "_rev" : "_YOn1fzu--_" } arangosh> db.test.save({ a : 1 }); { - "_id" : "test/110971", - "_key" : "110971", - "_rev" : "_YNEaYcq--B" + "_id" : "test/110982", + "_key" : "110982", + "_rev" : "_YOn1fzu--B" } arangosh> db.test.save({ a : null }); { - "_id" : "test/110974", - "_key" : "110974", - "_rev" : "_YNEaYcu--_" + "_id" : "test/110985", + "_key" : "110985", + "_rev" : "_YOn1fzy--_" } diff --git a/Documentation/Examples/ensureHashIndexArray.generated b/Documentation/Examples/ensureHashIndexArray.generated index 795604a209..14d72b95ac 100644 --- a/Documentation/Examples/ensureHashIndexArray.generated +++ b/Documentation/Examples/ensureHashIndexArray.generated @@ -4,7 +4,7 @@ arangosh> db.test.ensureIndex({ type: "fields" : [ "a[*]" ], - "id" : "test/110988", + "id" : "test/110999", "isNewlyCreated" : true, "selectivityEstimate" : 1, "sparse" : false, @@ -14,19 +14,19 @@ arangosh> db.test.ensureIndex({ type: a : [ 1, 2 ] }); { - "_id" : "test/110991", - "_key" : "110991", - "_rev" : "_YNEaYey--_" + "_id" : "test/111002", + "_key" : "111002", + "_rev" : "_YOn1f1y--_" } arangosh> db.test.save({ a : [ 1, 3 ] }); { - "_id" : "test/110995", - "_key" : "110995", - "_rev" : "_YNEaYey--B" + "_id" : "test/111006", + "_key" : "111006", + "_rev" : "_YOn1f12--_" } arangosh> db.test.save({ a : null }); { - "_id" : "test/110998", - "_key" : "110998", - "_rev" : "_YNEaYey--D" + "_id" : "test/111009", + "_key" : "111009", + "_rev" : "_YOn1f12--B" } diff --git a/Documentation/Examples/ensurePersistent.generated b/Documentation/Examples/ensurePersistent.generated index 2d36473445..4aaa248f64 100644 --- a/Documentation/Examples/ensurePersistent.generated +++ b/Documentation/Examples/ensurePersistent.generated @@ -4,7 +4,7 @@ arangosh> db.names.ensureIndex({ type: "fields" : [ "first" ], - "id" : "names/111012", + "id" : "names/111023", "isNewlyCreated" : true, "sparse" : false, "type" : "persistent", @@ -13,31 +13,31 @@ arangosh> db.names.ensureIndex({ type: "first" : "Tim" }); { - "_id" : "names/111015", - "_key" : "111015", - "_rev" : "_YNEaYg2--_" + "_id" : "names/111026", + "_key" : "111026", + "_rev" : "_YOn1f36--_" } arangosh> db.names.save({ "first" : "Tom" }); { - "_id" : "names/111019", - "_key" : "111019", - "_rev" : "_YNEaYhS--_" + "_id" : "names/111030", + "_key" : "111030", + "_rev" : "_YOn1f36--B" } arangosh> db.names.save({ "first" : "John" }); { - "_id" : "names/111022", - "_key" : "111022", - "_rev" : "_YNEaYhS--B" + "_id" : "names/111033", + "_key" : "111033", + "_rev" : "_YOn1f36--D" } arangosh> db.names.save({ "first" : "Tim" }); { - "_id" : "names/111025", - "_key" : "111025", - "_rev" : "_YNEaYhW--_" + "_id" : "names/111036", + "_key" : "111036", + "_rev" : "_YOn1f4---_" } arangosh> db.names.save({ "first" : "Tom" }); { - "_id" : "names/111028", - "_key" : "111028", - "_rev" : "_YNEaYhW--B" + "_id" : "names/111039", + "_key" : "111039", + "_rev" : "_YOn1f4---B" } diff --git a/Documentation/Examples/ensureSkiplist.generated b/Documentation/Examples/ensureSkiplist.generated index 222fda4ed5..4885ffc0e8 100644 --- a/Documentation/Examples/ensureSkiplist.generated +++ b/Documentation/Examples/ensureSkiplist.generated @@ -4,7 +4,7 @@ arangosh> db.names.ensureIndex({ type: "fields" : [ "first" ], - "id" : "names/111042", + "id" : "names/111053", "isNewlyCreated" : true, "sparse" : false, "type" : "skiplist", @@ -13,31 +13,31 @@ arangosh> db.names.ensureIndex({ type: "first" : "Tim" }); { - "_id" : "names/111045", - "_key" : "111045", - "_rev" : "_YNEaYjG--_" + "_id" : "names/111056", + "_key" : "111056", + "_rev" : "_YOn1f6---_" } arangosh> db.names.save({ "first" : "Tom" }); { - "_id" : "names/111049", - "_key" : "111049", - "_rev" : "_YNEaYjG--B" + "_id" : "names/111060", + "_key" : "111060", + "_rev" : "_YOn1f6---B" } arangosh> db.names.save({ "first" : "John" }); { - "_id" : "names/111052", - "_key" : "111052", - "_rev" : "_YNEaYjK--_" + "_id" : "names/111063", + "_key" : "111063", + "_rev" : "_YOn1f6---D" } arangosh> db.names.save({ "first" : "Tim" }); { - "_id" : "names/111055", - "_key" : "111055", - "_rev" : "_YNEaYjK--B" + "_id" : "names/111066", + "_key" : "111066", + "_rev" : "_YOn1f6C--_" } arangosh> db.names.save({ "first" : "Tom" }); { - "_id" : "names/111058", - "_key" : "111058", - "_rev" : "_YNEaYjK--D" + "_id" : "names/111069", + "_key" : "111069", + "_rev" : "_YOn1f6C--B" } diff --git a/Documentation/Examples/ensureSkiplistArray.generated b/Documentation/Examples/ensureSkiplistArray.generated index 0cc04840b2..d5628ffcaa 100644 --- a/Documentation/Examples/ensureSkiplistArray.generated +++ b/Documentation/Examples/ensureSkiplistArray.generated @@ -4,7 +4,7 @@ arangosh> db.test.ensureIndex({ type: "fields" : [ "a[*]" ], - "id" : "test/111072", + "id" : "test/111083", "isNewlyCreated" : true, "sparse" : false, "type" : "skiplist", @@ -13,19 +13,19 @@ arangosh> db.test.ensureIndex({ type: a : [ 1, 2 ] }); { - "_id" : "test/111075", - "_key" : "111075", - "_rev" : "_YNEaYlK--_" + "_id" : "test/111086", + "_key" : "111086", + "_rev" : "_YOn1f8G--_" } arangosh> db.test.save({ a : [ 1, 3 ] }); { - "_id" : "test/111079", - "_key" : "111079", - "_rev" : "_YNEaYlO--_" + "_id" : "test/111090", + "_key" : "111090", + "_rev" : "_YOn1f8G--B" } arangosh> db.test.save({ a : null }); { - "_id" : "test/111082", - "_key" : "111082", - "_rev" : "_YNEaYlO--B" + "_id" : "test/111093", + "_key" : "111093", + "_rev" : "_YOn1f8G--D" } diff --git a/Documentation/Examples/ensureTtlIndex.generated b/Documentation/Examples/ensureTtlIndex.generated index 678d475372..0726a8b47d 100644 --- a/Documentation/Examples/ensureTtlIndex.generated +++ b/Documentation/Examples/ensureTtlIndex.generated @@ -4,11 +4,11 @@ arangosh> db.test.ensureIndex({ type: "fields" : [ "creationDate" ], - "id" : "test/111096", + "id" : "test/111107", "isNewlyCreated" : true, "sparse" : true, "type" : "ttl", "unique" : false, "code" : 201 } -arangosh> for (let i = 0; i < 100; ++i) { db.test.insert({ creationDate: Date.now() }); } +arangosh> for (let i = 0; i < 100; ++i) { db.test.insert({ creationDate: Date.now() / 1000 }); } diff --git a/Documentation/Examples/ensureUniqueConstraint.generated b/Documentation/Examples/ensureUniqueConstraint.generated index 2552182eff..b65ceff8c9 100644 --- a/Documentation/Examples/ensureUniqueConstraint.generated +++ b/Documentation/Examples/ensureUniqueConstraint.generated @@ -5,7 +5,7 @@ arangosh> db.test.ensureIndex({ type: "a", "b.c" ], - "id" : "test/111411", + "id" : "test/111422", "isNewlyCreated" : true, "selectivityEstimate" : 1, "sparse" : false, @@ -15,17 +15,17 @@ arangosh> db.test.ensureIndex({ type: a : 1, b : { c : 1 } }); { - "_id" : "test/111414", - "_key" : "111414", - "_rev" : "_YNEaYpy--_" + "_id" : "test/111425", + "_key" : "111425", + "_rev" : "_YOn1gAy--_" } arangosh> db.test.save({ a : 1, b : { c : 1 } }); -[ArangoError 1210: unique constraint violated - in index 111411 of type hash over 'a, b.c'; conflicting key: 111414] +[ArangoError 1210: - in index 111422 of type hash over 'a, b.c'; conflicting key: 111425] arangosh> db.test.save({ a : 1, b : { c : null } }); { - "_id" : "test/111420", - "_key" : "111420", - "_rev" : "_YNEaYp2--_" + "_id" : "test/111431", + "_key" : "111431", + "_rev" : "_YOn1gA2--B" } arangosh> db.test.save({ a : 1 }); -[ArangoError 1210: unique constraint violated - in index 111411 of type hash over 'a, b.c'; conflicting key: 111420] +[ArangoError 1210: - in index 111422 of type hash over 'a, b.c'; conflicting key: 111431] diff --git a/Documentation/Examples/ensureUniquePersistentMultiColmun.generated b/Documentation/Examples/ensureUniquePersistentMultiColmun.generated index e3f8bf2ed4..d084126d7b 100644 --- a/Documentation/Examples/ensureUniquePersistentMultiColmun.generated +++ b/Documentation/Examples/ensureUniquePersistentMultiColmun.generated @@ -5,7 +5,7 @@ arangosh> db.ids.ensureIndex({ type: "name.first", "name.last" ], - "id" : "ids/111436", + "id" : "ids/111447", "isNewlyCreated" : true, "sparse" : false, "type" : "persistent", @@ -14,21 +14,21 @@ arangosh> db.ids.ensureIndex({ type: "name" : { "first" : "hans", "last": "hansen" }}); { - "_id" : "ids/111439", - "_key" : "111439", - "_rev" : "_YNEaYr2--_" + "_id" : "ids/111450", + "_key" : "111450", + "_rev" : "_YOn1gC6--_" } arangosh> db.ids.save({ "name" : { "first" : "jens", "last": "jensen" }}); { - "_id" : "ids/111443", - "_key" : "111443", - "_rev" : "_YNEaYr6--_" + "_id" : "ids/111454", + "_key" : "111454", + "_rev" : "_YOn1gC6--B" } arangosh> db.ids.save({ "name" : { "first" : "hans", "last": "jensen" }}); { - "_id" : "ids/111446", - "_key" : "111446", - "_rev" : "_YNEaYr6--B" + "_id" : "ids/111457", + "_key" : "111457", + "_rev" : "_YOn1gC6--D" } arangosh> db.ids.save({ "name" : { "first" : "hans", "last": "hansen" }}); -[ArangoError 1210: unique constraint violated - in index 111436 of type persistent over 'name.first, name.last'; conflicting key: 111439] +[ArangoError 1210: - in index 111447 of type persistent over 'name.first, name.last'; conflicting key: 111450] diff --git a/Documentation/Examples/ensureUniquePersistentSingle.generated b/Documentation/Examples/ensureUniquePersistentSingle.generated index 8ef3ada8cf..8b085afc8d 100644 --- a/Documentation/Examples/ensureUniquePersistentSingle.generated +++ b/Documentation/Examples/ensureUniquePersistentSingle.generated @@ -4,7 +4,7 @@ arangosh> db.ids.ensureIndex({ type: "fields" : [ "myId" ], - "id" : "ids/111462", + "id" : "ids/111473", "isNewlyCreated" : true, "sparse" : false, "type" : "persistent", @@ -13,21 +13,21 @@ arangosh> db.ids.ensureIndex({ type: "myId": 123 }); { - "_id" : "ids/111465", - "_key" : "111465", - "_rev" : "_YNEaYu---_" + "_id" : "ids/111476", + "_key" : "111476", + "_rev" : "_YOn1gF---_" } arangosh> db.ids.save({ "myId": 456 }); { - "_id" : "ids/111469", - "_key" : "111469", - "_rev" : "_YNEaYu---B" + "_id" : "ids/111480", + "_key" : "111480", + "_rev" : "_YOn1gFC--_" } arangosh> db.ids.save({ "myId": 789 }); { - "_id" : "ids/111472", - "_key" : "111472", - "_rev" : "_YNEaYu---D" + "_id" : "ids/111483", + "_key" : "111483", + "_rev" : "_YOn1gFC--B" } arangosh> db.ids.save({ "myId": 123 }); -[ArangoError 1210: unique constraint violated - in index 111462 of type persistent over 'myId'; conflicting key: 111465] +[ArangoError 1210: - in index 111473 of type persistent over 'myId'; conflicting key: 111476] diff --git a/Documentation/Examples/ensureUniqueSkiplist.generated b/Documentation/Examples/ensureUniqueSkiplist.generated index bdd05b5f17..4922ded815 100644 --- a/Documentation/Examples/ensureUniqueSkiplist.generated +++ b/Documentation/Examples/ensureUniqueSkiplist.generated @@ -4,7 +4,7 @@ arangosh> db.ids.ensureIndex({ type: "fields" : [ "myId" ], - "id" : "ids/111488", + "id" : "ids/111499", "isNewlyCreated" : true, "sparse" : false, "type" : "skiplist", @@ -13,21 +13,21 @@ arangosh> db.ids.ensureIndex({ type: "myId": 123 }); { - "_id" : "ids/111491", - "_key" : "111491", - "_rev" : "_YNEaYwC--_" + "_id" : "ids/111502", + "_key" : "111502", + "_rev" : "_YOn1gHC--_" } arangosh> db.ids.save({ "myId": 456 }); { - "_id" : "ids/111495", - "_key" : "111495", - "_rev" : "_YNEaYwC--B" + "_id" : "ids/111506", + "_key" : "111506", + "_rev" : "_YOn1gHG--_" } arangosh> db.ids.save({ "myId": 789 }); { - "_id" : "ids/111498", - "_key" : "111498", - "_rev" : "_YNEaYwG--_" + "_id" : "ids/111509", + "_key" : "111509", + "_rev" : "_YOn1gHG--B" } arangosh> db.ids.save({ "myId": 123 }); -[ArangoError 1210: unique constraint violated - in index 111488 of type skiplist over 'myId'; conflicting key: 111491] +[ArangoError 1210: - in index 111499 of type skiplist over 'myId'; conflicting key: 111502] diff --git a/Documentation/Examples/ensureUniqueSkiplistMultiColmun.generated b/Documentation/Examples/ensureUniqueSkiplistMultiColmun.generated index 99ce948712..1b2e1ffd65 100644 --- a/Documentation/Examples/ensureUniqueSkiplistMultiColmun.generated +++ b/Documentation/Examples/ensureUniqueSkiplistMultiColmun.generated @@ -5,7 +5,7 @@ arangosh> db.ids.ensureIndex({ type: "name.first", "name.last" ], - "id" : "ids/111514", + "id" : "ids/111525", "isNewlyCreated" : true, "sparse" : false, "type" : "skiplist", @@ -14,20 +14,20 @@ arangosh> db.ids.ensureIndex({ type: "name" : { "first" : "hans", "last": "hansen" }}); { - "_id" : "ids/111517", - "_key" : "111517", - "_rev" : "_YNEaYyG--_" + "_id" : "ids/111528", + "_key" : "111528", + "_rev" : "_YOn1gJK--_" } arangosh> db.ids.save({ "name" : { "first" : "jens", "last": "jensen" }}); { - "_id" : "ids/111521", - "_key" : "111521", - "_rev" : "_YNEaYyK--_" + "_id" : "ids/111532", + "_key" : "111532", + "_rev" : "_YOn1gJK--B" } arangosh> db.ids.save({ "name" : { "first" : "hans", "last": "jensen" }}); { - "_id" : "ids/111524", - "_key" : "111524", - "_rev" : "_YNEaYyK--B" + "_id" : "ids/111535", + "_key" : "111535", + "_rev" : "_YOn1gJK--D" } -[ArangoError 1210: unique constraint violated - in index 111514 of type skiplist over 'name.first, name.last'; conflicting key: 111517] +[ArangoError 1210: - in index 111525 of type skiplist over 'name.first, name.last'; conflicting key: 111528] diff --git a/Documentation/Examples/ensureUniqueSkiplistMultiColumn.generated b/Documentation/Examples/ensureUniqueSkiplistMultiColumn.generated index e44145d2ff..7527479e7d 100644 --- a/Documentation/Examples/ensureUniqueSkiplistMultiColumn.generated +++ b/Documentation/Examples/ensureUniqueSkiplistMultiColumn.generated @@ -5,7 +5,7 @@ arangosh> db.ids.ensureIndex({ type: "name.first", "name.last" ], - "id" : "ids/111540", + "id" : "ids/111551", "isNewlyCreated" : true, "sparse" : false, "type" : "skiplist", @@ -14,21 +14,21 @@ arangosh> db.ids.ensureIndex({ type: "name" : { "first" : "hans", "last": "hansen" }}); { - "_id" : "ids/111543", - "_key" : "111543", - "_rev" : "_YNEaY0O--_" + "_id" : "ids/111554", + "_key" : "111554", + "_rev" : "_YOn1gLO--_" } arangosh> db.ids.save({ "name" : { "first" : "jens", "last": "jensen" }}); { - "_id" : "ids/111547", - "_key" : "111547", - "_rev" : "_YNEaY0O--B" + "_id" : "ids/111558", + "_key" : "111558", + "_rev" : "_YOn1gLO--B" } arangosh> db.ids.save({ "name" : { "first" : "hans", "last": "jensen" }}); { - "_id" : "ids/111550", - "_key" : "111550", - "_rev" : "_YNEaY0O--D" + "_id" : "ids/111561", + "_key" : "111561", + "_rev" : "_YOn1gLS--_" } arangosh> db.ids.save({ "name" : { "first" : "hans", "last": "hansen" }}); -[ArangoError 1210: unique constraint violated - in index 111540 of type skiplist over 'name.first, name.last'; conflicting key: 111543] +[ArangoError 1210: - in index 111551 of type skiplist over 'name.first, name.last'; conflicting key: 111554] diff --git a/Documentation/Examples/ensureUniqueSkiplistSingle.generated b/Documentation/Examples/ensureUniqueSkiplistSingle.generated index 643251391e..3a205eaae0 100644 --- a/Documentation/Examples/ensureUniqueSkiplistSingle.generated +++ b/Documentation/Examples/ensureUniqueSkiplistSingle.generated @@ -4,7 +4,7 @@ arangosh> db.ids.ensureIndex({ type: "fields" : [ "myId" ], - "id" : "ids/111566", + "id" : "ids/111577", "isNewlyCreated" : true, "sparse" : false, "type" : "skiplist", @@ -13,21 +13,21 @@ arangosh> db.ids.ensureIndex({ type: "myId": 123 }); { - "_id" : "ids/111569", - "_key" : "111569", - "_rev" : "_YNEaY2S--_" + "_id" : "ids/111580", + "_key" : "111580", + "_rev" : "_YOn1gNS--_" } arangosh> db.ids.save({ "myId": 456 }); { - "_id" : "ids/111573", - "_key" : "111573", - "_rev" : "_YNEaY2S--B" + "_id" : "ids/111584", + "_key" : "111584", + "_rev" : "_YOn1gNW--_" } arangosh> db.ids.save({ "myId": 789 }); { - "_id" : "ids/111576", - "_key" : "111576", - "_rev" : "_YNEaY2W--_" + "_id" : "ids/111587", + "_key" : "111587", + "_rev" : "_YOn1gNW--B" } arangosh> db.ids.save({ "myId": 123 }); -[ArangoError 1210: unique constraint violated - in index 111566 of type skiplist over 'myId'; conflicting key: 111569] +[ArangoError 1210: - in index 111577 of type skiplist over 'myId'; conflicting key: 111580] diff --git a/Documentation/Examples/ensureVertexCentricHashIndex.generated b/Documentation/Examples/ensureVertexCentricHashIndex.generated index ef58ea388f..5e4dbf015d 100644 --- a/Documentation/Examples/ensureVertexCentricHashIndex.generated +++ b/Documentation/Examples/ensureVertexCentricHashIndex.generated @@ -5,7 +5,7 @@ arangosh> db.collection.ensureIndex({ type: "_from", "type" ], - "id" : "collection/111592", + "id" : "collection/111603", "isNewlyCreated" : true, "selectivityEstimate" : 1, "sparse" : false, diff --git a/Documentation/Examples/executeQuery.generated b/Documentation/Examples/executeQuery.generated index b6095db750..9cc9973d38 100644 --- a/Documentation/Examples/executeQuery.generated +++ b/Documentation/Examples/executeQuery.generated @@ -1,22 +1,22 @@ arangosh> result = db.users.all().toArray(); [ { - "_key" : "111610", - "_id" : "users/111610", - "_rev" : "_YNEaY5e--B", - "name" : "Helmut" + "_key" : "111624", + "_id" : "users/111624", + "_rev" : "_YOn1gQe--D", + "name" : "Angela" }, { - "_key" : "111606", - "_id" : "users/111606", - "_rev" : "_YNEaY5e--_", + "_key" : "111617", + "_id" : "users/111617", + "_rev" : "_YOn1gQe--_", "name" : "Gerhard" }, { - "_key" : "111613", - "_id" : "users/111613", - "_rev" : "_YNEaY5e--D", - "name" : "Angela" + "_key" : "111621", + "_id" : "users/111621", + "_rev" : "_YOn1gQe--B", + "name" : "Helmut" } ] 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 9fc6f748ca..cb3335a751 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()); } { - "_key" : "111635", - "_id" : "users/111635", - "_rev" : "_YNEaY6e--B", + "_key" : "111646", + "_id" : "users/111646", + "_rev" : "_YOn1gTC--_", "name" : "Helmut" } { - "_key" : "111631", - "_id" : "users/111631", - "_rev" : "_YNEaY6e--_", - "name" : "Gerhard" + "_key" : "111649", + "_id" : "users/111649", + "_rev" : "_YOn1gTC--B", + "name" : "Angela" } { - "_key" : "111638", - "_id" : "users/111638", - "_rev" : "_YNEaY6i--_", - "name" : "Angela" + "_key" : "111642", + "_id" : "users/111642", + "_rev" : "_YOn1gT---B", + "name" : "Gerhard" } SimpleQueryAll(users) arangosh> q = db.users.all(); q.execute(20); while (q.hasNext()) { print(q.next()); } { - "_key" : "111635", - "_id" : "users/111635", - "_rev" : "_YNEaY6e--B", + "_key" : "111646", + "_id" : "users/111646", + "_rev" : "_YOn1gTC--_", "name" : "Helmut" } { - "_key" : "111631", - "_id" : "users/111631", - "_rev" : "_YNEaY6e--_", - "name" : "Gerhard" -} -{ - "_key" : "111638", - "_id" : "users/111638", - "_rev" : "_YNEaY6i--_", + "_key" : "111649", + "_id" : "users/111649", + "_rev" : "_YOn1gTC--B", "name" : "Angela" } +{ + "_key" : "111642", + "_id" : "users/111642", + "_rev" : "_YOn1gT---B", + "name" : "Gerhard" +} SimpleQueryAll(users) diff --git a/Documentation/Examples/executeQueryNoBatchSize.generated b/Documentation/Examples/executeQueryNoBatchSize.generated index 98ad76e4b8..7a5582785d 100644 --- a/Documentation/Examples/executeQueryNoBatchSize.generated +++ b/Documentation/Examples/executeQueryNoBatchSize.generated @@ -1,22 +1,22 @@ arangosh> result = db.users.all().toArray(); [ { - "_key" : "111656", - "_id" : "users/111656", - "_rev" : "_YNEaY7e--B", + "_key" : "111667", + "_id" : "users/111667", + "_rev" : "_YOn1gUC--_", "name" : "Gerhard" }, { - "_key" : "111663", - "_id" : "users/111663", - "_rev" : "_YNEaY7i--B", - "name" : "Angela" + "_key" : "111671", + "_id" : "users/111671", + "_rev" : "_YOn1gUC--B", + "name" : "Helmut" }, { - "_key" : "111660", - "_id" : "users/111660", - "_rev" : "_YNEaY7i--_", - "name" : "Helmut" + "_key" : "111674", + "_id" : "users/111674", + "_rev" : "_YOn1gUC--D", + "name" : "Angela" } ] arangosh> var q = db._query("FOR x IN users RETURN x"); diff --git a/Documentation/Examples/generalGraphCreateGraph2.generated b/Documentation/Examples/generalGraphCreateGraph2.generated index 8961497b11..76e4fe1250 100644 --- a/Documentation/Examples/generalGraphCreateGraph2.generated +++ b/Documentation/Examples/generalGraphCreateGraph2.generated @@ -2,8 +2,8 @@ arangosh> var graph_module = "myGraph", ........> [graph_module._relation("myRelation", ["male", "female"], ["male", "female"])], ["sessions"]); {[Graph] - "myRelation" : [ArangoCollection 111690, "myRelation" (type edge, status loaded)], - "female" : [ArangoCollection 111680, "female" (type document, status loaded)], - "male" : [ArangoCollection 111685, "male" (type document, status loaded)], - "sessions" : [ArangoCollection 111675, "sessions" (type document, status loaded)] + "myRelation" : [ArangoCollection 111701, "myRelation" (type edge, status loaded)], + "female" : [ArangoCollection 111691, "female" (type document, status loaded)], + "male" : [ArangoCollection 111696, "male" (type document, status loaded)], + "sessions" : [ArangoCollection 111686, "sessions" (type document, status loaded)] } diff --git a/Documentation/Examples/generalGraphCreateGraphSingle.generated b/Documentation/Examples/generalGraphCreateGraphSingle.generated index 55da8e2de3..f7eb94cf31 100644 --- a/Documentation/Examples/generalGraphCreateGraphSingle.generated +++ b/Documentation/Examples/generalGraphCreateGraphSingle.generated @@ -2,6 +2,6 @@ arangosh> var graph_module = var edgeDefinitions = [ { collection: "edges", "from": [ "vertices" ], "to" : [ "vertices" ] } ]; arangosh> graph = graph_module._create("myGraph", edgeDefinitions); {[Graph] - "edges" : [ArangoCollection 111894, "edges" (type edge, status loaded)], - "vertices" : [ArangoCollection 111889, "vertices" (type document, status loaded)] + "edges" : [ArangoCollection 111905, "edges" (type edge, status loaded)], + "vertices" : [ArangoCollection 111900, "vertices" (type document, status loaded)] } diff --git a/Documentation/Examples/generalGraphDropGraphKeep.generated b/Documentation/Examples/generalGraphDropGraphKeep.generated index dbc7561b8d..104346aca7 100644 --- a/Documentation/Examples/generalGraphDropGraphKeep.generated +++ b/Documentation/Examples/generalGraphDropGraphKeep.generated @@ -1,8 +1,8 @@ arangosh> var graph_module = require("@arangodb/general-graph"); arangosh> graph_module._drop("social"); arangosh> db._collection("female"); -[ArangoCollection 111992, "female" (type document, status loaded)] +[ArangoCollection 112003, "female" (type document, status loaded)] arangosh> db._collection("male"); -[ArangoCollection 111998, "male" (type document, status loaded)] +[ArangoCollection 112009, "male" (type document, status loaded)] arangosh> db._collection("relation"); -[ArangoCollection 112004, "relation" (type edge, status loaded)] +[ArangoCollection 112015, "relation" (type edge, status loaded)] diff --git a/Documentation/Examples/generalGraphEdgeCollectionRemove.generated b/Documentation/Examples/generalGraphEdgeCollectionRemove.generated index e02e570b96..b3ae76747f 100644 --- a/Documentation/Examples/generalGraphEdgeCollectionRemove.generated +++ b/Documentation/Examples/generalGraphEdgeCollectionRemove.generated @@ -4,7 +4,7 @@ arangosh> graph.relation.save("female/alice" { "_id" : "relation/aliceAndDiana", "_key" : "aliceAndDiana", - "_rev" : "_YNEaZRy--_" + "_rev" : "_YOn1gqS--F" } arangosh> db._exists("relation/aliceAndDiana") true diff --git a/Documentation/Examples/generalGraphEdgeCollectionReplace.generated b/Documentation/Examples/generalGraphEdgeCollectionReplace.generated index 92cfb5e02c..e9288de569 100644 --- a/Documentation/Examples/generalGraphEdgeCollectionReplace.generated +++ b/Documentation/Examples/generalGraphEdgeCollectionReplace.generated @@ -4,12 +4,12 @@ arangosh> graph.relation.save("female/alice" { "_id" : "relation/aliceAndDiana", "_key" : "aliceAndDiana", - "_rev" : "_YNEaZU6--F" + "_rev" : "_YOn1gu6--B" } arangosh> graph.relation.replace("relation/aliceAndDiana", {type: "knows", _from: "female/alice", _to: "female/diana"}); { "_id" : "relation/aliceAndDiana", "_key" : "aliceAndDiana", - "_rev" : "_YNEaZU6--H", - "_oldRev" : "_YNEaZU6--F" + "_rev" : "_YOn1gv---_", + "_oldRev" : "_YOn1gu6--B" } diff --git a/Documentation/Examples/generalGraphEdgeCollectionSave1.generated b/Documentation/Examples/generalGraphEdgeCollectionSave1.generated index 96298fb6ea..8c62a767c4 100644 --- a/Documentation/Examples/generalGraphEdgeCollectionSave1.generated +++ b/Documentation/Examples/generalGraphEdgeCollectionSave1.generated @@ -4,5 +4,5 @@ arangosh> graph.relation.save("male/bob", "_id" : "relation/bobAndAlice", "_key" : "bobAndAlice", - "_rev" : "_YNEaZYC--_" + "_rev" : "_YOn1gx6--J" } diff --git a/Documentation/Examples/generalGraphEdgeCollectionUpdate.generated b/Documentation/Examples/generalGraphEdgeCollectionUpdate.generated index 9200020c3e..27e93647c6 100644 --- a/Documentation/Examples/generalGraphEdgeCollectionUpdate.generated +++ b/Documentation/Examples/generalGraphEdgeCollectionUpdate.generated @@ -4,12 +4,12 @@ arangosh> graph.relation.save("female/alice" { "_id" : "relation/aliceAndDiana", "_key" : "aliceAndDiana", - "_rev" : "_YNEaZeK--H" + "_rev" : "_YOn1g4S--_" } arangosh> graph.relation.update("relation/aliceAndDiana", {type: "quarreled", _key: "aliceAndDiana"}); { "_id" : "relation/aliceAndDiana", "_key" : "aliceAndDiana", - "_rev" : "_YNEaZeO--_", - "_oldRev" : "_YNEaZeK--H" + "_rev" : "_YOn1g4S--B", + "_oldRev" : "_YOn1g4S--_" } diff --git a/Documentation/Examples/generalGraphGetFromVertex.generated b/Documentation/Examples/generalGraphGetFromVertex.generated index 4b4ae37047..414426c58c 100644 --- a/Documentation/Examples/generalGraphGetFromVertex.generated +++ b/Documentation/Examples/generalGraphGetFromVertex.generated @@ -5,6 +5,6 @@ arangosh> graph._fromVertex("relation/" + an { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_YNEaZhO--_", + "_rev" : "_YOn1g7K--_", "name" : "Alice" } diff --git a/Documentation/Examples/generalGraphGetToVertex.generated b/Documentation/Examples/generalGraphGetToVertex.generated index 8bcffc4a0d..463a0f7112 100644 --- a/Documentation/Examples/generalGraphGetToVertex.generated +++ b/Documentation/Examples/generalGraphGetToVertex.generated @@ -3,8 +3,8 @@ arangosh> var graph = examples.loadGraph(var any = require("@arangodb").db.relation.any(); arangosh> graph._toVertex("relation/" + any._key); { - "_key" : "diana", - "_id" : "female/diana", - "_rev" : "_YNEaZka--B", - "name" : "Diana" + "_key" : "bob", + "_id" : "male/bob", + "_rev" : "_YOn1h-S--B", + "name" : "Bob" } diff --git a/Documentation/Examples/generalGraphLoadGraph.generated b/Documentation/Examples/generalGraphLoadGraph.generated index dcca880480..28419602cc 100644 --- a/Documentation/Examples/generalGraphLoadGraph.generated +++ b/Documentation/Examples/generalGraphLoadGraph.generated @@ -1,7 +1,7 @@ arangosh> var graph_module = require("@arangodb/general-graph"); arangosh> graph = graph_module._graph("social"); {[Graph] - "relation" : [ArangoCollection 112607, "relation" (type edge, status loaded)], - "female" : [ArangoCollection 112595, "female" (type document, status loaded)], - "male" : [ArangoCollection 112601, "male" (type document, status loaded)] + "relation" : [ArangoCollection 112618, "relation" (type edge, status loaded)], + "female" : [ArangoCollection 112606, "female" (type document, status loaded)], + "male" : [ArangoCollection 112612, "male" (type document, status loaded)] } diff --git a/Documentation/Examples/generalGraphModulePaths1.generated b/Documentation/Examples/generalGraphModulePaths1.generated index 4757b90d1e..d055ba6f7b 100644 --- a/Documentation/Examples/generalGraphModulePaths1.generated +++ b/Documentation/Examples/generalGraphModulePaths1.generated @@ -6,13 +6,13 @@ arangosh> g._paths(); "source" : { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_YNEadHe--B", + "_rev" : "_YOn1kpa--F", "name" : "Diana" }, "destination" : { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_YNEadHe--B", + "_rev" : "_YOn1kpa--F", "name" : "Diana" }, "edges" : [ ], @@ -20,7 +20,7 @@ arangosh> g._paths(); { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_YNEadHe--B", + "_rev" : "_YOn1kpa--F", "name" : "Diana" } ] @@ -29,13 +29,13 @@ arangosh> g._paths(); "source" : { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_YNEadHa--_", + "_rev" : "_YOn1kpa--_", "name" : "Alice" }, "destination" : { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_YNEadHa--_", + "_rev" : "_YOn1kpa--_", "name" : "Alice" }, "edges" : [ ], @@ -43,7 +43,7 @@ arangosh> g._paths(); { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_YNEadHa--_", + "_rev" : "_YOn1kpa--_", "name" : "Alice" } ] @@ -52,22 +52,22 @@ arangosh> g._paths(); "source" : { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_YNEadHa--_", + "_rev" : "_YOn1kpa--_", "name" : "Alice" }, "destination" : { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_YNEadHa--B", + "_rev" : "_YOn1kpa--B", "name" : "Bob" }, "edges" : [ { - "_key" : "116242", - "_id" : "relation/116242", + "_key" : "116262", + "_id" : "relation/116262", "_from" : "female/alice", "_to" : "male/bob", - "_rev" : "_YNEadHe--D", + "_rev" : "_YOn1kpa--H", "type" : "married", "vertex" : "alice" } @@ -76,13 +76,13 @@ arangosh> g._paths(); { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_YNEadHa--_", + "_rev" : "_YOn1kpa--_", "name" : "Alice" }, { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_YNEadHa--B", + "_rev" : "_YOn1kpa--B", "name" : "Bob" } ] @@ -91,31 +91,31 @@ arangosh> g._paths(); "source" : { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_YNEadHa--_", + "_rev" : "_YOn1kpa--_", "name" : "Alice" }, "destination" : { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_YNEadHe--B", + "_rev" : "_YOn1kpa--F", "name" : "Diana" }, "edges" : [ { - "_key" : "116242", - "_id" : "relation/116242", + "_key" : "116262", + "_id" : "relation/116262", "_from" : "female/alice", "_to" : "male/bob", - "_rev" : "_YNEadHe--D", + "_rev" : "_YOn1kpa--H", "type" : "married", "vertex" : "alice" }, { - "_key" : "116252", - "_id" : "relation/116252", + "_key" : "116272", + "_id" : "relation/116272", "_from" : "male/bob", "_to" : "female/diana", - "_rev" : "_YNEadHe--J", + "_rev" : "_YOn1kpe--D", "type" : "friend", "vertex" : "bob" } @@ -124,19 +124,19 @@ arangosh> g._paths(); { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_YNEadHa--_", + "_rev" : "_YOn1kpa--_", "name" : "Alice" }, { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_YNEadHa--B", + "_rev" : "_YOn1kpa--B", "name" : "Bob" }, { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_YNEadHe--B", + "_rev" : "_YOn1kpa--F", "name" : "Diana" } ] @@ -145,22 +145,22 @@ arangosh> g._paths(); "source" : { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_YNEadHa--_", + "_rev" : "_YOn1kpa--_", "name" : "Alice" }, "destination" : { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_YNEadHe--_", + "_rev" : "_YOn1kpa--D", "name" : "Charly" }, "edges" : [ { - "_key" : "116246", - "_id" : "relation/116246", + "_key" : "116266", + "_id" : "relation/116266", "_from" : "female/alice", "_to" : "male/charly", - "_rev" : "_YNEadHe--F", + "_rev" : "_YOn1kpe--_", "type" : "friend", "vertex" : "alice" } @@ -169,13 +169,13 @@ arangosh> g._paths(); { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_YNEadHa--_", + "_rev" : "_YOn1kpa--_", "name" : "Alice" }, { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_YNEadHe--_", + "_rev" : "_YOn1kpa--D", "name" : "Charly" } ] @@ -184,31 +184,31 @@ arangosh> g._paths(); "source" : { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_YNEadHa--_", + "_rev" : "_YOn1kpa--_", "name" : "Alice" }, "destination" : { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_YNEadHe--B", + "_rev" : "_YOn1kpa--F", "name" : "Diana" }, "edges" : [ { - "_key" : "116246", - "_id" : "relation/116246", + "_key" : "116266", + "_id" : "relation/116266", "_from" : "female/alice", "_to" : "male/charly", - "_rev" : "_YNEadHe--F", + "_rev" : "_YOn1kpe--_", "type" : "friend", "vertex" : "alice" }, { - "_key" : "116249", - "_id" : "relation/116249", + "_key" : "116269", + "_id" : "relation/116269", "_from" : "male/charly", "_to" : "female/diana", - "_rev" : "_YNEadHe--H", + "_rev" : "_YOn1kpe--B", "type" : "married", "vertex" : "charly" } @@ -217,19 +217,19 @@ arangosh> g._paths(); { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_YNEadHa--_", + "_rev" : "_YOn1kpa--_", "name" : "Alice" }, { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_YNEadHe--_", + "_rev" : "_YOn1kpa--D", "name" : "Charly" }, { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_YNEadHe--B", + "_rev" : "_YOn1kpa--F", "name" : "Diana" } ] @@ -238,13 +238,13 @@ arangosh> g._paths(); "source" : { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_YNEadHa--B", + "_rev" : "_YOn1kpa--B", "name" : "Bob" }, "destination" : { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_YNEadHa--B", + "_rev" : "_YOn1kpa--B", "name" : "Bob" }, "edges" : [ ], @@ -252,7 +252,7 @@ arangosh> g._paths(); { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_YNEadHa--B", + "_rev" : "_YOn1kpa--B", "name" : "Bob" } ] @@ -261,22 +261,22 @@ arangosh> g._paths(); "source" : { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_YNEadHa--B", + "_rev" : "_YOn1kpa--B", "name" : "Bob" }, "destination" : { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_YNEadHe--B", + "_rev" : "_YOn1kpa--F", "name" : "Diana" }, "edges" : [ { - "_key" : "116252", - "_id" : "relation/116252", + "_key" : "116272", + "_id" : "relation/116272", "_from" : "male/bob", "_to" : "female/diana", - "_rev" : "_YNEadHe--J", + "_rev" : "_YOn1kpe--D", "type" : "friend", "vertex" : "bob" } @@ -285,13 +285,13 @@ arangosh> g._paths(); { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_YNEadHa--B", + "_rev" : "_YOn1kpa--B", "name" : "Bob" }, { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_YNEadHe--B", + "_rev" : "_YOn1kpa--F", "name" : "Diana" } ] @@ -300,13 +300,13 @@ arangosh> g._paths(); "source" : { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_YNEadHe--_", + "_rev" : "_YOn1kpa--D", "name" : "Charly" }, "destination" : { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_YNEadHe--_", + "_rev" : "_YOn1kpa--D", "name" : "Charly" }, "edges" : [ ], @@ -314,7 +314,7 @@ arangosh> g._paths(); { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_YNEadHe--_", + "_rev" : "_YOn1kpa--D", "name" : "Charly" } ] @@ -323,22 +323,22 @@ arangosh> g._paths(); "source" : { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_YNEadHe--_", + "_rev" : "_YOn1kpa--D", "name" : "Charly" }, "destination" : { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_YNEadHe--B", + "_rev" : "_YOn1kpa--F", "name" : "Diana" }, "edges" : [ { - "_key" : "116249", - "_id" : "relation/116249", + "_key" : "116269", + "_id" : "relation/116269", "_from" : "male/charly", "_to" : "female/diana", - "_rev" : "_YNEadHe--H", + "_rev" : "_YOn1kpe--B", "type" : "married", "vertex" : "charly" } @@ -347,13 +347,13 @@ arangosh> g._paths(); { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_YNEadHe--_", + "_rev" : "_YOn1kpa--D", "name" : "Charly" }, { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_YNEadHe--B", + "_rev" : "_YOn1kpa--F", "name" : "Diana" } ] diff --git a/Documentation/Examples/generalGraphModulePaths2.generated b/Documentation/Examples/generalGraphModulePaths2.generated index c5e2183f73..281ba58443 100644 --- a/Documentation/Examples/generalGraphModulePaths2.generated +++ b/Documentation/Examples/generalGraphModulePaths2.generated @@ -6,22 +6,22 @@ arangosh> g._paths({direction : "source" : { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_YNEadKy--F", + "_rev" : "_YOn1ktC--D", "name" : "Diana" }, "destination" : { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_YNEadKy--D", + "_rev" : "_YOn1ktC--B", "name" : "Charly" }, "edges" : [ { - "_key" : "116323", - "_id" : "relation/116323", + "_key" : "116343", + "_id" : "relation/116343", "_from" : "male/charly", "_to" : "female/diana", - "_rev" : "_YNEadK2--D", + "_rev" : "_YOn1ktG--D", "type" : "married", "vertex" : "charly" } @@ -30,13 +30,13 @@ arangosh> g._paths({direction : "_key" : "diana", "_id" : "female/diana", - "_rev" : "_YNEadKy--F", + "_rev" : "_YOn1ktC--D", "name" : "Diana" }, { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_YNEadKy--D", + "_rev" : "_YOn1ktC--B", "name" : "Charly" } ] @@ -45,31 +45,31 @@ arangosh> g._paths({direction : "source" : { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_YNEadKy--F", + "_rev" : "_YOn1ktC--D", "name" : "Diana" }, "destination" : { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_YNEadKy--_", + "_rev" : "_YOn1kt---_", "name" : "Alice" }, "edges" : [ { - "_key" : "116323", - "_id" : "relation/116323", + "_key" : "116343", + "_id" : "relation/116343", "_from" : "male/charly", "_to" : "female/diana", - "_rev" : "_YNEadK2--D", + "_rev" : "_YOn1ktG--D", "type" : "married", "vertex" : "charly" }, { - "_key" : "116320", - "_id" : "relation/116320", + "_key" : "116340", + "_id" : "relation/116340", "_from" : "female/alice", "_to" : "male/charly", - "_rev" : "_YNEadK2--B", + "_rev" : "_YOn1ktG--B", "type" : "friend", "vertex" : "alice" } @@ -78,19 +78,19 @@ arangosh> g._paths({direction : "_key" : "diana", "_id" : "female/diana", - "_rev" : "_YNEadKy--F", + "_rev" : "_YOn1ktC--D", "name" : "Diana" }, { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_YNEadKy--D", + "_rev" : "_YOn1ktC--B", "name" : "Charly" }, { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_YNEadKy--_", + "_rev" : "_YOn1kt---_", "name" : "Alice" } ] @@ -99,22 +99,22 @@ arangosh> g._paths({direction : "source" : { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_YNEadKy--F", + "_rev" : "_YOn1ktC--D", "name" : "Diana" }, "destination" : { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_YNEadKy--B", + "_rev" : "_YOn1ktC--_", "name" : "Bob" }, "edges" : [ { - "_key" : "116326", - "_id" : "relation/116326", + "_key" : "116346", + "_id" : "relation/116346", "_from" : "male/bob", "_to" : "female/diana", - "_rev" : "_YNEadK2--F", + "_rev" : "_YOn1ktG--F", "type" : "friend", "vertex" : "bob" } @@ -123,13 +123,13 @@ arangosh> g._paths({direction : "_key" : "diana", "_id" : "female/diana", - "_rev" : "_YNEadKy--F", + "_rev" : "_YOn1ktC--D", "name" : "Diana" }, { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_YNEadKy--B", + "_rev" : "_YOn1ktC--_", "name" : "Bob" } ] @@ -138,31 +138,31 @@ arangosh> g._paths({direction : "source" : { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_YNEadKy--F", + "_rev" : "_YOn1ktC--D", "name" : "Diana" }, "destination" : { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_YNEadKy--_", + "_rev" : "_YOn1kt---_", "name" : "Alice" }, "edges" : [ { - "_key" : "116326", - "_id" : "relation/116326", + "_key" : "116346", + "_id" : "relation/116346", "_from" : "male/bob", "_to" : "female/diana", - "_rev" : "_YNEadK2--F", + "_rev" : "_YOn1ktG--F", "type" : "friend", "vertex" : "bob" }, { - "_key" : "116316", - "_id" : "relation/116316", + "_key" : "116336", + "_id" : "relation/116336", "_from" : "female/alice", "_to" : "male/bob", - "_rev" : "_YNEadK2--_", + "_rev" : "_YOn1ktG--_", "type" : "married", "vertex" : "alice" } @@ -171,19 +171,19 @@ arangosh> g._paths({direction : "_key" : "diana", "_id" : "female/diana", - "_rev" : "_YNEadKy--F", + "_rev" : "_YOn1ktC--D", "name" : "Diana" }, { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_YNEadKy--B", + "_rev" : "_YOn1ktC--_", "name" : "Bob" }, { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_YNEadKy--_", + "_rev" : "_YOn1kt---_", "name" : "Alice" } ] @@ -192,22 +192,22 @@ arangosh> g._paths({direction : "source" : { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_YNEadKy--B", + "_rev" : "_YOn1ktC--_", "name" : "Bob" }, "destination" : { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_YNEadKy--_", + "_rev" : "_YOn1kt---_", "name" : "Alice" }, "edges" : [ { - "_key" : "116316", - "_id" : "relation/116316", + "_key" : "116336", + "_id" : "relation/116336", "_from" : "female/alice", "_to" : "male/bob", - "_rev" : "_YNEadK2--_", + "_rev" : "_YOn1ktG--_", "type" : "married", "vertex" : "alice" } @@ -216,13 +216,13 @@ arangosh> g._paths({direction : "_key" : "bob", "_id" : "male/bob", - "_rev" : "_YNEadKy--B", + "_rev" : "_YOn1ktC--_", "name" : "Bob" }, { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_YNEadKy--_", + "_rev" : "_YOn1kt---_", "name" : "Alice" } ] @@ -231,22 +231,22 @@ arangosh> g._paths({direction : "source" : { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_YNEadKy--D", + "_rev" : "_YOn1ktC--B", "name" : "Charly" }, "destination" : { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_YNEadKy--_", + "_rev" : "_YOn1kt---_", "name" : "Alice" }, "edges" : [ { - "_key" : "116320", - "_id" : "relation/116320", + "_key" : "116340", + "_id" : "relation/116340", "_from" : "female/alice", "_to" : "male/charly", - "_rev" : "_YNEadK2--B", + "_rev" : "_YOn1ktG--B", "type" : "friend", "vertex" : "alice" } @@ -255,13 +255,13 @@ arangosh> g._paths({direction : "_key" : "charly", "_id" : "male/charly", - "_rev" : "_YNEadKy--D", + "_rev" : "_YOn1ktC--B", "name" : "Charly" }, { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_YNEadKy--_", + "_rev" : "_YOn1kt---_", "name" : "Alice" } ] diff --git a/Documentation/Examples/generalGraphModuleShortestPaths1.generated b/Documentation/Examples/generalGraphModuleShortestPaths1.generated index 34e1ddcadd..4ddcf5b3f3 100644 --- a/Documentation/Examples/generalGraphModuleShortestPaths1.generated +++ b/Documentation/Examples/generalGraphModuleShortestPaths1.generated @@ -10,11 +10,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "117002", - "_id" : "frenchHighway/117002", + "_key" : "117022", + "_id" : "frenchHighway/117022", "_from" : "frenchCity/Paris", "_to" : "frenchCity/Lyon", - "_rev" : "_YNEad2e--B", + "_rev" : "_YOn1lYC--D", "distance" : 550 } ], @@ -27,11 +27,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "117019", - "_id" : "internationalHighway/117019", + "_key" : "117039", + "_id" : "internationalHighway/117039", "_from" : "germanCity/Cologne", "_to" : "frenchCity/Lyon", - "_rev" : "_YNEad2i--B", + "_rev" : "_YOn1lYG--D", "distance" : 700 } ], @@ -44,11 +44,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "117016", - "_id" : "internationalHighway/117016", + "_key" : "117036", + "_id" : "internationalHighway/117036", "_from" : "germanCity/Hamburg", "_to" : "frenchCity/Lyon", - "_rev" : "_YNEad2i--_", + "_rev" : "_YOn1lYG--B", "distance" : 1300 } ], @@ -61,11 +61,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "117006", - "_id" : "internationalHighway/117006", + "_key" : "117026", + "_id" : "internationalHighway/117026", "_from" : "germanCity/Berlin", "_to" : "frenchCity/Lyon", - "_rev" : "_YNEad2e--D", + "_rev" : "_YOn1lYC--F", "distance" : 1100 } ], @@ -78,11 +78,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "117002", - "_id" : "frenchHighway/117002", + "_key" : "117022", + "_id" : "frenchHighway/117022", "_from" : "frenchCity/Paris", "_to" : "frenchCity/Lyon", - "_rev" : "_YNEad2e--B", + "_rev" : "_YOn1lYC--D", "distance" : 550 } ], @@ -95,11 +95,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "117022", - "_id" : "internationalHighway/117022", + "_key" : "117042", + "_id" : "internationalHighway/117042", "_from" : "germanCity/Cologne", "_to" : "frenchCity/Paris", - "_rev" : "_YNEad2i--D", + "_rev" : "_YOn1lYG--F", "distance" : 550 } ], @@ -112,11 +112,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "117013", - "_id" : "internationalHighway/117013", + "_key" : "117033", + "_id" : "internationalHighway/117033", "_from" : "germanCity/Hamburg", "_to" : "frenchCity/Paris", - "_rev" : "_YNEad2e--H", + "_rev" : "_YOn1lYG--_", "distance" : 900 } ], @@ -129,11 +129,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "117010", - "_id" : "internationalHighway/117010", + "_key" : "117030", + "_id" : "internationalHighway/117030", "_from" : "germanCity/Berlin", "_to" : "frenchCity/Paris", - "_rev" : "_YNEad2e--F", + "_rev" : "_YOn1lYC--H", "distance" : 1200 } ], @@ -146,11 +146,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "117019", - "_id" : "internationalHighway/117019", + "_key" : "117039", + "_id" : "internationalHighway/117039", "_from" : "germanCity/Cologne", "_to" : "frenchCity/Lyon", - "_rev" : "_YNEad2i--B", + "_rev" : "_YOn1lYG--D", "distance" : 700 } ], @@ -163,11 +163,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "117022", - "_id" : "internationalHighway/117022", + "_key" : "117042", + "_id" : "internationalHighway/117042", "_from" : "germanCity/Cologne", "_to" : "frenchCity/Paris", - "_rev" : "_YNEad2i--D", + "_rev" : "_YOn1lYG--F", "distance" : 550 } ], @@ -180,11 +180,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "116999", - "_id" : "germanHighway/116999", + "_key" : "117019", + "_id" : "germanHighway/117019", "_from" : "germanCity/Hamburg", "_to" : "germanCity/Cologne", - "_rev" : "_YNEad2e--_", + "_rev" : "_YOn1lYC--B", "distance" : 500 } ], @@ -197,11 +197,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "116992", - "_id" : "germanHighway/116992", + "_key" : "117012", + "_id" : "germanHighway/117012", "_from" : "germanCity/Berlin", "_to" : "germanCity/Cologne", - "_rev" : "_YNEad2a--_", + "_rev" : "_YOn1lY---_", "distance" : 850 } ], @@ -214,11 +214,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "117016", - "_id" : "internationalHighway/117016", + "_key" : "117036", + "_id" : "internationalHighway/117036", "_from" : "germanCity/Hamburg", "_to" : "frenchCity/Lyon", - "_rev" : "_YNEad2i--_", + "_rev" : "_YOn1lYG--B", "distance" : 1300 } ], @@ -231,11 +231,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "117013", - "_id" : "internationalHighway/117013", + "_key" : "117033", + "_id" : "internationalHighway/117033", "_from" : "germanCity/Hamburg", "_to" : "frenchCity/Paris", - "_rev" : "_YNEad2e--H", + "_rev" : "_YOn1lYG--_", "distance" : 900 } ], @@ -248,11 +248,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "116999", - "_id" : "germanHighway/116999", + "_key" : "117019", + "_id" : "germanHighway/117019", "_from" : "germanCity/Hamburg", "_to" : "germanCity/Cologne", - "_rev" : "_YNEad2e--_", + "_rev" : "_YOn1lYC--B", "distance" : 500 } ], @@ -265,11 +265,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "116996", - "_id" : "germanHighway/116996", + "_key" : "117016", + "_id" : "germanHighway/117016", "_from" : "germanCity/Berlin", "_to" : "germanCity/Hamburg", - "_rev" : "_YNEad2a--B", + "_rev" : "_YOn1lYC--_", "distance" : 400 } ], @@ -282,11 +282,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "117006", - "_id" : "internationalHighway/117006", + "_key" : "117026", + "_id" : "internationalHighway/117026", "_from" : "germanCity/Berlin", "_to" : "frenchCity/Lyon", - "_rev" : "_YNEad2e--D", + "_rev" : "_YOn1lYC--F", "distance" : 1100 } ], @@ -299,11 +299,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "117010", - "_id" : "internationalHighway/117010", + "_key" : "117030", + "_id" : "internationalHighway/117030", "_from" : "germanCity/Berlin", "_to" : "frenchCity/Paris", - "_rev" : "_YNEad2e--F", + "_rev" : "_YOn1lYC--H", "distance" : 1200 } ], @@ -316,11 +316,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "116992", - "_id" : "germanHighway/116992", + "_key" : "117012", + "_id" : "germanHighway/117012", "_from" : "germanCity/Berlin", "_to" : "germanCity/Cologne", - "_rev" : "_YNEad2a--_", + "_rev" : "_YOn1lY---_", "distance" : 850 } ], @@ -333,11 +333,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "116996", - "_id" : "germanHighway/116996", + "_key" : "117016", + "_id" : "germanHighway/117016", "_from" : "germanCity/Berlin", "_to" : "germanCity/Hamburg", - "_rev" : "_YNEad2a--B", + "_rev" : "_YOn1lYC--_", "distance" : 400 } ], diff --git a/Documentation/Examples/generalGraphModuleShortestPaths2.generated b/Documentation/Examples/generalGraphModuleShortestPaths2.generated index 1ca6255a65..8ed14b317a 100644 --- a/Documentation/Examples/generalGraphModuleShortestPaths2.generated +++ b/Documentation/Examples/generalGraphModuleShortestPaths2.generated @@ -10,11 +10,11 @@ arangosh> g._shortestPath([{_id: "edges" : [ { - "_key" : "117137", - "_id" : "internationalHighway/117137", + "_key" : "117157", + "_id" : "internationalHighway/117157", "_from" : "germanCity/Cologne", "_to" : "frenchCity/Lyon", - "_rev" : "_YNEad9q--B", + "_rev" : "_YOn1lfa--B", "distance" : 700 } ], diff --git a/Documentation/Examples/generalGraphVertexCollectionRemove.generated b/Documentation/Examples/generalGraphVertexCollectionRemove.generated index 781b9b9d8d..e8a4817425 100644 --- a/Documentation/Examples/generalGraphVertexCollectionRemove.generated +++ b/Documentation/Examples/generalGraphVertexCollectionRemove.generated @@ -4,7 +4,7 @@ arangosh> graph.male.save({name: "_id" : "male/kermit", "_key" : "kermit", - "_rev" : "_YNEaeC---_" + "_rev" : "_YOn1ljq--B" } arangosh> db._exists("male/kermit") true diff --git a/Documentation/Examples/generalGraphVertexCollectionReplace.generated b/Documentation/Examples/generalGraphVertexCollectionReplace.generated index 2b7bd791d6..5a73c59182 100644 --- a/Documentation/Examples/generalGraphVertexCollectionReplace.generated +++ b/Documentation/Examples/generalGraphVertexCollectionReplace.generated @@ -4,12 +4,12 @@ arangosh> graph.male.save({neym: "_id" : "male/john", "_key" : "john", - "_rev" : "_YNEaeFK--D" + "_rev" : "_YOn1lmu--_" } arangosh> graph.male.replace("male/john", {name: "John"}); { "_id" : "male/john", "_key" : "john", - "_rev" : "_YNEaeFK--F", - "_oldRev" : "_YNEaeFK--D" + "_rev" : "_YOn1lmu--B", + "_oldRev" : "_YOn1lmu--_" } diff --git a/Documentation/Examples/generalGraphVertexCollectionSave.generated b/Documentation/Examples/generalGraphVertexCollectionSave.generated index f7328a0950..d59d423a80 100644 --- a/Documentation/Examples/generalGraphVertexCollectionSave.generated +++ b/Documentation/Examples/generalGraphVertexCollectionSave.generated @@ -4,5 +4,5 @@ arangosh> graph.male.save({name: "_id" : "male/floyd", "_key" : "floyd", - "_rev" : "_YNEaeIS--_" + "_rev" : "_YOn1lp2--_" } diff --git a/Documentation/Examples/generalGraphVertexCollectionUpdate.generated b/Documentation/Examples/generalGraphVertexCollectionUpdate.generated index 5c8676aad1..bfb359ccd4 100644 --- a/Documentation/Examples/generalGraphVertexCollectionUpdate.generated +++ b/Documentation/Examples/generalGraphVertexCollectionUpdate.generated @@ -4,12 +4,12 @@ arangosh> graph.female.save({name: "_id" : "female/linda", "_key" : "linda", - "_rev" : "_YNEaeLa--_" + "_rev" : "_YOn1ls6--H" } arangosh> graph.female.update("female/linda", {name: "Linda", _key: "linda"}); { "_id" : "female/linda", "_key" : "linda", - "_rev" : "_YNEaeLa--B", - "_oldRev" : "_YNEaeLa--_" + "_rev" : "_YOn1ls6--J", + "_oldRev" : "_YOn1ls6--H" } diff --git a/Documentation/Examples/general_graph__deleteEdgeDefinitionNoDrop.generated b/Documentation/Examples/general_graph__deleteEdgeDefinitionNoDrop.generated index 62a90af7ff..c0c1ed2767 100644 --- a/Documentation/Examples/general_graph__deleteEdgeDefinitionNoDrop.generated +++ b/Documentation/Examples/general_graph__deleteEdgeDefinitionNoDrop.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 117575, "myEC1" (type edge, status loaded)] +[ArangoCollection 117595, "myEC1" (type edge, status loaded)] diff --git a/Documentation/Examples/general_graph_create_graph_example1.generated b/Documentation/Examples/general_graph_create_graph_example1.generated index cbc7c85ccd..40848a777a 100644 --- a/Documentation/Examples/general_graph_create_graph_example1.generated +++ b/Documentation/Examples/general_graph_create_graph_example1.generated @@ -6,10 +6,10 @@ arangosh> graph_module._extendEdgeDefinitions( ........> "has_bought", ["Customer", "Company"], ["Groceries", "Electronics"])); arangosh> graph_module._create("myStore", edgeDefinitions); {[Graph] - "friend_of" : [ArangoCollection 117994, "friend_of" (type edge, status loaded)], - "Customer" : [ArangoCollection 117984, "Customer" (type document, status loaded)], - "has_bought" : [ArangoCollection 117989, "has_bought" (type edge, status loaded)], - "Company" : [ArangoCollection 117979, "Company" (type document, status loaded)], - "Electronics" : [ArangoCollection 117974, "Electronics" (type document, status loaded)], - "Groceries" : [ArangoCollection 117969, "Groceries" (type document, status loaded)] + "friend_of" : [ArangoCollection 118014, "friend_of" (type edge, status loaded)], + "Customer" : [ArangoCollection 118004, "Customer" (type document, status loaded)], + "has_bought" : [ArangoCollection 118009, "has_bought" (type edge, status loaded)], + "Company" : [ArangoCollection 117999, "Company" (type document, status loaded)], + "Electronics" : [ArangoCollection 117994, "Electronics" (type document, status loaded)], + "Groceries" : [ArangoCollection 117989, "Groceries" (type document, status loaded)] } diff --git a/Documentation/Examples/general_graph_create_graph_example2.generated b/Documentation/Examples/general_graph_create_graph_example2.generated index 54c9e6d77c..2eb45eea3f 100644 --- a/Documentation/Examples/general_graph_create_graph_example2.generated +++ b/Documentation/Examples/general_graph_create_graph_example2.generated @@ -4,10 +4,10 @@ arangosh> var edgeDefinitions = graph_modu ........> "has_bought", ["Customer", "Company"], ["Groceries", "Electronics"])); arangosh> graph_module._create("myStore", edgeDefinitions); {[Graph] - "friend_of" : [ArangoCollection 118061, "friend_of" (type edge, status loaded)], - "Customer" : [ArangoCollection 118051, "Customer" (type document, status loaded)], - "has_bought" : [ArangoCollection 118056, "has_bought" (type edge, status loaded)], - "Company" : [ArangoCollection 118046, "Company" (type document, status loaded)], - "Electronics" : [ArangoCollection 118041, "Electronics" (type document, status loaded)], - "Groceries" : [ArangoCollection 118036, "Groceries" (type document, status loaded)] + "friend_of" : [ArangoCollection 118081, "friend_of" (type edge, status loaded)], + "Customer" : [ArangoCollection 118071, "Customer" (type document, status loaded)], + "has_bought" : [ArangoCollection 118076, "has_bought" (type edge, status loaded)], + "Company" : [ArangoCollection 118066, "Company" (type document, status loaded)], + "Electronics" : [ArangoCollection 118061, "Electronics" (type document, status loaded)], + "Groceries" : [ArangoCollection 118056, "Groceries" (type document, status loaded)] } diff --git a/Documentation/Examples/geoIndexCreateForArrayAttribute.generated b/Documentation/Examples/geoIndexCreateForArrayAttribute.generated index 687c398e73..2c139fe08e 100644 --- a/Documentation/Examples/geoIndexCreateForArrayAttribute.generated +++ b/Documentation/Examples/geoIndexCreateForArrayAttribute.generated @@ -5,7 +5,7 @@ arangosh> db.geo.ensureIndex({ type: "loc" ], "geoJson" : false, - "id" : "geo/118108", + "id" : "geo/118128", "isNewlyCreated" : true, "maxNumCoverCells" : 8, "sparse" : true, @@ -24,9 +24,9 @@ arangosh> db.geo.count(); arangosh> db.geo.near(0, 0).limit(3).toArray(); [ { - "_key" : "119165", - "_id" : "geo/119165", - "_rev" : "_YNEaf_K--L", + "_key" : "119185", + "_id" : "geo/119185", + "_rev" : "_YOn1mp6--J", "name" : "Name/0/0", "loc" : [ 0, @@ -34,9 +34,9 @@ arangosh> db.geo.near(0, "_key" : "119054", - "_id" : "geo/119054", - "_rev" : "_YNEaf-6--B", + "_key" : "119074", + "_id" : "geo/119074", + "_rev" : "_YOn1mpm--B", "name" : "Name/-10/0", "loc" : [ -10, @@ -44,9 +44,9 @@ arangosh> db.geo.near(0, "_key" : "119162", - "_id" : "geo/119162", - "_rev" : "_YNEaf_K--J", + "_key" : "119182", + "_id" : "geo/119182", + "_rev" : "_YOn1mp6--H", "name" : "Name/0/-10", "loc" : [ 0, diff --git a/Documentation/Examples/geoIndexCreateForArrayAttribute1.generated b/Documentation/Examples/geoIndexCreateForArrayAttribute1.generated index 1060a2641a..ac10e6f8fe 100644 --- a/Documentation/Examples/geoIndexCreateForArrayAttribute1.generated +++ b/Documentation/Examples/geoIndexCreateForArrayAttribute1.generated @@ -5,7 +5,7 @@ arangosh> db.geo.ensureIndex({ type: "loc" ], "geoJson" : false, - "id" : "geo/120241", + "id" : "geo/120261", "isNewlyCreated" : true, "maxNumCoverCells" : 8, "sparse" : true, @@ -24,9 +24,9 @@ arangosh> db.geo.count(); arangosh> db.geo.near(0, 0).limit(3).toArray(); [ { - "_key" : "121298", - "_id" : "geo/121298", - "_rev" : "_YNEafIe--J", + "_key" : "121318", + "_id" : "geo/121318", + "_rev" : "_YOn1m32--J", "name" : "Name/0/0", "loc" : [ 0, @@ -34,9 +34,9 @@ arangosh> db.geo.near(0, "_key" : "121187", - "_id" : "geo/121187", - "_rev" : "_YNEafIK--D", + "_key" : "121207", + "_id" : "geo/121207", + "_rev" : "_YOn1m3i--H", "name" : "Name/-10/0", "loc" : [ -10, @@ -44,9 +44,9 @@ arangosh> db.geo.near(0, "_key" : "121295", - "_id" : "geo/121295", - "_rev" : "_YNEafIe--H", + "_key" : "121315", + "_id" : "geo/121315", + "_rev" : "_YOn1m32--H", "name" : "Name/0/-10", "loc" : [ 0, diff --git a/Documentation/Examples/geoIndexCreateForArrayAttribute2.generated b/Documentation/Examples/geoIndexCreateForArrayAttribute2.generated index e106bbc343..0fc0148782 100644 --- a/Documentation/Examples/geoIndexCreateForArrayAttribute2.generated +++ b/Documentation/Examples/geoIndexCreateForArrayAttribute2.generated @@ -6,7 +6,7 @@ arangosh> db.geo2.ensureIndex({ type: "location.longitude" ], "geoJson" : false, - "id" : "geo2/122374", + "id" : "geo2/122394", "isNewlyCreated" : true, "maxNumCoverCells" : 8, "sparse" : true, @@ -23,9 +23,9 @@ arangosh> for (i = 0, 0).limit(3).toArray(); [ { - "_key" : "123431", - "_id" : "geo2/123431", - "_rev" : "_YNEafR2--F", + "_key" : "123451", + "_id" : "geo2/123451", + "_rev" : "_YOn1nES--F", "name" : "Name/0/0", "location" : { "latitude" : 0, @@ -33,9 +33,9 @@ arangosh> db.geo2.near(0, "_key" : "123320", - "_id" : "geo2/123320", - "_rev" : "_YNEafRa--_", + "_key" : "123340", + "_id" : "geo2/123340", + "_rev" : "_YOn1nD2--B", "name" : "Name/-10/0", "location" : { "latitude" : -10, @@ -43,9 +43,9 @@ arangosh> db.geo2.near(0, "_key" : "123428", - "_id" : "geo2/123428", - "_rev" : "_YNEafR2--D", + "_key" : "123448", + "_id" : "geo2/123448", + "_rev" : "_YOn1nES--D", "name" : "Name/0/-10", "location" : { "latitude" : 0, diff --git a/Documentation/Examples/geoIndexFilterOptimization.generated b/Documentation/Examples/geoIndexFilterOptimization.generated index 170315d8d6..a372b04e04 100644 --- a/Documentation/Examples/geoIndexFilterOptimization.generated +++ b/Documentation/Examples/geoIndexFilterOptimization.generated @@ -6,7 +6,7 @@ arangosh> db.geoFilter.ensureIndex({ type: "longitude" ], "geoJson" : false, - "id" : "geoFilter/124502", + "id" : "geoFilter/124522", "isNewlyCreated" : true, "maxNumCoverCells" : 8, "sparse" : true, @@ -44,9 +44,9 @@ Optimization rules applied: arangosh> db._query(query); [ { - "_key" : "125559", - "_id" : "geoFilter/125559", - "_rev" : "_YNEafaS--F", + "_key" : "125579", + "_id" : "geoFilter/125579", + "_rev" : "_YOn1nQW--B", "name" : "Name/0/0", "latitude" : 0, "longitude" : 0 diff --git a/Documentation/Examples/geoIndexSimpleQuery.generated b/Documentation/Examples/geoIndexSimpleQuery.generated index f8c20104b8..e7a504ea7e 100644 --- a/Documentation/Examples/geoIndexSimpleQuery.generated +++ b/Documentation/Examples/geoIndexSimpleQuery.generated @@ -15,7 +15,7 @@ arangosh> db.complex.ensureIndex({ type: "home" ], "geoJson" : false, - "id" : "complex/128739", + "id" : "complex/128759", "isNewlyCreated" : true, "maxNumCoverCells" : 8, "sparse" : true, @@ -27,9 +27,9 @@ arangosh> db.complex.ensureIndex({ type: 0, 170).limit(5).toArray(); [ { - "_key" : "127733", - "_id" : "complex/127733", - "_rev" : "_YNEafhu--L", + "_key" : "127753", + "_id" : "complex/127753", + "_rev" : "_YOn1nhe--D", "name" : "Name/0/170", "home" : [ 0, @@ -41,9 +41,9 @@ arangosh> db.complex.near(0, "_key" : "127736", - "_id" : "complex/127736", - "_rev" : "_YNEafhu--N", + "_key" : "127756", + "_id" : "complex/127756", + "_rev" : "_YOn1nhe--F", "name" : "Name/0/180", "home" : [ 0, @@ -55,9 +55,9 @@ arangosh> db.complex.near(0, "_key" : "127844", - "_id" : "complex/127844", - "_rev" : "_YNEafiC--B", + "_key" : "127864", + "_id" : "complex/127864", + "_rev" : "_YOn1nhy--H", "name" : "Name/10/170", "home" : [ 10, @@ -69,9 +69,9 @@ arangosh> db.complex.near(0, "_key" : "127622", - "_id" : "complex/127622", - "_rev" : "_YNEafhe--F", + "_key" : "127642", + "_id" : "complex/127642", + "_rev" : "_YOn1ndS--D", "name" : "Name/-10/170", "home" : [ -10, @@ -83,9 +83,9 @@ arangosh> db.complex.near(0, "_key" : "127628", - "_id" : "complex/127628", - "_rev" : "_YNEafhe--J", + "_key" : "127648", + "_id" : "complex/127648", + "_rev" : "_YOn1ndS--H", "name" : "Name/0/-180", "home" : [ 0, @@ -106,7 +106,7 @@ arangosh> db.complex.ensureIndex({ type: "work" ], "geoJson" : false, - "id" : "complex/128747", + "id" : "complex/128767", "isNewlyCreated" : true, "maxNumCoverCells" : 8, "sparse" : true, @@ -118,9 +118,9 @@ arangosh> db.complex.ensureIndex({ type: "work").near(0, 170).limit(5).toArray(); [ { - "_key" : "127733", - "_id" : "complex/127733", - "_rev" : "_YNEafhu--L", + "_key" : "127753", + "_id" : "complex/127753", + "_rev" : "_YOn1nhe--D", "name" : "Name/0/170", "home" : [ 0, @@ -132,9 +132,9 @@ arangosh> db.complex.geo("work").near("_key" : "127736", - "_id" : "complex/127736", - "_rev" : "_YNEafhu--N", + "_key" : "127756", + "_id" : "complex/127756", + "_rev" : "_YOn1nhe--F", "name" : "Name/0/180", "home" : [ 0, @@ -146,9 +146,9 @@ arangosh> db.complex.geo("work").near("_key" : "127844", - "_id" : "complex/127844", - "_rev" : "_YNEafiC--B", + "_key" : "127864", + "_id" : "complex/127864", + "_rev" : "_YOn1nhy--H", "name" : "Name/10/170", "home" : [ 10, @@ -160,9 +160,9 @@ arangosh> db.complex.geo("work").near("_key" : "127622", - "_id" : "complex/127622", - "_rev" : "_YNEafhe--F", + "_key" : "127642", + "_id" : "complex/127642", + "_rev" : "_YOn1ndS--D", "name" : "Name/-10/170", "home" : [ -10, @@ -174,9 +174,9 @@ arangosh> db.complex.geo("work").near("_key" : "127628", - "_id" : "complex/127628", - "_rev" : "_YNEafhe--J", + "_key" : "127648", + "_id" : "complex/127648", + "_rev" : "_YOn1ndS--H", "name" : "Name/0/-180", "home" : [ 0, diff --git a/Documentation/Examples/geoIndexSortOptimization.generated b/Documentation/Examples/geoIndexSortOptimization.generated index 998e3d009e..4cf5fb4035 100644 --- a/Documentation/Examples/geoIndexSortOptimization.generated +++ b/Documentation/Examples/geoIndexSortOptimization.generated @@ -6,7 +6,7 @@ arangosh> db.geoSort.ensureIndex({ type: "longitude" ], "geoJson" : false, - "id" : "geoSort/128765", + "id" : "geoSort/128785", "isNewlyCreated" : true, "maxNumCoverCells" : 8, "sparse" : true, @@ -45,41 +45,41 @@ Optimization rules applied: arangosh> db._query(query); [ { - "_key" : "129822", - "_id" : "geoSort/129822", - "_rev" : "_YNEafsS--F", + "_key" : "129842", + "_id" : "geoSort/129842", + "_rev" : "_YOn1nwC--D", "name" : "Name/0/0", "latitude" : 0, "longitude" : 0 }, { - "_key" : "129711", - "_id" : "geoSort/129711", - "_rev" : "_YNEafr6--_", + "_key" : "129731", + "_id" : "geoSort/129731", + "_rev" : "_YOn1nvq--_", "name" : "Name/-10/0", "latitude" : -10, "longitude" : 0 }, { - "_key" : "129819", - "_id" : "geoSort/129819", - "_rev" : "_YNEafsS--D", + "_key" : "129839", + "_id" : "geoSort/129839", + "_rev" : "_YOn1nwC--B", "name" : "Name/0/-10", "latitude" : 0, "longitude" : -10 }, { - "_key" : "129933", - "_id" : "geoSort/129933", - "_rev" : "_YNEafsm--J", + "_key" : "129953", + "_id" : "geoSort/129953", + "_rev" : "_YOn1nwW--L", "name" : "Name/10/0", "latitude" : 10, "longitude" : 0 }, { - "_key" : "129825", - "_id" : "geoSort/129825", - "_rev" : "_YNEafsS--H", + "_key" : "129845", + "_id" : "geoSort/129845", + "_rev" : "_YOn1nwC--F", "name" : "Name/0/10", "latitude" : 0, "longitude" : 10 diff --git a/Documentation/Examples/graph_create_cities_sample.generated b/Documentation/Examples/graph_create_cities_sample.generated index d32482ec7b..2b01e1523e 100644 --- a/Documentation/Examples/graph_create_cities_sample.generated +++ b/Documentation/Examples/graph_create_cities_sample.generated @@ -5,7 +5,7 @@ arangosh> db.frenchCity.toArray(); { "_key" : "Lyon", "_id" : "frenchCity/Lyon", - "_rev" : "_YNEaf0K--F", + "_rev" : "_YOn1n2K--D", "population" : 80000, "isCapital" : false, "geometry" : { @@ -19,7 +19,7 @@ arangosh> db.frenchCity.toArray(); { "_key" : "Paris", "_id" : "frenchCity/Paris", - "_rev" : "_YNEaf0O--_", + "_rev" : "_YOn1n2K--F", "population" : 4000000, "isCapital" : true, "geometry" : { @@ -36,7 +36,7 @@ arangosh> db.germanCity.toArray(); { "_key" : "Cologne", "_id" : "germanCity/Cologne", - "_rev" : "_YNEaf0K--B", + "_rev" : "_YOn1n2K--_", "population" : 1000000, "isCapital" : false, "geometry" : { @@ -50,7 +50,7 @@ arangosh> db.germanCity.toArray(); { "_key" : "Hamburg", "_id" : "germanCity/Hamburg", - "_rev" : "_YNEaf0K--D", + "_rev" : "_YOn1n2K--B", "population" : 1000000, "isCapital" : false, "geometry" : { @@ -64,7 +64,7 @@ arangosh> db.germanCity.toArray(); { "_key" : "Berlin", "_id" : "germanCity/Berlin", - "_rev" : "_YNEaf0K--_", + "_rev" : "_YOn1n2G--_", "population" : 3000000, "isCapital" : true, "geometry" : { @@ -79,90 +79,90 @@ arangosh> db.germanCity.toArray(); arangosh> db.germanHighway.toArray(); [ { - "_key" : "130935", - "_id" : "germanHighway/130935", + "_key" : "130955", + "_id" : "germanHighway/130955", "_from" : "germanCity/Berlin", "_to" : "germanCity/Cologne", - "_rev" : "_YNEaf2C--_", + "_rev" : "_YOn1n4G--_", "distance" : 850 }, { - "_key" : "130939", - "_id" : "germanHighway/130939", + "_key" : "130959", + "_id" : "germanHighway/130959", "_from" : "germanCity/Berlin", "_to" : "germanCity/Hamburg", - "_rev" : "_YNEaf2C--B", + "_rev" : "_YOn1n4G--B", "distance" : 400 }, { - "_key" : "130942", - "_id" : "germanHighway/130942", + "_key" : "130962", + "_id" : "germanHighway/130962", "_from" : "germanCity/Hamburg", "_to" : "germanCity/Cologne", - "_rev" : "_YNEaf2G--_", + "_rev" : "_YOn1n4G--D", "distance" : 500 } ] arangosh> db.frenchHighway.toArray(); [ { - "_key" : "130945", - "_id" : "frenchHighway/130945", + "_key" : "130965", + "_id" : "frenchHighway/130965", "_from" : "frenchCity/Paris", "_to" : "frenchCity/Lyon", - "_rev" : "_YNEaf2G--B", + "_rev" : "_YOn1n4K--_", "distance" : 550 } ] arangosh> db.internationalHighway.toArray(); [ { - "_key" : "130949", - "_id" : "internationalHighway/130949", + "_key" : "130969", + "_id" : "internationalHighway/130969", "_from" : "germanCity/Berlin", "_to" : "frenchCity/Lyon", - "_rev" : "_YNEaf2G--D", + "_rev" : "_YOn1n4K--B", "distance" : 1100 }, { - "_key" : "130959", - "_id" : "internationalHighway/130959", - "_from" : "germanCity/Hamburg", - "_to" : "frenchCity/Lyon", - "_rev" : "_YNEaf2K--_", - "distance" : 1300 - }, - { - "_key" : "130953", - "_id" : "internationalHighway/130953", - "_from" : "germanCity/Berlin", - "_to" : "frenchCity/Paris", - "_rev" : "_YNEaf2G--F", - "distance" : 1200 - }, - { - "_key" : "130956", - "_id" : "internationalHighway/130956", + "_key" : "130976", + "_id" : "internationalHighway/130976", "_from" : "germanCity/Hamburg", "_to" : "frenchCity/Paris", - "_rev" : "_YNEaf2G--H", + "_rev" : "_YOn1n4K--F", "distance" : 900 }, { - "_key" : "130962", - "_id" : "internationalHighway/130962", - "_from" : "germanCity/Cologne", - "_to" : "frenchCity/Lyon", - "_rev" : "_YNEaf2K--B", - "distance" : 700 - }, - { - "_key" : "130965", - "_id" : "internationalHighway/130965", + "_key" : "130985", + "_id" : "internationalHighway/130985", "_from" : "germanCity/Cologne", "_to" : "frenchCity/Paris", - "_rev" : "_YNEaf2K--D", + "_rev" : "_YOn1n4O--D", "distance" : 550 + }, + { + "_key" : "130973", + "_id" : "internationalHighway/130973", + "_from" : "germanCity/Berlin", + "_to" : "frenchCity/Paris", + "_rev" : "_YOn1n4K--D", + "distance" : 1200 + }, + { + "_key" : "130979", + "_id" : "internationalHighway/130979", + "_from" : "germanCity/Hamburg", + "_to" : "frenchCity/Lyon", + "_rev" : "_YOn1n4O--_", + "distance" : 1300 + }, + { + "_key" : "130982", + "_id" : "internationalHighway/130982", + "_from" : "germanCity/Cologne", + "_to" : "frenchCity/Lyon", + "_rev" : "_YOn1n4O--B", + "distance" : 700 } ] arangosh> examples.dropGraph("routeplanner"); diff --git a/Documentation/Examples/graph_create_knows_sample.generated b/Documentation/Examples/graph_create_knows_sample.generated index 1519bbf055..53942782f4 100644 --- a/Documentation/Examples/graph_create_knows_sample.generated +++ b/Documentation/Examples/graph_create_knows_sample.generated @@ -5,74 +5,74 @@ arangosh> db.persons.toArray() { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_YNEaf6K--B", + "_rev" : "_YOn1n72--B", "name" : "Bob" }, { "_key" : "charlie", "_id" : "persons/charlie", - "_rev" : "_YNEaf6K--D", + "_rev" : "_YOn1n72--D", "name" : "Charlie" }, { "_key" : "dave", "_id" : "persons/dave", - "_rev" : "_YNEaf6K--F", + "_rev" : "_YOn1n72--F", "name" : "Dave" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_YNEaf6K--H", + "_rev" : "_YOn1n72--H", "name" : "Eve" }, { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_YNEaf6K--_", + "_rev" : "_YOn1n72--_", "name" : "Alice" } ] arangosh> db.knows.toArray(); [ { - "_key" : "131049", - "_id" : "knows/131049", - "_from" : "persons/eve", - "_to" : "persons/alice", - "_rev" : "_YNEaf6O--F", - "vertex" : "eve" - }, - { - "_key" : "131039", - "_id" : "knows/131039", + "_key" : "131059", + "_id" : "knows/131059", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_YNEaf6O--_", + "_rev" : "_YOn1n76--_", "vertex" : "alice" }, { - "_key" : "131052", - "_id" : "knows/131052", + "_key" : "131069", + "_id" : "knows/131069", "_from" : "persons/eve", - "_to" : "persons/bob", - "_rev" : "_YNEaf6O--H", + "_to" : "persons/alice", + "_rev" : "_YOn1n76--F", "vertex" : "eve" }, { - "_key" : "131043", - "_id" : "knows/131043", + "_key" : "131072", + "_id" : "knows/131072", + "_from" : "persons/eve", + "_to" : "persons/bob", + "_rev" : "_YOn1n76--H", + "vertex" : "eve" + }, + { + "_key" : "131063", + "_id" : "knows/131063", "_from" : "persons/bob", "_to" : "persons/charlie", - "_rev" : "_YNEaf6O--B", + "_rev" : "_YOn1n76--B", "vertex" : "bob" }, { - "_key" : "131046", - "_id" : "knows/131046", + "_key" : "131066", + "_id" : "knows/131066", "_from" : "persons/bob", "_to" : "persons/dave", - "_rev" : "_YNEaf6O--D", + "_rev" : "_YOn1n76--D", "vertex" : "bob" } ] diff --git a/Documentation/Examples/graph_create_mps_sample.generated b/Documentation/Examples/graph_create_mps_sample.generated index 9e2f658e73..997938c0c2 100644 --- a/Documentation/Examples/graph_create_mps_sample.generated +++ b/Documentation/Examples/graph_create_mps_sample.generated @@ -5,91 +5,91 @@ arangosh> db.mps_verts.toArray(); { "_key" : "F", "_id" : "mps_verts/F", - "_rev" : "_YNEaf8S--H" + "_rev" : "_YOn1o----D" }, { "_key" : "A", "_id" : "mps_verts/A", - "_rev" : "_YNEaf8O--_" + "_rev" : "_YOn1n96--_" }, { "_key" : "E", "_id" : "mps_verts/E", - "_rev" : "_YNEaf8S--F" + "_rev" : "_YOn1o----B" }, { "_key" : "C", "_id" : "mps_verts/C", - "_rev" : "_YNEaf8S--B" + "_rev" : "_YOn1n96--D" }, { "_key" : "D", "_id" : "mps_verts/D", - "_rev" : "_YNEaf8S--D" + "_rev" : "_YOn1o----_" }, { "_key" : "B", "_id" : "mps_verts/B", - "_rev" : "_YNEaf8S--_" + "_rev" : "_YOn1n96--B" } ] arangosh> db.mps_edges.toArray(); [ { - "_key" : "131107", - "_id" : "mps_edges/131107", + "_key" : "131131", + "_id" : "mps_edges/131131", "_from" : "mps_verts/A", - "_to" : "mps_verts/B", - "_rev" : "_YNEaf8S--J", + "_to" : "mps_verts/E", + "_rev" : "_YOn1o----H", "vertex" : "A" }, { - "_key" : "131123", - "_id" : "mps_edges/131123", + "_key" : "131143", + "_id" : "mps_edges/131143", "_from" : "mps_verts/E", "_to" : "mps_verts/F", - "_rev" : "_YNEaf8W--H", + "_rev" : "_YOn1o-C--D", "vertex" : "E" }, { - "_key" : "131126", - "_id" : "mps_edges/131126", + "_key" : "131146", + "_id" : "mps_edges/131146", "_from" : "mps_verts/F", "_to" : "mps_verts/C", - "_rev" : "_YNEaf8W--J", + "_rev" : "_YOn1o-C--F", "vertex" : "F" }, { - "_key" : "131111", - "_id" : "mps_edges/131111", + "_key" : "131134", + "_id" : "mps_edges/131134", "_from" : "mps_verts/A", - "_to" : "mps_verts/E", - "_rev" : "_YNEaf8W--_", + "_to" : "mps_verts/D", + "_rev" : "_YOn1o----J", "vertex" : "A" }, { - "_key" : "131120", - "_id" : "mps_edges/131120", - "_from" : "mps_verts/D", - "_to" : "mps_verts/C", - "_rev" : "_YNEaf8W--F", - "vertex" : "D" - }, - { - "_key" : "131117", - "_id" : "mps_edges/131117", + "_key" : "131137", + "_id" : "mps_edges/131137", "_from" : "mps_verts/B", "_to" : "mps_verts/C", - "_rev" : "_YNEaf8W--D", + "_rev" : "_YOn1o-C--_", "vertex" : "B" }, { - "_key" : "131114", - "_id" : "mps_edges/131114", + "_key" : "131127", + "_id" : "mps_edges/131127", "_from" : "mps_verts/A", - "_to" : "mps_verts/D", - "_rev" : "_YNEaf8W--B", + "_to" : "mps_verts/B", + "_rev" : "_YOn1o----F", "vertex" : "A" + }, + { + "_key" : "131140", + "_id" : "mps_edges/131140", + "_from" : "mps_verts/D", + "_to" : "mps_verts/C", + "_rev" : "_YOn1o-C--B", + "vertex" : "D" } ] arangosh> examples.dropGraph("mps_graph"); diff --git a/Documentation/Examples/graph_create_social_sample.generated b/Documentation/Examples/graph_create_social_sample.generated index 71b96390c4..97766221ef 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() { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_YNEag-6--F", + "_rev" : "_YOn1oAi--F", "name" : "Diana" }, { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_YNEag-6--_", + "_rev" : "_YOn1oAi--_", "name" : "Alice" } ] @@ -20,53 +20,53 @@ arangosh> db.male.toArray() { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_YNEag-6--B", + "_rev" : "_YOn1oAi--B", "name" : "Bob" }, { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_YNEag-6--D", + "_rev" : "_YOn1oAi--D", "name" : "Charly" } ] arangosh> db.relation.toArray() [ { - "_key" : "131191", - "_id" : "relation/131191", + "_key" : "131207", + "_id" : "relation/131207", + "_from" : "female/alice", + "_to" : "male/bob", + "_rev" : "_YOn1oAm--_", + "type" : "married", + "vertex" : "alice" + }, + { + "_key" : "131211", + "_id" : "relation/131211", "_from" : "female/alice", "_to" : "male/charly", - "_rev" : "_YNEag_---B", + "_rev" : "_YOn1oAm--B", "type" : "friend", "vertex" : "alice" }, { - "_key" : "131197", - "_id" : "relation/131197", + "_key" : "131217", + "_id" : "relation/131217", "_from" : "male/bob", "_to" : "female/diana", - "_rev" : "_YNEag_---F", + "_rev" : "_YOn1oAm--F", "type" : "friend", "vertex" : "bob" }, { - "_key" : "131194", - "_id" : "relation/131194", + "_key" : "131214", + "_id" : "relation/131214", "_from" : "male/charly", "_to" : "female/diana", - "_rev" : "_YNEag_---D", + "_rev" : "_YOn1oAm--D", "type" : "married", "vertex" : "charly" - }, - { - "_key" : "131187", - "_id" : "relation/131187", - "_from" : "female/alice", - "_to" : "male/bob", - "_rev" : "_YNEag_---_", - "type" : "married", - "vertex" : "alice" } ] arangosh> examples.dropGraph("social"); diff --git a/Documentation/Examples/graph_create_traversal_sample.generated b/Documentation/Examples/graph_create_traversal_sample.generated index f6f1d1a08e..23a4ca6997 100644 --- a/Documentation/Examples/graph_create_traversal_sample.generated +++ b/Documentation/Examples/graph_create_traversal_sample.generated @@ -5,171 +5,171 @@ arangosh> db.circles.toArray(); { "_key" : "I", "_id" : "circles/I", - "_rev" : "_YNEagBu--F", + "_rev" : "_YOn1oDK--J", "label" : "9" }, { "_key" : "G", "_id" : "circles/G", - "_rev" : "_YNEagBu--B", + "_rev" : "_YOn1oDK--F", "label" : "7" }, { "_key" : "F", "_id" : "circles/F", - "_rev" : "_YNEagBu--_", + "_rev" : "_YOn1oDK--D", "label" : "6" }, { "_key" : "A", "_id" : "circles/A", - "_rev" : "_YNEagBq--_", + "_rev" : "_YOn1oDG--_", "label" : "1" }, { "_key" : "E", "_id" : "circles/E", - "_rev" : "_YNEagBq--H", + "_rev" : "_YOn1oDK--B", "label" : "5" }, { "_key" : "C", "_id" : "circles/C", - "_rev" : "_YNEagBq--D", + "_rev" : "_YOn1oDG--D", "label" : "3" }, { "_key" : "D", "_id" : "circles/D", - "_rev" : "_YNEagBq--F", + "_rev" : "_YOn1oDK--_", "label" : "4" }, { "_key" : "J", "_id" : "circles/J", - "_rev" : "_YNEagBu--H", + "_rev" : "_YOn1oEa--_", "label" : "10" }, { "_key" : "B", "_id" : "circles/B", - "_rev" : "_YNEagBq--B", + "_rev" : "_YOn1oDG--B", "label" : "2" }, { "_key" : "H", "_id" : "circles/H", - "_rev" : "_YNEagBu--D", + "_rev" : "_YOn1oDK--H", "label" : "8" }, { "_key" : "K", "_id" : "circles/K", - "_rev" : "_YNEagBu--J", + "_rev" : "_YOn1oEe--_", "label" : "11" } ] arangosh> db.edges.toArray(); [ { - "_key" : "131297", - "_id" : "edges/131297", - "_from" : "circles/J", - "_to" : "circles/K", - "_rev" : "_YNEagB2--D", - "theFalse" : false, - "theTruth" : true, - "label" : "right_zup" - }, - { - "_key" : "131282", - "_id" : "edges/131282", - "_from" : "circles/E", - "_to" : "circles/F", - "_rev" : "_YNEagBy--H", - "theFalse" : false, - "theTruth" : true, - "label" : "left_schubi" - }, - { - "_key" : "131273", - "_id" : "edges/131273", - "_from" : "circles/B", - "_to" : "circles/C", - "_rev" : "_YNEagBy--B", - "theFalse" : false, - "theTruth" : true, - "label" : "left_blarg" - }, - { - "_key" : "131285", - "_id" : "edges/131285", - "_from" : "circles/A", - "_to" : "circles/G", - "_rev" : "_YNEagBy--J", - "theFalse" : false, - "theTruth" : true, - "label" : "right_foo" - }, - { - "_key" : "131276", - "_id" : "edges/131276", - "_from" : "circles/C", - "_to" : "circles/D", - "_rev" : "_YNEagBy--D", - "theFalse" : false, - "theTruth" : true, - "label" : "left_blorg" - }, - { - "_key" : "131288", - "_id" : "edges/131288", - "_from" : "circles/G", - "_to" : "circles/H", - "_rev" : "_YNEagBy--L", - "theFalse" : false, - "theTruth" : true, - "label" : "right_blob" - }, - { - "_key" : "131279", - "_id" : "edges/131279", - "_from" : "circles/B", - "_to" : "circles/E", - "_rev" : "_YNEagBy--F", - "theFalse" : false, - "theTruth" : true, - "label" : "left_blub" - }, - { - "_key" : "131291", - "_id" : "edges/131291", + "_key" : "131311", + "_id" : "edges/131311", "_from" : "circles/H", "_to" : "circles/I", - "_rev" : "_YNEagB2--_", + "_rev" : "_YOn1oEm--B", "theFalse" : false, "theTruth" : true, "label" : "right_blub" }, { - "_key" : "131269", - "_id" : "edges/131269", + "_key" : "131308", + "_id" : "edges/131308", + "_from" : "circles/G", + "_to" : "circles/H", + "_rev" : "_YOn1oEm--_", + "theFalse" : false, + "theTruth" : true, + "label" : "right_blob" + }, + { + "_key" : "131289", + "_id" : "edges/131289", "_from" : "circles/A", "_to" : "circles/B", - "_rev" : "_YNEagBy--_", + "_rev" : "_YOn1oEe--B", "theFalse" : false, "theTruth" : true, "label" : "left_bar" }, { - "_key" : "131294", - "_id" : "edges/131294", + "_key" : "131317", + "_id" : "edges/131317", + "_from" : "circles/J", + "_to" : "circles/K", + "_rev" : "_YOn1oEm--F", + "theFalse" : false, + "theTruth" : true, + "label" : "right_zup" + }, + { + "_key" : "131302", + "_id" : "edges/131302", + "_from" : "circles/E", + "_to" : "circles/F", + "_rev" : "_YOn1oEi--D", + "theFalse" : false, + "theTruth" : true, + "label" : "left_schubi" + }, + { + "_key" : "131296", + "_id" : "edges/131296", + "_from" : "circles/C", + "_to" : "circles/D", + "_rev" : "_YOn1oEi--_", + "theFalse" : false, + "theTruth" : true, + "label" : "left_blorg" + }, + { + "_key" : "131314", + "_id" : "edges/131314", "_from" : "circles/G", "_to" : "circles/J", - "_rev" : "_YNEagB2--B", + "_rev" : "_YOn1oEm--D", "theFalse" : false, "theTruth" : true, "label" : "right_zip" + }, + { + "_key" : "131305", + "_id" : "edges/131305", + "_from" : "circles/A", + "_to" : "circles/G", + "_rev" : "_YOn1oEi--F", + "theFalse" : false, + "theTruth" : true, + "label" : "right_foo" + }, + { + "_key" : "131293", + "_id" : "edges/131293", + "_from" : "circles/B", + "_to" : "circles/C", + "_rev" : "_YOn1oEe--D", + "theFalse" : false, + "theTruth" : true, + "label" : "left_blarg" + }, + { + "_key" : "131299", + "_id" : "edges/131299", + "_from" : "circles/B", + "_to" : "circles/E", + "_rev" : "_YOn1oEi--B", + "theFalse" : false, + "theTruth" : true, + "label" : "left_blub" } ] arangosh> examples.dropGraph("traversalGraph"); diff --git a/Documentation/Examples/graph_create_world_sample.generated b/Documentation/Examples/graph_create_world_sample.generated index c389513ff3..2543d115d6 100644 --- a/Documentation/Examples/graph_create_world_sample.generated +++ b/Documentation/Examples/graph_create_world_sample.generated @@ -5,42 +5,42 @@ arangosh> db.worldVertices.toArray(); { "_key" : "capital-ottawa", "_id" : "worldVertices/capital-ottawa", - "_rev" : "_YNEagEi--F", + "_rev" : "_YOn1oMO--L", "name" : "Ottawa", "type" : "capital" }, { "_key" : "capital-yaounde", "_id" : "worldVertices/capital-yaounde", - "_rev" : "_YNEagEq--J", + "_rev" : "_YOn1oMW--H", "name" : "Yaounde", "type" : "capital" }, { "_key" : "capital-algiers", "_id" : "worldVertices/capital-algiers", - "_rev" : "_YNEagES--F", + "_rev" : "_YOn1oMC--N", "name" : "Algiers", "type" : "capital" }, { "_key" : "continent-south-america", "_id" : "worldVertices/continent-south-america", - "_rev" : "_YNEagD6--D", + "_rev" : "_YOn1oGm--J", "name" : "South America", "type" : "continent" }, { "_key" : "capital-andorra-la-vella", "_id" : "worldVertices/capital-andorra-la-vella", - "_rev" : "_YNEagES--H", + "_rev" : "_YOn1oMG--_", "name" : "Andorra la Vella", "type" : "capital" }, { "_key" : "country-people-s-republic-of-china", "_id" : "worldVertices/country-people-s-republic-of-china", - "_rev" : "_YNEagES--D", + "_rev" : "_YOn1oMC--L", "name" : "People's Republic of China", "type" : "country", "code" : "CHN" @@ -48,14 +48,14 @@ arangosh> db.worldVertices.toArray(); { "_key" : "capital-tirana", "_id" : "worldVertices/capital-tirana", - "_rev" : "_YNEagEq--D", + "_rev" : "_YOn1oMW--B", "name" : "Tirana", "type" : "capital" }, { "_key" : "country-cote-d-ivoire", "_id" : "worldVertices/country-cote-d-ivoire", - "_rev" : "_YNEagEK--L", + "_rev" : "_YOn1oL6--B", "name" : "Cote d'Ivoire", "type" : "country", "code" : "CIV" @@ -63,21 +63,21 @@ arangosh> db.worldVertices.toArray(); { "_key" : "capital-sofia", "_id" : "worldVertices/capital-sofia", - "_rev" : "_YNEagEq--_", + "_rev" : "_YOn1oMS--L", "name" : "Sofia", "type" : "capital" }, { "_key" : "capital-bridgetown", "_id" : "worldVertices/capital-bridgetown", - "_rev" : "_YNEagEW--J", + "_rev" : "_YOn1oMG--N", "name" : "Bridgetown", "type" : "capital" }, { "_key" : "country-chad", "_id" : "worldVertices/country-chad", - "_rev" : "_YNEagEK--F", + "_rev" : "_YOn1oKq--B", "name" : "Chad", "type" : "country", "code" : "TCD" @@ -85,35 +85,35 @@ arangosh> db.worldVertices.toArray(); { "_key" : "capital-thimphu", "_id" : "worldVertices/capital-thimphu", - "_rev" : "_YNEagEq--B", + "_rev" : "_YOn1oMW--_", "name" : "Thimphu", "type" : "capital" }, { "_key" : "capital-santiago", "_id" : "worldVertices/capital-santiago", - "_rev" : "_YNEagEm--H", + "_rev" : "_YOn1oMS--H", "name" : "Santiago", "type" : "capital" }, { "_key" : "capital-manama", "_id" : "worldVertices/capital-manama", - "_rev" : "_YNEagEi--_", + "_rev" : "_YOn1oMO--F", "name" : "Manama", "type" : "capital" }, { "_key" : "capital-zagreb", "_id" : "worldVertices/capital-zagreb", - "_rev" : "_YNEagEu--_", + "_rev" : "_YOn1oMa--_", "name" : "Zagreb", "type" : "capital" }, { "_key" : "country-brazil", "_id" : "worldVertices/country-brazil", - "_rev" : "_YNEagEG--B", + "_rev" : "_YOn1oJS--H", "name" : "Brazil", "type" : "country", "code" : "BRA" @@ -121,7 +121,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-burundi", "_id" : "worldVertices/country-burundi", - "_rev" : "_YNEagEG--J", + "_rev" : "_YOn1oKm--B", "name" : "Burundi", "type" : "country", "code" : "BDI" @@ -129,14 +129,14 @@ arangosh> db.worldVertices.toArray(); { "_key" : "capital-la-paz", "_id" : "worldVertices/capital-la-paz", - "_rev" : "_YNEagEe--H", + "_rev" : "_YOn1oMO--B", "name" : "La Paz", "type" : "capital" }, { "_key" : "country-germany", "_id" : "worldVertices/country-germany", - "_rev" : "_YNEagES--B", + "_rev" : "_YOn1oMC--J", "name" : "Germany", "type" : "country", "code" : "DEU" @@ -144,7 +144,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-botswana", "_id" : "worldVertices/country-botswana", - "_rev" : "_YNEagEG--_", + "_rev" : "_YOn1oJS--F", "name" : "Botswana", "type" : "country", "code" : "BWA" @@ -152,14 +152,14 @@ arangosh> db.worldVertices.toArray(); { "_key" : "capital-phnom-penh", "_id" : "worldVertices/capital-phnom-penh", - "_rev" : "_YNEagEm--_", + "_rev" : "_YOn1oMS--_", "name" : "Phnom Penh", "type" : "capital" }, { "_key" : "country-croatia", "_id" : "worldVertices/country-croatia", - "_rev" : "_YNEagEK--N", + "_rev" : "_YOn1oM---_", "name" : "Croatia", "type" : "country", "code" : "HRV" @@ -167,7 +167,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-eritrea", "_id" : "worldVertices/country-eritrea", - "_rev" : "_YNEagEO--F", + "_rev" : "_YOn1oMC--D", "name" : "Eritrea", "type" : "country", "code" : "ERI" @@ -175,7 +175,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-angola", "_id" : "worldVertices/country-angola", - "_rev" : "_YNEagE---B", + "_rev" : "_YOn1oGq--D", "name" : "Angola", "type" : "country", "code" : "AGO" @@ -183,7 +183,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-bahrain", "_id" : "worldVertices/country-bahrain", - "_rev" : "_YNEagEC--_", + "_rev" : "_YOn1oI---B", "name" : "Bahrain", "type" : "country", "code" : "BHR" @@ -191,7 +191,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-argentina", "_id" : "worldVertices/country-argentina", - "_rev" : "_YNEagE---F", + "_rev" : "_YOn1oH6--_", "name" : "Argentina", "type" : "country", "code" : "ARG" @@ -199,21 +199,21 @@ arangosh> db.worldVertices.toArray(); { "_key" : "capital-canberra", "_id" : "worldVertices/capital-canberra", - "_rev" : "_YNEagEa--H", + "_rev" : "_YOn1oMK--F", "name" : "Canberra", "type" : "capital" }, { "_key" : "capital-bujumbura", "_id" : "worldVertices/capital-bujumbura", - "_rev" : "_YNEagEa--D", + "_rev" : "_YOn1oMK--B", "name" : "Bujumbura", "type" : "capital" }, { "_key" : "country-bangladesh", "_id" : "worldVertices/country-bangladesh", - "_rev" : "_YNEagEC--B", + "_rev" : "_YOn1oI---D", "name" : "Bangladesh", "type" : "country", "code" : "BGD" @@ -221,7 +221,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-ecuador", "_id" : "worldVertices/country-ecuador", - "_rev" : "_YNEagEO--B", + "_rev" : "_YOn1oMC--_", "name" : "Ecuador", "type" : "country", "code" : "ECU" @@ -229,14 +229,14 @@ arangosh> db.worldVertices.toArray(); { "_key" : "continent-africa", "_id" : "worldVertices/continent-africa", - "_rev" : "_YNEagD2--_", + "_rev" : "_YOn1oGm--_", "name" : "Africa", "type" : "continent" }, { "_key" : "country-cambodia", "_id" : "worldVertices/country-cambodia", - "_rev" : "_YNEagEK--_", + "_rev" : "_YOn1oKm--D", "name" : "Cambodia", "type" : "country", "code" : "KHM" @@ -244,7 +244,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-chile", "_id" : "worldVertices/country-chile", - "_rev" : "_YNEagEK--H", + "_rev" : "_YOn1oKq--D", "name" : "Chile", "type" : "country", "code" : "CHL" @@ -252,7 +252,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-bolivia", "_id" : "worldVertices/country-bolivia", - "_rev" : "_YNEagEC--J", + "_rev" : "_YOn1oJS--B", "name" : "Bolivia", "type" : "country", "code" : "BOL" @@ -260,7 +260,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-belgium", "_id" : "worldVertices/country-belgium", - "_rev" : "_YNEagEC--F", + "_rev" : "_YOn1oJO--_", "name" : "Belgium", "type" : "country", "code" : "BEL" @@ -268,14 +268,14 @@ arangosh> db.worldVertices.toArray(); { "_key" : "capital-copenhagen", "_id" : "worldVertices/capital-copenhagen", - "_rev" : "_YNEagEa--J", + "_rev" : "_YOn1oMK--H", "name" : "Copenhagen", "type" : "capital" }, { "_key" : "country-cameroon", "_id" : "worldVertices/country-cameroon", - "_rev" : "_YNEagEK--B", + "_rev" : "_YOn1oKm--F", "name" : "Cameroon", "type" : "country", "code" : "CMR" @@ -283,42 +283,42 @@ arangosh> db.worldVertices.toArray(); { "_key" : "capital-gaborone", "_id" : "worldVertices/capital-gaborone", - "_rev" : "_YNEagEe--B", + "_rev" : "_YOn1oMK--L", "name" : "Gaborone", "type" : "capital" }, { "_key" : "continent-australia", "_id" : "worldVertices/continent-australia", - "_rev" : "_YNEagD2--D", + "_rev" : "_YOn1oGm--D", "name" : "Australia", "type" : "continent" }, { "_key" : "world", "_id" : "worldVertices/world", - "_rev" : "_YNEagDy--_", + "_rev" : "_YOn1oGi--_", "name" : "World", "type" : "root" }, { "_key" : "capital-yamoussoukro", "_id" : "worldVertices/capital-yamoussoukro", - "_rev" : "_YNEagEq--H", + "_rev" : "_YOn1oMW--F", "name" : "Yamoussoukro", "type" : "capital" }, { "_key" : "capital-brasilia", "_id" : "worldVertices/capital-brasilia", - "_rev" : "_YNEagEW--H", + "_rev" : "_YOn1oMG--L", "name" : "Brasilia", "type" : "capital" }, { "_key" : "country-antigua-and-barbuda", "_id" : "worldVertices/country-antigua-and-barbuda", - "_rev" : "_YNEagE---D", + "_rev" : "_YOn1oGq--F", "name" : "Antigua and Barbuda", "type" : "country", "code" : "ATG" @@ -326,28 +326,28 @@ arangosh> db.worldVertices.toArray(); { "_key" : "capital-bandar-seri-begawan", "_id" : "worldVertices/capital-bandar-seri-begawan", - "_rev" : "_YNEagEW--_", + "_rev" : "_YOn1oMG--D", "name" : "Bandar Seri Begawan", "type" : "capital" }, { "_key" : "capital-dhaka", "_id" : "worldVertices/capital-dhaka", - "_rev" : "_YNEagEe--_", + "_rev" : "_YOn1oMK--J", "name" : "Dhaka", "type" : "capital" }, { "_key" : "capital-saint-john-s", "_id" : "worldVertices/capital-saint-john-s", - "_rev" : "_YNEagEm--F", + "_rev" : "_YOn1oMS--F", "name" : "Saint John's", "type" : "capital" }, { "_key" : "country-burkina-faso", "_id" : "worldVertices/country-burkina-faso", - "_rev" : "_YNEagEG--H", + "_rev" : "_YOn1oKm--_", "name" : "Burkina Faso", "type" : "country", "code" : "BFA" @@ -355,14 +355,14 @@ arangosh> db.worldVertices.toArray(); { "_key" : "capital-prague", "_id" : "worldVertices/capital-prague", - "_rev" : "_YNEagEm--B", + "_rev" : "_YOn1oMS--B", "name" : "Prague", "type" : "capital" }, { "_key" : "country-czech-republic", "_id" : "worldVertices/country-czech-republic", - "_rev" : "_YNEagEK--P", + "_rev" : "_YOn1oM---B", "name" : "Czech Republic", "type" : "country", "code" : "CZE" @@ -370,7 +370,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-egypt", "_id" : "worldVertices/country-egypt", - "_rev" : "_YNEagEO--D", + "_rev" : "_YOn1oMC--B", "name" : "Egypt", "type" : "country", "code" : "EGY" @@ -378,14 +378,14 @@ arangosh> db.worldVertices.toArray(); { "_key" : "capital-helsinki", "_id" : "worldVertices/capital-helsinki", - "_rev" : "_YNEagEe--D", + "_rev" : "_YOn1oMK--N", "name" : "Helsinki", "type" : "capital" }, { "_key" : "country-bhutan", "_id" : "worldVertices/country-bhutan", - "_rev" : "_YNEagEC--H", + "_rev" : "_YOn1oJS--_", "name" : "Bhutan", "type" : "country", "code" : "BTN" @@ -393,7 +393,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-algeria", "_id" : "worldVertices/country-algeria", - "_rev" : "_YNEagD6--J", + "_rev" : "_YOn1oGq--_", "name" : "Algeria", "type" : "country", "code" : "DZA" @@ -401,7 +401,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-afghanistan", "_id" : "worldVertices/country-afghanistan", - "_rev" : "_YNEagD6--F", + "_rev" : "_YOn1oGm--L", "name" : "Afghanistan", "type" : "country", "code" : "AFG" @@ -409,14 +409,14 @@ arangosh> db.worldVertices.toArray(); { "_key" : "capital-paris", "_id" : "worldVertices/capital-paris", - "_rev" : "_YNEagEi--J", + "_rev" : "_YOn1oMO--P", "name" : "Paris", "type" : "capital" }, { "_key" : "country-finland", "_id" : "worldVertices/country-finland", - "_rev" : "_YNEagEO--H", + "_rev" : "_YOn1oMC--F", "name" : "Finland", "type" : "country", "code" : "FIN" @@ -424,7 +424,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-austria", "_id" : "worldVertices/country-austria", - "_rev" : "_YNEagE---J", + "_rev" : "_YOn1oH6--D", "name" : "Austria", "type" : "country", "code" : "AUT" @@ -432,14 +432,14 @@ arangosh> db.worldVertices.toArray(); { "_key" : "capital-brussels", "_id" : "worldVertices/capital-brussels", - "_rev" : "_YNEagEa--_", + "_rev" : "_YOn1oMG--P", "name" : "Brussels", "type" : "capital" }, { "_key" : "country-denmark", "_id" : "worldVertices/country-denmark", - "_rev" : "_YNEagEO--_", + "_rev" : "_YOn1oM---D", "name" : "Denmark", "type" : "country", "code" : "DNK" @@ -447,7 +447,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-albania", "_id" : "worldVertices/country-albania", - "_rev" : "_YNEagD6--H", + "_rev" : "_YOn1oGm--N", "name" : "Albania", "type" : "country", "code" : "ALB" @@ -455,28 +455,28 @@ arangosh> db.worldVertices.toArray(); { "_key" : "capital-berlin", "_id" : "worldVertices/capital-berlin", - "_rev" : "_YNEagEW--D", + "_rev" : "_YOn1oMG--H", "name" : "Berlin", "type" : "capital" }, { "_key" : "capital-buenos-aires", "_id" : "worldVertices/capital-buenos-aires", - "_rev" : "_YNEagEa--B", + "_rev" : "_YOn1oMK--_", "name" : "Buenos Aires", "type" : "capital" }, { "_key" : "capital-quito", "_id" : "worldVertices/capital-quito", - "_rev" : "_YNEagEm--D", + "_rev" : "_YOn1oMS--D", "name" : "Quito", "type" : "capital" }, { "_key" : "country-france", "_id" : "worldVertices/country-france", - "_rev" : "_YNEagES--_", + "_rev" : "_YOn1oMC--H", "name" : "France", "type" : "country", "code" : "FRA" @@ -484,7 +484,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-colombia", "_id" : "worldVertices/country-colombia", - "_rev" : "_YNEagEK--J", + "_rev" : "_YOn1oL6--_", "name" : "Colombia", "type" : "country", "code" : "COL" @@ -492,7 +492,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-bulgaria", "_id" : "worldVertices/country-bulgaria", - "_rev" : "_YNEagEG--F", + "_rev" : "_YOn1oJW--_", "name" : "Bulgaria", "type" : "country", "code" : "BGR" @@ -500,21 +500,21 @@ arangosh> db.worldVertices.toArray(); { "_key" : "continent-north-america", "_id" : "worldVertices/continent-north-america", - "_rev" : "_YNEagD6--B", + "_rev" : "_YOn1oGm--H", "name" : "North America", "type" : "continent" }, { "_key" : "capital-vienna", "_id" : "worldVertices/capital-vienna", - "_rev" : "_YNEagEq--F", + "_rev" : "_YOn1oMW--D", "name" : "Vienna", "type" : "capital" }, { "_key" : "country-bahamas", "_id" : "worldVertices/country-bahamas", - "_rev" : "_YNEagE---L", + "_rev" : "_YOn1oI---_", "name" : "Bahamas", "type" : "country", "code" : "BHS" @@ -522,14 +522,14 @@ arangosh> db.worldVertices.toArray(); { "_key" : "continent-asia", "_id" : "worldVertices/continent-asia", - "_rev" : "_YNEagD2--B", + "_rev" : "_YOn1oGm--B", "name" : "Asia", "type" : "continent" }, { "_key" : "country-barbados", "_id" : "worldVertices/country-barbados", - "_rev" : "_YNEagEC--D", + "_rev" : "_YOn1oI---F", "name" : "Barbados", "type" : "country", "code" : "BRB" @@ -537,28 +537,28 @@ arangosh> db.worldVertices.toArray(); { "_key" : "capital-n-djamena", "_id" : "worldVertices/capital-n-djamena", - "_rev" : "_YNEagEi--D", + "_rev" : "_YOn1oMO--J", "name" : "N'Djamena", "type" : "capital" }, { "_key" : "capital-ouagadougou", "_id" : "worldVertices/capital-ouagadougou", - "_rev" : "_YNEagEi--H", + "_rev" : "_YOn1oMO--N", "name" : "Ouagadougou", "type" : "capital" }, { "_key" : "capital-bogota", "_id" : "worldVertices/capital-bogota", - "_rev" : "_YNEagEW--F", + "_rev" : "_YOn1oMG--J", "name" : "Bogota", "type" : "capital" }, { "_key" : "country-brunei", "_id" : "worldVertices/country-brunei", - "_rev" : "_YNEagEG--D", + "_rev" : "_YOn1oJS--J", "name" : "Brunei", "type" : "country", "code" : "BRN" @@ -566,42 +566,42 @@ arangosh> db.worldVertices.toArray(); { "_key" : "capital-asmara", "_id" : "worldVertices/capital-asmara", - "_rev" : "_YNEagES--J", + "_rev" : "_YOn1oMG--B", "name" : "Asmara", "type" : "capital" }, { "_key" : "capital-cairo", "_id" : "worldVertices/capital-cairo", - "_rev" : "_YNEagEa--F", + "_rev" : "_YOn1oMK--D", "name" : "Cairo", "type" : "capital" }, { "_key" : "capital-kabul", "_id" : "worldVertices/capital-kabul", - "_rev" : "_YNEagEe--F", + "_rev" : "_YOn1oMO--_", "name" : "Kabul", "type" : "capital" }, { "_key" : "capital-nassau", "_id" : "worldVertices/capital-nassau", - "_rev" : "_YNEagEi--B", + "_rev" : "_YOn1oMO--H", "name" : "Nassau", "type" : "capital" }, { "_key" : "capital-beijing", "_id" : "worldVertices/capital-beijing", - "_rev" : "_YNEagEW--B", + "_rev" : "_YOn1oMG--F", "name" : "Beijing", "type" : "capital" }, { "_key" : "country-canada", "_id" : "worldVertices/country-canada", - "_rev" : "_YNEagEK--D", + "_rev" : "_YOn1oKq--_", "name" : "Canada", "type" : "country", "code" : "CAN" @@ -609,21 +609,21 @@ arangosh> db.worldVertices.toArray(); { "_key" : "continent-europe", "_id" : "worldVertices/continent-europe", - "_rev" : "_YNEagD6--_", + "_rev" : "_YOn1oGm--F", "name" : "Europe", "type" : "continent" }, { "_key" : "capital-luanda", "_id" : "worldVertices/capital-luanda", - "_rev" : "_YNEagEe--J", + "_rev" : "_YOn1oMO--D", "name" : "Luanda", "type" : "capital" }, { "_key" : "country-australia", "_id" : "worldVertices/country-australia", - "_rev" : "_YNEagE---H", + "_rev" : "_YOn1oH6--B", "name" : "Australia", "type" : "country", "code" : "AUS" @@ -631,14 +631,14 @@ arangosh> db.worldVertices.toArray(); { "_key" : "capital-sarajevo", "_id" : "worldVertices/capital-sarajevo", - "_rev" : "_YNEagEm--J", + "_rev" : "_YOn1oMS--J", "name" : "Sarajevo", "type" : "capital" }, { "_key" : "country-andorra", "_id" : "worldVertices/country-andorra", - "_rev" : "_YNEagE---_", + "_rev" : "_YOn1oGq--B", "name" : "Andorra", "type" : "country", "code" : "AND" @@ -646,7 +646,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-bosnia-and-herzegovina", "_id" : "worldVertices/country-bosnia-and-herzegovina", - "_rev" : "_YNEagEC--L", + "_rev" : "_YOn1oJS--D", "name" : "Bosnia and Herzegovina", "type" : "country", "code" : "BIH" @@ -655,691 +655,691 @@ arangosh> db.worldVertices.toArray(); arangosh> db.worldEdges.toArray(); [ { - "_key" : "131629", - "_id" : "worldEdges/131629", - "_from" : "worldVertices/country-denmark", - "_to" : "worldVertices/continent-europe", - "_rev" : "_YNEagFG--F", - "type" : "is-in" - }, - { - "_key" : "131569", - "_id" : "worldEdges/131569", - "_from" : "worldVertices/country-barbados", - "_to" : "worldVertices/continent-north-america", - "_rev" : "_YNEagE6--B", - "type" : "is-in" - }, - { - "_key" : "131686", - "_id" : "worldEdges/131686", - "_from" : "worldVertices/capital-bujumbura", - "_to" : "worldVertices/country-burundi", - "_rev" : "_YNEagFS--J", - "type" : "is-in" - }, - { - "_key" : "131749", - "_id" : "worldEdges/131749", - "_from" : "worldVertices/capital-sarajevo", - "_to" : "worldVertices/country-bosnia-and-herzegovina", - "_rev" : "_YNEagFi--B", - "type" : "is-in" - }, - { - "_key" : "131551", - "_id" : "worldEdges/131551", - "_from" : "worldVertices/country-argentina", - "_to" : "worldVertices/continent-south-america", - "_rev" : "_YNEagE2--B", - "type" : "is-in" - }, - { - "_key" : "131734", - "_id" : "worldEdges/131734", - "_from" : "worldVertices/capital-phnom-penh", - "_to" : "worldVertices/country-cambodia", - "_rev" : "_YNEagFe--D", - "type" : "is-in" - }, - { - "_key" : "131728", - "_id" : "worldEdges/131728", - "_from" : "worldVertices/capital-ouagadougou", - "_to" : "worldVertices/country-burkina-faso", - "_rev" : "_YNEagFe--_", - "type" : "is-in" - }, - { - "_key" : "131611", - "_id" : "worldEdges/131611", - "_from" : "worldVertices/country-chad", - "_to" : "worldVertices/continent-africa", - "_rev" : "_YNEagFC--F", - "type" : "is-in" - }, - { - "_key" : "131707", - "_id" : "worldEdges/131707", - "_from" : "worldVertices/capital-kabul", - "_to" : "worldVertices/country-afghanistan", - "_rev" : "_YNEagFa--_", - "type" : "is-in" - }, - { - "_key" : "131575", - "_id" : "worldEdges/131575", - "_from" : "worldVertices/country-bhutan", - "_to" : "worldVertices/continent-asia", - "_rev" : "_YNEagE6--F", - "type" : "is-in" - }, - { - "_key" : "131710", - "_id" : "worldEdges/131710", - "_from" : "worldVertices/capital-la-paz", - "_to" : "worldVertices/country-bolivia", - "_rev" : "_YNEagFa--B", - "type" : "is-in" - }, - { - "_key" : "131545", - "_id" : "worldEdges/131545", - "_from" : "worldVertices/country-angola", - "_to" : "worldVertices/continent-africa", - "_rev" : "_YNEagEy--J", - "type" : "is-in" - }, - { - "_key" : "131695", - "_id" : "worldEdges/131695", - "_from" : "worldVertices/capital-copenhagen", - "_to" : "worldVertices/country-denmark", - "_rev" : "_YNEagFW--D", - "type" : "is-in" - }, - { - "_key" : "131647", - "_id" : "worldEdges/131647", - "_from" : "worldVertices/country-germany", - "_to" : "worldVertices/continent-europe", - "_rev" : "_YNEagFK--H", - "type" : "is-in" - }, - { - "_key" : "131527", - "_id" : "worldEdges/131527", - "_from" : "worldVertices/continent-north-america", - "_to" : "worldVertices/world", - "_rev" : "_YNEagEu--J", - "type" : "is-in" - }, - { - "_key" : "131719", - "_id" : "worldEdges/131719", - "_from" : "worldVertices/capital-nassau", - "_to" : "worldVertices/country-bahamas", - "_rev" : "_YNEagFa--H", - "type" : "is-in" - }, - { - "_key" : "131665", - "_id" : "worldEdges/131665", - "_from" : "worldVertices/capital-beijing", - "_to" : "worldVertices/country-people-s-republic-of-china", - "_rev" : "_YNEagFO--G", - "type" : "is-in" - }, - { - "_key" : "131680", - "_id" : "worldEdges/131680", - "_from" : "worldVertices/capital-brussels", - "_to" : "worldVertices/country-belgium", - "_rev" : "_YNEagFS--F", - "type" : "is-in" - }, - { - "_key" : "131698", - "_id" : "worldEdges/131698", - "_from" : "worldVertices/capital-dhaka", - "_to" : "worldVertices/country-bangladesh", - "_rev" : "_YNEagFW--F", - "type" : "is-in" - }, - { - "_key" : "131722", - "_id" : "worldEdges/131722", - "_from" : "worldVertices/capital-n-djamena", - "_to" : "worldVertices/country-chad", - "_rev" : "_YNEagFa--J", - "type" : "is-in" - }, - { - "_key" : "131533", - "_id" : "worldEdges/131533", - "_from" : "worldVertices/country-afghanistan", - "_to" : "worldVertices/continent-asia", - "_rev" : "_YNEagEy--B", - "type" : "is-in" - }, - { - "_key" : "131668", - "_id" : "worldEdges/131668", - "_from" : "worldVertices/capital-berlin", - "_to" : "worldVertices/country-germany", - "_rev" : "_YNEagFO--I", - "type" : "is-in" - }, - { - "_key" : "131623", - "_id" : "worldEdges/131623", - "_from" : "worldVertices/country-croatia", - "_to" : "worldVertices/continent-europe", - "_rev" : "_YNEagFG--B", - "type" : "is-in" - }, - { - "_key" : "131596", - "_id" : "worldEdges/131596", - "_from" : "worldVertices/country-burkina-faso", - "_to" : "worldVertices/continent-africa", - "_rev" : "_YNEagF---H", - "type" : "is-in" - }, - { - "_key" : "131677", - "_id" : "worldEdges/131677", - "_from" : "worldVertices/capital-bridgetown", - "_to" : "worldVertices/country-barbados", - "_rev" : "_YNEagFS--D", - "type" : "is-in" - }, - { - "_key" : "131671", - "_id" : "worldEdges/131671", + "_key" : "131691", + "_id" : "worldEdges/131691", "_from" : "worldVertices/capital-bogota", "_to" : "worldVertices/country-colombia", - "_rev" : "_YNEagFS--_", + "_rev" : "_YOn1oNS--_", "type" : "is-in" }, { - "_key" : "131713", - "_id" : "worldEdges/131713", - "_from" : "worldVertices/capital-luanda", - "_to" : "worldVertices/country-angola", - "_rev" : "_YNEagFa--D", - "type" : "is-in" - }, - { - "_key" : "131644", - "_id" : "worldEdges/131644", - "_from" : "worldVertices/country-france", - "_to" : "worldVertices/continent-europe", - "_rev" : "_YNEagFK--F", - "type" : "is-in" - }, - { - "_key" : "131617", - "_id" : "worldEdges/131617", - "_from" : "worldVertices/country-colombia", - "_to" : "worldVertices/continent-south-america", - "_rev" : "_YNEagFC--J", - "type" : "is-in" - }, - { - "_key" : "131692", - "_id" : "worldEdges/131692", - "_from" : "worldVertices/capital-canberra", - "_to" : "worldVertices/country-australia", - "_rev" : "_YNEagFW--B", - "type" : "is-in" - }, - { - "_key" : "131764", - "_id" : "worldEdges/131764", - "_from" : "worldVertices/capital-yamoussoukro", - "_to" : "worldVertices/country-cote-d-ivoire", - "_rev" : "_YNEagFi--L", - "type" : "is-in" - }, - { - "_key" : "131632", - "_id" : "worldEdges/131632", - "_from" : "worldVertices/country-ecuador", - "_to" : "worldVertices/continent-south-america", - "_rev" : "_YNEagFG--H", - "type" : "is-in" - }, - { - "_key" : "131626", - "_id" : "worldEdges/131626", - "_from" : "worldVertices/country-czech-republic", - "_to" : "worldVertices/continent-europe", - "_rev" : "_YNEagFG--D", - "type" : "is-in" - }, - { - "_key" : "131689", - "_id" : "worldEdges/131689", - "_from" : "worldVertices/capital-cairo", - "_to" : "worldVertices/country-egypt", - "_rev" : "_YNEagFW--_", - "type" : "is-in" - }, - { - "_key" : "131548", - "_id" : "worldEdges/131548", - "_from" : "worldVertices/country-antigua-and-barbuda", - "_to" : "worldVertices/continent-north-america", - "_rev" : "_YNEagE2--_", - "type" : "is-in" - }, - { - "_key" : "131683", - "_id" : "worldEdges/131683", - "_from" : "worldVertices/capital-buenos-aires", - "_to" : "worldVertices/country-argentina", - "_rev" : "_YNEagFS--H", - "type" : "is-in" - }, - { - "_key" : "131674", - "_id" : "worldEdges/131674", - "_from" : "worldVertices/capital-brasilia", - "_to" : "worldVertices/country-brazil", - "_rev" : "_YNEagFS--B", - "type" : "is-in" - }, - { - "_key" : "131737", - "_id" : "worldEdges/131737", - "_from" : "worldVertices/capital-prague", - "_to" : "worldVertices/country-czech-republic", - "_rev" : "_YNEagFe--F", - "type" : "is-in" - }, - { - "_key" : "131578", - "_id" : "worldEdges/131578", - "_from" : "worldVertices/country-bolivia", - "_to" : "worldVertices/continent-south-america", - "_rev" : "_YNEagE6--H", - "type" : "is-in" - }, - { - "_key" : "131539", - "_id" : "worldEdges/131539", - "_from" : "worldVertices/country-algeria", - "_to" : "worldVertices/continent-africa", - "_rev" : "_YNEagEy--F", - "type" : "is-in" - }, - { - "_key" : "131521", - "_id" : "worldEdges/131521", - "_from" : "worldVertices/continent-australia", - "_to" : "worldVertices/world", - "_rev" : "_YNEagEu--F", - "type" : "is-in" - }, - { - "_key" : "131740", - "_id" : "worldEdges/131740", - "_from" : "worldVertices/capital-quito", - "_to" : "worldVertices/country-ecuador", - "_rev" : "_YNEagFe--H", - "type" : "is-in" - }, - { - "_key" : "131701", - "_id" : "worldEdges/131701", - "_from" : "worldVertices/capital-gaborone", - "_to" : "worldVertices/country-botswana", - "_rev" : "_YNEagFW--H", - "type" : "is-in" - }, - { - "_key" : "131599", - "_id" : "worldEdges/131599", - "_from" : "worldVertices/country-burundi", - "_to" : "worldVertices/continent-africa", - "_rev" : "_YNEagF---J", - "type" : "is-in" - }, - { - "_key" : "131770", - "_id" : "worldEdges/131770", - "_from" : "worldVertices/capital-zagreb", - "_to" : "worldVertices/country-croatia", - "_rev" : "_YNEagFm--B", - "type" : "is-in" - }, - { - "_key" : "131620", - "_id" : "worldEdges/131620", - "_from" : "worldVertices/country-cote-d-ivoire", - "_to" : "worldVertices/continent-africa", - "_rev" : "_YNEagFG--_", - "type" : "is-in" - }, - { - "_key" : "131761", - "_id" : "worldEdges/131761", - "_from" : "worldVertices/capital-vienna", - "_to" : "worldVertices/country-austria", - "_rev" : "_YNEagFi--J", - "type" : "is-in" - }, - { - "_key" : "131656", - "_id" : "worldEdges/131656", - "_from" : "worldVertices/capital-andorra-la-vella", - "_to" : "worldVertices/country-andorra", - "_rev" : "_YNEagFO--A", - "type" : "is-in" - }, - { - "_key" : "131767", - "_id" : "worldEdges/131767", - "_from" : "worldVertices/capital-yaounde", - "_to" : "worldVertices/country-cameroon", - "_rev" : "_YNEagFm--_", - "type" : "is-in" - }, - { - "_key" : "131641", - "_id" : "worldEdges/131641", - "_from" : "worldVertices/country-finland", - "_to" : "worldVertices/continent-europe", - "_rev" : "_YNEagFK--D", - "type" : "is-in" - }, - { - "_key" : "131662", - "_id" : "worldEdges/131662", - "_from" : "worldVertices/capital-bandar-seri-begawan", - "_to" : "worldVertices/country-brunei", - "_rev" : "_YNEagFO--E", - "type" : "is-in" - }, - { - "_key" : "131638", - "_id" : "worldEdges/131638", - "_from" : "worldVertices/country-eritrea", - "_to" : "worldVertices/continent-africa", - "_rev" : "_YNEagFK--B", - "type" : "is-in" - }, - { - "_key" : "131650", - "_id" : "worldEdges/131650", - "_from" : "worldVertices/country-people-s-republic-of-china", - "_to" : "worldVertices/continent-asia", - "_rev" : "_YNEagFK--J", - "type" : "is-in" - }, - { - "_key" : "131746", - "_id" : "worldEdges/131746", - "_from" : "worldVertices/capital-santiago", - "_to" : "worldVertices/country-chile", - "_rev" : "_YNEagFi--_", - "type" : "is-in" - }, - { - "_key" : "131602", - "_id" : "worldEdges/131602", - "_from" : "worldVertices/country-cambodia", - "_to" : "worldVertices/continent-asia", - "_rev" : "_YNEagFC--_", - "type" : "is-in" - }, - { - "_key" : "131725", - "_id" : "worldEdges/131725", - "_from" : "worldVertices/capital-ottawa", - "_to" : "worldVertices/country-canada", - "_rev" : "_YNEagFa--L", - "type" : "is-in" - }, - { - "_key" : "131554", - "_id" : "worldEdges/131554", - "_from" : "worldVertices/country-australia", - "_to" : "worldVertices/continent-australia", - "_rev" : "_YNEagE2--D", - "type" : "is-in" - }, - { - "_key" : "131608", - "_id" : "worldEdges/131608", - "_from" : "worldVertices/country-canada", - "_to" : "worldVertices/continent-north-america", - "_rev" : "_YNEagFC--D", - "type" : "is-in" - }, - { - "_key" : "131536", - "_id" : "worldEdges/131536", - "_from" : "worldVertices/country-albania", - "_to" : "worldVertices/continent-europe", - "_rev" : "_YNEagEy--D", - "type" : "is-in" - }, - { - "_key" : "131716", - "_id" : "worldEdges/131716", - "_from" : "worldVertices/capital-manama", - "_to" : "worldVertices/country-bahrain", - "_rev" : "_YNEagFa--F", - "type" : "is-in" - }, - { - "_key" : "131530", - "_id" : "worldEdges/131530", - "_from" : "worldVertices/continent-south-america", - "_to" : "worldVertices/world", - "_rev" : "_YNEagEy--_", - "type" : "is-in" - }, - { - "_key" : "131584", - "_id" : "worldEdges/131584", - "_from" : "worldVertices/country-botswana", - "_to" : "worldVertices/continent-africa", - "_rev" : "_YNEagF---_", - "type" : "is-in" - }, - { - "_key" : "131572", - "_id" : "worldEdges/131572", - "_from" : "worldVertices/country-belgium", - "_to" : "worldVertices/continent-europe", - "_rev" : "_YNEagE6--D", - "type" : "is-in" - }, - { - "_key" : "131581", - "_id" : "worldEdges/131581", + "_key" : "131601", + "_id" : "worldEdges/131601", "_from" : "worldVertices/country-bosnia-and-herzegovina", "_to" : "worldVertices/continent-europe", - "_rev" : "_YNEagE6--J", + "_rev" : "_YOn1oM6--H", "type" : "is-in" }, { - "_key" : "131593", - "_id" : "worldEdges/131593", - "_from" : "worldVertices/country-bulgaria", - "_to" : "worldVertices/continent-europe", - "_rev" : "_YNEagF---F", - "type" : "is-in" - }, - { - "_key" : "131653", - "_id" : "worldEdges/131653", - "_from" : "worldVertices/capital-algiers", - "_to" : "worldVertices/country-algeria", - "_rev" : "_YNEagFO---", - "type" : "is-in" - }, - { - "_key" : "131518", - "_id" : "worldEdges/131518", - "_from" : "worldVertices/continent-asia", - "_to" : "worldVertices/world", - "_rev" : "_YNEagEu--D", - "type" : "is-in" - }, - { - "_key" : "131566", - "_id" : "worldEdges/131566", - "_from" : "worldVertices/country-bangladesh", - "_to" : "worldVertices/continent-asia", - "_rev" : "_YNEagE6--_", - "type" : "is-in" - }, - { - "_key" : "131590", - "_id" : "worldEdges/131590", - "_from" : "worldVertices/country-brunei", - "_to" : "worldVertices/continent-asia", - "_rev" : "_YNEagF---D", - "type" : "is-in" - }, - { - "_key" : "131587", - "_id" : "worldEdges/131587", - "_from" : "worldVertices/country-brazil", - "_to" : "worldVertices/continent-south-america", - "_rev" : "_YNEagF---B", - "type" : "is-in" - }, - { - "_key" : "131659", - "_id" : "worldEdges/131659", - "_from" : "worldVertices/capital-asmara", - "_to" : "worldVertices/country-eritrea", - "_rev" : "_YNEagFO--C", - "type" : "is-in" - }, - { - "_key" : "131605", - "_id" : "worldEdges/131605", - "_from" : "worldVertices/country-cameroon", - "_to" : "worldVertices/continent-africa", - "_rev" : "_YNEagFC--B", - "type" : "is-in" - }, - { - "_key" : "131635", - "_id" : "worldEdges/131635", - "_from" : "worldVertices/country-egypt", - "_to" : "worldVertices/continent-africa", - "_rev" : "_YNEagFK--_", - "type" : "is-in" - }, - { - "_key" : "131557", - "_id" : "worldEdges/131557", - "_from" : "worldVertices/country-austria", - "_to" : "worldVertices/continent-europe", - "_rev" : "_YNEagE2--F", - "type" : "is-in" - }, - { - "_key" : "131752", - "_id" : "worldEdges/131752", - "_from" : "worldVertices/capital-sofia", - "_to" : "worldVertices/country-bulgaria", - "_rev" : "_YNEagFi--D", - "type" : "is-in" - }, - { - "_key" : "131560", - "_id" : "worldEdges/131560", - "_from" : "worldVertices/country-bahamas", + "_key" : "131589", + "_id" : "worldEdges/131589", + "_from" : "worldVertices/country-barbados", "_to" : "worldVertices/continent-north-america", - "_rev" : "_YNEagE2--H", + "_rev" : "_YOn1oM6--_", "type" : "is-in" }, { - "_key" : "131614", - "_id" : "worldEdges/131614", - "_from" : "worldVertices/country-chile", - "_to" : "worldVertices/continent-south-america", - "_rev" : "_YNEagFC--H", + "_key" : "131733", + "_id" : "worldEdges/131733", + "_from" : "worldVertices/capital-luanda", + "_to" : "worldVertices/country-angola", + "_rev" : "_YOn1oNe--H", "type" : "is-in" }, { - "_key" : "131704", - "_id" : "worldEdges/131704", - "_from" : "worldVertices/capital-helsinki", - "_to" : "worldVertices/country-finland", - "_rev" : "_YNEagFW--J", + "_key" : "131559", + "_id" : "worldEdges/131559", + "_from" : "worldVertices/country-algeria", + "_to" : "worldVertices/continent-africa", + "_rev" : "_YOn1oMy--B", "type" : "is-in" }, { - "_key" : "131524", - "_id" : "worldEdges/131524", + "_key" : "131760", + "_id" : "worldEdges/131760", + "_from" : "worldVertices/capital-quito", + "_to" : "worldVertices/country-ecuador", + "_rev" : "_YOn1oNm--B", + "type" : "is-in" + }, + { + "_key" : "131544", + "_id" : "worldEdges/131544", "_from" : "worldVertices/continent-europe", "_to" : "worldVertices/world", - "_rev" : "_YNEagEu--H", + "_rev" : "_YOn1oMa--H", "type" : "is-in" }, { - "_key" : "131743", - "_id" : "worldEdges/131743", - "_from" : "worldVertices/capital-saint-john-s", - "_to" : "worldVertices/country-antigua-and-barbuda", - "_rev" : "_YNEagFe--J", + "_key" : "131712", + "_id" : "worldEdges/131712", + "_from" : "worldVertices/capital-canberra", + "_to" : "worldVertices/country-australia", + "_rev" : "_YOn1oNa--D", "type" : "is-in" }, { - "_key" : "131514", - "_id" : "worldEdges/131514", + "_key" : "131565", + "_id" : "worldEdges/131565", + "_from" : "worldVertices/country-angola", + "_to" : "worldVertices/continent-africa", + "_rev" : "_YOn1oMy--F", + "type" : "is-in" + }, + { + "_key" : "131670", + "_id" : "worldEdges/131670", + "_from" : "worldVertices/country-people-s-republic-of-china", + "_to" : "worldVertices/continent-asia", + "_rev" : "_YOn1oNK--J", + "type" : "is-in" + }, + { + "_key" : "131534", + "_id" : "worldEdges/131534", "_from" : "worldVertices/continent-africa", "_to" : "worldVertices/world", - "_rev" : "_YNEagEu--B", + "_rev" : "_YOn1oMa--B", "type" : "is-in" }, { - "_key" : "131542", - "_id" : "worldEdges/131542", - "_from" : "worldVertices/country-andorra", - "_to" : "worldVertices/continent-europe", - "_rev" : "_YNEagEy--H", + "_key" : "131790", + "_id" : "worldEdges/131790", + "_from" : "worldVertices/capital-zagreb", + "_to" : "worldVertices/country-croatia", + "_rev" : "_YOn1oNq--J", "type" : "is-in" }, { - "_key" : "131758", - "_id" : "worldEdges/131758", - "_from" : "worldVertices/capital-tirana", - "_to" : "worldVertices/country-albania", - "_rev" : "_YNEagFi--H", + "_key" : "131688", + "_id" : "worldEdges/131688", + "_from" : "worldVertices/capital-berlin", + "_to" : "worldVertices/country-germany", + "_rev" : "_YOn1oNO--J", "type" : "is-in" }, { - "_key" : "131563", - "_id" : "worldEdges/131563", - "_from" : "worldVertices/country-bahrain", - "_to" : "worldVertices/continent-asia", - "_rev" : "_YNEagE2--J", + "_key" : "131739", + "_id" : "worldEdges/131739", + "_from" : "worldVertices/capital-nassau", + "_to" : "worldVertices/country-bahamas", + "_rev" : "_YOn1oNi--_", "type" : "is-in" }, { - "_key" : "131755", - "_id" : "worldEdges/131755", + "_key" : "131694", + "_id" : "worldEdges/131694", + "_from" : "worldVertices/capital-brasilia", + "_to" : "worldVertices/country-brazil", + "_rev" : "_YOn1oNS--B", + "type" : "is-in" + }, + { + "_key" : "131775", + "_id" : "worldEdges/131775", "_from" : "worldVertices/capital-thimphu", "_to" : "worldVertices/country-bhutan", - "_rev" : "_YNEagFi--F", + "_rev" : "_YOn1oNq--_", "type" : "is-in" }, { - "_key" : "131731", - "_id" : "worldEdges/131731", + "_key" : "131763", + "_id" : "worldEdges/131763", + "_from" : "worldVertices/capital-saint-john-s", + "_to" : "worldVertices/country-antigua-and-barbuda", + "_rev" : "_YOn1oNm--D", + "type" : "is-in" + }, + { + "_key" : "131682", + "_id" : "worldEdges/131682", + "_from" : "worldVertices/capital-bandar-seri-begawan", + "_to" : "worldVertices/country-brunei", + "_rev" : "_YOn1oNO--F", + "type" : "is-in" + }, + { + "_key" : "131700", + "_id" : "worldEdges/131700", + "_from" : "worldVertices/capital-brussels", + "_to" : "worldVertices/country-belgium", + "_rev" : "_YOn1oNS--F", + "type" : "is-in" + }, + { + "_key" : "131619", + "_id" : "worldEdges/131619", + "_from" : "worldVertices/country-burundi", + "_to" : "worldVertices/continent-africa", + "_rev" : "_YOn1oN---J", + "type" : "is-in" + }, + { + "_key" : "131769", + "_id" : "worldEdges/131769", + "_from" : "worldVertices/capital-sarajevo", + "_to" : "worldVertices/country-bosnia-and-herzegovina", + "_rev" : "_YOn1oNm--H", + "type" : "is-in" + }, + { + "_key" : "131646", + "_id" : "worldEdges/131646", + "_from" : "worldVertices/country-czech-republic", + "_to" : "worldVertices/continent-europe", + "_rev" : "_YOn1oNG--D", + "type" : "is-in" + }, + { + "_key" : "131649", + "_id" : "worldEdges/131649", + "_from" : "worldVertices/country-denmark", + "_to" : "worldVertices/continent-europe", + "_rev" : "_YOn1oNG--F", + "type" : "is-in" + }, + { + "_key" : "131766", + "_id" : "worldEdges/131766", + "_from" : "worldVertices/capital-santiago", + "_to" : "worldVertices/country-chile", + "_rev" : "_YOn1oNm--F", + "type" : "is-in" + }, + { + "_key" : "131655", + "_id" : "worldEdges/131655", + "_from" : "worldVertices/country-egypt", + "_to" : "worldVertices/continent-africa", + "_rev" : "_YOn1oNK--_", + "type" : "is-in" + }, + { + "_key" : "131538", + "_id" : "worldEdges/131538", + "_from" : "worldVertices/continent-asia", + "_to" : "worldVertices/world", + "_rev" : "_YOn1oMa--D", + "type" : "is-in" + }, + { + "_key" : "131562", + "_id" : "worldEdges/131562", + "_from" : "worldVertices/country-andorra", + "_to" : "worldVertices/continent-europe", + "_rev" : "_YOn1oMy--D", + "type" : "is-in" + }, + { + "_key" : "131742", + "_id" : "worldEdges/131742", + "_from" : "worldVertices/capital-n-djamena", + "_to" : "worldVertices/country-chad", + "_rev" : "_YOn1oNi--B", + "type" : "is-in" + }, + { + "_key" : "131547", + "_id" : "worldEdges/131547", + "_from" : "worldVertices/continent-north-america", + "_to" : "worldVertices/world", + "_rev" : "_YOn1oMu--_", + "type" : "is-in" + }, + { + "_key" : "131631", + "_id" : "worldEdges/131631", + "_from" : "worldVertices/country-chad", + "_to" : "worldVertices/continent-africa", + "_rev" : "_YOn1oNC--F", + "type" : "is-in" + }, + { + "_key" : "131571", + "_id" : "worldEdges/131571", + "_from" : "worldVertices/country-argentina", + "_to" : "worldVertices/continent-south-america", + "_rev" : "_YOn1oM2--_", + "type" : "is-in" + }, + { + "_key" : "131748", + "_id" : "worldEdges/131748", + "_from" : "worldVertices/capital-ouagadougou", + "_to" : "worldVertices/country-burkina-faso", + "_rev" : "_YOn1oNi--F", + "type" : "is-in" + }, + { + "_key" : "131667", + "_id" : "worldEdges/131667", + "_from" : "worldVertices/country-germany", + "_to" : "worldVertices/continent-europe", + "_rev" : "_YOn1oNK--H", + "type" : "is-in" + }, + { + "_key" : "131721", + "_id" : "worldEdges/131721", + "_from" : "worldVertices/capital-gaborone", + "_to" : "worldVertices/country-botswana", + "_rev" : "_YOn1oNe--_", + "type" : "is-in" + }, + { + "_key" : "131787", + "_id" : "worldEdges/131787", + "_from" : "worldVertices/capital-yaounde", + "_to" : "worldVertices/country-cameroon", + "_rev" : "_YOn1oNq--H", + "type" : "is-in" + }, + { + "_key" : "131598", + "_id" : "worldEdges/131598", + "_from" : "worldVertices/country-bolivia", + "_to" : "worldVertices/continent-south-america", + "_rev" : "_YOn1oM6--F", + "type" : "is-in" + }, + { + "_key" : "131715", + "_id" : "worldEdges/131715", + "_from" : "worldVertices/capital-copenhagen", + "_to" : "worldVertices/country-denmark", + "_rev" : "_YOn1oNa--F", + "type" : "is-in" + }, + { + "_key" : "131745", + "_id" : "worldEdges/131745", + "_from" : "worldVertices/capital-ottawa", + "_to" : "worldVertices/country-canada", + "_rev" : "_YOn1oNi--D", + "type" : "is-in" + }, + { + "_key" : "131622", + "_id" : "worldEdges/131622", + "_from" : "worldVertices/country-cambodia", + "_to" : "worldVertices/continent-asia", + "_rev" : "_YOn1oNC--_", + "type" : "is-in" + }, + { + "_key" : "131592", + "_id" : "worldEdges/131592", + "_from" : "worldVertices/country-belgium", + "_to" : "worldVertices/continent-europe", + "_rev" : "_YOn1oM6--B", + "type" : "is-in" + }, + { + "_key" : "131580", + "_id" : "worldEdges/131580", + "_from" : "worldVertices/country-bahamas", + "_to" : "worldVertices/continent-north-america", + "_rev" : "_YOn1oM2--F", + "type" : "is-in" + }, + { + "_key" : "131586", + "_id" : "worldEdges/131586", + "_from" : "worldVertices/country-bangladesh", + "_to" : "worldVertices/continent-asia", + "_rev" : "_YOn1oM2--J", + "type" : "is-in" + }, + { + "_key" : "131718", + "_id" : "worldEdges/131718", + "_from" : "worldVertices/capital-dhaka", + "_to" : "worldVertices/country-bangladesh", + "_rev" : "_YOn1oNa--H", + "type" : "is-in" + }, + { + "_key" : "131679", + "_id" : "worldEdges/131679", + "_from" : "worldVertices/capital-asmara", + "_to" : "worldVertices/country-eritrea", + "_rev" : "_YOn1oNO--D", + "type" : "is-in" + }, + { + "_key" : "131574", + "_id" : "worldEdges/131574", + "_from" : "worldVertices/country-australia", + "_to" : "worldVertices/continent-australia", + "_rev" : "_YOn1oM2--B", + "type" : "is-in" + }, + { + "_key" : "131541", + "_id" : "worldEdges/131541", + "_from" : "worldVertices/continent-australia", + "_to" : "worldVertices/world", + "_rev" : "_YOn1oMa--F", + "type" : "is-in" + }, + { + "_key" : "131553", + "_id" : "worldEdges/131553", + "_from" : "worldVertices/country-afghanistan", + "_to" : "worldVertices/continent-asia", + "_rev" : "_YOn1oMu--D", + "type" : "is-in" + }, + { + "_key" : "131643", + "_id" : "worldEdges/131643", + "_from" : "worldVertices/country-croatia", + "_to" : "worldVertices/continent-europe", + "_rev" : "_YOn1oNG--B", + "type" : "is-in" + }, + { + "_key" : "131664", + "_id" : "worldEdges/131664", + "_from" : "worldVertices/country-france", + "_to" : "worldVertices/continent-europe", + "_rev" : "_YOn1oNK--F", + "type" : "is-in" + }, + { + "_key" : "131685", + "_id" : "worldEdges/131685", + "_from" : "worldVertices/capital-beijing", + "_to" : "worldVertices/country-people-s-republic-of-china", + "_rev" : "_YOn1oNO--H", + "type" : "is-in" + }, + { + "_key" : "131604", + "_id" : "worldEdges/131604", + "_from" : "worldVertices/country-botswana", + "_to" : "worldVertices/continent-africa", + "_rev" : "_YOn1oN---_", + "type" : "is-in" + }, + { + "_key" : "131778", + "_id" : "worldEdges/131778", + "_from" : "worldVertices/capital-tirana", + "_to" : "worldVertices/country-albania", + "_rev" : "_YOn1oNq--B", + "type" : "is-in" + }, + { + "_key" : "131583", + "_id" : "worldEdges/131583", + "_from" : "worldVertices/country-bahrain", + "_to" : "worldVertices/continent-asia", + "_rev" : "_YOn1oM2--H", + "type" : "is-in" + }, + { + "_key" : "131568", + "_id" : "worldEdges/131568", + "_from" : "worldVertices/country-antigua-and-barbuda", + "_to" : "worldVertices/continent-north-america", + "_rev" : "_YOn1oMy--H", + "type" : "is-in" + }, + { + "_key" : "131676", + "_id" : "worldEdges/131676", + "_from" : "worldVertices/capital-andorra-la-vella", + "_to" : "worldVertices/country-andorra", + "_rev" : "_YOn1oNO--B", + "type" : "is-in" + }, + { + "_key" : "131652", + "_id" : "worldEdges/131652", + "_from" : "worldVertices/country-ecuador", + "_to" : "worldVertices/continent-south-america", + "_rev" : "_YOn1oNG--H", + "type" : "is-in" + }, + { + "_key" : "131658", + "_id" : "worldEdges/131658", + "_from" : "worldVertices/country-eritrea", + "_to" : "worldVertices/continent-africa", + "_rev" : "_YOn1oNK--B", + "type" : "is-in" + }, + { + "_key" : "131736", + "_id" : "worldEdges/131736", + "_from" : "worldVertices/capital-manama", + "_to" : "worldVertices/country-bahrain", + "_rev" : "_YOn1oNe--J", + "type" : "is-in" + }, + { + "_key" : "131661", + "_id" : "worldEdges/131661", + "_from" : "worldVertices/country-finland", + "_to" : "worldVertices/continent-europe", + "_rev" : "_YOn1oNK--D", + "type" : "is-in" + }, + { + "_key" : "131754", + "_id" : "worldEdges/131754", + "_from" : "worldVertices/capital-phnom-penh", + "_to" : "worldVertices/country-cambodia", + "_rev" : "_YOn1oNi--J", + "type" : "is-in" + }, + { + "_key" : "131706", + "_id" : "worldEdges/131706", + "_from" : "worldVertices/capital-bujumbura", + "_to" : "worldVertices/country-burundi", + "_rev" : "_YOn1oNa--_", + "type" : "is-in" + }, + { + "_key" : "131697", + "_id" : "worldEdges/131697", + "_from" : "worldVertices/capital-bridgetown", + "_to" : "worldVertices/country-barbados", + "_rev" : "_YOn1oNS--D", + "type" : "is-in" + }, + { + "_key" : "131703", + "_id" : "worldEdges/131703", + "_from" : "worldVertices/capital-buenos-aires", + "_to" : "worldVertices/country-argentina", + "_rev" : "_YOn1oNS--H", + "type" : "is-in" + }, + { + "_key" : "131577", + "_id" : "worldEdges/131577", + "_from" : "worldVertices/country-austria", + "_to" : "worldVertices/continent-europe", + "_rev" : "_YOn1oM2--D", + "type" : "is-in" + }, + { + "_key" : "131751", + "_id" : "worldEdges/131751", "_from" : "worldVertices/capital-paris", "_to" : "worldVertices/country-france", - "_rev" : "_YNEagFe--B", + "_rev" : "_YOn1oNi--H", + "type" : "is-in" + }, + { + "_key" : "131550", + "_id" : "worldEdges/131550", + "_from" : "worldVertices/continent-south-america", + "_to" : "worldVertices/world", + "_rev" : "_YOn1oMu--B", + "type" : "is-in" + }, + { + "_key" : "131628", + "_id" : "worldEdges/131628", + "_from" : "worldVertices/country-canada", + "_to" : "worldVertices/continent-north-america", + "_rev" : "_YOn1oNC--D", + "type" : "is-in" + }, + { + "_key" : "131709", + "_id" : "worldEdges/131709", + "_from" : "worldVertices/capital-cairo", + "_to" : "worldVertices/country-egypt", + "_rev" : "_YOn1oNa--B", + "type" : "is-in" + }, + { + "_key" : "131607", + "_id" : "worldEdges/131607", + "_from" : "worldVertices/country-brazil", + "_to" : "worldVertices/continent-south-america", + "_rev" : "_YOn1oN---B", + "type" : "is-in" + }, + { + "_key" : "131673", + "_id" : "worldEdges/131673", + "_from" : "worldVertices/capital-algiers", + "_to" : "worldVertices/country-algeria", + "_rev" : "_YOn1oNO--_", + "type" : "is-in" + }, + { + "_key" : "131634", + "_id" : "worldEdges/131634", + "_from" : "worldVertices/country-chile", + "_to" : "worldVertices/continent-south-america", + "_rev" : "_YOn1oNC--H", + "type" : "is-in" + }, + { + "_key" : "131757", + "_id" : "worldEdges/131757", + "_from" : "worldVertices/capital-prague", + "_to" : "worldVertices/country-czech-republic", + "_rev" : "_YOn1oNm--_", + "type" : "is-in" + }, + { + "_key" : "131616", + "_id" : "worldEdges/131616", + "_from" : "worldVertices/country-burkina-faso", + "_to" : "worldVertices/continent-africa", + "_rev" : "_YOn1oN---H", + "type" : "is-in" + }, + { + "_key" : "131784", + "_id" : "worldEdges/131784", + "_from" : "worldVertices/capital-yamoussoukro", + "_to" : "worldVertices/country-cote-d-ivoire", + "_rev" : "_YOn1oNq--F", + "type" : "is-in" + }, + { + "_key" : "131556", + "_id" : "worldEdges/131556", + "_from" : "worldVertices/country-albania", + "_to" : "worldVertices/continent-europe", + "_rev" : "_YOn1oMy--_", + "type" : "is-in" + }, + { + "_key" : "131727", + "_id" : "worldEdges/131727", + "_from" : "worldVertices/capital-kabul", + "_to" : "worldVertices/country-afghanistan", + "_rev" : "_YOn1oNe--D", + "type" : "is-in" + }, + { + "_key" : "131637", + "_id" : "worldEdges/131637", + "_from" : "worldVertices/country-colombia", + "_to" : "worldVertices/continent-south-america", + "_rev" : "_YOn1oNC--J", + "type" : "is-in" + }, + { + "_key" : "131724", + "_id" : "worldEdges/131724", + "_from" : "worldVertices/capital-helsinki", + "_to" : "worldVertices/country-finland", + "_rev" : "_YOn1oNe--B", + "type" : "is-in" + }, + { + "_key" : "131640", + "_id" : "worldEdges/131640", + "_from" : "worldVertices/country-cote-d-ivoire", + "_to" : "worldVertices/continent-africa", + "_rev" : "_YOn1oNG--_", + "type" : "is-in" + }, + { + "_key" : "131625", + "_id" : "worldEdges/131625", + "_from" : "worldVertices/country-cameroon", + "_to" : "worldVertices/continent-africa", + "_rev" : "_YOn1oNC--B", + "type" : "is-in" + }, + { + "_key" : "131610", + "_id" : "worldEdges/131610", + "_from" : "worldVertices/country-brunei", + "_to" : "worldVertices/continent-asia", + "_rev" : "_YOn1oN---D", + "type" : "is-in" + }, + { + "_key" : "131781", + "_id" : "worldEdges/131781", + "_from" : "worldVertices/capital-vienna", + "_to" : "worldVertices/country-austria", + "_rev" : "_YOn1oNq--D", + "type" : "is-in" + }, + { + "_key" : "131772", + "_id" : "worldEdges/131772", + "_from" : "worldVertices/capital-sofia", + "_to" : "worldVertices/country-bulgaria", + "_rev" : "_YOn1oNm--J", + "type" : "is-in" + }, + { + "_key" : "131730", + "_id" : "worldEdges/131730", + "_from" : "worldVertices/capital-la-paz", + "_to" : "worldVertices/country-bolivia", + "_rev" : "_YOn1oNe--F", + "type" : "is-in" + }, + { + "_key" : "131595", + "_id" : "worldEdges/131595", + "_from" : "worldVertices/country-bhutan", + "_to" : "worldVertices/continent-asia", + "_rev" : "_YOn1oM6--D", + "type" : "is-in" + }, + { + "_key" : "131613", + "_id" : "worldEdges/131613", + "_from" : "worldVertices/country-bulgaria", + "_to" : "worldVertices/continent-europe", + "_rev" : "_YOn1oN---F", "type" : "is-in" } ] diff --git a/Documentation/Examples/job_cancel.generated b/Documentation/Examples/job_cancel.generated index e69046f9f4..6ecb3694c0 100644 --- a/Documentation/Examples/job_cancel.generated +++ b/Documentation/Examples/job_cancel.generated @@ -6,7 +6,7 @@ EOF HTTP/1.1 Accepted content-type: text/plain; charset=utf-8 -x-arango-async-id: 132248 +x-arango-async-id: 132268 x-content-type-options: nosniff shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/job/pending @@ -16,9 +16,9 @@ content-type: application/json; charset=utf-8 x-content-type-options: nosniff [ - "132248" + "132268" ] -shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/job/132248/cancel +shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/job/132268/cancel HTTP/1.1 OK content-type: application/json; charset=utf-8 @@ -34,5 +34,5 @@ content-type: application/json; charset=utf-8 x-content-type-options: nosniff [ - "132248" + "132268" ] diff --git a/Documentation/Examples/job_delete_01.generated b/Documentation/Examples/job_delete_01.generated index ca23019e86..34cba5af95 100644 --- a/Documentation/Examples/job_delete_01.generated +++ b/Documentation/Examples/job_delete_01.generated @@ -2,7 +2,7 @@ HTTP/1.1 Accepted content-type: text/plain; charset=utf-8 -x-arango-async-id: 132251 +x-arango-async-id: 132271 x-content-type-options: nosniff shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/job/all diff --git a/Documentation/Examples/job_delete_02.generated b/Documentation/Examples/job_delete_02.generated index 9751cd0412..ac71010897 100644 --- a/Documentation/Examples/job_delete_02.generated +++ b/Documentation/Examples/job_delete_02.generated @@ -2,7 +2,7 @@ HTTP/1.1 Accepted content-type: text/plain; charset=utf-8 -x-arango-async-id: 132253 +x-arango-async-id: 132273 x-content-type-options: nosniff shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_admin/time @@ -12,11 +12,11 @@ content-type: application/json; charset=utf-8 x-content-type-options: nosniff { - "time" : 1550241794.3178062, + "time" : 1550658808.1522949, "error" : false, "code" : 200 } -shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/job/expired?stamp=1550241794.3178062 +shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/job/expired?stamp=1550658808.1522949 HTTP/1.1 OK content-type: application/json; charset=utf-8 diff --git a/Documentation/Examples/job_delete_03.generated b/Documentation/Examples/job_delete_03.generated index a5ec632b7e..570f4dbcb2 100644 --- a/Documentation/Examples/job_delete_03.generated +++ b/Documentation/Examples/job_delete_03.generated @@ -2,10 +2,10 @@ HTTP/1.1 Accepted content-type: text/plain; charset=utf-8 -x-arango-async-id: 132255 +x-arango-async-id: 132275 x-content-type-options: nosniff -shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/job/132255 +shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/job/132275 HTTP/1.1 OK content-type: application/json; charset=utf-8 diff --git a/Documentation/Examples/job_fetch_result_03.generated b/Documentation/Examples/job_fetch_result_03.generated index 7be1890c65..bcb31520b1 100644 --- a/Documentation/Examples/job_fetch_result_03.generated +++ b/Documentation/Examples/job_fetch_result_03.generated @@ -2,14 +2,14 @@ HTTP/1.1 Accepted content-type: text/plain; charset=utf-8 -x-arango-async-id: 132260 +x-arango-async-id: 132280 x-content-type-options: nosniff -shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/job/132260 +shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/job/132280 HTTP/1.1 OK content-type: application/json; charset=utf-8 -x-arango-async-id: 132260 +x-arango-async-id: 132280 x-content-type-options: nosniff { diff --git a/Documentation/Examples/job_fetch_result_04.generated b/Documentation/Examples/job_fetch_result_04.generated index 38781bf3a4..72cdf07e2a 100644 --- a/Documentation/Examples/job_fetch_result_04.generated +++ b/Documentation/Examples/job_fetch_result_04.generated @@ -6,14 +6,14 @@ EOF HTTP/1.1 Accepted content-type: text/plain; charset=utf-8 -x-arango-async-id: 132262 +x-arango-async-id: 132282 x-content-type-options: nosniff -shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/job/132262 +shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/job/132282 HTTP/1.1 Bad Request content-type: application/json; charset=utf-8 -x-arango-async-id: 132262 +x-arango-async-id: 132282 x-content-type-options: nosniff { diff --git a/Documentation/Examples/job_getByType_01.generated b/Documentation/Examples/job_getByType_01.generated index c33e4e3ec7..e7af70acab 100644 --- a/Documentation/Examples/job_getByType_01.generated +++ b/Documentation/Examples/job_getByType_01.generated @@ -2,7 +2,7 @@ HTTP/1.1 Accepted content-type: text/plain; charset=utf-8 -x-arango-async-id: 132264 +x-arango-async-id: 132284 x-content-type-options: nosniff shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/job/done @@ -12,5 +12,5 @@ content-type: application/json; charset=utf-8 x-content-type-options: nosniff [ - "132264" + "132284" ] diff --git a/Documentation/Examples/job_getByType_02.generated b/Documentation/Examples/job_getByType_02.generated index 08de7b14f9..11abfd9db8 100644 --- a/Documentation/Examples/job_getByType_02.generated +++ b/Documentation/Examples/job_getByType_02.generated @@ -2,7 +2,7 @@ HTTP/1.1 Accepted content-type: text/plain; charset=utf-8 -x-arango-async-id: 132266 +x-arango-async-id: 132286 x-content-type-options: nosniff shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/job/pending diff --git a/Documentation/Examples/job_getByType_03.generated b/Documentation/Examples/job_getByType_03.generated index 698c469593..0efcf76e08 100644 --- a/Documentation/Examples/job_getByType_03.generated +++ b/Documentation/Examples/job_getByType_03.generated @@ -11,7 +11,7 @@ EOF HTTP/1.1 Accepted content-type: text/plain; charset=utf-8 -x-arango-async-id: 132268 +x-arango-async-id: 132288 x-content-type-options: nosniff shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/job/pending @@ -21,9 +21,9 @@ content-type: application/json; charset=utf-8 x-content-type-options: nosniff [ - "132268" + "132288" ] -shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/job/132268 +shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/job/132288 HTTP/1.1 OK content-type: application/json; charset=utf-8 diff --git a/Documentation/Examples/job_getStatusById_01.generated b/Documentation/Examples/job_getStatusById_01.generated index 41061e17f5..02672c7fb1 100644 --- a/Documentation/Examples/job_getStatusById_01.generated +++ b/Documentation/Examples/job_getStatusById_01.generated @@ -2,14 +2,14 @@ HTTP/1.1 Accepted content-type: text/plain; charset=utf-8 -x-arango-async-id: 132271 +x-arango-async-id: 132291 x-content-type-options: nosniff -shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/job/132271 +shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/job/132291 HTTP/1.1 OK content-type: application/json; charset=utf-8 -x-arango-async-id: 132271 +x-arango-async-id: 132291 x-content-type-options: nosniff { diff --git a/Documentation/Examples/job_getStatusById_02.generated b/Documentation/Examples/job_getStatusById_02.generated index f005ef4aa6..67eb40de94 100644 --- a/Documentation/Examples/job_getStatusById_02.generated +++ b/Documentation/Examples/job_getStatusById_02.generated @@ -11,10 +11,10 @@ EOF HTTP/1.1 Accepted content-type: text/plain; charset=utf-8 -x-arango-async-id: 132273 +x-arango-async-id: 132293 x-content-type-options: nosniff -shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/job/132273 +shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/job/132293 HTTP/1.1 No Content content-type: text/plain; charset=utf-8 diff --git a/Documentation/Examples/joinTuples.generated b/Documentation/Examples/joinTuples.generated index df6b76245b..8df64e1763 100644 --- a/Documentation/Examples/joinTuples.generated +++ b/Documentation/Examples/joinTuples.generated @@ -16,11 +16,11 @@ [ { "user": "Abigail", - "friendId": 2 + "friendId": 3 }, { "user": "Abigail", - "friendId": 3 + "friendId": 2 }, { "user": "Abigail", diff --git a/Documentation/Examples/listCurrentConfigOpts.generated b/Documentation/Examples/listCurrentConfigOpts.generated index 41ce608067..c9e38f6edd 100644 --- a/Documentation/Examples/listCurrentConfigOpts.generated +++ b/Documentation/Examples/listCurrentConfigOpts.generated @@ -40,7 +40,7 @@ arangosh> db._executeTransaction({ collections "audit.hostname" : "", "audit.output" : [ ], "cache.rebalancing-interval" : 2000000, - "cache.size" : 3637390336, + "cache.size" : 3637388288, "cluster.agency-endpoint" : [ ], "cluster.agency-prefix" : "", "cluster.create-waits-for-sync-replication" : true, @@ -63,7 +63,7 @@ arangosh> db._executeTransaction({ collections "compaction.min-small-data-file-size" : 131072, "database.auto-upgrade" : false, "database.check-version" : false, - "database.directory" : "/tmp/arangosh_q2Dy3I/tmp-13879-1274251971/data", + "database.directory" : "/tmp/arangosh_uprJb4/tmp-27793-56941049/data", "database.force-sync-properties" : true, "database.ignore-datafile-errors" : false, "database.init-database" : false, @@ -84,7 +84,7 @@ arangosh> db._executeTransaction({ collections "http.keep-alive-timeout" : 300, "http.trusted-origin" : [ ], "javascript.allow-admin-execute" : false, - "javascript.app-path" : "/tmp/arangosh_q2Dy3I/tmp-13879-1274251971/apps", + "javascript.app-path" : "/tmp/arangosh_uprJb4/tmp-27793-56941049/apps", "javascript.copy-installation" : false, "javascript.enabled" : true, "javascript.gc-frequency" : 60, @@ -135,7 +135,7 @@ arangosh> db._executeTransaction({ collections "ldap.url" : "", "log.color" : true, "log.escape" : true, - "log.file" : "/tmp/arangosh_q2Dy3I/tmp-13879-1274251971/log", + "log.file" : "/tmp/arangosh_uprJb4/tmp-27793-56941049/log", "log.force-direct" : false, "log.foreground-tty" : true, "log.keep-logrotate" : false, @@ -144,7 +144,7 @@ arangosh> db._executeTransaction({ collections ], "log.line-number" : false, "log.output" : [ - "file:///tmp/arangosh_q2Dy3I/tmp-13879-1274251971/log" + "file:///tmp/arangosh_uprJb4/tmp-27793-56941049/log" ], "log.performance" : false, "log.prefix" : "", @@ -175,7 +175,7 @@ arangosh> db._executeTransaction({ collections "replication.automatic-failover" : false, "rocksdb.block-align-data-blocks" : false, "rocksdb.block-cache-shard-bits" : -1, - "rocksdb.block-cache-size" : 4364868403, + "rocksdb.block-cache-size" : 4364865945, "rocksdb.compaction-read-ahead-size" : 2097152, "rocksdb.debug-logging" : false, "rocksdb.delayed_write_rate" : 0, @@ -207,7 +207,7 @@ arangosh> db._executeTransaction({ collections "rocksdb.sync-interval" : 100, "rocksdb.table-block-size" : 16384, "rocksdb.throttle" : true, - "rocksdb.total-write-buffer-size" : 5819824537, + "rocksdb.total-write-buffer-size" : 5819821260, "rocksdb.transaction-lock-timeout" : 1000, "rocksdb.use-direct-io-for-flush-and-compaction" : false, "rocksdb.use-direct-reads" : false, @@ -226,7 +226,7 @@ arangosh> db._executeTransaction({ collections "server.check-max-memory-mappings" : true, "server.descriptors-minimum" : 0, "server.endpoint" : [ - "tcp://127.0.0.1:33956" + "tcp://127.0.0.1:18836" ], "server.flush-interval" : 1000000, "server.gid" : "", @@ -263,7 +263,7 @@ arangosh> db._executeTransaction({ collections "ttl.only-loaded-collection" : true, "vst.maxsize" : 30720, "wal.allow-oversize-entries" : true, - "wal.directory" : "/tmp/arangosh_q2Dy3I/tmp-13879-1274251971/data/journals/", + "wal.directory" : "/tmp/arangosh_uprJb4/tmp-27793-56941049/data/journals/", "wal.flush-timeout" : 15000, "wal.historic-logfiles" : 10, "wal.ignore-logfile-errors" : false, diff --git a/Documentation/Examples/queryLimit.generated b/Documentation/Examples/queryLimit.generated index 9e0ce3d213..bb9fee92e4 100644 --- a/Documentation/Examples/queryLimit.generated +++ b/Documentation/Examples/queryLimit.generated @@ -1,48 +1,48 @@ arangosh> db.five.all().toArray(); [ { - "_key" : "132369", - "_id" : "five/132369", - "_rev" : "_YNEaguu--_", - "name" : "three" - }, - { - "_key" : "132366", - "_id" : "five/132366", - "_rev" : "_YNEaguq--D", - "name" : "two" - }, - { - "_key" : "132362", - "_id" : "five/132362", - "_rev" : "_YNEaguq--B", - "name" : "one" - }, - { - "_key" : "132375", - "_id" : "five/132375", - "_rev" : "_YNEaguu--D", + "_key" : "132394", + "_id" : "five/132394", + "_rev" : "_YOn1p-y--B", "name" : "five" }, { - "_key" : "132372", - "_id" : "five/132372", - "_rev" : "_YNEaguu--B", + "_key" : "132385", + "_id" : "five/132385", + "_rev" : "_YOn1p-u--B", + "name" : "two" + }, + { + "_key" : "132391", + "_id" : "five/132391", + "_rev" : "_YOn1p-y--_", "name" : "four" + }, + { + "_key" : "132388", + "_id" : "five/132388", + "_rev" : "_YOn1p-u--D", + "name" : "three" + }, + { + "_key" : "132381", + "_id" : "five/132381", + "_rev" : "_YOn1p-u--_", + "name" : "one" } ] arangosh> db.five.all().limit(2).toArray(); [ { - "_key" : "132369", - "_id" : "five/132369", - "_rev" : "_YNEaguu--_", - "name" : "three" + "_key" : "132394", + "_id" : "five/132394", + "_rev" : "_YOn1p-y--B", + "name" : "five" }, { - "_key" : "132366", - "_id" : "five/132366", - "_rev" : "_YNEaguq--D", + "_key" : "132385", + "_id" : "five/132385", + "_rev" : "_YOn1p-u--B", "name" : "two" } ] diff --git a/Documentation/Examples/querySkip.generated b/Documentation/Examples/querySkip.generated index 357e519de8..ca5f498554 100644 --- a/Documentation/Examples/querySkip.generated +++ b/Documentation/Examples/querySkip.generated @@ -1,48 +1,48 @@ arangosh> db.five.all().toArray(); [ { - "_key" : "132397", - "_id" : "five/132397", - "_rev" : "_YNEagw---_", + "_key" : "132416", + "_id" : "five/132416", + "_rev" : "_YOn1p_y--B", "name" : "two" }, { - "_key" : "132406", - "_id" : "five/132406", - "_rev" : "_YNEagw---F", - "name" : "five" - }, - { - "_key" : "132403", - "_id" : "five/132403", - "_rev" : "_YNEagw---D", - "name" : "four" - }, - { - "_key" : "132393", - "_id" : "five/132393", - "_rev" : "_YNEagv6--_", + "_key" : "132412", + "_id" : "five/132412", + "_rev" : "_YOn1p_y--_", "name" : "one" }, { - "_key" : "132400", - "_id" : "five/132400", - "_rev" : "_YNEagw---B", + "_key" : "132425", + "_id" : "five/132425", + "_rev" : "_YOn1p_2--_", + "name" : "five" + }, + { + "_key" : "132422", + "_id" : "five/132422", + "_rev" : "_YOn1p_y--F", + "name" : "four" + }, + { + "_key" : "132419", + "_id" : "five/132419", + "_rev" : "_YOn1p_y--D", "name" : "three" } ] arangosh> db.five.all().skip(3).toArray(); [ { - "_key" : "132393", - "_id" : "five/132393", - "_rev" : "_YNEagv6--_", - "name" : "one" + "_key" : "132422", + "_id" : "five/132422", + "_rev" : "_YOn1p_y--F", + "name" : "four" }, { - "_key" : "132400", - "_id" : "five/132400", - "_rev" : "_YNEagw---B", + "_key" : "132419", + "_id" : "five/132419", + "_rev" : "_YOn1p_y--D", "name" : "three" } ] diff --git a/Documentation/Examples/usingToArray.generated b/Documentation/Examples/usingToArray.generated index bc1b011913..8355a9cc6c 100644 --- a/Documentation/Examples/usingToArray.generated +++ b/Documentation/Examples/usingToArray.generated @@ -1,36 +1,36 @@ arangosh> db._create("five") -[ArangoCollection 132452, "five" (type document, status loaded)] +[ArangoCollection 132471, "five" (type document, status loaded)] arangosh> for (i = 0; i < 5; i++) db.five.save({value:i}) arangosh> db.five.toArray() [ { - "_key" : "132472", - "_id" : "five/132472", - "_rev" : "_YNEag6K--F", - "value" : 4 - }, - { - "_key" : "132459", - "_id" : "five/132459", - "_rev" : "_YNEag6G--B", - "value" : 0 - }, - { - "_key" : "132463", - "_id" : "five/132463", - "_rev" : "_YNEag6K--_", + "_key" : "132482", + "_id" : "five/132482", + "_rev" : "_YOn1pYi--B", "value" : 1 }, { - "_key" : "132466", - "_id" : "five/132466", - "_rev" : "_YNEag6K--B", + "_key" : "132491", + "_id" : "five/132491", + "_rev" : "_YOn1pYm--D", + "value" : 4 + }, + { + "_key" : "132478", + "_id" : "five/132478", + "_rev" : "_YOn1pYi--_", + "value" : 0 + }, + { + "_key" : "132485", + "_id" : "five/132485", + "_rev" : "_YOn1pYm--_", "value" : 2 }, { - "_key" : "132469", - "_id" : "five/132469", - "_rev" : "_YNEag6K--D", + "_key" : "132488", + "_id" : "five/132488", + "_rev" : "_YOn1pYm--B", "value" : 3 } ] diff --git a/Documentation/Examples/viewDatabaseCreate.generated b/Documentation/Examples/viewDatabaseCreate.generated index fd9280be83..42e1168a3d 100644 --- a/Documentation/Examples/viewDatabaseCreate.generated +++ b/Documentation/Examples/viewDatabaseCreate.generated @@ -1,5 +1,5 @@ arangosh> v = db._createView("example", "arangosearch"); -[ArangoView 132481, "example" (type arangosearch)] +[ArangoView 132500, "example" (type arangosearch)] arangosh> v.properties() { "writebufferIdle" : 64, diff --git a/Documentation/Examples/viewDatabaseDrop.generated b/Documentation/Examples/viewDatabaseDrop.generated index f4a562e1d8..f741bd4f38 100644 --- a/Documentation/Examples/viewDatabaseDrop.generated +++ b/Documentation/Examples/viewDatabaseDrop.generated @@ -1,5 +1,5 @@ arangosh> db._createView("exampleView", "arangosearch"); -[ArangoView 132488, "exampleView" (type arangosearch)] +[ArangoView 132507, "exampleView" (type arangosearch)] arangosh> db._dropView("exampleView"); arangosh> db._view("exampleView"); null diff --git a/Documentation/Examples/viewDatabaseGet.generated b/Documentation/Examples/viewDatabaseGet.generated index e63734a047..1449a5a479 100644 --- a/Documentation/Examples/viewDatabaseGet.generated +++ b/Documentation/Examples/viewDatabaseGet.generated @@ -1,5 +1,5 @@ arangosh> view = db._view("example"); ........> // or, alternatively -[ArangoView 132493, "example" (type arangosearch)] +[ArangoView 132512, "example" (type arangosearch)] arangosh> view = db["example"] -[ArangoView 132493, "example" (type arangosearch)] +[ArangoView 132512, "example" (type arangosearch)] diff --git a/Documentation/Examples/viewDatabaseList.generated b/Documentation/Examples/viewDatabaseList.generated index f0e89848bb..2768670174 100644 --- a/Documentation/Examples/viewDatabaseList.generated +++ b/Documentation/Examples/viewDatabaseList.generated @@ -1,5 +1,5 @@ arangosh> db._views(); [ [ArangoView 102, "demoView" (type arangosearch)], - [ArangoView 132498, "exampleView" (type arangosearch)] + [ArangoView 132517, "exampleView" (type arangosearch)] ] diff --git a/Documentation/Examples/viewDrop.generated b/Documentation/Examples/viewDrop.generated index 6fdd3df738..a5f504812f 100644 --- a/Documentation/Examples/viewDrop.generated +++ b/Documentation/Examples/viewDrop.generated @@ -1,8 +1,8 @@ arangosh> v = db._createView("example", "arangosearch"); ........> // or -[ArangoView 132507, "example" (type arangosearch)] +[ArangoView 132526, "example" (type arangosearch)] arangosh> v = db._view("example"); -[ArangoView 132507, "example" (type arangosearch)] +[ArangoView 132526, "example" (type arangosearch)] arangosh> v.drop(); arangosh> db._view("example"); null diff --git a/Documentation/Examples/viewModifyProperties.generated b/Documentation/Examples/viewModifyProperties.generated index 72d234df1b..fb3e55ccbb 100644 --- a/Documentation/Examples/viewModifyProperties.generated +++ b/Documentation/Examples/viewModifyProperties.generated @@ -1,5 +1,5 @@ arangosh> v = db._view("example"); -[ArangoView 132515, "example" (type arangosearch)] +[ArangoView 132534, "example" (type arangosearch)] arangosh> v.properties(); ........> // set cleanupIntervalStep to 12 { diff --git a/Documentation/Examples/viewRename.generated b/Documentation/Examples/viewRename.generated index e9b3f68304..e9fccc3d95 100644 --- a/Documentation/Examples/viewRename.generated +++ b/Documentation/Examples/viewRename.generated @@ -1,5 +1,5 @@ arangosh> v = db._createView("example", "arangosearch"); -[ArangoView 132539, "example" (type arangosearch)] +[ArangoView 132558, "example" (type arangosearch)] arangosh> v.name(); example arangosh> v.rename("exampleRenamed"); diff --git a/Documentation/Examples/viewUsage_01.generated b/Documentation/Examples/viewUsage_01.generated index 073c16fcd7..e1bf614f58 100644 --- a/Documentation/Examples/viewUsage_01.generated +++ b/Documentation/Examples/viewUsage_01.generated @@ -1,2 +1,2 @@ arangosh> view = db._createView("myView", "arangosearch", {}); -[ArangoView 132560, "myView" (type arangosearch)] +[ArangoView 132579, "myView" (type arangosearch)] diff --git a/Documentation/Examples/viewUsage_02.generated b/Documentation/Examples/viewUsage_02.generated index 8e6d39725c..0f215bca1a 100644 --- a/Documentation/Examples/viewUsage_02.generated +++ b/Documentation/Examples/viewUsage_02.generated @@ -1,2 +1,2 @@ arangosh> view = db._view("myView"); -[ArangoView 132560, "myView" (type arangosearch)] +[ArangoView 132579, "myView" (type arangosearch)] diff --git a/Documentation/Examples/working_with_date_time.generated b/Documentation/Examples/working_with_date_time.generated index d208582721..b34fc8a1fb 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 132615, "exampleTime" (type document, status loaded)] +[ArangoCollection 132634, "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() [ { - "_key" : "132632", - "_id" : "exampleTime/132632", - "_rev" : "_YNEahau--B", + "_key" : "132651", + "_id" : "exampleTime/132651", + "_rev" : "_YOn1p6q--D", "value" : 3, "ts" : "2014-05-08T11:19:09.522" }, { - "_key" : "132629", - "_id" : "exampleTime/132629", - "_rev" : "_YNEahau--_", - "value" : 2, - "ts" : "2014-05-08T04:19:09.522" - }, - { - "_key" : "132626", - "_id" : "exampleTime/132626", - "_rev" : "_YNEahaq--B", + "_key" : "132645", + "_id" : "exampleTime/132645", + "_rev" : "_YOn1p6q--_", "value" : 1, "ts" : "2014-05-07T21:19:09.522" + }, + { + "_key" : "132648", + "_id" : "exampleTime/132648", + "_rev" : "_YOn1p6q--B", + "value" : 2, + "ts" : "2014-05-08T04:19:09.522" } ] diff --git a/arangod/Aql/Functions.cpp b/arangod/Aql/Functions.cpp index b78a39b45b..3f63dd370f 100644 --- a/arangod/Aql/Functions.cpp +++ b/arangod/Aql/Functions.cpp @@ -974,7 +974,7 @@ AqlValue dateFromParameters( duration time; if (parameters.size() == 1) { - if (!parameterToTimePoint(expressionContext, parameters, tp, AFN, 0)) { + if (!::parameterToTimePoint(expressionContext, parameters, tp, AFN, 0)) { return AqlValue(AqlValueHintNull()); } time = tp.time_since_epoch(); diff --git a/arangod/Indexes/Index.cpp b/arangod/Indexes/Index.cpp index 94ea38284e..191907c91c 100644 --- a/arangod/Indexes/Index.cpp +++ b/arangod/Indexes/Index.cpp @@ -25,6 +25,7 @@ #include "Aql/Ast.h" #include "Aql/AstNode.h" #include "Aql/Variable.h" +#include "Basics/datetime.h" #include "Basics/Exceptions.h" #include "Basics/HashSet.h" #include "Basics/StaticStrings.h" @@ -41,13 +42,15 @@ #include "VocBase/LogicalCollection.h" #include "VocBase/ticks.h" +#include #include #include #include #include -#include using namespace arangodb; +using namespace std::chrono; +using namespace date; namespace { @@ -941,6 +944,34 @@ std::ostream& operator<<(std::ostream& stream, arangodb::Index const& index) { return stream; } -// ----------------------------------------------------------------------------- -// --SECTION-- END-OF-FILE -// ----------------------------------------------------------------------------- +double Index::getTimestamp(arangodb::velocypack::Slice const& doc, std::string const& attributeName) const { + VPackSlice value = doc.get(attributeName); + + if (value.isString()) { + // string value. we expect it to be YYYY-MM-DD etc. + tp_sys_clock_ms tp; + if (basics::parseDateTime(value.copyString(), tp)) { + return static_cast(std::chrono::duration_cast(tp.time_since_epoch()).count()); + } + // invalid date format + // fall-through intentional + } else if (value.isNumber()) { + // numeric value. we take it as it is + return value.getNumericValue(); + } + + // attribute not found in document, or invalid type + return -1.0; +} + +/// @brief return the name of the (sole) index attribute +/// it is only allowed to call this method if the index contains a +/// single attribute +std::string const& Index::getAttribute() const { + TRI_ASSERT(_fields.size() == 1); + auto const& fields = _fields[0]; + TRI_ASSERT(fields.size() == 1); + auto const& field = fields[0]; + TRI_ASSERT(!field.shouldExpand); + return field.name; +} diff --git a/arangod/Indexes/Index.h b/arangod/Indexes/Index.h index 63d9ed78f7..2a3d152724 100644 --- a/arangod/Indexes/Index.h +++ b/arangod/Indexes/Index.h @@ -363,6 +363,11 @@ class Index { static size_t sortWeight(arangodb::aql::AstNode const* node); protected: + /// @brief return the name of the (sole) index attribute + /// it is only allowed to call this method if the index contains a + /// single attribute + std::string const& getAttribute() const; + /// @brief generate error result /// @param code the error key /// @param key the conflicting key @@ -379,6 +384,11 @@ class Index { /// @param key the conflicting key arangodb::Result& addErrorMsg(Result& r, std::string const& key = ""); + /// @brief extracts a timestamp value from a document + /// returns a negative value if the document does not contain the specified + /// attribute, or the attribute does not contain a valid timestamp or date string + double getTimestamp(arangodb::velocypack::Slice const& doc, std::string const& attributeName) const; + TRI_idx_iid_t const _iid; LogicalCollection& _collection; std::vector> const _fields; diff --git a/arangod/MMFiles/MMFilesTtlIndex.cpp b/arangod/MMFiles/MMFilesTtlIndex.cpp index 979fb11a1e..ede7efc39e 100644 --- a/arangod/MMFiles/MMFilesTtlIndex.cpp +++ b/arangod/MMFiles/MMFilesTtlIndex.cpp @@ -23,6 +23,7 @@ #include "MMFilesTtlIndex.h" #include "Basics/StaticStrings.h" +#include "Transaction/Helpers.h" #include @@ -60,3 +61,41 @@ void MMFilesTtlIndex::toVelocyPack(arangodb::velocypack::Builder& builder, builder.add(StaticStrings::IndexExpireAfter, VPackValue(_expireAfter)); builder.close(); } + +/// @brief inserts a document into the index +Result MMFilesTtlIndex::insert(transaction::Methods& trx, + LocalDocumentId const& documentId, + velocypack::Slice const& doc, + Index::OperationMode mode) { + double timestamp = getTimestamp(doc); + if (timestamp < 0) { + // index attribute not present or invalid. nothing to do + return Result(); + } + transaction::BuilderLeaser leased(&trx); + leased->openObject(); + leased->add(getAttribute(), VPackValue(timestamp)); + leased->close(); + return MMFilesSkiplistIndex::insert(trx, documentId, leased->slice(), mode); +} + +/// @brief removes a document from the index +Result MMFilesTtlIndex::remove(transaction::Methods& trx, + LocalDocumentId const& documentId, + velocypack::Slice const& doc, + Index::OperationMode mode) { + double timestamp = getTimestamp(doc); + if (timestamp < 0) { + // index attribute not present or invalid. nothing to do + return Result(); + } + transaction::BuilderLeaser leased(&trx); + leased->openObject(); + leased->add(getAttribute(), VPackValue(timestamp)); + leased->close(); + return MMFilesSkiplistIndex::remove(trx, documentId, leased->slice(), mode); +} + +double MMFilesTtlIndex::getTimestamp(arangodb::velocypack::Slice const& doc) const { + return Index::getTimestamp(doc, getAttribute()); +} diff --git a/arangod/MMFiles/MMFilesTtlIndex.h b/arangod/MMFiles/MMFilesTtlIndex.h index 49d728ec93..a66f647119 100644 --- a/arangod/MMFiles/MMFilesTtlIndex.h +++ b/arangod/MMFiles/MMFilesTtlIndex.h @@ -56,7 +56,24 @@ class MMFilesTtlIndex final : public MMFilesSkiplistIndex { void toVelocyPack(arangodb::velocypack::Builder& builder, std::underlying_type::type flags) const override; + + protected: + // special override method that extracts a timestamp value from the index attribute + Result insert(transaction::Methods& trx, + LocalDocumentId const& documentId, + velocypack::Slice const& doc, Index::OperationMode mode) override; + + // special override method that extracts a timestamp value from the index attribute + Result remove(transaction::Methods& trx, + LocalDocumentId const& documentId, + velocypack::Slice const& doc, Index::OperationMode mode) override; + private: + /// @brief extract a timestamp value from the index attribute value + /// returns a negative timestamp if the index attribute value is not convertible + /// properly into a timestamp + double getTimestamp(arangodb::velocypack::Slice const& doc) const; + private: double const _expireAfter; }; diff --git a/arangod/RocksDBEngine/RocksDBTtlIndex.cpp b/arangod/RocksDBEngine/RocksDBTtlIndex.cpp index 015dc34d5b..1bdb9080c0 100644 --- a/arangod/RocksDBEngine/RocksDBTtlIndex.cpp +++ b/arangod/RocksDBEngine/RocksDBTtlIndex.cpp @@ -23,6 +23,7 @@ #include "RocksDBTtlIndex.h" #include "Basics/StaticStrings.h" +#include "Transaction/Helpers.h" #include "VocBase/LogicalCollection.h" #include @@ -60,3 +61,41 @@ void RocksDBTtlIndex::toVelocyPack(arangodb::velocypack::Builder& builder, builder.add(StaticStrings::IndexExpireAfter, VPackValue(_expireAfter)); builder.close(); } + +/// @brief inserts a document into the index +Result RocksDBTtlIndex::insert(transaction::Methods& trx, RocksDBMethods* mthds, + LocalDocumentId const& documentId, + velocypack::Slice const& doc, + Index::OperationMode mode) { + double timestamp = getTimestamp(doc); + if (timestamp < 0) { + // index attribute not present or invalid. nothing to do + return Result(); + } + transaction::BuilderLeaser leased(&trx); + leased->openObject(); + leased->add(getAttribute(), VPackValue(timestamp)); + leased->close(); + return RocksDBVPackIndex::insert(trx, mthds, documentId, leased->slice(), mode); +} + +/// @brief removes a document from the index +Result RocksDBTtlIndex::remove(transaction::Methods& trx, RocksDBMethods* mthds, + LocalDocumentId const& documentId, + velocypack::Slice const& doc, + Index::OperationMode mode) { + double timestamp = getTimestamp(doc); + if (timestamp < 0) { + // index attribute not present or invalid. nothing to do + return Result(); + } + transaction::BuilderLeaser leased(&trx); + leased->openObject(); + leased->add(getAttribute(), VPackValue(timestamp)); + leased->close(); + return RocksDBVPackIndex::remove(trx, mthds, documentId, leased->slice(), mode); +} + +double RocksDBTtlIndex::getTimestamp(arangodb::velocypack::Slice const& doc) const { + return Index::getTimestamp(doc, getAttribute()); +} diff --git a/arangod/RocksDBEngine/RocksDBTtlIndex.h b/arangod/RocksDBEngine/RocksDBTtlIndex.h index f4188234cb..c29ac33e0f 100644 --- a/arangod/RocksDBEngine/RocksDBTtlIndex.h +++ b/arangod/RocksDBEngine/RocksDBTtlIndex.h @@ -49,7 +49,24 @@ class RocksDBTtlIndex final : public RocksDBSkiplistIndex { void toVelocyPack(arangodb::velocypack::Builder& builder, std::underlying_type::type flags) const override; - + + protected: + // special override method that extracts a timestamp value from the index attribute + Result insert(transaction::Methods& trx, RocksDBMethods* methods, + LocalDocumentId const& documentId, + velocypack::Slice const& doc, Index::OperationMode mode) override; + + // special override method that extracts a timestamp value from the index attribute + Result remove(transaction::Methods& trx, RocksDBMethods* methods, + LocalDocumentId const& documentId, + velocypack::Slice const& doc, Index::OperationMode mode) override; + + private: + /// @brief extract a timestamp value from the index attribute value + /// returns a negative timestamp if the index attribute value is not convertible + /// properly into a timestamp + double getTimestamp(arangodb::velocypack::Slice const& doc) const; + private: double const _expireAfter; }; diff --git a/arangod/RocksDBEngine/RocksDBVPackIndex.cpp b/arangod/RocksDBEngine/RocksDBVPackIndex.cpp index 862870a21f..7ffc41dfa5 100644 --- a/arangod/RocksDBEngine/RocksDBVPackIndex.cpp +++ b/arangod/RocksDBEngine/RocksDBVPackIndex.cpp @@ -90,6 +90,10 @@ void RocksDBVPackUniqueIndexIterator::reset() { _done = false; } + +bool RocksDBVPackUniqueIndexIterator::hasCovering() const { + return _index->type() != arangodb::Index::IndexType::TRI_IDX_TYPE_TTL_INDEX; +} bool RocksDBVPackUniqueIndexIterator::next(LocalDocumentIdCallback const& cb, size_t limit) { TRI_ASSERT(_trx->state()->isRunning()); @@ -179,6 +183,10 @@ void RocksDBVPackIndexIterator::reset() { } } +bool RocksDBVPackIndexIterator::hasCovering() const { + return _index->type() != arangodb::Index::IndexType::TRI_IDX_TYPE_TTL_INDEX; +} + bool RocksDBVPackIndexIterator::next(LocalDocumentIdCallback const& cb, size_t limit) { TRI_ASSERT(_trx->state()->isRunning()); diff --git a/arangod/RocksDBEngine/RocksDBVPackIndex.h b/arangod/RocksDBEngine/RocksDBVPackIndex.h index 8e09fcfeae..3aafbd3259 100644 --- a/arangod/RocksDBEngine/RocksDBVPackIndex.h +++ b/arangod/RocksDBEngine/RocksDBVPackIndex.h @@ -85,7 +85,7 @@ class RocksDBVPackUniqueIndexIterator final : public IndexIterator { /// @brief we provide a method to provide the index attribute values /// while scanning the index - bool hasCovering() const override { return true; } + bool hasCovering() const override; private: arangodb::RocksDBVPackIndex const* _index; @@ -121,7 +121,7 @@ class RocksDBVPackIndexIterator final : public IndexIterator { /// @brief we provide a method to provide the index attribute values /// while scanning the index - bool hasCovering() const override { return true; } + bool hasCovering() const override; private: inline bool outOfRange() const { diff --git a/js/apps/system/_admin/aardvark/APP/api-docs.json b/js/apps/system/_admin/aardvark/APP/api-docs.json index 4e8234b98e..3a91c465c3 100644 --- a/js/apps/system/_admin/aardvark/APP/api-docs.json +++ b/js/apps/system/_admin/aardvark/APP/api-docs.json @@ -7089,7 +7089,7 @@ }, "/_admin/statistics": { "get": { - "description": "\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**HTTP 200**\n*A json document with these Properties is returned:*\n\nStatistics were returned successfully.\n\n- **code**: the HTTP status code - 200 in this case\n- **http**:\n - **requestsTotal**: total number of http requests\n - **requestsPatch**: No of requests using the PATCH-verb\n - **requestsPut**: No of requests using the PUT-verb\n - **requestsOther**: No of requests using the none of the above identified verbs\n - **requestsAsync**: total number of asynchronous http requests\n - **requestsPost**: No of requests using the POST-verb\n - **requestsOptions**: No of requests using the OPTIONS-verb\n - **requestsHead**: No of requests using the HEAD-verb\n - **requestsGet**: No of requests using the GET-verb\n - **requestsDelete**: No of requests using the DELETE-verb\n- **errorMessage**: a descriptive error message\n- **enabled**: *true* if the server has the statistics module enabled. If not, don't expect any values.\n- **system**:\n - **minorPageFaults**: pagefaults\n - **majorPageFaults**: pagefaults\n - **userTime**: the user CPU time used by the server process\n - **systemTime**: the system CPU time used by the server process\n - **numberOfThreads**: the number of threads in the server\n - **virtualSize**: VSS of the process\n - **residentSize**: RSS of process\n - **residentSizePercent**: RSS of process in %\n- **server**:\n - **threads**:\n - **in-progress**: The number of currently busy worker threads\n - **scheduler-threads**: The number of spawned worker threads\n - **queued**: The number of jobs queued up waiting for worker threads becomming available\n - **uptime**: time the server is up and running\n - **physicalMemory**: available physical memory on the server\n - **v8Context**:\n - **available**: the number of currently spawnen V8 contexts\n - **max**: the total number of V8 contexts we may spawn as configured by --javascript.v8-contexts\n - **busy**: the number of currently active V8 contexts\n - **dirty**: the number of contexts that were previously used, and should now be garbage collected before being re-used\n - **free**: the number of V8 contexts that are free to use\n- **client**:\n - **totalTime**:\n - **count**: number of values summarized\n - **sum**: summarized value of all counts\n - **counts** (integer): array containing the values\n - **bytesReceived**:\n - **count**: number of values summarized\n - **sum**: summarized value of all counts\n - **counts** (integer): array containing the values\n - **requestTime**:\n - **count**: number of values summarized\n - **sum**: summarized value of all counts\n - **counts** (integer): array containing the values\n - **connectionTime**:\n - **count**: number of values summarized\n - **sum**: summarized value of all counts\n - **counts** (integer): array containing the values\n - **queueTime**:\n - **count**: number of values summarized\n - **sum**: summarized value of all counts\n - **counts** (integer): array containing the values\n - **httpConnections**: the number of open http connections\n - **bytesSent**:\n - **count**: number of values summarized\n - **sum**: summarized value of all counts\n - **counts** (integer): array containing the values\n - **ioTime**:\n - **count**: number of values summarized\n - **sum**: summarized value of all counts\n - **counts** (integer): array containing the values\n- **error**: boolean flag to indicate whether an error occurred (*false* in this case)\n- **time**: the current server timestamp\n\n\n\n\n**Example:**\n \n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_admin/statistics\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"time\" : 1550241768.1350324, \n  \"enabled\" : true, \n  \"system\" : { \n    \"minorPageFaults\" : 80568, \n    \"majorPageFaults\" : 187, \n    \"userTime\" : 3.46, \n    \"systemTime\" : 1.63, \n    \"numberOfThreads\" : 50, \n    \"residentSize\" : 374484992, \n    \"residentSizePercent\" : 0.022428219614873516, \n    \"virtualSize\" : 2187247616 \n  }, \n  \"client\" : { \n    \"httpConnections\" : 1, \n    \"connectionTime\" : { \n      \"sum\" : 0, \n      \"count\" : 0, \n      \"counts\" : [ \n        0, \n        0, \n        0, \n        0 \n      ] \n    }, \n    \"totalTime\" : { \n      \"sum\" : 8.175549745559692, \n      \"count\" : 34234, \n      \"counts\" : [ \n        34022, \n        210, \n        1, \n        0, \n        0, \n        1, \n        0 \n      ] \n    }, \n    \"requestTime\" : { \n      \"sum\" : 4.975844860076904, \n      \"count\" : 34234, \n      \"counts\" : [ \n        34102, \n        130, \n        1, \n        0, \n        0, \n        1, \n        0 \n      ] \n    }, \n    \"queueTime\" : { \n      \"sum\" : 0, \n      \"count\" : 0, \n      \"counts\" : [ \n        0, \n        0, \n        0, \n        0, \n        0, \n        0, \n        0 \n      ] \n    }, \n    \"ioTime\" : { \n      \"sum\" : 3.199704885482788, \n      \"count\" : 34234, \n      \"counts\" : [ \n        34154, \n        80, \n        0, \n        0, \n        0, \n        0, \n        0 \n      ] \n    }, \n    \"bytesSent\" : { \n      \"sum\" : 10100744, \n      \"count\" : 34234, \n      \"counts\" : [ \n        236, \n        33641, \n        328, \n        28, \n        1, \n        0 \n      ] \n    }, \n    \"bytesReceived\" : { \n      \"sum\" : 8040361, \n      \"count\" : 34234, \n      \"counts\" : [ \n        33549, \n        685, \n        0, \n        0, \n        0, \n        0 \n      ] \n    } \n  }, \n  \"http\" : { \n    \"requestsTotal\" : 34234, \n    \"requestsAsync\" : 0, \n    \"requestsGet\" : 782, \n    \"requestsHead\" : 0, \n    \"requestsPost\" : 33323, \n    \"requestsPut\" : 31, \n    \"requestsPatch\" : 2, \n    \"requestsDelete\" : 96, \n    \"requestsOptions\" : 0, \n    \"requestsOther\" : 0 \n  }, \n  \"server\" : { \n    \"uptime\" : 13.509510278701782, \n    \"physicalMemory\" : 16697044992, \n    \"v8Context\" : { \n      \"available\" : 2, \n      \"busy\" : 1, \n      \"dirty\" : 0, \n      \"free\" : 1, \n      \"max\" : 16 \n    }, \n    \"threads\" : { \n      \"scheduler-threads\" : 2, \n      \"queued\" : 2 \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n", + "description": "\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**HTTP 200**\n*A json document with these Properties is returned:*\n\nStatistics were returned successfully.\n\n- **code**: the HTTP status code - 200 in this case\n- **http**:\n - **requestsTotal**: total number of http requests\n - **requestsPatch**: No of requests using the PATCH-verb\n - **requestsPut**: No of requests using the PUT-verb\n - **requestsOther**: No of requests using the none of the above identified verbs\n - **requestsAsync**: total number of asynchronous http requests\n - **requestsPost**: No of requests using the POST-verb\n - **requestsOptions**: No of requests using the OPTIONS-verb\n - **requestsHead**: No of requests using the HEAD-verb\n - **requestsGet**: No of requests using the GET-verb\n - **requestsDelete**: No of requests using the DELETE-verb\n- **errorMessage**: a descriptive error message\n- **enabled**: *true* if the server has the statistics module enabled. If not, don't expect any values.\n- **system**:\n - **minorPageFaults**: pagefaults\n - **majorPageFaults**: pagefaults\n - **userTime**: the user CPU time used by the server process\n - **systemTime**: the system CPU time used by the server process\n - **numberOfThreads**: the number of threads in the server\n - **virtualSize**: VSS of the process\n - **residentSize**: RSS of process\n - **residentSizePercent**: RSS of process in %\n- **server**:\n - **threads**:\n - **in-progress**: The number of currently busy worker threads\n - **scheduler-threads**: The number of spawned worker threads\n - **queued**: The number of jobs queued up waiting for worker threads becomming available\n - **uptime**: time the server is up and running\n - **physicalMemory**: available physical memory on the server\n - **v8Context**:\n - **available**: the number of currently spawnen V8 contexts\n - **max**: the total number of V8 contexts we may spawn as configured by --javascript.v8-contexts\n - **busy**: the number of currently active V8 contexts\n - **dirty**: the number of contexts that were previously used, and should now be garbage collected before being re-used\n - **free**: the number of V8 contexts that are free to use\n- **client**:\n - **totalTime**:\n - **count**: number of values summarized\n - **sum**: summarized value of all counts\n - **counts** (integer): array containing the values\n - **bytesReceived**:\n - **count**: number of values summarized\n - **sum**: summarized value of all counts\n - **counts** (integer): array containing the values\n - **requestTime**:\n - **count**: number of values summarized\n - **sum**: summarized value of all counts\n - **counts** (integer): array containing the values\n - **connectionTime**:\n - **count**: number of values summarized\n - **sum**: summarized value of all counts\n - **counts** (integer): array containing the values\n - **queueTime**:\n - **count**: number of values summarized\n - **sum**: summarized value of all counts\n - **counts** (integer): array containing the values\n - **httpConnections**: the number of open http connections\n - **bytesSent**:\n - **count**: number of values summarized\n - **sum**: summarized value of all counts\n - **counts** (integer): array containing the values\n - **ioTime**:\n - **count**: number of values summarized\n - **sum**: summarized value of all counts\n - **counts** (integer): array containing the values\n- **error**: boolean flag to indicate whether an error occurred (*false* in this case)\n- **time**: the current server timestamp\n\n\n\n\n**Example:**\n \n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_admin/statistics\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"time\" : 1550658777.0711348, \n  \"enabled\" : true, \n  \"system\" : { \n    \"minorPageFaults\" : 82857, \n    \"majorPageFaults\" : 3, \n    \"userTime\" : 3.56, \n    \"systemTime\" : 1.71, \n    \"numberOfThreads\" : 50, \n    \"residentSize\" : 361426944, \n    \"residentSizePercent\" : 0.021646172810734898, \n    \"virtualSize\" : 1353252864 \n  }, \n  \"client\" : { \n    \"httpConnections\" : 1, \n    \"connectionTime\" : { \n      \"sum\" : 0, \n      \"count\" : 0, \n      \"counts\" : [ \n        0, \n        0, \n        0, \n        0 \n      ] \n    }, \n    \"totalTime\" : { \n      \"sum\" : 8.05157732963562, \n      \"count\" : 34249, \n      \"counts\" : [ \n        34044, \n        202, \n        2, \n        0, \n        0, \n        1, \n        0 \n      ] \n    }, \n    \"requestTime\" : { \n      \"sum\" : 4.962236642837524, \n      \"count\" : 34249, \n      \"counts\" : [ \n        34120, \n        126, \n        2, \n        0, \n        0, \n        1, \n        0 \n      ] \n    }, \n    \"queueTime\" : { \n      \"sum\" : 0, \n      \"count\" : 0, \n      \"counts\" : [ \n        0, \n        0, \n        0, \n        0, \n        0, \n        0, \n        0 \n      ] \n    }, \n    \"ioTime\" : { \n      \"sum\" : 3.0893406867980957, \n      \"count\" : 34249, \n      \"counts\" : [ \n        34173, \n        76, \n        0, \n        0, \n        0, \n        0, \n        0 \n      ] \n    }, \n    \"bytesSent\" : { \n      \"sum\" : 10108900, \n      \"count\" : 34249, \n      \"counts\" : [ \n        240, \n        33648, \n        332, \n        28, \n        1, \n        0 \n      ] \n    }, \n    \"bytesReceived\" : { \n      \"sum\" : 8043129, \n      \"count\" : 34249, \n      \"counts\" : [ \n        33568, \n        681, \n        0, \n        0, \n        0, \n        0 \n      ] \n    } \n  }, \n  \"http\" : { \n    \"requestsTotal\" : 34249, \n    \"requestsAsync\" : 0, \n    \"requestsGet\" : 795, \n    \"requestsHead\" : 0, \n    \"requestsPost\" : 33323, \n    \"requestsPut\" : 31, \n    \"requestsPatch\" : 2, \n    \"requestsDelete\" : 98, \n    \"requestsOptions\" : 0, \n    \"requestsOther\" : 0 \n  }, \n  \"server\" : { \n    \"uptime\" : 14.283366203308105, \n    \"physicalMemory\" : 16697036800, \n    \"v8Context\" : { \n      \"available\" : 2, \n      \"busy\" : 1, \n      \"dirty\" : 0, \n      \"free\" : 1, \n      \"max\" : 16 \n    }, \n    \"threads\" : { \n      \"scheduler-threads\" : 2, \n      \"queued\" : 2 \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n", "parameters": [], "produces": [ "application/json" @@ -7421,7 +7421,7 @@ }, "/_api/batch": { "post": { - "description": "\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\n\n**Example:**\n 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.*\n\n
shell> curl -X POST --header 'Content-Type: multipart/form-data; boundary=SomeBoundaryValue' --header 'accept: application/json' --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 OK\ncontent-type: application/json\nx-arango-errors: 1\nx-content-type-options: nosniff\n\n\"--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\nContent-Id: myId1\\r\\n\\r\\nHTTP/1.1 200 OK\\r\\nServer: \\r\\nConnection: \\r\\nContent-Type: application/json; charset=utf-8\\r\\nContent-Length: 66\\r\\n\\r\\n{\\\"server\\\":\\\"arango\\\",\\\"version\\\":\\\"3.5.0-devel\\\",\\\"license\\\":\\\"enterprise\\\"}\\r\\n--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\nContent-Id: myId2\\r\\n\\r\\nHTTP/1.1 404 Not Found\\r\\nServer: \\r\\nConnection: \\r\\nContent-Type: application/json; charset=utf-8\\r\\nContent-Length: 87\\r\\n\\r\\n{\\\"error\\\":true,\\\"errorMessage\\\":\\\"collection or view not found\\\",\\\"code\\\":404,\\\"errorNum\\\":1203}\\r\\n--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\nContent-Id: someId\\r\\n\\r\\nHTTP/1.1 200 OK\\r\\nServer: \\r\\nConnection: \\r\\nContent-Type: application/json; charset=utf-8\\r\\nContent-Length: 328\\r\\n\\r\\n{\\\"error\\\":false,\\\"code\\\":200,\\\"waitForSync\\\":false,\\\"type\\\":2,\\\"status\\\":3,\\\"journalSize\\\":33554432,\\\"keyOptions\\\":{\\\"allowUserKeys\\\":true,\\\"type\\\":\\\"traditional\\\",\\\"lastValue\\\":0},\\\"globallyUniqueId\\\":\\\"h402518FDD080/102789\\\",\\\"statusString\\\":\\\"loaded\\\",\\\"id\\\":\\\"102789\\\",\\\"name\\\":\\\"products\\\",\\\"doCompact\\\":true,\\\"isSystem\\\":false,\\\"indexBuckets\\\":8,\\\"isVolatile\\\":false}\\r\\n--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\nContent-Id: nextId\\r\\n\\r\\nHTTP/1.1 200 OK\\r\\nServer: \\r\\nLocation: /_api/collection/products/figures\\r\\nConnection: \\r\\nContent-Type: application/json; charset=utf-8\\r\\nContent-Length: 835\\r\\n\\r\\n{\\\"error\\\":false,\\\"code\\\":200,\\\"type\\\":2,\\\"status\\\":3,\\\"journalSize\\\":33554432,\\\"isVolatile\\\":false,\\\"name\\\":\\\"products\\\",\\\"doCompact\\\":true,\\\"isSystem\\\":false,\\\"count\\\":0,\\\"waitForSync\\\":false,\\\"figures\\\":{\\\"indexes\\\":{\\\"count\\\":1,\\\"size\\\":32128},\\\"documentReferences\\\":0,\\\"waitingFor\\\":\\\"-\\\",\\\"alive\\\":{\\\"count\\\":0,\\\"size\\\":0},\\\"dead\\\":{\\\"count\\\":0,\\\"size\\\":0,\\\"deletion\\\":0},\\\"compactionStatus\\\":{\\\"message\\\":\\\"compaction not yet started\\\",\\\"time\\\":\\\"2019-02-15T14:42:48Z\\\",\\\"count\\\":0,\\\"filesCombined\\\":0,\\\"bytesRead\\\":0,\\\"bytesWritten\\\":0},\\\"datafiles\\\":{\\\"count\\\":0,\\\"fileSize\\\":0},\\\"journals\\\":{\\\"count\\\":0,\\\"fileSize\\\":0},\\\"compactors\\\":{\\\"count\\\":0,\\\"fileSize\\\":0},\\\"revisions\\\":{\\\"count\\\":0,\\\"size\\\":48192},\\\"lastTick\\\":0,\\\"uncollectedLogfileEntries\\\":0},\\\"keyOptions\\\":{\\\"allowUserKeys\\\":true,\\\"type\\\":\\\"traditional\\\",\\\"lastValue\\\":0},\\\"globallyUniqueId\\\":\\\"h402518FDD080/102789\\\",\\\"statusString\\\":\\\"loaded\\\",\\\"id\\\":\\\"102789\\\",\\\"indexBuckets\\\":8}\\r\\n--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\nContent-Id: otherId\\r\\n\\r\\nHTTP/1.1 200 OK\\r\\nServer: \\r\\nConnection: \\r\\nContent-Type: application/json; charset=utf-8\\r\\nContent-Length: 40\\r\\n\\r\\n{\\\"error\\\":false,\\\"code\\\":200,\\\"id\\\":\\\"102789\\\"}\\r\\n--SomeBoundaryValue--\"\n
\n\n\n\n\n**Example:**\n 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).\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json\nx-arango-errors: 2\nx-content-type-options: nosniff\n\n\"--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\n\\r\\nHTTP/1.1 404 Not Found\\r\\nServer: \\r\\nConnection: \\r\\nContent-Type: application/json; charset=utf-8\\r\\nContent-Length: 87\\r\\n\\r\\n{\\\"error\\\":true,\\\"errorMessage\\\":\\\"collection or view not found\\\",\\\"code\\\":404,\\\"errorNum\\\":1203}\\r\\n--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\n\\r\\nHTTP/1.1 404 Not Found\\r\\nServer: \\r\\nConnection: \\r\\nContent-Type: application/json; charset=utf-8\\r\\nContent-Length: 101\\r\\n\\r\\n{\\\"error\\\":true,\\\"code\\\":404,\\\"errorNum\\\":404,\\\"errorMessage\\\":\\\"unknown path '_api/collection/notexisting2'\\\"}\\r\\n--SomeBoundaryValue--\"\n
\n\n\n\n\n", + "description": "\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\n\n**Example:**\n 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.*\n\n
shell> curl -X POST --header 'Content-Type: multipart/form-data; boundary=SomeBoundaryValue' --header 'accept: application/json' --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 OK\ncontent-type: application/json\nx-arango-errors: 1\nx-content-type-options: nosniff\n\n\"--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\nContent-Id: myId1\\r\\n\\r\\nHTTP/1.1 200 OK\\r\\nServer: \\r\\nConnection: \\r\\nContent-Type: application/json; charset=utf-8\\r\\nContent-Length: 66\\r\\n\\r\\n{\\\"server\\\":\\\"arango\\\",\\\"version\\\":\\\"3.5.0-devel\\\",\\\"license\\\":\\\"enterprise\\\"}\\r\\n--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\nContent-Id: myId2\\r\\n\\r\\nHTTP/1.1 404 Not Found\\r\\nServer: \\r\\nConnection: \\r\\nContent-Type: application/json; charset=utf-8\\r\\nContent-Length: 87\\r\\n\\r\\n{\\\"error\\\":true,\\\"errorMessage\\\":\\\"collection or view not found\\\",\\\"code\\\":404,\\\"errorNum\\\":1203}\\r\\n--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\nContent-Id: someId\\r\\n\\r\\nHTTP/1.1 200 OK\\r\\nServer: \\r\\nConnection: \\r\\nContent-Type: application/json; charset=utf-8\\r\\nContent-Length: 328\\r\\n\\r\\n{\\\"error\\\":false,\\\"code\\\":200,\\\"waitForSync\\\":false,\\\"type\\\":2,\\\"status\\\":3,\\\"journalSize\\\":33554432,\\\"keyOptions\\\":{\\\"allowUserKeys\\\":true,\\\"type\\\":\\\"traditional\\\",\\\"lastValue\\\":0},\\\"globallyUniqueId\\\":\\\"h8B2B671BCFD0/102789\\\",\\\"statusString\\\":\\\"loaded\\\",\\\"id\\\":\\\"102789\\\",\\\"name\\\":\\\"products\\\",\\\"doCompact\\\":true,\\\"isSystem\\\":false,\\\"indexBuckets\\\":8,\\\"isVolatile\\\":false}\\r\\n--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\nContent-Id: nextId\\r\\n\\r\\nHTTP/1.1 200 OK\\r\\nServer: \\r\\nLocation: /_api/collection/products/figures\\r\\nConnection: \\r\\nContent-Type: application/json; charset=utf-8\\r\\nContent-Length: 835\\r\\n\\r\\n{\\\"error\\\":false,\\\"code\\\":200,\\\"type\\\":2,\\\"status\\\":3,\\\"journalSize\\\":33554432,\\\"isVolatile\\\":false,\\\"name\\\":\\\"products\\\",\\\"doCompact\\\":true,\\\"isSystem\\\":false,\\\"count\\\":0,\\\"waitForSync\\\":false,\\\"figures\\\":{\\\"indexes\\\":{\\\"count\\\":1,\\\"size\\\":32128},\\\"documentReferences\\\":0,\\\"waitingFor\\\":\\\"-\\\",\\\"alive\\\":{\\\"count\\\":0,\\\"size\\\":0},\\\"dead\\\":{\\\"count\\\":0,\\\"size\\\":0,\\\"deletion\\\":0},\\\"compactionStatus\\\":{\\\"message\\\":\\\"compaction not yet started\\\",\\\"time\\\":\\\"2019-02-20T10:32:57Z\\\",\\\"count\\\":0,\\\"filesCombined\\\":0,\\\"bytesRead\\\":0,\\\"bytesWritten\\\":0},\\\"datafiles\\\":{\\\"count\\\":0,\\\"fileSize\\\":0},\\\"journals\\\":{\\\"count\\\":0,\\\"fileSize\\\":0},\\\"compactors\\\":{\\\"count\\\":0,\\\"fileSize\\\":0},\\\"revisions\\\":{\\\"count\\\":0,\\\"size\\\":48192},\\\"lastTick\\\":0,\\\"uncollectedLogfileEntries\\\":0},\\\"keyOptions\\\":{\\\"allowUserKeys\\\":true,\\\"type\\\":\\\"traditional\\\",\\\"lastValue\\\":0},\\\"globallyUniqueId\\\":\\\"h8B2B671BCFD0/102789\\\",\\\"statusString\\\":\\\"loaded\\\",\\\"id\\\":\\\"102789\\\",\\\"indexBuckets\\\":8}\\r\\n--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\nContent-Id: otherId\\r\\n\\r\\nHTTP/1.1 200 OK\\r\\nServer: \\r\\nConnection: \\r\\nContent-Type: application/json; charset=utf-8\\r\\nContent-Length: 40\\r\\n\\r\\n{\\\"error\\\":false,\\\"code\\\":200,\\\"id\\\":\\\"102789\\\"}\\r\\n--SomeBoundaryValue--\"\n
\n\n\n\n\n**Example:**\n 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).\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json\nx-arango-errors: 2\nx-content-type-options: nosniff\n\n\"--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\n\\r\\nHTTP/1.1 404 Not Found\\r\\nServer: \\r\\nConnection: \\r\\nContent-Type: application/json; charset=utf-8\\r\\nContent-Length: 87\\r\\n\\r\\n{\\\"error\\\":true,\\\"errorMessage\\\":\\\"collection or view not found\\\",\\\"code\\\":404,\\\"errorNum\\\":1203}\\r\\n--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\n\\r\\nHTTP/1.1 404 Not Found\\r\\nServer: \\r\\nConnection: \\r\\nContent-Type: application/json; charset=utf-8\\r\\nContent-Length: 101\\r\\n\\r\\n{\\\"error\\\":true,\\\"code\\\":404,\\\"errorNum\\\":404,\\\"errorMessage\\\":\\\"unknown path '_api/collection/notexisting2'\\\"}\\r\\n--SomeBoundaryValue--\"\n
\n\n\n\n\n", "parameters": [ { "description": "The multipart batch request, consisting of the envelope and the individual\nbatch parts.\n\n", @@ -7485,7 +7485,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\n\n**Warning:** \nAccessing collections by their numeric ID is deprecated from version 3.4.0 on.\nYou should reference them via their names instead.\n\n\n\n\n\n\n**Example:**\n Return information about all collections:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/collection\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"result\" : [ \n    { \n      \"id\" : \"17\", \n      \"name\" : \"_queues\", \n      \"status\" : 3, \n      \"type\" : 2, \n      \"isSystem\" : true, \n      \"globallyUniqueId\" : \"_queues\" \n    }, \n    { \n      \"id\" : \"15\", \n      \"name\" : \"_frontend\", \n      \"status\" : 3, \n      \"type\" : 2, \n      \"isSystem\" : true, \n      \"globallyUniqueId\" : \"_frontend\" \n    }, \n    { \n      \"id\" : \"32\", \n      \"name\" : \"_appbundles\", \n      \"status\" : 3, \n      \"type\" : 2, \n      \"isSystem\" : true, \n      \"globallyUniqueId\" : \"_appbundles\" \n    }, \n    { \n      \"id\" : \"66\", \n      \"name\" : \"_statistics\", \n      \"status\" : 3, \n      \"type\" : 2, \n      \"isSystem\" : true, \n      \"globallyUniqueId\" : \"_statistics\" \n    }, \n    { \n      \"id\" : \"8\", \n      \"name\" : \"_users\", \n      \"status\" : 3, \n      \"type\" : 2, \n      \"isSystem\" : true, \n      \"globallyUniqueId\" : \"_users\" \n    }, \n    { \n      \"id\" : \"2\", \n      \"name\" : \"_iresearch_analyzers\", \n      \"status\" : 3, \n      \"type\" : 2, \n      \"isSystem\" : true, \n      \"globallyUniqueId\" : \"_iresearch_analyzers\" \n    }, \n    { \n      \"id\" : \"19\", \n      \"name\" : \"_jobs\", \n      \"status\" : 3, \n      \"type\" : 2, \n      \"isSystem\" : true, \n      \"globallyUniqueId\" : \"_jobs\" \n    }, \n    { \n      \"id\" : \"87\", \n      \"name\" : \"demo\", \n      \"status\" : 3, \n      \"type\" : 2, \n      \"isSystem\" : false, \n      \"globallyUniqueId\" : \"h402518FDD080/87\" \n    }, \n    { \n      \"id\" : \"13\", \n      \"name\" : \"_aqlfunctions\", \n      \"status\" : 3, \n      \"type\" : 2, \n      \"isSystem\" : true, \n      \"globallyUniqueId\" : \"_aqlfunctions\" \n    }, \n    { \n      \"id\" : \"6\", \n      \"name\" : \"_graphs\", \n      \"status\" : 3, \n      \"type\" : 2, \n      \"isSystem\" : true, \n      \"globallyUniqueId\" : \"_graphs\" \n    }, \n    { \n      \"id\" : \"27\", \n      \"name\" : \"_apps\", \n      \"status\" : 3, \n      \"type\" : 2, \n      \"isSystem\" : true, \n      \"globallyUniqueId\" : \"_apps\" \n    }, \n    { \n      \"id\" : \"61\", \n      \"name\" : \"_statisticsRaw\", \n      \"status\" : 3, \n      \"type\" : 2, \n      \"isSystem\" : true, \n      \"globallyUniqueId\" : \"_statisticsRaw\" \n    }, \n    { \n      \"id\" : \"71\", \n      \"name\" : \"_statistics15\", \n      \"status\" : 3, \n      \"type\" : 2, \n      \"isSystem\" : true, \n      \"globallyUniqueId\" : \"_statistics15\" \n    }, \n    { \n      \"id\" : \"96\", \n      \"name\" : \"animals\", \n      \"status\" : 3, \n      \"type\" : 2, \n      \"isSystem\" : false, \n      \"globallyUniqueId\" : \"h402518FDD080/96\" \n    } \n  ] \n}\n
\n\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\n\n**Warning:** \nAccessing collections by their numeric ID is deprecated from version 3.4.0 on.\nYou should reference them via their names instead.\n\n\n\n\n\n\n**Example:**\n Return information about all collections:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/collection\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"result\" : [ \n    { \n      \"id\" : \"17\", \n      \"name\" : \"_queues\", \n      \"status\" : 3, \n      \"type\" : 2, \n      \"isSystem\" : true, \n      \"globallyUniqueId\" : \"_queues\" \n    }, \n    { \n      \"id\" : \"15\", \n      \"name\" : \"_frontend\", \n      \"status\" : 3, \n      \"type\" : 2, \n      \"isSystem\" : true, \n      \"globallyUniqueId\" : \"_frontend\" \n    }, \n    { \n      \"id\" : \"32\", \n      \"name\" : \"_appbundles\", \n      \"status\" : 3, \n      \"type\" : 2, \n      \"isSystem\" : true, \n      \"globallyUniqueId\" : \"_appbundles\" \n    }, \n    { \n      \"id\" : \"66\", \n      \"name\" : \"_statistics\", \n      \"status\" : 3, \n      \"type\" : 2, \n      \"isSystem\" : true, \n      \"globallyUniqueId\" : \"_statistics\" \n    }, \n    { \n      \"id\" : \"8\", \n      \"name\" : \"_users\", \n      \"status\" : 3, \n      \"type\" : 2, \n      \"isSystem\" : true, \n      \"globallyUniqueId\" : \"_users\" \n    }, \n    { \n      \"id\" : \"2\", \n      \"name\" : \"_iresearch_analyzers\", \n      \"status\" : 3, \n      \"type\" : 2, \n      \"isSystem\" : true, \n      \"globallyUniqueId\" : \"_iresearch_analyzers\" \n    }, \n    { \n      \"id\" : \"19\", \n      \"name\" : \"_jobs\", \n      \"status\" : 3, \n      \"type\" : 2, \n      \"isSystem\" : true, \n      \"globallyUniqueId\" : \"_jobs\" \n    }, \n    { \n      \"id\" : \"87\", \n      \"name\" : \"demo\", \n      \"status\" : 3, \n      \"type\" : 2, \n      \"isSystem\" : false, \n      \"globallyUniqueId\" : \"h8B2B671BCFD0/87\" \n    }, \n    { \n      \"id\" : \"13\", \n      \"name\" : \"_aqlfunctions\", \n      \"status\" : 3, \n      \"type\" : 2, \n      \"isSystem\" : true, \n      \"globallyUniqueId\" : \"_aqlfunctions\" \n    }, \n    { \n      \"id\" : \"6\", \n      \"name\" : \"_graphs\", \n      \"status\" : 3, \n      \"type\" : 2, \n      \"isSystem\" : true, \n      \"globallyUniqueId\" : \"_graphs\" \n    }, \n    { \n      \"id\" : \"27\", \n      \"name\" : \"_apps\", \n      \"status\" : 3, \n      \"type\" : 2, \n      \"isSystem\" : true, \n      \"globallyUniqueId\" : \"_apps\" \n    }, \n    { \n      \"id\" : \"61\", \n      \"name\" : \"_statisticsRaw\", \n      \"status\" : 3, \n      \"type\" : 2, \n      \"isSystem\" : true, \n      \"globallyUniqueId\" : \"_statisticsRaw\" \n    }, \n    { \n      \"id\" : \"71\", \n      \"name\" : \"_statistics15\", \n      \"status\" : 3, \n      \"type\" : 2, \n      \"isSystem\" : true, \n      \"globallyUniqueId\" : \"_statistics15\" \n    }, \n    { \n      \"id\" : \"96\", \n      \"name\" : \"animals\", \n      \"status\" : 3, \n      \"type\" : 2, \n      \"isSystem\" : false, \n      \"globallyUniqueId\" : \"h8B2B671BCFD0/96\" \n    } \n  ] \n}\n
\n\n\n\n\n", "parameters": [ { "description": "Whether or not system collections should be excluded from the result.\n\n", @@ -7509,7 +7509,7 @@ "x-hints": "{% hint 'warning' %}\nAccessing collections by their numeric ID is deprecated from version 3.4.0 on.\nYou should reference them via their names instead.\n{% endhint %}\n\n" }, "post": { - "description": "\n\nCreates a new collection with a given name. The request must contain an\nobject with the following attributes.\n\n\n**A JSON object 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 This option is meaningful for the MMFiles storage engine only.\n - **replicationFactor**: (The default is *1*): in a cluster, this attribute determines how many copies\n of each shard are kept on different DBServers. The value 1 means that only one\n copy (no synchronous replication) is kept. A value of k means that k-1 replicas\n are kept. Any two copies reside on different DBServers. Replication between them is \n synchronous, that is, every write operation to the \"leader\" copy will be replicated \n to all \"follower\" replicas, before the write operation is reported successful.\n If a server fails, this is detected automatically and one of the servers holding \n copies take over, usually without an error being reported.\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*, *autoincrement*, *uuid* and *padded*.\n The *traditional* key generator generates numerical keys in ascending order.\n The *autoincrement* key generator generates numerical keys in ascending order, \n the inital offset and the spacing can be configured\n The *padded* key generator generates keys of a fixed length (16 bytes) in\n ascending lexicographical sort order. This is ideal for usage with the _RocksDB_\n engine, which will slightly benefit keys that are inserted in lexicographically\n ascending order. The key generator can be used in a single-server or cluster.\n The *uuid* key generator generates universally unique 128 bit keys, which \n are stored in hexadecimal human-readable format. This key generator can be used\n in a single-server or cluster to generate \"seemingly random\" keys. The keys \n produced by this key generator are not lexicographically sorted.\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 This option is meaningful for the MMFiles storage engine only.\n - **shardingStrategy**: This attribute specifies the name of the sharding strategy to use for \n the collection. Since ArangoDB 3.4 there are different sharding strategies \n to select from when creating a new collection. The selected *shardingStrategy* \n value will remain fixed for the collection and cannot be changed afterwards. \n This is important to make the collection keep its sharding settings and\n always find documents already distributed to shards using the same\n initial sharding algorithm.\n The available sharding strategies are:\n - *community-compat*: default sharding used by ArangoDB community\n versions before ArangoDB 3.4\n - *enterprise-compat*: default sharding used by ArangoDB enterprise\n versions before ArangoDB 3.4\n - *enterprise-smart-edge-compat*: default sharding used by smart edge\n collections in ArangoDB enterprise versions before ArangoDB 3.4\n - *hash*: default sharding used by ArangoDB 3.4 for new collections\n (excluding smart edge collections)\n - *enterprise-hash-smart-edge*: default sharding used by ArangoDB 3.4 \n for new smart edge collections\n If no sharding strategy is specified, the default will be *hash* for\n all collections, and *enterprise-hash-smart-edge* for all smart edge\n collections (requires the *Enterprise Edition* of ArangoDB). \n Manually overriding the sharding strategy does not yet provide a \n benefit, but it may later in case other sharding strategies are added.\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 This option is meaningful for the MMFiles storage engine only.\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*: edge 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 This option is meaningful for the MMFiles storage engine only.\n - **distributeShardsLike**: (The default is *\"\"*): in an Enterprise Edition cluster, this attribute binds\n the specifics of sharding for the newly created collection to follow that of a\n specified existing collection.\n **Note**: Using this parameter has consequences for the prototype\n collection. It can no longer be dropped, before the sharding-imitating\n collections are dropped. Equally, backups and restores of imitating\n collections alone will generate warnings (which can be overridden)\n about missing sharding prototype.\n\n\n\n\n\n**Warning:** \nAccessing collections by their numeric ID is deprecated from version 3.4.0 on.\nYou should reference them via their names instead.\n\n\n\n\n\n\n**Example:**\n \n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/collection <<EOF\n{ \n  \"name\" : \"testCollectionBasics\" \n}\nEOF\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"waitForSync\" : false, \n  \"type\" : 2, \n  \"status\" : 3, \n  \"journalSize\" : 33554432, \n  \"keyOptions\" : { \n    \"allowUserKeys\" : true, \n    \"type\" : \"traditional\", \n    \"lastValue\" : 0 \n  }, \n  \"globallyUniqueId\" : \"h402518FDD080/102801\", \n  \"statusString\" : \"loaded\", \n  \"id\" : \"102801\", \n  \"name\" : \"testCollectionBasics\", \n  \"doCompact\" : true, \n  \"isSystem\" : false, \n  \"indexBuckets\" : 8, \n  \"isVolatile\" : false \n}\nshell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/collection <<EOF\n{ \n  \"name\" : \"testCollectionEdges\", \n  \"type\" : 3 \n}\nEOF\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"waitForSync\" : false, \n  \"type\" : 3, \n  \"status\" : 3, \n  \"journalSize\" : 33554432, \n  \"keyOptions\" : { \n    \"allowUserKeys\" : true, \n    \"type\" : \"traditional\", \n    \"lastValue\" : 0 \n  }, \n  \"globallyUniqueId\" : \"h402518FDD080/102807\", \n  \"statusString\" : \"loaded\", \n  \"id\" : \"102807\", \n  \"name\" : \"testCollectionEdges\", \n  \"doCompact\" : true, \n  \"isSystem\" : false, \n  \"indexBuckets\" : 8, \n  \"isVolatile\" : false \n}\n
\n\n\n\n\n**Example:**\n \n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"waitForSync\" : false, \n  \"type\" : 2, \n  \"status\" : 3, \n  \"journalSize\" : 33554432, \n  \"keyOptions\" : { \n    \"allowUserKeys\" : true, \n    \"type\" : \"autoincrement\", \n    \"offset\" : 0, \n    \"increment\" : 5, \n    \"lastValue\" : 0 \n  }, \n  \"globallyUniqueId\" : \"h402518FDD080/102822\", \n  \"statusString\" : \"loaded\", \n  \"id\" : \"102822\", \n  \"name\" : \"testCollectionUsers\", \n  \"doCompact\" : true, \n  \"isSystem\" : false, \n  \"indexBuckets\" : 8, \n  \"isVolatile\" : false \n}\n
\n\n\n\n\n", + "description": "\n\nCreates a new collection with a given name. The request must contain an\nobject with the following attributes.\n\n\n**A JSON object 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 This option is meaningful for the MMFiles storage engine only.\n - **replicationFactor**: (The default is *1*): in a cluster, this attribute determines how many copies\n of each shard are kept on different DBServers. The value 1 means that only one\n copy (no synchronous replication) is kept. A value of k means that k-1 replicas\n are kept. Any two copies reside on different DBServers. Replication between them is \n synchronous, that is, every write operation to the \"leader\" copy will be replicated \n to all \"follower\" replicas, before the write operation is reported successful.\n If a server fails, this is detected automatically and one of the servers holding \n copies take over, usually without an error being reported.\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*, *autoincrement*, *uuid* and *padded*.\n The *traditional* key generator generates numerical keys in ascending order.\n The *autoincrement* key generator generates numerical keys in ascending order, \n the inital offset and the spacing can be configured\n The *padded* key generator generates keys of a fixed length (16 bytes) in\n ascending lexicographical sort order. This is ideal for usage with the _RocksDB_\n engine, which will slightly benefit keys that are inserted in lexicographically\n ascending order. The key generator can be used in a single-server or cluster.\n The *uuid* key generator generates universally unique 128 bit keys, which \n are stored in hexadecimal human-readable format. This key generator can be used\n in a single-server or cluster to generate \"seemingly random\" keys. The keys \n produced by this key generator are not lexicographically sorted.\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 This option is meaningful for the MMFiles storage engine only.\n - **shardingStrategy**: This attribute specifies the name of the sharding strategy to use for \n the collection. Since ArangoDB 3.4 there are different sharding strategies \n to select from when creating a new collection. The selected *shardingStrategy* \n value will remain fixed for the collection and cannot be changed afterwards. \n This is important to make the collection keep its sharding settings and\n always find documents already distributed to shards using the same\n initial sharding algorithm.\n The available sharding strategies are:\n - *community-compat*: default sharding used by ArangoDB community\n versions before ArangoDB 3.4\n - *enterprise-compat*: default sharding used by ArangoDB enterprise\n versions before ArangoDB 3.4\n - *enterprise-smart-edge-compat*: default sharding used by smart edge\n collections in ArangoDB enterprise versions before ArangoDB 3.4\n - *hash*: default sharding used by ArangoDB 3.4 for new collections\n (excluding smart edge collections)\n - *enterprise-hash-smart-edge*: default sharding used by ArangoDB 3.4 \n for new smart edge collections\n If no sharding strategy is specified, the default will be *hash* for\n all collections, and *enterprise-hash-smart-edge* for all smart edge\n collections (requires the *Enterprise Edition* of ArangoDB). \n Manually overriding the sharding strategy does not yet provide a \n benefit, but it may later in case other sharding strategies are added.\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 This option is meaningful for the MMFiles storage engine only.\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*: edge 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 This option is meaningful for the MMFiles storage engine only.\n - **distributeShardsLike**: (The default is *\"\"*): in an Enterprise Edition cluster, this attribute binds\n the specifics of sharding for the newly created collection to follow that of a\n specified existing collection.\n **Note**: Using this parameter has consequences for the prototype\n collection. It can no longer be dropped, before the sharding-imitating\n collections are dropped. Equally, backups and restores of imitating\n collections alone will generate warnings (which can be overridden)\n about missing sharding prototype.\n\n\n\n\n\n**Warning:** \nAccessing collections by their numeric ID is deprecated from version 3.4.0 on.\nYou should reference them via their names instead.\n\n\n\n\n\n\n**Example:**\n \n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/collection <<EOF\n{ \n  \"name\" : \"testCollectionBasics\" \n}\nEOF\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"waitForSync\" : false, \n  \"type\" : 2, \n  \"status\" : 3, \n  \"journalSize\" : 33554432, \n  \"keyOptions\" : { \n    \"allowUserKeys\" : true, \n    \"type\" : \"traditional\", \n    \"lastValue\" : 0 \n  }, \n  \"globallyUniqueId\" : \"h8B2B671BCFD0/102801\", \n  \"statusString\" : \"loaded\", \n  \"id\" : \"102801\", \n  \"name\" : \"testCollectionBasics\", \n  \"doCompact\" : true, \n  \"isSystem\" : false, \n  \"indexBuckets\" : 8, \n  \"isVolatile\" : false \n}\nshell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/collection <<EOF\n{ \n  \"name\" : \"testCollectionEdges\", \n  \"type\" : 3 \n}\nEOF\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"waitForSync\" : false, \n  \"type\" : 3, \n  \"status\" : 3, \n  \"journalSize\" : 33554432, \n  \"keyOptions\" : { \n    \"allowUserKeys\" : true, \n    \"type\" : \"traditional\", \n    \"lastValue\" : 0 \n  }, \n  \"globallyUniqueId\" : \"h8B2B671BCFD0/102807\", \n  \"statusString\" : \"loaded\", \n  \"id\" : \"102807\", \n  \"name\" : \"testCollectionEdges\", \n  \"doCompact\" : true, \n  \"isSystem\" : false, \n  \"indexBuckets\" : 8, \n  \"isVolatile\" : false \n}\n
\n\n\n\n\n**Example:**\n \n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"waitForSync\" : false, \n  \"type\" : 2, \n  \"status\" : 3, \n  \"journalSize\" : 33554432, \n  \"keyOptions\" : { \n    \"allowUserKeys\" : true, \n    \"type\" : \"autoincrement\", \n    \"offset\" : 0, \n    \"increment\" : 5, \n    \"lastValue\" : 0 \n  }, \n  \"globallyUniqueId\" : \"h8B2B671BCFD0/102822\", \n  \"statusString\" : \"loaded\", \n  \"id\" : \"102822\", \n  \"name\" : \"testCollectionUsers\", \n  \"doCompact\" : true, \n  \"isSystem\" : false, \n  \"indexBuckets\" : 8, \n  \"isVolatile\" : false \n}\n
\n\n\n\n\n", "parameters": [ { "in": "body", @@ -7616,7 +7616,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\n\n**Warning:** \nAccessing collections by their numeric ID is deprecated from version 3.4.0 on.\nYou should reference them via their names instead.\n\n\n\n\n\n\n**Example:**\n Retrieving the checksum of a collection:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/collection/products/checksum\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_api/collection/products/checksum\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"globallyUniqueId\" : \"h402518FDD080/102861\", \n  \"isSystem\" : false, \n  \"id\" : \"102861\", \n  \"name\" : \"products\", \n  \"revision\" : \"_YNEaG2G--B\", \n  \"checksum\" : \"2089246606277080887\", \n  \"status\" : 3, \n  \"type\" : 2 \n}\n
\n\n\n\n\n**Example:**\n Retrieving the checksum of a collection including the collection data,\nbut not the revisions:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/collection/products/checksum?withRevisions=false&withData=true\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_api/collection/products/checksum\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"globallyUniqueId\" : \"h402518FDD080/102877\", \n  \"isSystem\" : false, \n  \"id\" : \"102877\", \n  \"name\" : \"products\", \n  \"revision\" : \"_YNEaG3G--B\", \n  \"checksum\" : \"6947804677053586772\", \n  \"status\" : 3, \n  \"type\" : 2 \n}\n
\n\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\n\n**Warning:** \nAccessing collections by their numeric ID is deprecated from version 3.4.0 on.\nYou should reference them via their names instead.\n\n\n\n\n\n\n**Example:**\n Retrieving the checksum of a collection:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/collection/products/checksum\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_api/collection/products/checksum\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"globallyUniqueId\" : \"h8B2B671BCFD0/102861\", \n  \"isSystem\" : false, \n  \"id\" : \"102861\", \n  \"name\" : \"products\", \n  \"revision\" : \"_YOn1KHS--_\", \n  \"checksum\" : \"2089246606277080887\", \n  \"status\" : 3, \n  \"type\" : 2 \n}\n
\n\n\n\n\n**Example:**\n Retrieving the checksum of a collection including the collection data,\nbut not the revisions:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/collection/products/checksum?withRevisions=false&withData=true\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_api/collection/products/checksum\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"globallyUniqueId\" : \"h8B2B671BCFD0/102877\", \n  \"isSystem\" : false, \n  \"id\" : \"102877\", \n  \"name\" : \"products\", \n  \"revision\" : \"_YOn1KJC--B\", \n  \"checksum\" : \"6947804677053586772\", \n  \"status\" : 3, \n  \"type\" : 2 \n}\n
\n\n\n\n\n", "parameters": [ { "description": "The name of the collection.\n\n", @@ -7660,7 +7660,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\n\n**Warning:** \nAccessing collections by their numeric ID is deprecated from version 3.4.0 on.\nYou should reference them via their names instead.\n\n\n\n\n\n\n**Example:**\n Requesting the number of documents:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/collection/products/count\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_api/collection/products/count\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"waitForSync\" : true, \n  \"type\" : 2, \n  \"status\" : 3, \n  \"journalSize\" : 33554432, \n  \"isVolatile\" : false, \n  \"name\" : \"products\", \n  \"doCompact\" : true, \n  \"isSystem\" : false, \n  \"count\" : 100, \n  \"keyOptions\" : { \n    \"allowUserKeys\" : true, \n    \"type\" : \"traditional\", \n    \"lastValue\" : 103198 \n  }, \n  \"globallyUniqueId\" : \"h402518FDD080/102893\", \n  \"statusString\" : \"loaded\", \n  \"id\" : \"102893\", \n  \"indexBuckets\" : 8 \n}\n
\n\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\n\n**Warning:** \nAccessing collections by their numeric ID is deprecated from version 3.4.0 on.\nYou should reference them via their names instead.\n\n\n\n\n\n\n**Example:**\n Requesting the number of documents:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/collection/products/count\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_api/collection/products/count\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"waitForSync\" : true, \n  \"type\" : 2, \n  \"status\" : 3, \n  \"journalSize\" : 33554432, \n  \"isVolatile\" : false, \n  \"name\" : \"products\", \n  \"doCompact\" : true, \n  \"isSystem\" : false, \n  \"count\" : 100, \n  \"keyOptions\" : { \n    \"allowUserKeys\" : true, \n    \"type\" : \"traditional\", \n    \"lastValue\" : 103198 \n  }, \n  \"globallyUniqueId\" : \"h8B2B671BCFD0/102893\", \n  \"statusString\" : \"loaded\", \n  \"id\" : \"102893\", \n  \"indexBuckets\" : 8 \n}\n
\n\n\n\n\n", "parameters": [ { "description": "The name of the collection.\n\n", @@ -7690,7 +7690,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 optimizations\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\n**HTTP 200**\n*A json document with these Properties is returned:*\n\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 - **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 - **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 - **readcache**:\n - **count**: The number of revisions of this collection stored in the document revisions cache.\n - **size**: The memory used for storing the revisions of this collection in the document \n revisions cache (in bytes). This figure does not include the document data but \n only mappings from document revision ids to cache entry locations.\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 - **lastTick**: 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 - **journals**:\n - **count**: The number of journal files.\n - **fileSize**: The total filesize of all journal files (in bytes).\n - **revisions**:\n - **count**: The number of revisions of this collection managed by the storage engine.\n - **size**: The memory used for storing the revisions of this collection in the storage \n engine (in bytes). This figure does not include the document data but only mappings \n from document revision ids to storage engine datafile positions.\n\n\n\n\n**Warning:** \nAccessing collections by their numeric ID is deprecated from version 3.4.0 on.\nYou should reference them via their names instead.\n\n\n\n\n\n\n**Example:**\n Using an identifier and requesting the figures of the collection:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/collection/products/figures\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_api/collection/products/figures\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"type\" : 2, \n  \"status\" : 3, \n  \"journalSize\" : 33554432, \n  \"isVolatile\" : false, \n  \"name\" : \"products\", \n  \"doCompact\" : true, \n  \"isSystem\" : false, \n  \"count\" : 1, \n  \"waitForSync\" : false, \n  \"figures\" : { \n    \"indexes\" : { \n      \"count\" : 1, \n      \"size\" : 32128 \n    }, \n    \"documentReferences\" : 0, \n    \"waitingFor\" : \"-\", \n    \"alive\" : { \n      \"count\" : 1, \n      \"size\" : 88 \n    }, \n    \"dead\" : { \n      \"count\" : 0, \n      \"size\" : 0, \n      \"deletion\" : 0 \n    }, \n    \"compactionStatus\" : { \n      \"message\" : \"skipped compaction because collection has no datafiles\", \n      \"time\" : \"2019-02-15T14:42:48Z\", \n      \"count\" : 0, \n      \"filesCombined\" : 0, \n      \"bytesRead\" : 0, \n      \"bytesWritten\" : 0 \n    }, \n    \"datafiles\" : { \n      \"count\" : 0, \n      \"fileSize\" : 0 \n    }, \n    \"journals\" : { \n      \"count\" : 1, \n      \"fileSize\" : 33554432 \n    }, \n    \"compactors\" : { \n      \"count\" : 0, \n      \"fileSize\" : 0 \n    }, \n    \"revisions\" : { \n      \"count\" : 1, \n      \"size\" : 48192 \n    }, \n    \"lastTick\" : 103215, \n    \"uncollectedLogfileEntries\" : 0 \n  }, \n  \"keyOptions\" : { \n    \"allowUserKeys\" : true, \n    \"type\" : \"traditional\", \n    \"lastValue\" : 103213 \n  }, \n  \"globallyUniqueId\" : \"h402518FDD080/103206\", \n  \"statusString\" : \"loaded\", \n  \"id\" : \"103206\", \n  \"indexBuckets\" : 8 \n}\n
\n\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 optimizations\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\n**HTTP 200**\n*A json document with these Properties is returned:*\n\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 - **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 - **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 - **readcache**:\n - **count**: The number of revisions of this collection stored in the document revisions cache.\n - **size**: The memory used for storing the revisions of this collection in the document \n revisions cache (in bytes). This figure does not include the document data but \n only mappings from document revision ids to cache entry locations.\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 - **lastTick**: 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 - **journals**:\n - **count**: The number of journal files.\n - **fileSize**: The total filesize of all journal files (in bytes).\n - **revisions**:\n - **count**: The number of revisions of this collection managed by the storage engine.\n - **size**: The memory used for storing the revisions of this collection in the storage \n engine (in bytes). This figure does not include the document data but only mappings \n from document revision ids to storage engine datafile positions.\n\n\n\n\n**Warning:** \nAccessing collections by their numeric ID is deprecated from version 3.4.0 on.\nYou should reference them via their names instead.\n\n\n\n\n\n\n**Example:**\n Using an identifier and requesting the figures of the collection:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/collection/products/figures\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_api/collection/products/figures\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"type\" : 2, \n  \"status\" : 3, \n  \"journalSize\" : 33554432, \n  \"isVolatile\" : false, \n  \"name\" : \"products\", \n  \"doCompact\" : true, \n  \"isSystem\" : false, \n  \"count\" : 1, \n  \"waitForSync\" : false, \n  \"figures\" : { \n    \"indexes\" : { \n      \"count\" : 1, \n      \"size\" : 32128 \n    }, \n    \"documentReferences\" : 0, \n    \"waitingFor\" : \"-\", \n    \"alive\" : { \n      \"count\" : 1, \n      \"size\" : 88 \n    }, \n    \"dead\" : { \n      \"count\" : 0, \n      \"size\" : 0, \n      \"deletion\" : 0 \n    }, \n    \"compactionStatus\" : { \n      \"message\" : \"skipped compaction because collection has no datafiles\", \n      \"time\" : \"2019-02-20T10:32:57Z\", \n      \"count\" : 0, \n      \"filesCombined\" : 0, \n      \"bytesRead\" : 0, \n      \"bytesWritten\" : 0 \n    }, \n    \"datafiles\" : { \n      \"count\" : 0, \n      \"fileSize\" : 0 \n    }, \n    \"journals\" : { \n      \"count\" : 1, \n      \"fileSize\" : 33554432 \n    }, \n    \"compactors\" : { \n      \"count\" : 0, \n      \"fileSize\" : 0 \n    }, \n    \"revisions\" : { \n      \"count\" : 1, \n      \"size\" : 48192 \n    }, \n    \"lastTick\" : 103215, \n    \"uncollectedLogfileEntries\" : 0 \n  }, \n  \"keyOptions\" : { \n    \"allowUserKeys\" : true, \n    \"type\" : \"traditional\", \n    \"lastValue\" : 103213 \n  }, \n  \"globallyUniqueId\" : \"h8B2B671BCFD0/103206\", \n  \"statusString\" : \"loaded\", \n  \"id\" : \"103206\", \n  \"indexBuckets\" : 8 \n}\n
\n\n\n\n\n", "parameters": [ { "description": "The name of the collection.\n\n", @@ -7730,7 +7730,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\n\n**Warning:** \nAccessing collections by their numeric ID is deprecated from version 3.4.0 on.\nYou should reference them via their names instead.\n\n\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/collection/products/load\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_api/collection/products/load\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"type\" : 2, \n  \"globallyUniqueId\" : \"h402518FDD080/103270\", \n  \"id\" : \"103270\", \n  \"count\" : 0, \n  \"isSystem\" : false, \n  \"name\" : \"products\", \n  \"status\" : 3 \n}\n
\n\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\n\n**Warning:** \nAccessing collections by their numeric ID is deprecated from version 3.4.0 on.\nYou should reference them via their names instead.\n\n\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/collection/products/load\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_api/collection/products/load\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"type\" : 2, \n  \"globallyUniqueId\" : \"h8B2B671BCFD0/103270\", \n  \"id\" : \"103270\", \n  \"count\" : 0, \n  \"isSystem\" : false, \n  \"name\" : \"products\", \n  \"status\" : 3 \n}\n
\n\n\n\n\n", "parameters": [ { "description": "The name of the collection.\n\n", @@ -7793,7 +7793,7 @@ }, "/_api/collection/{collection-name}/properties": { "get": { - "description": "\n\nIn addition to the above, the result will always contain the\n*waitForSync* attribute, and the *doCompact*, *journalSize*, \nand *isVolatile* attributes for the MMFiles storage engine.\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 This option is only present for the MMFiles storage engine.\n\n- *journalSize*: The maximal size setting for journals / datafiles\n in bytes.\n This option is only present for the MMFiles storage engine.\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*, *autoincrement*, *uuid*\n and *padded*.\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 This option is only present for the MMFiles storage engine.\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- *replicationFactor*: contains how many copies of each shard are kept on different DBServers.\n\n- *shardingStrategy*: the sharding strategy selected for the collection.\n\n\n\n\n**Warning:** \nAccessing collections by their numeric ID is deprecated from version 3.4.0 on.\nYou should reference them via their names instead.\n\n\n\n\n\n\n**Example:**\n Using an identifier:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/collection/103234/properties\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_api/collection/103234/properties\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"waitForSync\" : true, \n  \"type\" : 2, \n  \"status\" : 3, \n  \"journalSize\" : 33554432, \n  \"keyOptions\" : { \n    \"allowUserKeys\" : true, \n    \"type\" : \"traditional\", \n    \"lastValue\" : 0 \n  }, \n  \"globallyUniqueId\" : \"h402518FDD080/103234\", \n  \"statusString\" : \"loaded\", \n  \"id\" : \"103234\", \n  \"name\" : \"products\", \n  \"doCompact\" : true, \n  \"isSystem\" : false, \n  \"indexBuckets\" : 8, \n  \"isVolatile\" : false \n}\n
\n\n\n\n\n**Example:**\n Using a name:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/collection/products/properties\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_api/collection/products/properties\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"waitForSync\" : true, \n  \"type\" : 2, \n  \"status\" : 3, \n  \"journalSize\" : 33554432, \n  \"keyOptions\" : { \n    \"allowUserKeys\" : true, \n    \"type\" : \"traditional\", \n    \"lastValue\" : 0 \n  }, \n  \"globallyUniqueId\" : \"h402518FDD080/103246\", \n  \"statusString\" : \"loaded\", \n  \"id\" : \"103246\", \n  \"name\" : \"products\", \n  \"doCompact\" : true, \n  \"isSystem\" : false, \n  \"indexBuckets\" : 8, \n  \"isVolatile\" : false \n}\n
\n\n\n\n\n", + "description": "\n\nIn addition to the above, the result will always contain the\n*waitForSync* attribute, and the *doCompact*, *journalSize*, \nand *isVolatile* attributes for the MMFiles storage engine.\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 This option is only present for the MMFiles storage engine.\n\n- *journalSize*: The maximal size setting for journals / datafiles\n in bytes.\n This option is only present for the MMFiles storage engine.\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*, *autoincrement*, *uuid*\n and *padded*.\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 This option is only present for the MMFiles storage engine.\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- *replicationFactor*: contains how many copies of each shard are kept on different DBServers.\n\n- *shardingStrategy*: the sharding strategy selected for the collection.\n\n\n\n\n**Warning:** \nAccessing collections by their numeric ID is deprecated from version 3.4.0 on.\nYou should reference them via their names instead.\n\n\n\n\n\n\n**Example:**\n Using an identifier:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/collection/103234/properties\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_api/collection/103234/properties\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"waitForSync\" : true, \n  \"type\" : 2, \n  \"status\" : 3, \n  \"journalSize\" : 33554432, \n  \"keyOptions\" : { \n    \"allowUserKeys\" : true, \n    \"type\" : \"traditional\", \n    \"lastValue\" : 0 \n  }, \n  \"globallyUniqueId\" : \"h8B2B671BCFD0/103234\", \n  \"statusString\" : \"loaded\", \n  \"id\" : \"103234\", \n  \"name\" : \"products\", \n  \"doCompact\" : true, \n  \"isSystem\" : false, \n  \"indexBuckets\" : 8, \n  \"isVolatile\" : false \n}\n
\n\n\n\n\n**Example:**\n Using a name:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/collection/products/properties\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_api/collection/products/properties\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"waitForSync\" : true, \n  \"type\" : 2, \n  \"status\" : 3, \n  \"journalSize\" : 33554432, \n  \"keyOptions\" : { \n    \"allowUserKeys\" : true, \n    \"type\" : \"traditional\", \n    \"lastValue\" : 0 \n  }, \n  \"globallyUniqueId\" : \"h8B2B671BCFD0/103246\", \n  \"statusString\" : \"loaded\", \n  \"id\" : \"103246\", \n  \"name\" : \"products\", \n  \"doCompact\" : true, \n  \"isSystem\" : false, \n  \"indexBuckets\" : 8, \n  \"isVolatile\" : false \n}\n
\n\n\n\n\n", "parameters": [ { "description": "The name of the collection.\n\n", @@ -7821,7 +7821,7 @@ "x-hints": "{% hint 'warning' %}\nAccessing collections by their numeric ID is deprecated from version 3.4.0 on.\nYou should reference them via their names instead.\n{% endhint %}\n\n" }, "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*, *autoincrement*, *uuid*\n and *padded*.\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**: except for *waitForSync*, *journalSize* and *name*, collection\nproperties **cannot be changed** once a collection is created. To rename\na collection, the rename endpoint must be used.\n\n\n\n\n**Warning:** \nAccessing collections by their numeric ID is deprecated from version 3.4.0 on.\nYou should reference them via their names instead.\n\n\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/collection/products/properties <<EOF\n{ \n  \"waitForSync\" : true \n}\nEOF\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_api/collection/products/properties\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"waitForSync\" : true, \n  \"type\" : 2, \n  \"status\" : 3, \n  \"journalSize\" : 33554432, \n  \"keyOptions\" : { \n    \"allowUserKeys\" : true, \n    \"type\" : \"traditional\", \n    \"lastValue\" : 0 \n  }, \n  \"globallyUniqueId\" : \"h402518FDD080/103295\", \n  \"statusString\" : \"loaded\", \n  \"id\" : \"103295\", \n  \"name\" : \"products\", \n  \"doCompact\" : true, \n  \"isSystem\" : false, \n  \"indexBuckets\" : 8, \n  \"isVolatile\" : false \n}\n
\n\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*, *autoincrement*, *uuid*\n and *padded*.\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**: except for *waitForSync*, *journalSize* and *name*, collection\nproperties **cannot be changed** once a collection is created. To rename\na collection, the rename endpoint must be used.\n\n\n\n\n**Warning:** \nAccessing collections by their numeric ID is deprecated from version 3.4.0 on.\nYou should reference them via their names instead.\n\n\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/collection/products/properties <<EOF\n{ \n  \"waitForSync\" : true \n}\nEOF\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_api/collection/products/properties\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"waitForSync\" : true, \n  \"type\" : 2, \n  \"status\" : 3, \n  \"journalSize\" : 33554432, \n  \"keyOptions\" : { \n    \"allowUserKeys\" : true, \n    \"type\" : \"traditional\", \n    \"lastValue\" : 0 \n  }, \n  \"globallyUniqueId\" : \"h8B2B671BCFD0/103295\", \n  \"statusString\" : \"loaded\", \n  \"id\" : \"103295\", \n  \"name\" : \"products\", \n  \"doCompact\" : true, \n  \"isSystem\" : false, \n  \"indexBuckets\" : 8, \n  \"isVolatile\" : false \n}\n
\n\n\n\n\n", "parameters": [ { "description": "The name of the collection.\n\n", @@ -7881,7 +7881,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\n\n**Warning:** \nAccessing collections by their numeric ID is deprecated from version 3.4.0 on.\nYou should reference them via their names instead.\n\n\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/collection/products1/rename <<EOF\n{ \n  \"name\" : \"newname\" \n}\nEOF\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_api/collection/products1/rename\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"status\" : 3, \n  \"name\" : \"newname\", \n  \"type\" : 2, \n  \"isSystem\" : false, \n  \"globallyUniqueId\" : \"h402518FDD080/103309\", \n  \"id\" : \"103309\" \n}\n
\n\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\n\n**Warning:** \nAccessing collections by their numeric ID is deprecated from version 3.4.0 on.\nYou should reference them via their names instead.\n\n\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/collection/products1/rename <<EOF\n{ \n  \"name\" : \"newname\" \n}\nEOF\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_api/collection/products1/rename\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"status\" : 3, \n  \"name\" : \"newname\", \n  \"type\" : 2, \n  \"isSystem\" : false, \n  \"globallyUniqueId\" : \"h8B2B671BCFD0/103309\", \n  \"id\" : \"103309\" \n}\n
\n\n\n\n\n", "parameters": [ { "description": "The name of the collection to rename.\n\n", @@ -7911,7 +7911,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\n\n**Warning:** \nAccessing collections by their numeric ID is deprecated from version 3.4.0 on.\nYou should reference them via their names instead.\n\n\n\n\n\n\n**Example:**\n Retrieving the revision of a collection\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/collection/products/revision\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_api/collection/products/revision\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"waitForSync\" : false, \n  \"journalSize\" : 33554432, \n  \"isVolatile\" : false, \n  \"isSystem\" : false, \n  \"indexBuckets\" : 8, \n  \"keyOptions\" : { \n    \"allowUserKeys\" : true, \n    \"type\" : \"traditional\", \n    \"lastValue\" : 0 \n  }, \n  \"globallyUniqueId\" : \"h402518FDD080/103258\", \n  \"statusString\" : \"loaded\", \n  \"id\" : \"103258\", \n  \"revision\" : \"0\", \n  \"status\" : 3, \n  \"type\" : 2, \n  \"name\" : \"products\", \n  \"doCompact\" : true \n}\n
\n\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\n\n**Warning:** \nAccessing collections by their numeric ID is deprecated from version 3.4.0 on.\nYou should reference them via their names instead.\n\n\n\n\n\n\n**Example:**\n Retrieving the revision of a collection\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/collection/products/revision\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_api/collection/products/revision\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"waitForSync\" : false, \n  \"journalSize\" : 33554432, \n  \"isVolatile\" : false, \n  \"isSystem\" : false, \n  \"indexBuckets\" : 8, \n  \"keyOptions\" : { \n    \"allowUserKeys\" : true, \n    \"type\" : \"traditional\", \n    \"lastValue\" : 0 \n  }, \n  \"globallyUniqueId\" : \"h8B2B671BCFD0/103258\", \n  \"statusString\" : \"loaded\", \n  \"id\" : \"103258\", \n  \"revision\" : \"0\", \n  \"status\" : 3, \n  \"type\" : 2, \n  \"name\" : \"products\", \n  \"doCompact\" : true \n}\n
\n\n\n\n\n", "parameters": [ { "description": "The name of the collection.\n\n", @@ -7971,7 +7971,7 @@ }, "/_api/collection/{collection-name}/truncate": { "put": { - "description": "\n\nRemoves all documents from the collection, but leaves the indexes intact.\n\n\n\n\n**Warning:** \nAccessing collections by their numeric ID is deprecated from version 3.4.0 on.\nYou should reference them via their names instead.\n\n\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/collection/products/truncate\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_api/collection/products/truncate\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"status\" : 3, \n  \"name\" : \"products\", \n  \"type\" : 2, \n  \"isSystem\" : false, \n  \"globallyUniqueId\" : \"h402518FDD080/103319\", \n  \"id\" : \"103319\" \n}\n
\n\n\n\n\n", + "description": "\n\nRemoves all documents from the collection, but leaves the indexes intact.\n\n\n\n\n**Warning:** \nAccessing collections by their numeric ID is deprecated from version 3.4.0 on.\nYou should reference them via their names instead.\n\n\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/collection/products/truncate\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_api/collection/products/truncate\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"status\" : 3, \n  \"name\" : \"products\", \n  \"type\" : 2, \n  \"isSystem\" : false, \n  \"globallyUniqueId\" : \"h8B2B671BCFD0/103319\", \n  \"id\" : \"103319\" \n}\n
\n\n\n\n\n", "parameters": [ { "description": "The name of the collection.\n\n", @@ -8001,7 +8001,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\n\n**Warning:** \nAccessing collections by their numeric ID is deprecated from version 3.4.0 on.\nYou should reference them via their names instead.\n\n\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/collection/products/unload\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_api/collection/products/unload\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"status\" : 4, \n  \"name\" : \"products\", \n  \"type\" : 2, \n  \"isSystem\" : false, \n  \"globallyUniqueId\" : \"h402518FDD080/103332\", \n  \"id\" : \"103332\" \n}\n
\n\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\n\n**Warning:** \nAccessing collections by their numeric ID is deprecated from version 3.4.0 on.\nYou should reference them via their names instead.\n\n\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/collection/products/unload\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_api/collection/products/unload\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"status\" : 4, \n  \"name\" : \"products\", \n  \"type\" : 2, \n  \"isSystem\" : false, \n  \"globallyUniqueId\" : \"h8B2B671BCFD0/103332\", \n  \"id\" : \"103332\" \n}\n
\n\n\n\n\n", "parameters": [ { "description": "\n", @@ -8031,7 +8031,7 @@ }, "/_api/cursor": { "post": { - "description": "\n**A JSON object 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 have a performance impact for some queries\n in the future so this option is turned off by default, and \"count\"\n is only returned when requested.\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 results 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 - **memoryLimit**: the maximum number of memory (measured in bytes) that the query is allowed to\n use. If set, then the query will fail with error \"resource limit exceeded\" in\n case it allocates too much memory. A value of *0* indicates that there is no\n memory limit.\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 (default: 30 seconds).\n - **query**: contains the query string to be executed\n - **bindVars** (object): key/value pairs representing the bind parameters.\n - **options**:\n - **failOnWarning**: When set to *true*, the query will throw an exception and abort instead of producing\n a warning. This option should be used during development to catch potential issues\n early. When the attribute is set to *false*, warnings will not be propagated to\n exceptions and will be returned with the query result.\n There is also a server configuration option `--query.fail-on-warning` for setting the\n default value for *failOnWarning* so it does not need to be set on a per-query level.\n - **profile**: If set to *true* or *1*, then the additional query profiling information will be returned\n in the sub-attribute *profile* of the *extra* return attribute, if the query result\n is not served from the query cache. Set to *2* the query will include execution stats\n per query plan node in sub-attribute *stats.nodes* of the *extra* return attribute.\n Additionally the query plan is returned in the sub-attribute *extra.plan*.\n - **maxTransactionSize**: Transaction size limit in bytes. Honored by the RocksDB storage engine only.\n - **stream**: Specify *true* and the query will be executed in a **streaming** fashion. The query result is\n not stored on the server, but calculated on the fly. *Beware*: long-running queries will\n need to hold the collection locks for as long as the query cursor exists. \n When set to *false* a query will be executed right away in its entirety. \n In that case query results are either returned right away (if the result set is small enough),\n or stored on the arangod instance and accessible via the cursor API (with respect to the `ttl`). \n It is advisable to *only* use this option on short-running queries or without exclusive locks \n (write-locks on MMFiles).\n Please note that the query options `cache`, `count` and `fullCount` will not work on streaming queries.\n Additionally query statistics, warnings and profiling data will only be available after the query is finished.\n The default value is *false*\n - **skipInaccessibleCollections**: AQL queries (especially graph traversals) will treat collection to which a user has no access rights as if these collections were empty. Instead of returning a forbidden access error, your queries will execute normally. This is intended to help with certain use-cases: A graph contains several collections and different users execute AQL queries on that graph. You can now naturally limit the accessible results by changing the access rights of users on collections. This feature is only available in the Enterprise Edition.\n - **maxWarningCount**: Limits the maximum number of warnings a query will return. The number of warnings\n a query will return is limited to 10 by default, but that number can be increased\n or decreased by setting this attribute.\n - **intermediateCommitCount**: Maximum number of operations after which an intermediate commit is performed\n automatically. Honored by the RocksDB storage engine only.\n - **satelliteSyncWait**: This *Enterprise Edition* parameter allows to configure how long a DBServer will have time\n to bring the satellite collections involved in the query into sync.\n The default value is *60.0* (seconds). When the max time has been reached the query\n will be stopped.\n - **fullCount**: if set to *true* and the query contains a *LIMIT* clause, then the\n result will have an *extra* attribute with the sub-attributes *stats*\n and *fullCount*, `{ ... , \"extra\": { \"stats\": { \"fullCount\": 123 } } }`.\n The *fullCount* attribute will contain the number of documents in the result before the\n last top-level LIMIT in the query was applied. It can be used to count the number of \n documents that 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* attribute may only\n be present in the result if the query has a top-level LIMIT clause and the LIMIT \n clause is actually used in the query.\n - **intermediateCommitSize**: Maximum total size of operations after which an intermediate commit is performed\n automatically. Honored by the RocksDB storage engine only.\n - **optimizer.rules** (string): 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.\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\n**HTTP 201**\n*A json document with these Properties is returned:*\n\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** (anonymous json object): an array of result documents (might be empty if query has no results)\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\n**HTTP 400**\n*A json document with these Properties is returned:*\n\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](../../Manual/Appendix/ErrorCodes.html).\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\n\n**Example:**\n Execute a query and extract the result in a single go\n\n
shell> curl -X POST --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : [ \n    { \n      \"_key\" : \"103418\", \n      \"_id\" : \"products/103418\", \n      \"_rev\" : \"_YNEaJbG--_\", \n      \"hello1\" : \"world1\" \n    }, \n    { \n      \"_key\" : \"103422\", \n      \"_id\" : \"products/103422\", \n      \"_rev\" : \"_YNEaJbG--B\", \n      \"hello2\" : \"world1\" \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      \"httpRequests\" : 0, \n      \"executionTime\" : 0.00015401840209960938, \n      \"peakMemoryUsage\" : 18072 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n**Example:**\n Execute a query and extract a part of the result\n\n
shell> curl -X POST --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : [ \n    { \n      \"_key\" : \"103402\", \n      \"_id\" : \"products/103402\", \n      \"_rev\" : \"_YNEaJaK--_\", \n      \"hello5\" : \"world1\" \n    }, \n    { \n      \"_key\" : \"103389\", \n      \"_id\" : \"products/103389\", \n      \"_rev\" : \"_YNEaJaG--_\", \n      \"hello1\" : \"world1\" \n    } \n  ], \n  \"hasMore\" : true, \n  \"id\" : \"103405\", \n  \"count\" : 5, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 5, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 0, \n      \"httpRequests\" : 0, \n      \"executionTime\" : 0.0001316070556640625, \n      \"peakMemoryUsage\" : 18120 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"cached\" : false, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n**Example:**\n Using the query option \"fullCount\"\n\n
shell> curl -X POST --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\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      \"httpRequests\" : 0, \n      \"fullCount\" : 500, \n      \"executionTime\" : 0.0008275508880615234, \n      \"peakMemoryUsage\" : 147416 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n**Example:**\n Enabling and disabling optimizer rules\n\n
shell> curl -X POST --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\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      \"httpRequests\" : 0, \n      \"executionTime\" : 0.00018334388732910156, \n      \"peakMemoryUsage\" : 82856 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n**Example:**\n Execute instrumented query and return result together with\nexecution plan and profiling information\n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/cursor <<EOF\n{ \n  \"query\" : \"LET s = SLEEP(0.25) LET t = SLEEP(0.5) RETURN 1\", \n  \"count\" : true, \n  \"options\" : { \n    \"profile\" : 2 \n  } \n}\nEOF\n\nHTTP/1.1 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : [ \n    1 \n  ], \n  \"hasMore\" : false, \n  \"count\" : 1, \n  \"cached\" : false, \n  \"extra\" : { \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\" : 4, \n          \"estimatedCost\" : 2, \n          \"estimatedNrItems\" : 1, \n          \"expression\" : { \n            \"type\" : \"value\", \n            \"typeID\" : 40, \n            \"value\" : 1, \n            \"vType\" : \"int\", \n            \"vTypeID\" : 2 \n          }, \n          \"outVariable\" : { \n            \"id\" : 3, \n            \"name\" : \"2\" \n          }, \n          \"canThrow\" : false, \n          \"expressionType\" : \"json\" \n        }, \n        { \n          \"type\" : \"CalculationNode\", \n          \"dependencies\" : [ \n            4 \n          ], \n          \"id\" : 2, \n          \"estimatedCost\" : 3, \n          \"estimatedNrItems\" : 1, \n          \"expression\" : { \n            \"type\" : \"function call\", \n            \"typeID\" : 47, \n            \"name\" : \"SLEEP\", \n            \"subNodes\" : [ \n              { \n                \"type\" : \"array\", \n                \"typeID\" : 41, \n                \"subNodes\" : [ \n                  { \n                    \"type\" : \"value\", \n                    \"typeID\" : 40, \n                    \"value\" : 0.25, \n                    \"vType\" : \"double\", \n                    \"vTypeID\" : 3 \n                  } \n                ] \n              } \n            ] \n          }, \n          \"outVariable\" : { \n            \"id\" : 0, \n            \"name\" : \"s\" \n          }, \n          \"canThrow\" : false, \n          \"expressionType\" : \"simple\" \n        }, \n        { \n          \"type\" : \"CalculationNode\", \n          \"dependencies\" : [ \n            2 \n          ], \n          \"id\" : 3, \n          \"estimatedCost\" : 4, \n          \"estimatedNrItems\" : 1, \n          \"expression\" : { \n            \"type\" : \"function call\", \n            \"typeID\" : 47, \n            \"name\" : \"SLEEP\", \n            \"subNodes\" : [ \n              { \n                \"type\" : \"array\", \n                \"typeID\" : 41, \n                \"subNodes\" : [ \n                  { \n                    \"type\" : \"value\", \n                    \"typeID\" : 40, \n                    \"value\" : 0.5, \n                    \"vType\" : \"double\", \n                    \"vTypeID\" : 3 \n                  } \n                ] \n              } \n            ] \n          }, \n          \"outVariable\" : { \n            \"id\" : 1, \n            \"name\" : \"t\" \n          }, \n          \"canThrow\" : false, \n          \"expressionType\" : \"simple\" \n        }, \n        { \n          \"type\" : \"ReturnNode\", \n          \"dependencies\" : [ \n            3 \n          ], \n          \"id\" : 5, \n          \"estimatedCost\" : 5, \n          \"estimatedNrItems\" : 1, \n          \"inVariable\" : { \n            \"id\" : 3, \n            \"name\" : \"2\" \n          }, \n          \"count\" : true \n        } \n      ], \n      \"rules\" : [ \n        \"move-calculations-up\" \n      ], \n      \"collections\" : [ ], \n      \"variables\" : [ \n        { \n          \"id\" : 3, \n          \"name\" : \"2\" \n        }, \n        { \n          \"id\" : 1, \n          \"name\" : \"t\" \n        }, \n        { \n          \"id\" : 0, \n          \"name\" : \"s\" \n        } \n      ], \n      \"estimatedCost\" : 5, \n      \"estimatedNrItems\" : 1, \n      \"initialize\" : true, \n      \"isModificationQuery\" : false \n    }, \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 0, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 0, \n      \"httpRequests\" : 0, \n      \"executionTime\" : 0.783747673034668, \n      \"peakMemoryUsage\" : 2312, \n      \"nodes\" : [ \n        { \n          \"id\" : 1, \n          \"calls\" : 1, \n          \"items\" : 1, \n          \"runtime\" : 0.0000021457672119140625 \n        }, \n        { \n          \"id\" : 2, \n          \"calls\" : 1, \n          \"items\" : 1, \n          \"runtime\" : 0.2712290287017822 \n        }, \n        { \n          \"id\" : 3, \n          \"calls\" : 1, \n          \"items\" : 1, \n          \"runtime\" : 0.7835254669189453 \n        }, \n        { \n          \"id\" : 4, \n          \"calls\" : 1, \n          \"items\" : 1, \n          \"runtime\" : 0.000005245208740234375 \n        }, \n        { \n          \"id\" : 5, \n          \"calls\" : 1, \n          \"items\" : 1, \n          \"runtime\" : 0.7835321426391602 \n        } \n      ] \n    }, \n    \"warnings\" : [ ], \n    \"profile\" : { \n      \"initializing\" : 0.000001430511474609375, \n      \"parsing\" : 0.000020265579223632812, \n      \"optimizing ast\" : 0.0000030994415283203125, \n      \"loading collections\" : 0.0000016689300537109375, \n      \"instantiating plan\" : 0.000008821487426757812, \n      \"optimizing plan\" : 0.00005316734313964844, \n      \"executing\" : 0.7835474014282227, \n      \"finalizing\" : 0.00010704994201660156 \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n**Example:**\n Execute a data-modification query and retrieve the number of\nmodified documents\n\n
shell> curl -X POST --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\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      \"httpRequests\" : 0, \n      \"executionTime\" : 0.00016760826110839844, \n      \"peakMemoryUsage\" : 18040 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n**Example:**\n Execute a data-modification query with option *ignoreErrors*\n\n
shell> curl -X POST --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\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      \"httpRequests\" : 0, \n      \"executionTime\" : 0.0001366138458251953, \n      \"peakMemoryUsage\" : 1944 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n**Example:**\n Bad query - Missing body\n\n
shell> curl -X POST --header 'accept: application/json' --dump - http://localhost:8529/_api/cursor\n\nHTTP/1.1 Bad Request\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"query is empty\", \n  \"code\" : 400, \n  \"errorNum\" : 1502 \n}\n
\n\n\n\n\n**Example:**\n Bad query - Unknown collection\n\n
shell> curl -X POST --header 'accept: application/json' --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 Not Found\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"AQL: collection or view not found: unknowncoll (while parsing)\", \n  \"code\" : 404, \n  \"errorNum\" : 1203 \n}\n
\n\n\n\n\n**Example:**\n Bad query - Execute a data-modification query that attempts to remove a non-existing\ndocument\n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/cursor <<EOF\n{ \n  \"query\" : \"REMOVE 'foo' IN products\" \n}\nEOF\n\nHTTP/1.1 Not Found\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"AQL: document not found (while executing)\", \n  \"code\" : 404, \n  \"errorNum\" : 1202 \n}\n
\n\n\n\n\n\n", + "description": "\n**A JSON object 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 have a performance impact for some queries\n in the future so this option is turned off by default, and \"count\"\n is only returned when requested.\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 results 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 - **memoryLimit**: the maximum number of memory (measured in bytes) that the query is allowed to\n use. If set, then the query will fail with error \"resource limit exceeded\" in\n case it allocates too much memory. A value of *0* indicates that there is no\n memory limit.\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 (default: 30 seconds).\n - **query**: contains the query string to be executed\n - **bindVars** (object): key/value pairs representing the bind parameters.\n - **options**:\n - **failOnWarning**: When set to *true*, the query will throw an exception and abort instead of producing\n a warning. This option should be used during development to catch potential issues\n early. When the attribute is set to *false*, warnings will not be propagated to\n exceptions and will be returned with the query result.\n There is also a server configuration option `--query.fail-on-warning` for setting the\n default value for *failOnWarning* so it does not need to be set on a per-query level.\n - **profile**: If set to *true* or *1*, then the additional query profiling information will be returned\n in the sub-attribute *profile* of the *extra* return attribute, if the query result\n is not served from the query cache. Set to *2* the query will include execution stats\n per query plan node in sub-attribute *stats.nodes* of the *extra* return attribute.\n Additionally the query plan is returned in the sub-attribute *extra.plan*.\n - **maxTransactionSize**: Transaction size limit in bytes. Honored by the RocksDB storage engine only.\n - **stream**: Specify *true* and the query will be executed in a **streaming** fashion. The query result is\n not stored on the server, but calculated on the fly. *Beware*: long-running queries will\n need to hold the collection locks for as long as the query cursor exists. \n When set to *false* a query will be executed right away in its entirety. \n In that case query results are either returned right away (if the result set is small enough),\n or stored on the arangod instance and accessible via the cursor API (with respect to the `ttl`). \n It is advisable to *only* use this option on short-running queries or without exclusive locks \n (write-locks on MMFiles).\n Please note that the query options `cache`, `count` and `fullCount` will not work on streaming queries.\n Additionally query statistics, warnings and profiling data will only be available after the query is finished.\n The default value is *false*\n - **skipInaccessibleCollections**: AQL queries (especially graph traversals) will treat collection to which a user has no access rights as if these collections were empty. Instead of returning a forbidden access error, your queries will execute normally. This is intended to help with certain use-cases: A graph contains several collections and different users execute AQL queries on that graph. You can now naturally limit the accessible results by changing the access rights of users on collections. This feature is only available in the Enterprise Edition.\n - **maxWarningCount**: Limits the maximum number of warnings a query will return. The number of warnings\n a query will return is limited to 10 by default, but that number can be increased\n or decreased by setting this attribute.\n - **intermediateCommitCount**: Maximum number of operations after which an intermediate commit is performed\n automatically. Honored by the RocksDB storage engine only.\n - **satelliteSyncWait**: This *Enterprise Edition* parameter allows to configure how long a DBServer will have time\n to bring the satellite collections involved in the query into sync.\n The default value is *60.0* (seconds). When the max time has been reached the query\n will be stopped.\n - **fullCount**: if set to *true* and the query contains a *LIMIT* clause, then the\n result will have an *extra* attribute with the sub-attributes *stats*\n and *fullCount*, `{ ... , \"extra\": { \"stats\": { \"fullCount\": 123 } } }`.\n The *fullCount* attribute will contain the number of documents in the result before the\n last top-level LIMIT in the query was applied. It can be used to count the number of \n documents that 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* attribute may only\n be present in the result if the query has a top-level LIMIT clause and the LIMIT \n clause is actually used in the query.\n - **intermediateCommitSize**: Maximum total size of operations after which an intermediate commit is performed\n automatically. Honored by the RocksDB storage engine only.\n - **optimizer.rules** (string): 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.\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\n**HTTP 201**\n*A json document with these Properties is returned:*\n\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** (anonymous json object): an array of result documents (might be empty if query has no results)\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\n**HTTP 400**\n*A json document with these Properties is returned:*\n\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](../../Manual/Appendix/ErrorCodes.html).\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\n\n**Example:**\n Execute a query and extract the result in a single go\n\n
shell> curl -X POST --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : [ \n    { \n      \"_key\" : \"103419\", \n      \"_id\" : \"products/103419\", \n      \"_rev\" : \"_YOn1M3u--_\", \n      \"hello1\" : \"world1\" \n    }, \n    { \n      \"_key\" : \"103423\", \n      \"_id\" : \"products/103423\", \n      \"_rev\" : \"_YOn1M3u--B\", \n      \"hello2\" : \"world1\" \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      \"httpRequests\" : 0, \n      \"executionTime\" : 0.0001518726348876953, \n      \"peakMemoryUsage\" : 18072 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n**Example:**\n Execute a query and extract a part of the result\n\n
shell> curl -X POST --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : [ \n    { \n      \"_key\" : \"103394\", \n      \"_id\" : \"products/103394\", \n      \"_rev\" : \"_YOn1M2q--D\", \n      \"hello2\" : \"world1\" \n    }, \n    { \n      \"_key\" : \"103403\", \n      \"_id\" : \"products/103403\", \n      \"_rev\" : \"_YOn1M2u--D\", \n      \"hello5\" : \"world1\" \n    } \n  ], \n  \"hasMore\" : true, \n  \"id\" : \"103406\", \n  \"count\" : 5, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 5, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 0, \n      \"httpRequests\" : 0, \n      \"executionTime\" : 0.00016999244689941406, \n      \"peakMemoryUsage\" : 18120 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"cached\" : false, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n**Example:**\n Using the query option \"fullCount\"\n\n
shell> curl -X POST --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\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      \"httpRequests\" : 0, \n      \"fullCount\" : 500, \n      \"executionTime\" : 0.0007300376892089844, \n      \"peakMemoryUsage\" : 147416 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n**Example:**\n Enabling and disabling optimizer rules\n\n
shell> curl -X POST --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\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      \"httpRequests\" : 0, \n      \"executionTime\" : 0.0001652240753173828, \n      \"peakMemoryUsage\" : 82856 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n**Example:**\n Execute instrumented query and return result together with\nexecution plan and profiling information\n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/cursor <<EOF\n{ \n  \"query\" : \"LET s = SLEEP(0.25) LET t = SLEEP(0.5) RETURN 1\", \n  \"count\" : true, \n  \"options\" : { \n    \"profile\" : 2 \n  } \n}\nEOF\n\nHTTP/1.1 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : [ \n    1 \n  ], \n  \"hasMore\" : false, \n  \"count\" : 1, \n  \"cached\" : false, \n  \"extra\" : { \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\" : 4, \n          \"estimatedCost\" : 2, \n          \"estimatedNrItems\" : 1, \n          \"expression\" : { \n            \"type\" : \"value\", \n            \"typeID\" : 40, \n            \"value\" : 1, \n            \"vType\" : \"int\", \n            \"vTypeID\" : 2 \n          }, \n          \"outVariable\" : { \n            \"id\" : 3, \n            \"name\" : \"2\" \n          }, \n          \"canThrow\" : false, \n          \"expressionType\" : \"json\" \n        }, \n        { \n          \"type\" : \"CalculationNode\", \n          \"dependencies\" : [ \n            4 \n          ], \n          \"id\" : 2, \n          \"estimatedCost\" : 3, \n          \"estimatedNrItems\" : 1, \n          \"expression\" : { \n            \"type\" : \"function call\", \n            \"typeID\" : 47, \n            \"name\" : \"SLEEP\", \n            \"subNodes\" : [ \n              { \n                \"type\" : \"array\", \n                \"typeID\" : 41, \n                \"subNodes\" : [ \n                  { \n                    \"type\" : \"value\", \n                    \"typeID\" : 40, \n                    \"value\" : 0.25, \n                    \"vType\" : \"double\", \n                    \"vTypeID\" : 3 \n                  } \n                ] \n              } \n            ] \n          }, \n          \"outVariable\" : { \n            \"id\" : 0, \n            \"name\" : \"s\" \n          }, \n          \"canThrow\" : false, \n          \"expressionType\" : \"simple\" \n        }, \n        { \n          \"type\" : \"CalculationNode\", \n          \"dependencies\" : [ \n            2 \n          ], \n          \"id\" : 3, \n          \"estimatedCost\" : 4, \n          \"estimatedNrItems\" : 1, \n          \"expression\" : { \n            \"type\" : \"function call\", \n            \"typeID\" : 47, \n            \"name\" : \"SLEEP\", \n            \"subNodes\" : [ \n              { \n                \"type\" : \"array\", \n                \"typeID\" : 41, \n                \"subNodes\" : [ \n                  { \n                    \"type\" : \"value\", \n                    \"typeID\" : 40, \n                    \"value\" : 0.5, \n                    \"vType\" : \"double\", \n                    \"vTypeID\" : 3 \n                  } \n                ] \n              } \n            ] \n          }, \n          \"outVariable\" : { \n            \"id\" : 1, \n            \"name\" : \"t\" \n          }, \n          \"canThrow\" : false, \n          \"expressionType\" : \"simple\" \n        }, \n        { \n          \"type\" : \"ReturnNode\", \n          \"dependencies\" : [ \n            3 \n          ], \n          \"id\" : 5, \n          \"estimatedCost\" : 5, \n          \"estimatedNrItems\" : 1, \n          \"inVariable\" : { \n            \"id\" : 3, \n            \"name\" : \"2\" \n          }, \n          \"count\" : true \n        } \n      ], \n      \"rules\" : [ \n        \"move-calculations-up\" \n      ], \n      \"collections\" : [ ], \n      \"variables\" : [ \n        { \n          \"id\" : 3, \n          \"name\" : \"2\" \n        }, \n        { \n          \"id\" : 1, \n          \"name\" : \"t\" \n        }, \n        { \n          \"id\" : 0, \n          \"name\" : \"s\" \n        } \n      ], \n      \"estimatedCost\" : 5, \n      \"estimatedNrItems\" : 1, \n      \"initialize\" : true, \n      \"isModificationQuery\" : false \n    }, \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 0, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 0, \n      \"httpRequests\" : 0, \n      \"executionTime\" : 0.7833671569824219, \n      \"peakMemoryUsage\" : 2312, \n      \"nodes\" : [ \n        { \n          \"id\" : 1, \n          \"calls\" : 1, \n          \"items\" : 1, \n          \"runtime\" : 0.000001430511474609375 \n        }, \n        { \n          \"id\" : 2, \n          \"calls\" : 1, \n          \"items\" : 1, \n          \"runtime\" : 0.2710738182067871 \n        }, \n        { \n          \"id\" : 3, \n          \"calls\" : 1, \n          \"items\" : 1, \n          \"runtime\" : 0.7831518650054932 \n        }, \n        { \n          \"id\" : 4, \n          \"calls\" : 1, \n          \"items\" : 1, \n          \"runtime\" : 0.0000030994415283203125 \n        }, \n        { \n          \"id\" : 5, \n          \"calls\" : 1, \n          \"items\" : 1, \n          \"runtime\" : 0.7831592559814453 \n        } \n      ] \n    }, \n    \"warnings\" : [ ], \n    \"profile\" : { \n      \"initializing\" : 7.152557373046875e-7, \n      \"parsing\" : 0.0000171661376953125, \n      \"optimizing ast\" : 0.0000019073486328125, \n      \"loading collections\" : 0.000001430511474609375, \n      \"instantiating plan\" : 0.0000069141387939453125, \n      \"optimizing plan\" : 0.00004315376281738281, \n      \"executing\" : 0.7831752300262451, \n      \"finalizing\" : 0.0001163482666015625 \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n**Example:**\n Execute a data-modification query and retrieve the number of\nmodified documents\n\n
shell> curl -X POST --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\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      \"httpRequests\" : 0, \n      \"executionTime\" : 0.0001308917999267578, \n      \"peakMemoryUsage\" : 18040 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n**Example:**\n Execute a data-modification query with option *ignoreErrors*\n\n
shell> curl -X POST --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\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      \"httpRequests\" : 0, \n      \"executionTime\" : 0.00013828277587890625, \n      \"peakMemoryUsage\" : 1944 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n**Example:**\n Bad query - Missing body\n\n
shell> curl -X POST --header 'accept: application/json' --dump - http://localhost:8529/_api/cursor\n\nHTTP/1.1 Bad Request\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"query is empty\", \n  \"code\" : 400, \n  \"errorNum\" : 1502 \n}\n
\n\n\n\n\n**Example:**\n Bad query - Unknown collection\n\n
shell> curl -X POST --header 'accept: application/json' --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 Not Found\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"AQL: collection or view not found: unknowncoll (while parsing)\", \n  \"code\" : 404, \n  \"errorNum\" : 1203 \n}\n
\n\n\n\n\n**Example:**\n Bad query - Execute a data-modification query that attempts to remove a non-existing\ndocument\n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/cursor <<EOF\n{ \n  \"query\" : \"REMOVE 'foo' IN products\" \n}\nEOF\n\nHTTP/1.1 Not Found\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"AQL: document not found (while executing)\", \n  \"code\" : 404, \n  \"errorNum\" : 1202 \n}\n
\n\n\n\n\n\n", "parameters": [ { "in": "body", @@ -8079,7 +8079,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\n\n**Example:**\n \n\n
shell> curl -X POST --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : [ \n    { \n      \"_key\" : \"103442\", \n      \"_id\" : \"products/103442\", \n      \"_rev\" : \"_YNEaJce--_\", \n      \"hello1\" : \"world1\" \n    }, \n    { \n      \"_key\" : \"103455\", \n      \"_id\" : \"products/103455\", \n      \"_rev\" : \"_YNEaJci--_\", \n      \"hello5\" : \"world1\" \n    } \n  ], \n  \"hasMore\" : true, \n  \"id\" : \"103458\", \n  \"count\" : 5, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 5, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 0, \n      \"httpRequests\" : 0, \n      \"executionTime\" : 0.00014257431030273438, \n      \"peakMemoryUsage\" : 18120 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"cached\" : false, \n  \"error\" : false, \n  \"code\" : 201 \n}\nshell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/cursor/103458\n\n
\n\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\n\n**Example:**\n \n\n
shell> curl -X POST --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : [ \n    { \n      \"_key\" : \"103456\", \n      \"_id\" : \"products/103456\", \n      \"_rev\" : \"_YOn1M5---H\", \n      \"hello5\" : \"world1\" \n    }, \n    { \n      \"_key\" : \"103443\", \n      \"_id\" : \"products/103443\", \n      \"_rev\" : \"_YOn1M5---_\", \n      \"hello1\" : \"world1\" \n    } \n  ], \n  \"hasMore\" : true, \n  \"id\" : \"103459\", \n  \"count\" : 5, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 5, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 0, \n      \"httpRequests\" : 0, \n      \"executionTime\" : 0.00012540817260742188, \n      \"peakMemoryUsage\" : 18120 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"cached\" : false, \n  \"error\" : false, \n  \"code\" : 201 \n}\nshell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/cursor/103459\n\n
\n\n\n\n\n", "parameters": [ { "description": "The id of the cursor\n\n", @@ -8107,7 +8107,7 @@ "x-hints": "" }, "put": { - "description": "\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\n\n**Example:**\n Valid request for next batch\n\n
shell> curl -X POST --header 'accept: application/json' --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 --header 'accept: application/json' --dump - http://localhost:8529/_api/cursor/103541\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : [ \n    { \n      \"_key\" : \"103532\", \n      \"_id\" : \"products/103532\", \n      \"_rev\" : \"_YNEaJgq--B\", \n      \"hello3\" : \"world1\" \n    }, \n    { \n      \"_key\" : \"103535\", \n      \"_id\" : \"products/103535\", \n      \"_rev\" : \"_YNEaJgq--D\", \n      \"hello4\" : \"world1\" \n    } \n  ], \n  \"hasMore\" : true, \n  \"id\" : \"103541\", \n  \"count\" : 5, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 5, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 0, \n      \"httpRequests\" : 0, \n      \"executionTime\" : 0.00013709068298339844, \n      \"peakMemoryUsage\" : 18120 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"cached\" : false, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n Missing identifier\n\n
shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/cursor\n\nHTTP/1.1 Bad Request\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"expecting PUT /_api/cursor/<cursor-id>\", \n  \"code\" : 400, \n  \"errorNum\" : 400 \n}\n
\n\n\n\n\n**Example:**\n Unknown identifier\n\n
shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/cursor/123123\n\nHTTP/1.1 Not Found\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"cursor not found\", \n  \"code\" : 404, \n  \"errorNum\" : 1600 \n}\n
\n\n\n\n\n", + "description": "\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\n\n**Example:**\n Valid request for next batch\n\n
shell> curl -X POST --header 'accept: application/json' --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 --header 'accept: application/json' --dump - http://localhost:8529/_api/cursor/103542\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : [ \n    { \n      \"_key\" : \"103539\", \n      \"_id\" : \"products/103539\", \n      \"_rev\" : \"_YOn1M9G--B\", \n      \"hello5\" : \"world1\" \n    }, \n    { \n      \"_key\" : \"103526\", \n      \"_id\" : \"products/103526\", \n      \"_rev\" : \"_YOn1M9C--B\", \n      \"hello1\" : \"world1\" \n    } \n  ], \n  \"hasMore\" : true, \n  \"id\" : \"103542\", \n  \"count\" : 5, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 5, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 0, \n      \"httpRequests\" : 0, \n      \"executionTime\" : 0.00013566017150878906, \n      \"peakMemoryUsage\" : 18120 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"cached\" : false, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n Missing identifier\n\n
shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/cursor\n\nHTTP/1.1 Bad Request\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"expecting PUT /_api/cursor/<cursor-id>\", \n  \"code\" : 400, \n  \"errorNum\" : 400 \n}\n
\n\n\n\n\n**Example:**\n Unknown identifier\n\n
shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/cursor/123123\n\nHTTP/1.1 Not Found\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"cursor not found\", \n  \"code\" : 404, \n  \"errorNum\" : 1600 \n}\n
\n\n\n\n\n", "parameters": [ { "description": "The name of the cursor\n\n", @@ -8199,7 +8199,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\n\n**Example:**\n \n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/database/current\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"result\" : { \n    \"name\" : \"_system\", \n    \"id\" : \"1\", \n    \"path\" : \"/tmp/arangosh_q2Dy3I/tmp-13879-1274251971/data/databases/database-1\", \n    \"isSystem\" : true \n  } \n}\n
\n\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\n\n**Example:**\n \n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/database/current\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"result\" : { \n    \"name\" : \"_system\", \n    \"id\" : \"1\", \n    \"path\" : \"/tmp/arangosh_uprJb4/tmp-27793-56941049/data/databases/database-1\", \n    \"isSystem\" : true \n  } \n}\n
\n\n\n\n\n", "parameters": [], "responses": { "200": { @@ -8280,7 +8280,7 @@ }, "/_api/document/{collection}": { "delete": { - "description": "\n\nThe body of the request is an array consisting of selectors for\ndocuments. A selector can either be a string with a key or a string\nwith a document handle or an object with a *_key* attribute. This\nAPI call removes all specified documents from *collection*. If the\nselector is an object and has a *_rev* attribute, it is a\nprecondition that the actual revision of the removed document in the\ncollection is the specified one.\n\nThe body of the response is an array of the same length as the input\narray. For each input selector, the output contains a JSON object\nwith the information about the outcome of the operation. If no error\noccurred, an object is built in which the attribute *_id* contains\nthe known *document-handle* of the removed document, *_key* contains\nthe key which uniquely identifies a document in a given collection,\nand the attribute *_rev* contains the document revision. In case of\nan error, an object with the attribute *error* set to *true* and\n*errorCode* set to the error code is built.\n\nIf the *waitForSync* parameter is not specified or set to *false*,\nthen the collection's default *waitForSync* behavior is applied.\nThe *waitForSync* query parameter cannot be used to disable\nsynchronization for collections that have a default *waitForSync*\nvalue of *true*.\n\nIf the query parameter *returnOld* is *true*, then\nthe complete previous revision of the document\nis returned under the *old* attribute in the result.\n\nNote that if any precondition is violated or an error occurred with\nsome of the documents, the return code is still 200 or 202, but\nthe additional HTTP header *X-Arango-Error-Codes* is set, which\ncontains a map of the error codes that occurred together with their\nmultiplicities, as in: *1200:17,1205:10* which means that in 17\ncases the error 1200 \"revision conflict\" and in 10 cases the error\n1205 \"illegal document handle\" has happened.\n\n\n\n\n**Example:**\n Using document handle:\n\n
shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103730\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\netag: \"_YNEaKzO--_\"\nlocation: /_db/_system/_api/document/products/103730\nx-content-type-options: nosniff\n\n{ \n  \"_id\" : \"products/103730\", \n  \"_key\" : \"103730\", \n  \"_rev\" : \"_YNEaKzO--_\" \n}\n
\n\n\n\n\n**Example:**\n Unknown document handle:\n\n
shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103765\n\nHTTP/1.1 Not Found\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"document not found\", \n  \"code\" : 404, \n  \"errorNum\" : 1202 \n}\n
\n\n\n\n\n**Example:**\n Revision conflict:\n\n
shell> curl -X DELETE --header 'If-Match: \"_YNEaKyO--_\"' --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103711\n\nHTTP/1.1 Precondition Failed\ncontent-type: application/json; charset=utf-8\netag: \"_YNEaKyK--B\"\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"code\" : 412, \n  \"errorNum\" : 1200, \n  \"errorMessage\" : \"precondition failed\", \n  \"_id\" : \"products/103711\", \n  \"_key\" : \"103711\", \n  \"_rev\" : \"_YNEaKyK--B\" \n}\n
\n\n\n\n", + "description": "\n\nThe body of the request is an array consisting of selectors for\ndocuments. A selector can either be a string with a key or a string\nwith a document handle or an object with a *_key* attribute. This\nAPI call removes all specified documents from *collection*. If the\nselector is an object and has a *_rev* attribute, it is a\nprecondition that the actual revision of the removed document in the\ncollection is the specified one.\n\nThe body of the response is an array of the same length as the input\narray. For each input selector, the output contains a JSON object\nwith the information about the outcome of the operation. If no error\noccurred, an object is built in which the attribute *_id* contains\nthe known *document-handle* of the removed document, *_key* contains\nthe key which uniquely identifies a document in a given collection,\nand the attribute *_rev* contains the document revision. In case of\nan error, an object with the attribute *error* set to *true* and\n*errorCode* set to the error code is built.\n\nIf the *waitForSync* parameter is not specified or set to *false*,\nthen the collection's default *waitForSync* behavior is applied.\nThe *waitForSync* query parameter cannot be used to disable\nsynchronization for collections that have a default *waitForSync*\nvalue of *true*.\n\nIf the query parameter *returnOld* is *true*, then\nthe complete previous revision of the document\nis returned under the *old* attribute in the result.\n\nNote that if any precondition is violated or an error occurred with\nsome of the documents, the return code is still 200 or 202, but\nthe additional HTTP header *X-Arango-Error-Codes* is set, which\ncontains a map of the error codes that occurred together with their\nmultiplicities, as in: *1200:17,1205:10* which means that in 17\ncases the error 1200 \"revision conflict\" and in 10 cases the error\n1205 \"illegal document handle\" has happened.\n\n\n\n\n**Example:**\n Using document handle:\n\n
shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103740\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\netag: \"_YOn1O76--B\"\nlocation: /_db/_system/_api/document/products/103740\nx-content-type-options: nosniff\n\n{ \n  \"_id\" : \"products/103740\", \n  \"_key\" : \"103740\", \n  \"_rev\" : \"_YOn1O76--B\" \n}\n
\n\n\n\n\n**Example:**\n Unknown document handle:\n\n
shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103775\n\nHTTP/1.1 Not Found\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"document not found\", \n  \"code\" : 404, \n  \"errorNum\" : 1202 \n}\n
\n\n\n\n\n**Example:**\n Revision conflict:\n\n
shell> curl -X DELETE --header 'If-Match: \"_YOn1O66--B\"' --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103721\n\nHTTP/1.1 Precondition Failed\ncontent-type: application/json; charset=utf-8\netag: \"_YOn1O66--_\"\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"code\" : 412, \n  \"errorNum\" : 1200, \n  \"errorMessage\" : \"precondition failed\", \n  \"_id\" : \"products/103721\", \n  \"_key\" : \"103721\", \n  \"_rev\" : \"_YOn1O66--_\" \n}\n
\n\n\n\n", "parameters": [ { "description": "A JSON array of strings or documents.\n\n", @@ -8430,7 +8430,7 @@ "x-hints": "" }, "post": { - "description": "\n\nCreates a new document from the document given in the body, unless there\nis already a document with the *_key* given. If no *_key* is given, a new\nunique *_key* is generated automatically.\n\nThe body can be an array of documents, in which case all\ndocuments in the array are inserted with the same semantics as for a\nsingle document. The result body will contain a JSON array of the\nsame length as the input array, and each entry contains the result\nof the operation for the corresponding input. In case of an error\nthe entry is a document with attributes *error* set to *true* and\nerrorCode set to the error code that has happened.\n\nPossibly given *_id* and *_rev* attributes in the body are always ignored,\nthe URL part or the query parameter collection respectively counts.\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. Both are only set in the single\ndocument case.\n\nIf *silent* is not set to *true*, the body of the response contains a \nJSON object (single document case) with the following attributes:\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\nIn the multi case the body is an array of such objects.\n\nIf the collection parameter *waitForSync* is *false*, then the call\nreturns as soon as the document has been accepted. It will not wait\nuntil the documents have 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\ncase that the *waitForSync* flag had been disabled for the entire\ncollection. Thus, the *waitForSync* query parameter can be used to\nforce synchronization of just this specific operations. To use this,\nset the *waitForSync* parameter to *true*. If the *waitForSync*\nparameter is not specified or set to *false*, then the collection's\ndefault *waitForSync* behavior is applied. The *waitForSync* query\nparameter cannot be used to disable synchronization for collections\nthat have a default *waitForSync* value of *true*.\n\nIf the query parameter *returnNew* is *true*, then, for each\ngenerated document, the complete new document is returned under\nthe *new* attribute in the result.\n\n\n\n\n**Example:**\n Create a document in a collection named *products*. Note that the\nrevision identifier might or might not by equal to the auto-generated\nkey.\n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products <<EOF\n{ \"Hello\": \"World\" }\nEOF\n\nHTTP/1.1 Created\ncontent-type: application/json; charset=utf-8\netag: \"_YNEaK8S--B\"\nlocation: /_db/_system/_api/document/products/103854\nx-content-type-options: nosniff\n\n{ \n  \"_id\" : \"products/103854\", \n  \"_key\" : \"103854\", \n  \"_rev\" : \"_YNEaK8S--B\" \n}\n
\n\n\n\n\n**Example:**\n Create a document in a collection named *products* with a collection-level\n*waitForSync* value of *false*.\n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products <<EOF\n{ \"Hello\": \"World\" }\nEOF\n\nHTTP/1.1 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"_YNEaK6C--B\"\nlocation: /_db/_system/_api/document/products/103828\nx-content-type-options: nosniff\n\n{ \n  \"_id\" : \"products/103828\", \n  \"_key\" : \"103828\", \n  \"_rev\" : \"_YNEaK6C--B\" \n}\n
\n\n\n\n\n**Example:**\n Create a document in a collection with a collection-level *waitForSync*\nvalue of *false*, but using the *waitForSync* query parameter.\n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products?waitForSync=true <<EOF\n{ \"Hello\": \"World\" }\nEOF\n\nHTTP/1.1 Created\ncontent-type: application/json; charset=utf-8\netag: \"_YNEaLBm--B\"\nlocation: /_db/_system/_api/document/products/103926\nx-content-type-options: nosniff\n\n{ \n  \"_id\" : \"products/103926\", \n  \"_key\" : \"103926\", \n  \"_rev\" : \"_YNEaLBm--B\" \n}\n
\n\n\n\n\n**Example:**\n Unknown collection name\n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products <<EOF\n{ \"Hello\": \"World\" }\nEOF\n\nHTTP/1.1 Not Found\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"collection or view not found: products\", \n  \"code\" : 404, \n  \"errorNum\" : 1203 \n}\n
\n\n\n\n\n**Example:**\n Illegal document\n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products <<EOF\n{ 1: \"World\" }\nEOF\n\nHTTP/1.1 Bad Request\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"VPackError error: Expecting '\\\"' or '}'\", \n  \"code\" : 400, \n  \"errorNum\" : 600 \n}\n
\n\n\n\n\n**Example:**\n Insert multiple documents:\n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products <<EOF\n[{\"Hello\":\"Earth\"}, {\"Hello\":\"Venus\"}, {\"Hello\":\"Mars\"}]\nEOF\n\nHTTP/1.1 Accepted\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n[ \n  { \n    \"_id\" : \"products/103869\", \n    \"_key\" : \"103869\", \n    \"_rev\" : \"_YNEaK92--_\" \n  }, \n  { \n    \"_id\" : \"products/103873\", \n    \"_key\" : \"103873\", \n    \"_rev\" : \"_YNEaK92--B\" \n  }, \n  { \n    \"_id\" : \"products/103875\", \n    \"_key\" : \"103875\", \n    \"_rev\" : \"_YNEaK92--D\" \n  } \n]\n
\n\n\n\n\n**Example:**\n Use of returnNew:\n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products?returnNew=true <<EOF\n{\"Hello\":\"World\"}\nEOF\n\nHTTP/1.1 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"_YNEaL-2--B\"\nlocation: /_db/_system/_api/document/products/103890\nx-content-type-options: nosniff\n\n{ \n  \"_id\" : \"products/103890\", \n  \"_key\" : \"103890\", \n  \"_rev\" : \"_YNEaL-2--B\", \n  \"new\" : { \n    \"_key\" : \"103890\", \n    \"_id\" : \"products/103890\", \n    \"_rev\" : \"_YNEaL-2--B\", \n    \"Hello\" : \"World\" \n  } \n}\n
\n\n\n\n\n**Example:**\n \n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products <<EOF\n{ \"Hello\": \"World\", \"_key\" : \"lock\" }\nEOF\n\nHTTP/1.1 Created\ncontent-type: application/json; charset=utf-8\netag: \"_YNEaL_6--_\"\nlocation: /_db/_system/_api/document/products/lock\nx-content-type-options: nosniff\n\n{ \n  \"_id\" : \"products/lock\", \n  \"_key\" : \"lock\", \n  \"_rev\" : \"_YNEaL_6--_\" \n}\nshell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products?overwrite=true <<EOF\n{ \"Hello\": \"Universe\", \"_key\" : \"lock\" }\nEOF\n\nHTTP/1.1 Created\ncontent-type: application/json; charset=utf-8\netag: \"_YNEaLAe--B\"\nlocation: /_db/_system/_api/document/products/lock\nx-content-type-options: nosniff\n\n{ \n  \"_id\" : \"products/lock\", \n  \"_key\" : \"lock\", \n  \"_rev\" : \"_YNEaLAe--B\", \n  \"_oldRev\" : \"_YNEaL_6--_\" \n}\n
\n\n\n\n\n\n", + "description": "\n\nCreates a new document from the document given in the body, unless there\nis already a document with the *_key* given. If no *_key* is given, a new\nunique *_key* is generated automatically.\n\nThe body can be an array of documents, in which case all\ndocuments in the array are inserted with the same semantics as for a\nsingle document. The result body will contain a JSON array of the\nsame length as the input array, and each entry contains the result\nof the operation for the corresponding input. In case of an error\nthe entry is a document with attributes *error* set to *true* and\nerrorCode set to the error code that has happened.\n\nPossibly given *_id* and *_rev* attributes in the body are always ignored,\nthe URL part or the query parameter collection respectively counts.\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. Both are only set in the single\ndocument case.\n\nIf *silent* is not set to *true*, the body of the response contains a \nJSON object (single document case) with the following attributes:\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\nIn the multi case the body is an array of such objects.\n\nIf the collection parameter *waitForSync* is *false*, then the call\nreturns as soon as the document has been accepted. It will not wait\nuntil the documents have 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\ncase that the *waitForSync* flag had been disabled for the entire\ncollection. Thus, the *waitForSync* query parameter can be used to\nforce synchronization of just this specific operations. To use this,\nset the *waitForSync* parameter to *true*. If the *waitForSync*\nparameter is not specified or set to *false*, then the collection's\ndefault *waitForSync* behavior is applied. The *waitForSync* query\nparameter cannot be used to disable synchronization for collections\nthat have a default *waitForSync* value of *true*.\n\nIf the query parameter *returnNew* is *true*, then, for each\ngenerated document, the complete new document is returned under\nthe *new* attribute in the result.\n\n\n\n\n**Example:**\n Create a document in a collection named *products*. Note that the\nrevision identifier might or might not by equal to the auto-generated\nkey.\n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products <<EOF\n{ \"Hello\": \"World\" }\nEOF\n\nHTTP/1.1 Created\ncontent-type: application/json; charset=utf-8\netag: \"_YOn1PEy--_\"\nlocation: /_db/_system/_api/document/products/103864\nx-content-type-options: nosniff\n\n{ \n  \"_id\" : \"products/103864\", \n  \"_key\" : \"103864\", \n  \"_rev\" : \"_YOn1PEy--_\" \n}\n
\n\n\n\n\n**Example:**\n Create a document in a collection named *products* with a collection-level\n*waitForSync* value of *false*.\n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products <<EOF\n{ \"Hello\": \"World\" }\nEOF\n\nHTTP/1.1 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"_YOn1PCu--_\"\nlocation: /_db/_system/_api/document/products/103838\nx-content-type-options: nosniff\n\n{ \n  \"_id\" : \"products/103838\", \n  \"_key\" : \"103838\", \n  \"_rev\" : \"_YOn1PCu--_\" \n}\n
\n\n\n\n\n**Example:**\n Create a document in a collection with a collection-level *waitForSync*\nvalue of *false*, but using the *waitForSync* query parameter.\n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products?waitForSync=true <<EOF\n{ \"Hello\": \"World\" }\nEOF\n\nHTTP/1.1 Created\ncontent-type: application/json; charset=utf-8\netag: \"_YOn1PKK--B\"\nlocation: /_db/_system/_api/document/products/103936\nx-content-type-options: nosniff\n\n{ \n  \"_id\" : \"products/103936\", \n  \"_key\" : \"103936\", \n  \"_rev\" : \"_YOn1PKK--B\" \n}\n
\n\n\n\n\n**Example:**\n Unknown collection name\n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products <<EOF\n{ \"Hello\": \"World\" }\nEOF\n\nHTTP/1.1 Not Found\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"collection or view not found: products\", \n  \"code\" : 404, \n  \"errorNum\" : 1203 \n}\n
\n\n\n\n\n**Example:**\n Illegal document\n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products <<EOF\n{ 1: \"World\" }\nEOF\n\nHTTP/1.1 Bad Request\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"VPackError error: Expecting '\\\"' or '}'\", \n  \"code\" : 400, \n  \"errorNum\" : 600 \n}\n
\n\n\n\n\n**Example:**\n Insert multiple documents:\n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products <<EOF\n[{\"Hello\":\"Earth\"}, {\"Hello\":\"Venus\"}, {\"Hello\":\"Mars\"}]\nEOF\n\nHTTP/1.1 Accepted\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n[ \n  { \n    \"_id\" : \"products/103879\", \n    \"_key\" : \"103879\", \n    \"_rev\" : \"_YOn1PGW--B\" \n  }, \n  { \n    \"_id\" : \"products/103883\", \n    \"_key\" : \"103883\", \n    \"_rev\" : \"_YOn1PGW--D\" \n  }, \n  { \n    \"_id\" : \"products/103885\", \n    \"_key\" : \"103885\", \n    \"_rev\" : \"_YOn1PGW--F\" \n  } \n]\n
\n\n\n\n\n**Example:**\n Use of returnNew:\n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products?returnNew=true <<EOF\n{\"Hello\":\"World\"}\nEOF\n\nHTTP/1.1 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"_YOn1PHa--B\"\nlocation: /_db/_system/_api/document/products/103900\nx-content-type-options: nosniff\n\n{ \n  \"_id\" : \"products/103900\", \n  \"_key\" : \"103900\", \n  \"_rev\" : \"_YOn1PHa--B\", \n  \"new\" : { \n    \"_key\" : \"103900\", \n    \"_id\" : \"products/103900\", \n    \"_rev\" : \"_YOn1PHa--B\", \n    \"Hello\" : \"World\" \n  } \n}\n
\n\n\n\n\n**Example:**\n \n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products <<EOF\n{ \"Hello\": \"World\", \"_key\" : \"lock\" }\nEOF\n\nHTTP/1.1 Created\ncontent-type: application/json; charset=utf-8\netag: \"_YOn1PIe--B\"\nlocation: /_db/_system/_api/document/products/lock\nx-content-type-options: nosniff\n\n{ \n  \"_id\" : \"products/lock\", \n  \"_key\" : \"lock\", \n  \"_rev\" : \"_YOn1PIe--B\" \n}\nshell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products?overwrite=true <<EOF\n{ \"Hello\": \"Universe\", \"_key\" : \"lock\" }\nEOF\n\nHTTP/1.1 Created\ncontent-type: application/json; charset=utf-8\netag: \"_YOn1PI6--B\"\nlocation: /_db/_system/_api/document/products/lock\nx-content-type-options: nosniff\n\n{ \n  \"_id\" : \"products/lock\", \n  \"_key\" : \"lock\", \n  \"_rev\" : \"_YOn1PI6--B\", \n  \"_oldRev\" : \"_YOn1PIe--B\" \n}\n
\n\n\n\n\n\n", "parameters": [ { "description": "The *collection* in which the collection is to be created.\n\n", @@ -8595,7 +8595,7 @@ }, "/_api/document/{document-handle}": { "delete": { - "description": "\n\nIf *silent* is not set to *true*, the body of the response contains a JSON \nobject with the information about the handle and the revision. The attribute \n*_id* contains the known *document-handle* of the removed document, *_key* \ncontains the key which uniquely identifies a document in a given collection, \nand the attribute *_rev* contains the document revision.\n\nIf the *waitForSync* parameter is not specified or set to *false*,\nthen the collection's default *waitForSync* behavior is applied.\nThe *waitForSync* query parameter cannot be used to disable\nsynchronization for collections that have a default *waitForSync*\nvalue of *true*.\n\nIf the query parameter *returnOld* is *true*, then\nthe complete previous revision of the document\nis returned under the *old* attribute in the result.\n\n\n\n\n**Example:**\n Using document handle:\n\n
shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103675\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\netag: \"_YNEaKv6--_\"\nlocation: /_db/_system/_api/document/products/103675\nx-content-type-options: nosniff\n\n{ \n  \"_id\" : \"products/103675\", \n  \"_key\" : \"103675\", \n  \"_rev\" : \"_YNEaKv6--_\" \n}\n
\n\n\n\n\n**Example:**\n Unknown document handle:\n\n
shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103747\n\nHTTP/1.1 Not Found\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"document not found\", \n  \"code\" : 404, \n  \"errorNum\" : 1202 \n}\n
\n\n\n\n\n**Example:**\n Revision conflict:\n\n
shell> curl -X DELETE --header 'If-Match: \"_YNEaKxK--D\"' --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103692\n\nHTTP/1.1 Precondition Failed\ncontent-type: application/json; charset=utf-8\netag: \"_YNEaKxK--B\"\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"code\" : 412, \n  \"errorNum\" : 1200, \n  \"errorMessage\" : \"precondition failed\", \n  \"_id\" : \"products/103692\", \n  \"_key\" : \"103692\", \n  \"_rev\" : \"_YNEaKxK--B\" \n}\n
\n\n\n\n", + "description": "\n\nIf *silent* is not set to *true*, the body of the response contains a JSON \nobject with the information about the handle and the revision. The attribute \n*_id* contains the known *document-handle* of the removed document, *_key* \ncontains the key which uniquely identifies a document in a given collection, \nand the attribute *_rev* contains the document revision.\n\nIf the *waitForSync* parameter is not specified or set to *false*,\nthen the collection's default *waitForSync* behavior is applied.\nThe *waitForSync* query parameter cannot be used to disable\nsynchronization for collections that have a default *waitForSync*\nvalue of *true*.\n\nIf the query parameter *returnOld* is *true*, then\nthe complete previous revision of the document\nis returned under the *old* attribute in the result.\n\n\n\n\n**Example:**\n Using document handle:\n\n
shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103685\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\netag: \"_YOn1O4q--_\"\nlocation: /_db/_system/_api/document/products/103685\nx-content-type-options: nosniff\n\n{ \n  \"_id\" : \"products/103685\", \n  \"_key\" : \"103685\", \n  \"_rev\" : \"_YOn1O4q--_\" \n}\n
\n\n\n\n\n**Example:**\n Unknown document handle:\n\n
shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103757\n\nHTTP/1.1 Not Found\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"document not found\", \n  \"code\" : 404, \n  \"errorNum\" : 1202 \n}\n
\n\n\n\n\n**Example:**\n Revision conflict:\n\n
shell> curl -X DELETE --header 'If-Match: \"_YOn1O52--D\"' --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103702\n\nHTTP/1.1 Precondition Failed\ncontent-type: application/json; charset=utf-8\netag: \"_YOn1O52--B\"\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"code\" : 412, \n  \"errorNum\" : 1200, \n  \"errorMessage\" : \"precondition failed\", \n  \"_id\" : \"products/103702\", \n  \"_key\" : \"103702\", \n  \"_rev\" : \"_YOn1O52--B\" \n}\n
\n\n\n\n", "parameters": [ { "description": "Removes the document identified by *document-handle*.\n\n", @@ -8656,7 +8656,7 @@ "x-hints": "" }, "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\n\n**Example:**\n Use a document handle:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103941\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\netag: \"_YNEaLDK--B\"\nx-content-type-options: nosniff\n\n{ \n  \"_key\" : \"103941\", \n  \"_id\" : \"products/103941\", \n  \"_rev\" : \"_YNEaLDK--B\", \n  \"hello\" : \"world\" \n}\n
\n\n\n\n\n**Example:**\n Use a document handle and an Etag:\n\n
shell> curl --header 'If-None-Match: \"_YNEaLHW--B\"' --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/104018\n\n
\n\n\n\n\n**Example:**\n Unknown document handle:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/unknownhandle\n\nHTTP/1.1 Not Found\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"collection or view not found: products\", \n  \"code\" : 404, \n  \"errorNum\" : 1203 \n}\n
\n\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\n\n**Example:**\n Use a document handle:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103951\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\netag: \"_YOn1PLW--B\"\nx-content-type-options: nosniff\n\n{ \n  \"_key\" : \"103951\", \n  \"_id\" : \"products/103951\", \n  \"_rev\" : \"_YOn1PLW--B\", \n  \"hello\" : \"world\" \n}\n
\n\n\n\n\n**Example:**\n Use a document handle and an Etag:\n\n
shell> curl --header 'If-None-Match: \"_YOn1PQK--B\"' --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/104028\n\n
\n\n\n\n\n**Example:**\n Unknown document handle:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/unknownhandle\n\nHTTP/1.1 Not Found\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"collection or view not found: products\", \n  \"code\" : 404, \n  \"errorNum\" : 1203 \n}\n
\n\n\n\n\n", "parameters": [ { "description": "The handle of the document.\n\n", @@ -8702,7 +8702,7 @@ "x-hints": "" }, "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\n\n**Example:**\n \n\n
shell> curl -X HEAD --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/104002\n\n
\n\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\n\n**Example:**\n \n\n
shell> curl -X HEAD --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/104012\n\n
\n\n\n\n\n\n", "parameters": [ { "description": "The handle of the document.\n\n", @@ -8748,7 +8748,7 @@ "x-hints": "" }, "patch": { - "description": "\n\nPartially updates the document identified by *document-handle*.\nThe body of the request must contain a JSON document with the\nattributes to patch (the patch document). All attributes from the\npatch document will be added to the existing document if they do not\nyet exist, and overwritten in the existing document if they do exist\nthere.\n\nSetting an attribute value to *null* in the patch document will cause a\nvalue of *null* to be saved for the attribute by default.\n\nIf the *If-Match* header is specified and the revision of the\ndocument in the database is unequal to the given revision, the\nprecondition is violated.\n\nIf *If-Match* is not given and *ignoreRevs* is *false* and there\nis a *_rev* attribute in the body and its value does not match\nthe revision of the document in the database, the precondition is\nviolated.\n\nIf a precondition is violated, an *HTTP 412* is returned.\n\nIf the document exists and can be updated, then an *HTTP 201* or\nan *HTTP 202* is returned (depending on *waitForSync*, see below),\nthe *Etag* header field contains the new revision of the document\n(in double quotes) and the *Location* header contains a complete URL\nunder which the document can be queried.\n\nOptionally, the query parameter *waitForSync* can be used to force\nsynchronization of the updated document 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\nIf *silent* is not set to *true*, the body of the response contains a JSON \nobject with the information about the handle and the revision. The attribute \n*_id* contains the known *document-handle* of the updated document, *_key* \ncontains the key which uniquely identifies a document in a given collection, \nand the attribute *_rev* contains the new document revision.\n\nIf the query parameter *returnOld* is *true*, then\nthe complete previous revision of the document\nis returned under the *old* attribute in the result.\n\nIf the query parameter *returnNew* is *true*, then\nthe complete new document is returned under\nthe *new* attribute in the result.\n\nIf the document does not exist, then a *HTTP 404* is returned and the\nbody of the response contains an error document.\n\n\n\n\n**Example:**\n Patches an existing document with new content.\n\n
shell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/103783 <<EOF\n{ \n  \"hello\" : \"world\" \n}\nEOF\n\nHTTP/1.1 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"_YNEaK4---_\"\nlocation: /_db/_system/_api/document/products/103783\nx-content-type-options: nosniff\n\n{ \n  \"_id\" : \"products/103783\", \n  \"_key\" : \"103783\", \n  \"_rev\" : \"_YNEaK4---_\", \n  \"_oldRev\" : \"_YNEaK36--B\" \n}\nshell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/103783 <<EOF\n{ \n  \"numbers\" : { \n    \"one\" : 1, \n    \"two\" : 2, \n    \"three\" : 3, \n    \"empty\" : null \n  } \n}\nEOF\n\nHTTP/1.1 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"_YNEaK4C--_\"\nlocation: /_db/_system/_api/document/products/103783\nx-content-type-options: nosniff\n\n{ \n  \"_id\" : \"products/103783\", \n  \"_key\" : \"103783\", \n  \"_rev\" : \"_YNEaK4C--_\", \n  \"_oldRev\" : \"_YNEaK4---_\" \n}\nshell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103783\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\netag: \"_YNEaK4C--_\"\nx-content-type-options: nosniff\n\n{ \n  \"_key\" : \"103783\", \n  \"_id\" : \"products/103783\", \n  \"_rev\" : \"_YNEaK4C--_\", \n  \"one\" : \"world\", \n  \"hello\" : \"world\", \n  \"numbers\" : { \n    \"one\" : 1, \n    \"two\" : 2, \n    \"three\" : 3, \n    \"empty\" : null \n  } \n}\nshell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/103783?keepNull=false <<EOF\n{ \n  \"hello\" : null, \n  \"numbers\" : { \n    \"four\" : 4 \n  } \n}\nEOF\n\nHTTP/1.1 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"_YNEaK4K--_\"\nlocation: /_db/_system/_api/document/products/103783\nx-content-type-options: nosniff\n\n{ \n  \"_id\" : \"products/103783\", \n  \"_key\" : \"103783\", \n  \"_rev\" : \"_YNEaK4K--_\", \n  \"_oldRev\" : \"_YNEaK4C--_\" \n}\nshell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103783\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\netag: \"_YNEaK4K--_\"\nx-content-type-options: nosniff\n\n{ \n  \"_key\" : \"103783\", \n  \"_id\" : \"products/103783\", \n  \"_rev\" : \"_YNEaK4K--_\", \n  \"one\" : \"world\", \n  \"numbers\" : { \n    \"empty\" : null, \n    \"one\" : 1, \n    \"three\" : 3, \n    \"two\" : 2, \n    \"four\" : 4 \n  } \n}\n
\n\n\n\n\n**Example:**\n Merging attributes of an object using `mergeObjects`:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103806\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\netag: \"_YNEaK5---B\"\nx-content-type-options: nosniff\n\n{ \n  \"_key\" : \"103806\", \n  \"_id\" : \"products/103806\", \n  \"_rev\" : \"_YNEaK5---B\", \n  \"inhabitants\" : { \n    \"china\" : 1366980000, \n    \"india\" : 1263590000, \n    \"usa\" : 319220000 \n  } \n}\nshell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/103806?mergeObjects=true <<EOF\n{ \n  \"inhabitants\" : { \n    \"indonesia\" : 252164800, \n    \"brazil\" : 203553000 \n  } \n}\nEOF\n\nshell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103806\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\netag: \"_YNEaK5G--_\"\nx-content-type-options: nosniff\n\n{ \n  \"_key\" : \"103806\", \n  \"_id\" : \"products/103806\", \n  \"_rev\" : \"_YNEaK5G--_\", \n  \"inhabitants\" : { \n    \"china\" : 1366980000, \n    \"india\" : 1263590000, \n    \"usa\" : 319220000, \n    \"indonesia\" : 252164800, \n    \"brazil\" : 203553000 \n  } \n}\nshell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/103806?mergeObjects=false <<EOF\n{ \n  \"inhabitants\" : { \n    \"pakistan\" : 188346000 \n  } \n}\nEOF\n\nHTTP/1.1 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"_YNEaK5O--_\"\nlocation: /_db/_system/_api/document/products/103806\nx-content-type-options: nosniff\n\n{ \n  \"_id\" : \"products/103806\", \n  \"_key\" : \"103806\", \n  \"_rev\" : \"_YNEaK5O--_\", \n  \"_oldRev\" : \"_YNEaK5G--_\" \n}\nshell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103806\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\netag: \"_YNEaK5O--_\"\nx-content-type-options: nosniff\n\n{ \n  \"_key\" : \"103806\", \n  \"_id\" : \"products/103806\", \n  \"_rev\" : \"_YNEaK5O--_\", \n  \"inhabitants\" : { \n    \"pakistan\" : 188346000 \n  } \n}\n
\n\n\n\n\n", + "description": "\n\nPartially updates the document identified by *document-handle*.\nThe body of the request must contain a JSON document with the\nattributes to patch (the patch document). All attributes from the\npatch document will be added to the existing document if they do not\nyet exist, and overwritten in the existing document if they do exist\nthere.\n\nSetting an attribute value to *null* in the patch document will cause a\nvalue of *null* to be saved for the attribute by default.\n\nIf the *If-Match* header is specified and the revision of the\ndocument in the database is unequal to the given revision, the\nprecondition is violated.\n\nIf *If-Match* is not given and *ignoreRevs* is *false* and there\nis a *_rev* attribute in the body and its value does not match\nthe revision of the document in the database, the precondition is\nviolated.\n\nIf a precondition is violated, an *HTTP 412* is returned.\n\nIf the document exists and can be updated, then an *HTTP 201* or\nan *HTTP 202* is returned (depending on *waitForSync*, see below),\nthe *Etag* header field contains the new revision of the document\n(in double quotes) and the *Location* header contains a complete URL\nunder which the document can be queried.\n\nOptionally, the query parameter *waitForSync* can be used to force\nsynchronization of the updated document 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\nIf *silent* is not set to *true*, the body of the response contains a JSON \nobject with the information about the handle and the revision. The attribute \n*_id* contains the known *document-handle* of the updated document, *_key* \ncontains the key which uniquely identifies a document in a given collection, \nand the attribute *_rev* contains the new document revision.\n\nIf the query parameter *returnOld* is *true*, then\nthe complete previous revision of the document\nis returned under the *old* attribute in the result.\n\nIf the query parameter *returnNew* is *true*, then\nthe complete new document is returned under\nthe *new* attribute in the result.\n\nIf the document does not exist, then a *HTTP 404* is returned and the\nbody of the response contains an error document.\n\n\n\n\n**Example:**\n Patches an existing document with new content.\n\n
shell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/103793 <<EOF\n{ \n  \"hello\" : \"world\" \n}\nEOF\n\nHTTP/1.1 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"_YOn1PAq--_\"\nlocation: /_db/_system/_api/document/products/103793\nx-content-type-options: nosniff\n\n{ \n  \"_id\" : \"products/103793\", \n  \"_key\" : \"103793\", \n  \"_rev\" : \"_YOn1PAq--_\", \n  \"_oldRev\" : \"_YOn1PAm--B\" \n}\nshell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/103793 <<EOF\n{ \n  \"numbers\" : { \n    \"one\" : 1, \n    \"two\" : 2, \n    \"three\" : 3, \n    \"empty\" : null \n  } \n}\nEOF\n\nHTTP/1.1 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"_YOn1PAu--_\"\nlocation: /_db/_system/_api/document/products/103793\nx-content-type-options: nosniff\n\n{ \n  \"_id\" : \"products/103793\", \n  \"_key\" : \"103793\", \n  \"_rev\" : \"_YOn1PAu--_\", \n  \"_oldRev\" : \"_YOn1PAq--_\" \n}\nshell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103793\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\netag: \"_YOn1PAu--_\"\nx-content-type-options: nosniff\n\n{ \n  \"_key\" : \"103793\", \n  \"_id\" : \"products/103793\", \n  \"_rev\" : \"_YOn1PAu--_\", \n  \"one\" : \"world\", \n  \"hello\" : \"world\", \n  \"numbers\" : { \n    \"one\" : 1, \n    \"two\" : 2, \n    \"three\" : 3, \n    \"empty\" : null \n  } \n}\nshell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/103793?keepNull=false <<EOF\n{ \n  \"hello\" : null, \n  \"numbers\" : { \n    \"four\" : 4 \n  } \n}\nEOF\n\nHTTP/1.1 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"_YOn1PA2--_\"\nlocation: /_db/_system/_api/document/products/103793\nx-content-type-options: nosniff\n\n{ \n  \"_id\" : \"products/103793\", \n  \"_key\" : \"103793\", \n  \"_rev\" : \"_YOn1PA2--_\", \n  \"_oldRev\" : \"_YOn1PAu--_\" \n}\nshell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103793\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\netag: \"_YOn1PA2--_\"\nx-content-type-options: nosniff\n\n{ \n  \"_key\" : \"103793\", \n  \"_id\" : \"products/103793\", \n  \"_rev\" : \"_YOn1PA2--_\", \n  \"one\" : \"world\", \n  \"numbers\" : { \n    \"empty\" : null, \n    \"one\" : 1, \n    \"three\" : 3, \n    \"two\" : 2, \n    \"four\" : 4 \n  } \n}\n
\n\n\n\n\n**Example:**\n Merging attributes of an object using `mergeObjects`:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103816\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\netag: \"_YOn1PBq--B\"\nx-content-type-options: nosniff\n\n{ \n  \"_key\" : \"103816\", \n  \"_id\" : \"products/103816\", \n  \"_rev\" : \"_YOn1PBq--B\", \n  \"inhabitants\" : { \n    \"china\" : 1366980000, \n    \"india\" : 1263590000, \n    \"usa\" : 319220000 \n  } \n}\nshell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/103816?mergeObjects=true <<EOF\n{ \n  \"inhabitants\" : { \n    \"indonesia\" : 252164800, \n    \"brazil\" : 203553000 \n  } \n}\nEOF\n\nshell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103816\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\netag: \"_YOn1PBy--_\"\nx-content-type-options: nosniff\n\n{ \n  \"_key\" : \"103816\", \n  \"_id\" : \"products/103816\", \n  \"_rev\" : \"_YOn1PBy--_\", \n  \"inhabitants\" : { \n    \"china\" : 1366980000, \n    \"india\" : 1263590000, \n    \"usa\" : 319220000, \n    \"indonesia\" : 252164800, \n    \"brazil\" : 203553000 \n  } \n}\nshell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/103816?mergeObjects=false <<EOF\n{ \n  \"inhabitants\" : { \n    \"pakistan\" : 188346000 \n  } \n}\nEOF\n\nHTTP/1.1 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"_YOn1PB2--_\"\nlocation: /_db/_system/_api/document/products/103816\nx-content-type-options: nosniff\n\n{ \n  \"_id\" : \"products/103816\", \n  \"_key\" : \"103816\", \n  \"_rev\" : \"_YOn1PB2--_\", \n  \"_oldRev\" : \"_YOn1PBy--_\" \n}\nshell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103816\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\netag: \"_YOn1PB2--_\"\nx-content-type-options: nosniff\n\n{ \n  \"_key\" : \"103816\", \n  \"_id\" : \"products/103816\", \n  \"_rev\" : \"_YOn1PB2--_\", \n  \"inhabitants\" : { \n    \"pakistan\" : 188346000 \n  } \n}\n
\n\n\n\n\n", "parameters": [ { "description": "A JSON representation of a document update as an object.\n\n", @@ -8851,7 +8851,7 @@ "x-hints": "" }, "put": { - "description": "\n\nReplaces the document with handle with the one in\nthe body, provided there is such a document and no precondition is\nviolated.\n\nIf the *If-Match* header is specified and the revision of the\ndocument in the database is unequal to the given revision, the\nprecondition is violated.\n\nIf *If-Match* is not given and *ignoreRevs* is *false* and there\nis a *_rev* attribute in the body and its value does not match\nthe revision of the document in the database, the precondition is\nviolated.\n\nIf a precondition is violated, an *HTTP 412* is returned.\n\nIf the document exists and can be updated, then an *HTTP 201* or\nan *HTTP 202* is returned (depending on *waitForSync*, see below),\nthe *Etag* header field contains the new revision of the document\nand the *Location* header contains a complete URL under which the\ndocument can be queried.\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\nIf *silent* is not set to *true*, the body of the response contains a JSON \nobject with the information about the handle and the revision. The attribute \n*_id* contains the known *document-handle* of the updated document, *_key* \ncontains the key which uniquely identifies a document in a given collection, \nand the attribute *_rev* contains the new document revision.\n\nIf the query parameter *returnOld* is *true*, then\nthe complete previous revision of the document\nis returned under the *old* attribute in the result.\n\nIf the query parameter *returnNew* is *true*, then\nthe complete new document is returned under\nthe *new* attribute in the result.\n\nIf the document does not exist, then a *HTTP 404* is returned and the\nbody of the response contains an error document.\n\n\n\n\n**Example:**\n Using a document handle\n\n
shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/104036 <<EOF\n{\"Hello\": \"you\"}\nEOF\n\nHTTP/1.1 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"_YNEaLIe--_\"\nlocation: /_db/_system/_api/document/products/104036\nx-content-type-options: nosniff\n\n{ \n  \"_id\" : \"products/104036\", \n  \"_key\" : \"104036\", \n  \"_rev\" : \"_YNEaLIe--_\", \n  \"_oldRev\" : \"_YNEaLIa--B\" \n}\n
\n\n\n\n\n**Example:**\n Unknown document handle\n\n
shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/104072 <<EOF\n{}\nEOF\n\nHTTP/1.1 Not Found\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"document not found\", \n  \"code\" : 404, \n  \"errorNum\" : 1202 \n}\n
\n\n\n\n\n**Example:**\n Produce a revision conflict\n\n
shell> curl -X PUT --header 'If-Match: \"_YNEaLJe--B\"' --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/104053 <<EOF\n{\"other\":\"content\"}\nEOF\n\nHTTP/1.1 Precondition Failed\ncontent-type: application/json; charset=utf-8\netag: \"_YNEaLJe--_\"\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"code\" : 412, \n  \"errorNum\" : 1200, \n  \"errorMessage\" : \"precondition failed\", \n  \"_id\" : \"products/104053\", \n  \"_key\" : \"104053\", \n  \"_rev\" : \"_YNEaLJe--_\" \n}\n
\n\n\n\n\n", + "description": "\n\nReplaces the document with handle with the one in\nthe body, provided there is such a document and no precondition is\nviolated.\n\nIf the *If-Match* header is specified and the revision of the\ndocument in the database is unequal to the given revision, the\nprecondition is violated.\n\nIf *If-Match* is not given and *ignoreRevs* is *false* and there\nis a *_rev* attribute in the body and its value does not match\nthe revision of the document in the database, the precondition is\nviolated.\n\nIf a precondition is violated, an *HTTP 412* is returned.\n\nIf the document exists and can be updated, then an *HTTP 201* or\nan *HTTP 202* is returned (depending on *waitForSync*, see below),\nthe *Etag* header field contains the new revision of the document\nand the *Location* header contains a complete URL under which the\ndocument can be queried.\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\nIf *silent* is not set to *true*, the body of the response contains a JSON \nobject with the information about the handle and the revision. The attribute \n*_id* contains the known *document-handle* of the updated document, *_key* \ncontains the key which uniquely identifies a document in a given collection, \nand the attribute *_rev* contains the new document revision.\n\nIf the query parameter *returnOld* is *true*, then\nthe complete previous revision of the document\nis returned under the *old* attribute in the result.\n\nIf the query parameter *returnNew* is *true*, then\nthe complete new document is returned under\nthe *new* attribute in the result.\n\nIf the document does not exist, then a *HTTP 404* is returned and the\nbody of the response contains an error document.\n\n\n\n\n**Example:**\n Using a document handle\n\n
shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/104046 <<EOF\n{\"Hello\": \"you\"}\nEOF\n\nHTTP/1.1 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"_YOn1PRa--D\"\nlocation: /_db/_system/_api/document/products/104046\nx-content-type-options: nosniff\n\n{ \n  \"_id\" : \"products/104046\", \n  \"_key\" : \"104046\", \n  \"_rev\" : \"_YOn1PRa--D\", \n  \"_oldRev\" : \"_YOn1PRa--B\" \n}\n
\n\n\n\n\n**Example:**\n Unknown document handle\n\n
shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/104082 <<EOF\n{}\nEOF\n\nHTTP/1.1 Not Found\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"document not found\", \n  \"code\" : 404, \n  \"errorNum\" : 1202 \n}\n
\n\n\n\n\n**Example:**\n Produce a revision conflict\n\n
shell> curl -X PUT --header 'If-Match: \"_YOn1PSi--B\"' --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/104063 <<EOF\n{\"other\":\"content\"}\nEOF\n\nHTTP/1.1 Precondition Failed\ncontent-type: application/json; charset=utf-8\netag: \"_YOn1PSi--_\"\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"code\" : 412, \n  \"errorNum\" : 1200, \n  \"errorMessage\" : \"precondition failed\", \n  \"_id\" : \"products/104063\", \n  \"_key\" : \"104063\", \n  \"_rev\" : \"_YOn1PSi--_\" \n}\n
\n\n\n\n\n", "parameters": [ { "description": "A JSON representation of a single document.\n\n", @@ -8942,7 +8942,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\n\n**Example:**\n Any direction\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/edges/edges?vertex=vertices/1\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"edges\" : [ \n    { \n      \"_key\" : \"6\", \n      \"_id\" : \"edges/6\", \n      \"_from\" : \"vertices/2\", \n      \"_to\" : \"vertices/1\", \n      \"_rev\" : \"_YNEaLMG--F\", \n      \"$label\" : \"v2 -> v1\" \n    }, \n    { \n      \"_key\" : \"7\", \n      \"_id\" : \"edges/7\", \n      \"_from\" : \"vertices/4\", \n      \"_to\" : \"vertices/1\", \n      \"_rev\" : \"_YNEaLMG--H\", \n      \"$label\" : \"v4 -> v1\" \n    }, \n    { \n      \"_key\" : \"5\", \n      \"_id\" : \"edges/5\", \n      \"_from\" : \"vertices/1\", \n      \"_to\" : \"vertices/3\", \n      \"_rev\" : \"_YNEaLMG--D\", \n      \"$label\" : \"v1 -> v3\" \n    } \n  ], \n  \"error\" : false, \n  \"code\" : 200, \n  \"stats\" : { \n    \"scannedIndex\" : 3, \n    \"filtered\" : 0 \n  } \n}\n
\n\n\n\n\n**Example:**\n In edges\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/edges/edges?vertex=vertices/1&direction=in\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"edges\" : [ \n    { \n      \"_key\" : \"6\", \n      \"_id\" : \"edges/6\", \n      \"_from\" : \"vertices/2\", \n      \"_to\" : \"vertices/1\", \n      \"_rev\" : \"_YNEaLOK--D\", \n      \"$label\" : \"v2 -> v1\" \n    }, \n    { \n      \"_key\" : \"7\", \n      \"_id\" : \"edges/7\", \n      \"_from\" : \"vertices/4\", \n      \"_to\" : \"vertices/1\", \n      \"_rev\" : \"_YNEaLOK--F\", \n      \"$label\" : \"v4 -> v1\" \n    } \n  ], \n  \"error\" : false, \n  \"code\" : 200, \n  \"stats\" : { \n    \"scannedIndex\" : 2, \n    \"filtered\" : 0 \n  } \n}\n
\n\n\n\n\n**Example:**\n Out edges\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/edges/edges?vertex=vertices/1&direction=out\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"edges\" : [ \n    { \n      \"_key\" : \"5\", \n      \"_id\" : \"edges/5\", \n      \"_from\" : \"vertices/1\", \n      \"_to\" : \"vertices/3\", \n      \"_rev\" : \"_YNEaLQO--D\", \n      \"$label\" : \"v1 -> v3\" \n    } \n  ], \n  \"error\" : false, \n  \"code\" : 200, \n  \"stats\" : { \n    \"scannedIndex\" : 1, \n    \"filtered\" : 0 \n  } \n}\n
\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\n\n**Example:**\n Any direction\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/edges/edges?vertex=vertices/1\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"edges\" : [ \n    { \n      \"_key\" : \"6\", \n      \"_id\" : \"edges/6\", \n      \"_from\" : \"vertices/2\", \n      \"_to\" : \"vertices/1\", \n      \"_rev\" : \"_YOn1PWK--B\", \n      \"$label\" : \"v2 -> v1\" \n    }, \n    { \n      \"_key\" : \"7\", \n      \"_id\" : \"edges/7\", \n      \"_from\" : \"vertices/4\", \n      \"_to\" : \"vertices/1\", \n      \"_rev\" : \"_YOn1PWK--D\", \n      \"$label\" : \"v4 -> v1\" \n    }, \n    { \n      \"_key\" : \"5\", \n      \"_id\" : \"edges/5\", \n      \"_from\" : \"vertices/1\", \n      \"_to\" : \"vertices/3\", \n      \"_rev\" : \"_YOn1PWK--_\", \n      \"$label\" : \"v1 -> v3\" \n    } \n  ], \n  \"error\" : false, \n  \"code\" : 200, \n  \"stats\" : { \n    \"scannedIndex\" : 3, \n    \"filtered\" : 0 \n  } \n}\n
\n\n\n\n\n**Example:**\n In edges\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/edges/edges?vertex=vertices/1&direction=in\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"edges\" : [ \n    { \n      \"_key\" : \"6\", \n      \"_id\" : \"edges/6\", \n      \"_from\" : \"vertices/2\", \n      \"_to\" : \"vertices/1\", \n      \"_rev\" : \"_YOn1PYy--H\", \n      \"$label\" : \"v2 -> v1\" \n    }, \n    { \n      \"_key\" : \"7\", \n      \"_id\" : \"edges/7\", \n      \"_from\" : \"vertices/4\", \n      \"_to\" : \"vertices/1\", \n      \"_rev\" : \"_YOn1PYy--J\", \n      \"$label\" : \"v4 -> v1\" \n    } \n  ], \n  \"error\" : false, \n  \"code\" : 200, \n  \"stats\" : { \n    \"scannedIndex\" : 2, \n    \"filtered\" : 0 \n  } \n}\n
\n\n\n\n\n**Example:**\n Out edges\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/edges/edges?vertex=vertices/1&direction=out\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"edges\" : [ \n    { \n      \"_key\" : \"5\", \n      \"_id\" : \"edges/5\", \n      \"_from\" : \"vertices/1\", \n      \"_to\" : \"vertices/3\", \n      \"_rev\" : \"_YOn1Pba--F\", \n      \"$label\" : \"v1 -> v3\" \n    } \n  ], \n  \"error\" : false, \n  \"code\" : 200, \n  \"stats\" : { \n    \"scannedIndex\" : 1, \n    \"filtered\" : 0 \n  } \n}\n
\n\n\n\n\n", "parameters": [ { "description": "The id of the collection.\n\n", @@ -8989,7 +8989,7 @@ }, "/_api/endpoint": { "get": { - "description": "\n\nReturns an array of all configured endpoints the server is listening on.\n\nThe result is a JSON array of JSON objects, each with `\"entrypoint\"' as\nthe only attribute, and with the value being a string describing the\nendpoint.\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\n\n**Warning:** \nThis route should no longer be used.\nIt is considered as deprecated from version 3.4.0 on.\n\n\n\n\n\n\n**Example:**\n \n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/endpoint\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n[ \n  { \n    \"endpoint\" : \"http://127.0.0.1:33956\" \n  } \n]\n
\n\n\n\n\n", + "description": "\n\nReturns an array of all configured endpoints the server is listening on.\n\nThe result is a JSON array of JSON objects, each with `\"entrypoint\"' as\nthe only attribute, and with the value being a string describing the\nendpoint.\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\n\n**Warning:** \nThis route should no longer be used.\nIt is considered as deprecated from version 3.4.0 on.\n\n\n\n\n\n\n**Example:**\n \n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/endpoint\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n[ \n  { \n    \"endpoint\" : \"http://127.0.0.1:18836\" \n  } \n]\n
\n\n\n\n\n", "parameters": [], "responses": { "200": { @@ -9038,7 +9038,7 @@ }, "/_api/explain": { "post": { - "description": "\n**A JSON object 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** (string): 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.\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** (object): key/value pairs representing the bind parameters.\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.\nIf *allPlans* is set to *false*, the result will contain an attribute *cacheable* \nthat states whether the query results can be cached on the server if the query\nresult cache were used. The *cacheable* attribute is not present when *allPlans*\nis set to *true*.\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/ExecutionAndPerformance/Optimizer.html)\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/ExecutionAndPerformance/Optimizer.html)\n\n- *variables*: array of variables used in the query (note: this may contain\n internal variables created by the optimizer)\n\n\n\n\n**Example:**\n Valid query\n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/explain <<EOF\n{ \n  \"query\" : \"FOR p IN products RETURN p\" \n}\nEOF\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\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\" : 12, \n        \"estimatedNrItems\" : 10, \n        \"random\" : false, \n        \"outVariable\" : { \n          \"id\" : 0, \n          \"name\" : \"p\" \n        }, \n        \"projections\" : [ ], \n        \"producesResult\" : true, \n        \"database\" : \"_system\", \n        \"collection\" : \"products\", \n        \"satellite\" : false \n      }, \n      { \n        \"type\" : \"ReturnNode\", \n        \"dependencies\" : [ \n          2 \n        ], \n        \"id\" : 3, \n        \"estimatedCost\" : 22, \n        \"estimatedNrItems\" : 10, \n        \"inVariable\" : { \n          \"id\" : 0, \n          \"name\" : \"p\" \n        }, \n        \"count\" : true \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\" : 22, \n    \"estimatedNrItems\" : 10, \n    \"initialize\" : true, \n    \"isModificationQuery\" : false \n  }, \n  \"cacheable\" : true, \n  \"warnings\" : [ ], \n  \"stats\" : { \n    \"rulesExecuted\" : 35, \n    \"rulesSkipped\" : 0, \n    \"plansCreated\" : 1 \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n A plan with some optimizer rules applied\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\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\" : 4.321928094887362, \n        \"estimatedNrItems\" : 1, \n        \"outVariable\" : { \n          \"id\" : 0, \n          \"name\" : \"p\" \n        }, \n        \"projections\" : [ ], \n        \"producesResult\" : true, \n        \"database\" : \"_system\", \n        \"collection\" : \"products\", \n        \"satellite\" : false, \n        \"needsGatherNodeSort\" : true, \n        \"indexCoversProjections\" : false, \n        \"indexes\" : [ \n          { \n            \"id\" : \"104244\", \n            \"type\" : \"skiplist\", \n            \"fields\" : [ \n              \"id\" \n            ], \n            \"unique\" : false, \n            \"sparse\" : false, \n            \"deduplicate\" : true \n          } \n        ], \n        \"condition\" : { \n          \"type\" : \"n-ary or\", \n          \"typeID\" : 63, \n          \"subNodes\" : [ \n            { \n              \"type\" : \"n-ary and\", \n              \"typeID\" : 62, \n              \"subNodes\" : [ \n                { \n                  \"type\" : \"compare ==\", \n                  \"typeID\" : 25, \n                  \"excludesNull\" : false, \n                  \"subNodes\" : [ \n                    { \n                      \"type\" : \"attribute access\", \n                      \"typeID\" : 35, \n                      \"name\" : \"id\", \n                      \"subNodes\" : [ \n                        { \n                          \"type\" : \"reference\", \n                          \"typeID\" : 45, \n                          \"name\" : \"p\", \n                          \"id\" : 0 \n                        } \n                      ] \n                    }, \n                    { \n                      \"type\" : \"value\", \n                      \"typeID\" : 40, \n                      \"value\" : 4, \n                      \"vType\" : \"int\", \n                      \"vTypeID\" : 2 \n                    } \n                  ] \n                } \n              ] \n            } \n          ] \n        }, \n        \"sorted\" : true, \n        \"ascending\" : true, \n        \"reverse\" : false, \n        \"evalFCalls\" : true, \n        \"fullRange\" : false, \n        \"limit\" : 0 \n      }, \n      { \n        \"type\" : \"CalculationNode\", \n        \"dependencies\" : [ \n          11 \n        ], \n        \"id\" : 4, \n        \"estimatedCost\" : 5.321928094887362, \n        \"estimatedNrItems\" : 1, \n        \"expression\" : { \n          \"type\" : \"compare ==\", \n          \"typeID\" : 25, \n          \"excludesNull\" : false, \n          \"subNodes\" : [ \n            { \n              \"type\" : \"attribute access\", \n              \"typeID\" : 35, \n              \"name\" : \"id\", \n              \"subNodes\" : [ \n                { \n                  \"type\" : \"reference\", \n                  \"typeID\" : 45, \n                  \"name\" : \"p\", \n                  \"id\" : 0 \n                } \n              ] \n            }, \n            { \n              \"type\" : \"value\", \n              \"typeID\" : 40, \n              \"value\" : 4, \n              \"vType\" : \"int\", \n              \"vTypeID\" : 2 \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\" : 6.321928094887362, \n        \"estimatedNrItems\" : 1, \n        \"inVariable\" : { \n          \"id\" : 4, \n          \"name\" : \"3\" \n        } \n      }, \n      { \n        \"type\" : \"LimitNode\", \n        \"dependencies\" : [ \n          5 \n        ], \n        \"id\" : 9, \n        \"estimatedCost\" : 7.321928094887362, \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\" : 8.321928094887362, \n        \"estimatedNrItems\" : 1, \n        \"expression\" : { \n          \"type\" : \"attribute access\", \n          \"typeID\" : 35, \n          \"name\" : \"name\", \n          \"subNodes\" : [ \n            { \n              \"type\" : \"reference\", \n              \"typeID\" : 45, \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\" : 9.321928094887362, \n        \"estimatedNrItems\" : 1, \n        \"inVariable\" : { \n          \"id\" : 2, \n          \"name\" : \"name\" \n        }, \n        \"count\" : true \n      } \n    ], \n    \"rules\" : [ \n      \"move-calculations-up\", \n      \"remove-redundant-calculations\", \n      \"remove-unnecessary-calculations\", \n      \"move-calculations-up-2\", \n      \"use-indexes\", \n      \"use-index-for-sort\", \n      \"remove-unnecessary-calculations-2\", \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\" : 9.321928094887362, \n    \"estimatedNrItems\" : 1, \n    \"initialize\" : true, \n    \"isModificationQuery\" : false \n  }, \n  \"cacheable\" : true, \n  \"warnings\" : [ ], \n  \"stats\" : { \n    \"rulesExecuted\" : 35, \n    \"rulesSkipped\" : 0, \n    \"plansCreated\" : 1 \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n Using some options\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\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          \"outVariable\" : { \n            \"id\" : 0, \n            \"name\" : \"p\" \n          }, \n          \"projections\" : [ ], \n          \"producesResult\" : true, \n          \"database\" : \"_system\", \n          \"collection\" : \"products\", \n          \"satellite\" : false, \n          \"needsGatherNodeSort\" : true, \n          \"indexCoversProjections\" : false, \n          \"indexes\" : [ \n            { \n              \"id\" : \"104290\", \n              \"type\" : \"skiplist\", \n              \"fields\" : [ \n                \"id\" \n              ], \n              \"unique\" : false, \n              \"sparse\" : false, \n              \"deduplicate\" : true \n            } \n          ], \n          \"condition\" : { \n          }, \n          \"sorted\" : true, \n          \"ascending\" : true, \n          \"reverse\" : false, \n          \"evalFCalls\" : true, \n          \"fullRange\" : false, \n          \"limit\" : 0 \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            \"typeID\" : 35, \n            \"name\" : \"id\", \n            \"subNodes\" : [ \n              { \n                \"type\" : \"reference\", \n                \"typeID\" : 45, \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            \"typeID\" : 25, \n            \"excludesNull\" : false, \n            \"subNodes\" : [ \n              { \n                \"type\" : \"reference\", \n                \"typeID\" : 45, \n                \"name\" : \"a\", \n                \"id\" : 1 \n              }, \n              { \n                \"type\" : \"value\", \n                \"typeID\" : 40, \n                \"value\" : 4, \n                \"vType\" : \"int\", \n                \"vTypeID\" : 2 \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            \"typeID\" : 35, \n            \"name\" : \"name\", \n            \"subNodes\" : [ \n              { \n                \"type\" : \"reference\", \n                \"typeID\" : 45, \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            \"typeID\" : 35, \n            \"name\" : \"id\", \n            \"subNodes\" : [ \n              { \n                \"type\" : \"reference\", \n                \"typeID\" : 45, \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          \"count\" : true \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      \"initialize\" : true, \n      \"isModificationQuery\" : false \n    } \n  ], \n  \"warnings\" : [ ], \n  \"stats\" : { \n    \"rulesExecuted\" : 3, \n    \"rulesSkipped\" : 32, \n    \"plansCreated\" : 1 \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n Returning all plans\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\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          \"outVariable\" : { \n            \"id\" : 0, \n            \"name\" : \"p\" \n          }, \n          \"projections\" : [ ], \n          \"producesResult\" : true, \n          \"database\" : \"_system\", \n          \"collection\" : \"products\", \n          \"satellite\" : false, \n          \"needsGatherNodeSort\" : false, \n          \"indexCoversProjections\" : false, \n          \"indexes\" : [ \n            { \n              \"id\" : \"104206\", \n              \"type\" : \"hash\", \n              \"fields\" : [ \n                \"id\" \n              ], \n              \"selectivityEstimate\" : 1, \n              \"unique\" : false, \n              \"sparse\" : false, \n              \"deduplicate\" : true \n            } \n          ], \n          \"condition\" : { \n            \"type\" : \"n-ary or\", \n            \"typeID\" : 63, \n            \"subNodes\" : [ \n              { \n                \"type\" : \"n-ary and\", \n                \"typeID\" : 62, \n                \"subNodes\" : [ \n                  { \n                    \"type\" : \"compare ==\", \n                    \"typeID\" : 25, \n                    \"excludesNull\" : false, \n                    \"subNodes\" : [ \n                      { \n                        \"type\" : \"attribute access\", \n                        \"typeID\" : 35, \n                        \"name\" : \"id\", \n                        \"subNodes\" : [ \n                          { \n                            \"type\" : \"reference\", \n                            \"typeID\" : 45, \n                            \"name\" : \"p\", \n                            \"id\" : 0 \n                          } \n                        ] \n                      }, \n                      { \n                        \"type\" : \"value\", \n                        \"typeID\" : 40, \n                        \"value\" : 25, \n                        \"vType\" : \"int\", \n                        \"vTypeID\" : 2 \n                      } \n                    ] \n                  } \n                ] \n              } \n            ] \n          }, \n          \"sorted\" : true, \n          \"ascending\" : true, \n          \"reverse\" : false, \n          \"evalFCalls\" : true, \n          \"fullRange\" : false, \n          \"limit\" : 0 \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          \"count\" : true \n        } \n      ], \n      \"rules\" : [ \n        \"use-indexes\", \n        \"remove-filter-covered-by-index\", \n        \"remove-unnecessary-calculations-2\" \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      \"initialize\" : true, \n      \"isModificationQuery\" : false \n    } \n  ], \n  \"warnings\" : [ ], \n  \"stats\" : { \n    \"rulesExecuted\" : 35, \n    \"rulesSkipped\" : 0, \n    \"plansCreated\" : 1 \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n A query that produces a warning\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\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          \"typeID\" : 49, \n          \"subNodes\" : [ \n            { \n              \"type\" : \"value\", \n              \"typeID\" : 40, \n              \"value\" : 1, \n              \"vType\" : \"int\", \n              \"vTypeID\" : 2 \n            }, \n            { \n              \"type\" : \"value\", \n              \"typeID\" : 40, \n              \"value\" : 10, \n              \"vType\" : \"int\", \n              \"vTypeID\" : 2 \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          \"typeID\" : 40, \n          \"value\" : null, \n          \"vType\" : \"null\", \n          \"vTypeID\" : 0 \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        \"count\" : true \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    \"initialize\" : true, \n    \"isModificationQuery\" : false \n  }, \n  \"cacheable\" : false, \n  \"warnings\" : [ \n    { \n      \"code\" : 1562, \n      \"message\" : \"division by zero\" \n    } \n  ], \n  \"stats\" : { \n    \"rulesExecuted\" : 35, \n    \"rulesSkipped\" : 0, \n    \"plansCreated\" : 1 \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n Invalid query (missing bind parameter)\n\n
shell> curl -X POST --header 'accept: application/json' --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 Bad Request\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"no value specified for declared bind parameter 'id' (while parsing)\", \n  \"code\" : 400, \n  \"errorNum\" : 1551 \n}\n
\n\n\n\n\n**Example:**\n The data returned in the **plan** attribute of the result contains one element per AQL top-level statement\n(i.e. `FOR`, `RETURN`, `FILTER` etc.). If the query optimizer removed some unnecessary statements,\nthe result might also contain less elements than there were top-level statements in the AQL query.\n\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.\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\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          \"typeID\" : 41, \n          \"subNodes\" : [ \n            { \n              \"type\" : \"value\", \n              \"typeID\" : 40, \n              \"value\" : 1, \n              \"vType\" : \"int\", \n              \"vTypeID\" : 2 \n            }, \n            { \n              \"type\" : \"value\", \n              \"typeID\" : 40, \n              \"value\" : 2, \n              \"vType\" : \"int\", \n              \"vTypeID\" : 2 \n            }, \n            { \n              \"type\" : \"value\", \n              \"typeID\" : 40, \n              \"value\" : 3, \n              \"vType\" : \"int\", \n              \"vTypeID\" : 2 \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        \"count\" : true \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    \"initialize\" : true, \n    \"isModificationQuery\" : false \n  }, \n  \"cacheable\" : true, \n  \"warnings\" : [ ], \n  \"stats\" : { \n    \"rulesExecuted\" : 35, \n    \"rulesSkipped\" : 0, \n    \"plansCreated\" : 1 \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n", + "description": "\n**A JSON object 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** (string): 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.\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** (object): key/value pairs representing the bind parameters.\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.\nIf *allPlans* is set to *false*, the result will contain an attribute *cacheable* \nthat states whether the query results can be cached on the server if the query\nresult cache were used. The *cacheable* attribute is not present when *allPlans*\nis set to *true*.\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/ExecutionAndPerformance/Optimizer.html)\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/ExecutionAndPerformance/Optimizer.html)\n\n- *variables*: array of variables used in the query (note: this may contain\n internal variables created by the optimizer)\n\n\n\n\n**Example:**\n Valid query\n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/explain <<EOF\n{ \n  \"query\" : \"FOR p IN products RETURN p\" \n}\nEOF\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\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\" : 12, \n        \"estimatedNrItems\" : 10, \n        \"random\" : false, \n        \"outVariable\" : { \n          \"id\" : 0, \n          \"name\" : \"p\" \n        }, \n        \"projections\" : [ ], \n        \"producesResult\" : true, \n        \"database\" : \"_system\", \n        \"collection\" : \"products\", \n        \"satellite\" : false \n      }, \n      { \n        \"type\" : \"ReturnNode\", \n        \"dependencies\" : [ \n          2 \n        ], \n        \"id\" : 3, \n        \"estimatedCost\" : 22, \n        \"estimatedNrItems\" : 10, \n        \"inVariable\" : { \n          \"id\" : 0, \n          \"name\" : \"p\" \n        }, \n        \"count\" : true \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\" : 22, \n    \"estimatedNrItems\" : 10, \n    \"initialize\" : true, \n    \"isModificationQuery\" : false \n  }, \n  \"cacheable\" : true, \n  \"warnings\" : [ ], \n  \"stats\" : { \n    \"rulesExecuted\" : 35, \n    \"rulesSkipped\" : 0, \n    \"plansCreated\" : 1 \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n A plan with some optimizer rules applied\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\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\" : 4.321928094887362, \n        \"estimatedNrItems\" : 1, \n        \"outVariable\" : { \n          \"id\" : 0, \n          \"name\" : \"p\" \n        }, \n        \"projections\" : [ ], \n        \"producesResult\" : true, \n        \"database\" : \"_system\", \n        \"collection\" : \"products\", \n        \"satellite\" : false, \n        \"needsGatherNodeSort\" : true, \n        \"indexCoversProjections\" : false, \n        \"indexes\" : [ \n          { \n            \"id\" : \"104254\", \n            \"type\" : \"skiplist\", \n            \"fields\" : [ \n              \"id\" \n            ], \n            \"unique\" : false, \n            \"sparse\" : false, \n            \"deduplicate\" : true \n          } \n        ], \n        \"condition\" : { \n          \"type\" : \"n-ary or\", \n          \"typeID\" : 63, \n          \"subNodes\" : [ \n            { \n              \"type\" : \"n-ary and\", \n              \"typeID\" : 62, \n              \"subNodes\" : [ \n                { \n                  \"type\" : \"compare ==\", \n                  \"typeID\" : 25, \n                  \"excludesNull\" : false, \n                  \"subNodes\" : [ \n                    { \n                      \"type\" : \"attribute access\", \n                      \"typeID\" : 35, \n                      \"name\" : \"id\", \n                      \"subNodes\" : [ \n                        { \n                          \"type\" : \"reference\", \n                          \"typeID\" : 45, \n                          \"name\" : \"p\", \n                          \"id\" : 0 \n                        } \n                      ] \n                    }, \n                    { \n                      \"type\" : \"value\", \n                      \"typeID\" : 40, \n                      \"value\" : 4, \n                      \"vType\" : \"int\", \n                      \"vTypeID\" : 2 \n                    } \n                  ] \n                } \n              ] \n            } \n          ] \n        }, \n        \"sorted\" : true, \n        \"ascending\" : true, \n        \"reverse\" : false, \n        \"evalFCalls\" : true, \n        \"fullRange\" : false, \n        \"limit\" : 0 \n      }, \n      { \n        \"type\" : \"CalculationNode\", \n        \"dependencies\" : [ \n          11 \n        ], \n        \"id\" : 4, \n        \"estimatedCost\" : 5.321928094887362, \n        \"estimatedNrItems\" : 1, \n        \"expression\" : { \n          \"type\" : \"compare ==\", \n          \"typeID\" : 25, \n          \"excludesNull\" : false, \n          \"subNodes\" : [ \n            { \n              \"type\" : \"attribute access\", \n              \"typeID\" : 35, \n              \"name\" : \"id\", \n              \"subNodes\" : [ \n                { \n                  \"type\" : \"reference\", \n                  \"typeID\" : 45, \n                  \"name\" : \"p\", \n                  \"id\" : 0 \n                } \n              ] \n            }, \n            { \n              \"type\" : \"value\", \n              \"typeID\" : 40, \n              \"value\" : 4, \n              \"vType\" : \"int\", \n              \"vTypeID\" : 2 \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\" : 6.321928094887362, \n        \"estimatedNrItems\" : 1, \n        \"inVariable\" : { \n          \"id\" : 4, \n          \"name\" : \"3\" \n        } \n      }, \n      { \n        \"type\" : \"LimitNode\", \n        \"dependencies\" : [ \n          5 \n        ], \n        \"id\" : 9, \n        \"estimatedCost\" : 7.321928094887362, \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\" : 8.321928094887362, \n        \"estimatedNrItems\" : 1, \n        \"expression\" : { \n          \"type\" : \"attribute access\", \n          \"typeID\" : 35, \n          \"name\" : \"name\", \n          \"subNodes\" : [ \n            { \n              \"type\" : \"reference\", \n              \"typeID\" : 45, \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\" : 9.321928094887362, \n        \"estimatedNrItems\" : 1, \n        \"inVariable\" : { \n          \"id\" : 2, \n          \"name\" : \"name\" \n        }, \n        \"count\" : true \n      } \n    ], \n    \"rules\" : [ \n      \"move-calculations-up\", \n      \"remove-redundant-calculations\", \n      \"remove-unnecessary-calculations\", \n      \"move-calculations-up-2\", \n      \"use-indexes\", \n      \"use-index-for-sort\", \n      \"remove-unnecessary-calculations-2\", \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\" : 9.321928094887362, \n    \"estimatedNrItems\" : 1, \n    \"initialize\" : true, \n    \"isModificationQuery\" : false \n  }, \n  \"cacheable\" : true, \n  \"warnings\" : [ ], \n  \"stats\" : { \n    \"rulesExecuted\" : 35, \n    \"rulesSkipped\" : 0, \n    \"plansCreated\" : 1 \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n Using some options\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\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          \"outVariable\" : { \n            \"id\" : 0, \n            \"name\" : \"p\" \n          }, \n          \"projections\" : [ ], \n          \"producesResult\" : true, \n          \"database\" : \"_system\", \n          \"collection\" : \"products\", \n          \"satellite\" : false, \n          \"needsGatherNodeSort\" : true, \n          \"indexCoversProjections\" : false, \n          \"indexes\" : [ \n            { \n              \"id\" : \"104300\", \n              \"type\" : \"skiplist\", \n              \"fields\" : [ \n                \"id\" \n              ], \n              \"unique\" : false, \n              \"sparse\" : false, \n              \"deduplicate\" : true \n            } \n          ], \n          \"condition\" : { \n          }, \n          \"sorted\" : true, \n          \"ascending\" : true, \n          \"reverse\" : false, \n          \"evalFCalls\" : true, \n          \"fullRange\" : false, \n          \"limit\" : 0 \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            \"typeID\" : 35, \n            \"name\" : \"id\", \n            \"subNodes\" : [ \n              { \n                \"type\" : \"reference\", \n                \"typeID\" : 45, \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            \"typeID\" : 25, \n            \"excludesNull\" : false, \n            \"subNodes\" : [ \n              { \n                \"type\" : \"reference\", \n                \"typeID\" : 45, \n                \"name\" : \"a\", \n                \"id\" : 1 \n              }, \n              { \n                \"type\" : \"value\", \n                \"typeID\" : 40, \n                \"value\" : 4, \n                \"vType\" : \"int\", \n                \"vTypeID\" : 2 \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            \"typeID\" : 35, \n            \"name\" : \"name\", \n            \"subNodes\" : [ \n              { \n                \"type\" : \"reference\", \n                \"typeID\" : 45, \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            \"typeID\" : 35, \n            \"name\" : \"id\", \n            \"subNodes\" : [ \n              { \n                \"type\" : \"reference\", \n                \"typeID\" : 45, \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          \"count\" : true \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      \"initialize\" : true, \n      \"isModificationQuery\" : false \n    } \n  ], \n  \"warnings\" : [ ], \n  \"stats\" : { \n    \"rulesExecuted\" : 3, \n    \"rulesSkipped\" : 32, \n    \"plansCreated\" : 1 \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n Returning all plans\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\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          \"outVariable\" : { \n            \"id\" : 0, \n            \"name\" : \"p\" \n          }, \n          \"projections\" : [ ], \n          \"producesResult\" : true, \n          \"database\" : \"_system\", \n          \"collection\" : \"products\", \n          \"satellite\" : false, \n          \"needsGatherNodeSort\" : false, \n          \"indexCoversProjections\" : false, \n          \"indexes\" : [ \n            { \n              \"id\" : \"104216\", \n              \"type\" : \"hash\", \n              \"fields\" : [ \n                \"id\" \n              ], \n              \"selectivityEstimate\" : 1, \n              \"unique\" : false, \n              \"sparse\" : false, \n              \"deduplicate\" : true \n            } \n          ], \n          \"condition\" : { \n            \"type\" : \"n-ary or\", \n            \"typeID\" : 63, \n            \"subNodes\" : [ \n              { \n                \"type\" : \"n-ary and\", \n                \"typeID\" : 62, \n                \"subNodes\" : [ \n                  { \n                    \"type\" : \"compare ==\", \n                    \"typeID\" : 25, \n                    \"excludesNull\" : false, \n                    \"subNodes\" : [ \n                      { \n                        \"type\" : \"attribute access\", \n                        \"typeID\" : 35, \n                        \"name\" : \"id\", \n                        \"subNodes\" : [ \n                          { \n                            \"type\" : \"reference\", \n                            \"typeID\" : 45, \n                            \"name\" : \"p\", \n                            \"id\" : 0 \n                          } \n                        ] \n                      }, \n                      { \n                        \"type\" : \"value\", \n                        \"typeID\" : 40, \n                        \"value\" : 25, \n                        \"vType\" : \"int\", \n                        \"vTypeID\" : 2 \n                      } \n                    ] \n                  } \n                ] \n              } \n            ] \n          }, \n          \"sorted\" : true, \n          \"ascending\" : true, \n          \"reverse\" : false, \n          \"evalFCalls\" : true, \n          \"fullRange\" : false, \n          \"limit\" : 0 \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          \"count\" : true \n        } \n      ], \n      \"rules\" : [ \n        \"use-indexes\", \n        \"remove-filter-covered-by-index\", \n        \"remove-unnecessary-calculations-2\" \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      \"initialize\" : true, \n      \"isModificationQuery\" : false \n    } \n  ], \n  \"warnings\" : [ ], \n  \"stats\" : { \n    \"rulesExecuted\" : 35, \n    \"rulesSkipped\" : 0, \n    \"plansCreated\" : 1 \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n A query that produces a warning\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\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          \"typeID\" : 49, \n          \"subNodes\" : [ \n            { \n              \"type\" : \"value\", \n              \"typeID\" : 40, \n              \"value\" : 1, \n              \"vType\" : \"int\", \n              \"vTypeID\" : 2 \n            }, \n            { \n              \"type\" : \"value\", \n              \"typeID\" : 40, \n              \"value\" : 10, \n              \"vType\" : \"int\", \n              \"vTypeID\" : 2 \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          \"typeID\" : 40, \n          \"value\" : null, \n          \"vType\" : \"null\", \n          \"vTypeID\" : 0 \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        \"count\" : true \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    \"initialize\" : true, \n    \"isModificationQuery\" : false \n  }, \n  \"cacheable\" : false, \n  \"warnings\" : [ \n    { \n      \"code\" : 1562, \n      \"message\" : \"division by zero\" \n    } \n  ], \n  \"stats\" : { \n    \"rulesExecuted\" : 35, \n    \"rulesSkipped\" : 0, \n    \"plansCreated\" : 1 \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n Invalid query (missing bind parameter)\n\n
shell> curl -X POST --header 'accept: application/json' --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 Bad Request\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"no value specified for declared bind parameter 'id' (while parsing)\", \n  \"code\" : 400, \n  \"errorNum\" : 1551 \n}\n
\n\n\n\n\n**Example:**\n The data returned in the **plan** attribute of the result contains one element per AQL top-level statement\n(i.e. `FOR`, `RETURN`, `FILTER` etc.). If the query optimizer removed some unnecessary statements,\nthe result might also contain less elements than there were top-level statements in the AQL query.\n\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.\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\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          \"typeID\" : 41, \n          \"subNodes\" : [ \n            { \n              \"type\" : \"value\", \n              \"typeID\" : 40, \n              \"value\" : 1, \n              \"vType\" : \"int\", \n              \"vTypeID\" : 2 \n            }, \n            { \n              \"type\" : \"value\", \n              \"typeID\" : 40, \n              \"value\" : 2, \n              \"vType\" : \"int\", \n              \"vTypeID\" : 2 \n            }, \n            { \n              \"type\" : \"value\", \n              \"typeID\" : 40, \n              \"value\" : 3, \n              \"vType\" : \"int\", \n              \"vTypeID\" : 2 \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        \"count\" : true \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    \"initialize\" : true, \n    \"isModificationQuery\" : false \n  }, \n  \"cacheable\" : true, \n  \"warnings\" : [ ], \n  \"stats\" : { \n    \"rulesExecuted\" : 35, \n    \"rulesSkipped\" : 0, \n    \"plansCreated\" : 1 \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n", "parameters": [ { "in": "body", @@ -9817,7 +9817,7 @@ }, "/_api/gharial": { "get": { - "description": "\n\nLists all graphs stored in this database.\n\n\n**HTTP 200**\n*A json document with these Properties is returned:*\n\nIs returned if the module is available and the graphs could be listed.\n\n- **graphs**: \n - **graph**:\n - **smartGraphAttribute**: The name of the sharding attribute in smart graph case (Enterprise Only)\n - **replicationFactor**: The replication factor used for every new collection in the graph.\n - **orphanCollections** (string): An array of additional vertex collections.\n Documents within these collections do not have edges within this graph.\n - **name**: The name of the graph\n - **_rev**: The revision of this graph. Can be used to make sure to not override\n concurrent modifications to this graph.\n - **numberOfShards**: Number of shards created for every new collection in the graph.\n - **isSmart**: Flag if the graph is a SmartGraph (Enterprise only) or not.\n - **_id**: The internal id value of this graph. \n - **edgeDefinitions**: An array of definitions for the relations of the graph.\n Each has the following type:\n - **to** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _to is in any of the collections here.\n - **from** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _from is in any of the collections here.\n - **collection**: Name of the edge collection, where the edge are stored in.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n\n\n**Example:**\n \n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/gharial\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"graphs\" : [ \n    { \n      \"_key\" : \"routeplanner\", \n      \"_id\" : \"_graphs/routeplanner\", \n      \"_rev\" : \"_YNEaE9G--B\", \n      \"numberOfShards\" : 1, \n      \"replicationFactor\" : 1, \n      \"isSmart\" : false, \n      \"edgeDefinitions\" : [ \n        { \n          \"collection\" : \"frenchHighway\", \n          \"from\" : [ \n            \"frenchCity\" \n          ], \n          \"to\" : [ \n            \"frenchCity\" \n          ] \n        }, \n        { \n          \"collection\" : \"germanHighway\", \n          \"from\" : [ \n            \"germanCity\" \n          ], \n          \"to\" : [ \n            \"germanCity\" \n          ] \n        }, \n        { \n          \"collection\" : \"internationalHighway\", \n          \"from\" : [ \n            \"frenchCity\", \n            \"germanCity\" \n          ], \n          \"to\" : [ \n            \"frenchCity\", \n            \"germanCity\" \n          ] \n        } \n      ], \n      \"orphanCollections\" : [ ] \n    }, \n    { \n      \"_key\" : \"social\", \n      \"_id\" : \"_graphs/social\", \n      \"_rev\" : \"_YNEaE6C--B\", \n      \"numberOfShards\" : 1, \n      \"replicationFactor\" : 1, \n      \"isSmart\" : false, \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}\n
\n\n\n\n\n", + "description": "\n\nLists all graphs stored in this database.\n\n\n**HTTP 200**\n*A json document with these Properties is returned:*\n\nIs returned if the module is available and the graphs could be listed.\n\n- **graphs**: \n - **graph**:\n - **smartGraphAttribute**: The name of the sharding attribute in smart graph case (Enterprise Only)\n - **replicationFactor**: The replication factor used for every new collection in the graph.\n - **orphanCollections** (string): An array of additional vertex collections.\n Documents within these collections do not have edges within this graph.\n - **name**: The name of the graph\n - **_rev**: The revision of this graph. Can be used to make sure to not override\n concurrent modifications to this graph.\n - **numberOfShards**: Number of shards created for every new collection in the graph.\n - **isSmart**: Flag if the graph is a SmartGraph (Enterprise only) or not.\n - **_id**: The internal id value of this graph. \n - **edgeDefinitions**: An array of definitions for the relations of the graph.\n Each has the following type:\n - **to** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _to is in any of the collections here.\n - **from** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _from is in any of the collections here.\n - **collection**: Name of the edge collection, where the edge are stored in.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n\n\n**Example:**\n \n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/gharial\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"graphs\" : [ \n    { \n      \"_key\" : \"routeplanner\", \n      \"_id\" : \"_graphs/routeplanner\", \n      \"_rev\" : \"_YOn1HVm--B\", \n      \"numberOfShards\" : 1, \n      \"replicationFactor\" : 1, \n      \"isSmart\" : false, \n      \"edgeDefinitions\" : [ \n        { \n          \"collection\" : \"frenchHighway\", \n          \"from\" : [ \n            \"frenchCity\" \n          ], \n          \"to\" : [ \n            \"frenchCity\" \n          ] \n        }, \n        { \n          \"collection\" : \"germanHighway\", \n          \"from\" : [ \n            \"germanCity\" \n          ], \n          \"to\" : [ \n            \"germanCity\" \n          ] \n        }, \n        { \n          \"collection\" : \"internationalHighway\", \n          \"from\" : [ \n            \"frenchCity\", \n            \"germanCity\" \n          ], \n          \"to\" : [ \n            \"frenchCity\", \n            \"germanCity\" \n          ] \n        } \n      ], \n      \"orphanCollections\" : [ ] \n    }, \n    { \n      \"_key\" : \"social\", \n      \"_id\" : \"_graphs/social\", \n      \"_rev\" : \"_YOn1HT---B\", \n      \"numberOfShards\" : 1, \n      \"replicationFactor\" : 1, \n      \"isSmart\" : false, \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}\n
\n\n\n\n\n", "parameters": [], "produces": [ "application/json" @@ -9840,7 +9840,7 @@ "x-hints": "" }, "post": { - "description": "\n\nThe creation of a graph requires the name of the graph and a\ndefinition of its edges.\n[See also edge definitions](../../Manual/Graphs/GeneralGraphs/Management.html#edge-definitions).\n\n\n**A JSON object with these properties is required:**\n\n - **isSmart**: Define if the created graph should be smart.\n This only has effect in Enterprise Edition.\n - **edgeDefinitions**: An array of definitions for the relations of the graph.\n Each has the following type:\n - **to** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _to is in any of the collections here.\n - **from** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _from is in any of the collections here.\n - **collection**: Name of the edge collection, where the edge are stored in.\n - **name**: Name of the graph.\n - **options**:\n - **smartGraphAttribute**: Only has effect in Enterprise Edition and it is required if isSmart is true.\n The attribute name that is used to smartly shard the vertices of a graph.\n Every vertex in this SmartGraph has to have this attribute.\n Cannot be modified later.\n - **numberOfShards**: The number of shards that is used for every collection within this graph.\n Cannot be modified later.\n - **replicationFactor**: The replication factor used when initially creating collections for this graph.\n\n\n\n**HTTP 201**\n*A json document with these Properties is returned:*\n\nIs returned if the graph could be created and waitForSync is enabled\nfor the `_graphs` collection, or given in the request.\nThe response body contains the graph configuration that has been stored.\n\n- **graph**:\n - **smartGraphAttribute**: The name of the sharding attribute in smart graph case (Enterprise Only)\n - **replicationFactor**: The replication factor used for every new collection in the graph.\n - **orphanCollections** (string): An array of additional vertex collections.\n Documents within these collections do not have edges within this graph.\n - **name**: The name of the graph\n - **_rev**: The revision of this graph. Can be used to make sure to not override\n concurrent modifications to this graph.\n - **numberOfShards**: Number of shards created for every new collection in the graph.\n - **isSmart**: Flag if the graph is a SmartGraph (Enterprise only) or not.\n - **_id**: The internal id value of this graph. \n - **edgeDefinitions**: An array of definitions for the relations of the graph.\n Each has the following type:\n - **to** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _to is in any of the collections here.\n - **from** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _from is in any of the collections here.\n - **collection**: Name of the edge collection, where the edge are stored in.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 202**\n*A json document with these Properties is returned:*\n\nIs returned if the graph could be created and waitForSync is disabled\nfor the `_graphs` collection and not given in the request.\nThe response body contains the graph configuration that has been stored.\n\n- **graph**:\n - **smartGraphAttribute**: The name of the sharding attribute in smart graph case (Enterprise Only)\n - **replicationFactor**: The replication factor used for every new collection in the graph.\n - **orphanCollections** (string): An array of additional vertex collections.\n Documents within these collections do not have edges within this graph.\n - **name**: The name of the graph\n - **_rev**: The revision of this graph. Can be used to make sure to not override\n concurrent modifications to this graph.\n - **numberOfShards**: Number of shards created for every new collection in the graph.\n - **isSmart**: Flag if the graph is a SmartGraph (Enterprise only) or not.\n - **_id**: The internal id value of this graph. \n - **edgeDefinitions**: An array of definitions for the relations of the graph.\n Each has the following type:\n - **to** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _to is in any of the collections here.\n - **from** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _from is in any of the collections here.\n - **collection**: Name of the edge collection, where the edge are stored in.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 400**\n*A json document with these Properties is returned:*\n\nReturned if the request is in a wrong format.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 403**\n*A json document with these Properties is returned:*\n\nReturned if your user has insufficient rights.\nIn order to create a graph you at least need to have the following privileges:\n 1. `Administrate` access on the Database.\n 2. `Read Only` access on every collection used within this graph.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 409**\n*A json document with these Properties is returned:*\n\nReturned if there is a conflict storing the graph. This can occur\neither if a graph with this name is already stored, or if there is one\nedge definition with a the same\n[edge collection](../../Manual/Appendix/Glossary.html#edge-collection) but a\ndifferent signature used in any other graph.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n\n\n**Example:**\n \n\n
shell> curl -X POST --header 'accept: application/json' --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 Accepted\ncontent-type: application/json; charset=utf-8\netag: _YNEaEYi--B\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"graph\" : { \n    \"_key\" : \"myGraph\", \n    \"numberOfShards\" : 1, \n    \"replicationFactor\" : 1, \n    \"isSmart\" : false, \n    \"edgeDefinitions\" : [ \n      { \n        \"collection\" : \"edges\", \n        \"from\" : [ \n          \"startVertices\" \n        ], \n        \"to\" : [ \n          \"endVertices\" \n        ] \n      } \n    ], \n    \"orphanCollections\" : [ ], \n    \"_rev\" : \"_YNEaEYi--B\", \n    \"_id\" : \"_graphs/myGraph\", \n    \"name\" : \"myGraph\" \n  } \n}\n
\n\n\n\n\n**Example:**\n \n\n
shell> curl -X POST --header 'accept: application/json' --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  \"isSmart\" : true, \n  \"options\" : { \n    \"replicationFactor\" : 2, \n    \"numberOfShards\" : 9, \n    \"smartGraphAttribute\" : \"region\" \n  } \n}\nEOF\n\nHTTP/1.1 Accepted\ncontent-type: application/json; charset=utf-8\netag: _YNEaEbq--B\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"graph\" : { \n    \"_key\" : \"myGraph\", \n    \"numberOfShards\" : 9, \n    \"replicationFactor\" : 2, \n    \"isSmart\" : true, \n    \"edgeDefinitions\" : [ \n      { \n        \"collection\" : \"edges\", \n        \"from\" : [ \n          \"startVertices\" \n        ], \n        \"to\" : [ \n          \"endVertices\" \n        ] \n      } \n    ], \n    \"orphanCollections\" : [ ], \n    \"initial\" : \"startVertices\", \n    \"initialCid\" : 101271, \n    \"smartGraphAttribute\" : \"region\", \n    \"_rev\" : \"_YNEaEbq--B\", \n    \"_id\" : \"_graphs/myGraph\", \n    \"name\" : \"myGraph\" \n  } \n}\n
\n\n\n\n\n", + "description": "\n\nThe creation of a graph requires the name of the graph and a\ndefinition of its edges.\n[See also edge definitions](../../Manual/Graphs/GeneralGraphs/Management.html#edge-definitions).\n\n\n**A JSON object with these properties is required:**\n\n - **isSmart**: Define if the created graph should be smart.\n This only has effect in Enterprise Edition.\n - **edgeDefinitions**: An array of definitions for the relations of the graph.\n Each has the following type:\n - **to** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _to is in any of the collections here.\n - **from** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _from is in any of the collections here.\n - **collection**: Name of the edge collection, where the edge are stored in.\n - **name**: Name of the graph.\n - **options**:\n - **smartGraphAttribute**: Only has effect in Enterprise Edition and it is required if isSmart is true.\n The attribute name that is used to smartly shard the vertices of a graph.\n Every vertex in this SmartGraph has to have this attribute.\n Cannot be modified later.\n - **numberOfShards**: The number of shards that is used for every collection within this graph.\n Cannot be modified later.\n - **replicationFactor**: The replication factor used when initially creating collections for this graph.\n\n\n\n**HTTP 201**\n*A json document with these Properties is returned:*\n\nIs returned if the graph could be created and waitForSync is enabled\nfor the `_graphs` collection, or given in the request.\nThe response body contains the graph configuration that has been stored.\n\n- **graph**:\n - **smartGraphAttribute**: The name of the sharding attribute in smart graph case (Enterprise Only)\n - **replicationFactor**: The replication factor used for every new collection in the graph.\n - **orphanCollections** (string): An array of additional vertex collections.\n Documents within these collections do not have edges within this graph.\n - **name**: The name of the graph\n - **_rev**: The revision of this graph. Can be used to make sure to not override\n concurrent modifications to this graph.\n - **numberOfShards**: Number of shards created for every new collection in the graph.\n - **isSmart**: Flag if the graph is a SmartGraph (Enterprise only) or not.\n - **_id**: The internal id value of this graph. \n - **edgeDefinitions**: An array of definitions for the relations of the graph.\n Each has the following type:\n - **to** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _to is in any of the collections here.\n - **from** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _from is in any of the collections here.\n - **collection**: Name of the edge collection, where the edge are stored in.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 202**\n*A json document with these Properties is returned:*\n\nIs returned if the graph could be created and waitForSync is disabled\nfor the `_graphs` collection and not given in the request.\nThe response body contains the graph configuration that has been stored.\n\n- **graph**:\n - **smartGraphAttribute**: The name of the sharding attribute in smart graph case (Enterprise Only)\n - **replicationFactor**: The replication factor used for every new collection in the graph.\n - **orphanCollections** (string): An array of additional vertex collections.\n Documents within these collections do not have edges within this graph.\n - **name**: The name of the graph\n - **_rev**: The revision of this graph. Can be used to make sure to not override\n concurrent modifications to this graph.\n - **numberOfShards**: Number of shards created for every new collection in the graph.\n - **isSmart**: Flag if the graph is a SmartGraph (Enterprise only) or not.\n - **_id**: The internal id value of this graph. \n - **edgeDefinitions**: An array of definitions for the relations of the graph.\n Each has the following type:\n - **to** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _to is in any of the collections here.\n - **from** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _from is in any of the collections here.\n - **collection**: Name of the edge collection, where the edge are stored in.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 400**\n*A json document with these Properties is returned:*\n\nReturned if the request is in a wrong format.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 403**\n*A json document with these Properties is returned:*\n\nReturned if your user has insufficient rights.\nIn order to create a graph you at least need to have the following privileges:\n 1. `Administrate` access on the Database.\n 2. `Read Only` access on every collection used within this graph.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 409**\n*A json document with these Properties is returned:*\n\nReturned if there is a conflict storing the graph. This can occur\neither if a graph with this name is already stored, or if there is one\nedge definition with a the same\n[edge collection](../../Manual/Appendix/Glossary.html#edge-collection) but a\ndifferent signature used in any other graph.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n\n\n**Example:**\n \n\n
shell> curl -X POST --header 'accept: application/json' --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 Accepted\ncontent-type: application/json; charset=utf-8\netag: _YOn1G0O--B\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"graph\" : { \n    \"_key\" : \"myGraph\", \n    \"numberOfShards\" : 1, \n    \"replicationFactor\" : 1, \n    \"isSmart\" : false, \n    \"edgeDefinitions\" : [ \n      { \n        \"collection\" : \"edges\", \n        \"from\" : [ \n          \"startVertices\" \n        ], \n        \"to\" : [ \n          \"endVertices\" \n        ] \n      } \n    ], \n    \"orphanCollections\" : [ ], \n    \"_rev\" : \"_YOn1G0O--B\", \n    \"_id\" : \"_graphs/myGraph\", \n    \"name\" : \"myGraph\" \n  } \n}\n
\n\n\n\n\n**Example:**\n \n\n
shell> curl -X POST --header 'accept: application/json' --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  \"isSmart\" : true, \n  \"options\" : { \n    \"replicationFactor\" : 2, \n    \"numberOfShards\" : 9, \n    \"smartGraphAttribute\" : \"region\" \n  } \n}\nEOF\n\nHTTP/1.1 Accepted\ncontent-type: application/json; charset=utf-8\netag: _YOn1G3a--_\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"graph\" : { \n    \"_key\" : \"myGraph\", \n    \"numberOfShards\" : 9, \n    \"replicationFactor\" : 2, \n    \"isSmart\" : true, \n    \"edgeDefinitions\" : [ \n      { \n        \"collection\" : \"edges\", \n        \"from\" : [ \n          \"startVertices\" \n        ], \n        \"to\" : [ \n          \"endVertices\" \n        ] \n      } \n    ], \n    \"orphanCollections\" : [ ], \n    \"initial\" : \"startVertices\", \n    \"initialCid\" : 101271, \n    \"smartGraphAttribute\" : \"region\", \n    \"_rev\" : \"_YOn1G3a--_\", \n    \"_id\" : \"_graphs/myGraph\", \n    \"name\" : \"myGraph\" \n  } \n}\n
\n\n\n\n\n", "parameters": [ { "description": "define if the request should wait until everything is synced to disc.\nWill change the success response code.\n\n", @@ -9962,7 +9962,7 @@ "x-hints": "" }, "get": { - "description": "\n\nSelects information for a given graph.\nWill return the edge definitions as well as the orphan collections.\nOr returns a 404 if the graph does not exist.\n\n\n**HTTP 200**\n*A json document with these Properties is returned:*\n\nReturns the graph if it could be found.\nThe result will have the following format:\n\n- **graph**:\n - **smartGraphAttribute**: The name of the sharding attribute in smart graph case (Enterprise Only)\n - **replicationFactor**: The replication factor used for every new collection in the graph.\n - **orphanCollections** (string): An array of additional vertex collections.\n Documents within these collections do not have edges within this graph.\n - **name**: The name of the graph\n - **_rev**: The revision of this graph. Can be used to make sure to not override\n concurrent modifications to this graph.\n - **numberOfShards**: Number of shards created for every new collection in the graph.\n - **isSmart**: Flag if the graph is a SmartGraph (Enterprise only) or not.\n - **_id**: The internal id value of this graph. \n - **edgeDefinitions**: An array of definitions for the relations of the graph.\n Each has the following type:\n - **to** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _to is in any of the collections here.\n - **from** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _from is in any of the collections here.\n - **collection**: Name of the edge collection, where the edge are stored in.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 404**\n*A json document with these Properties is returned:*\n\nReturned if no graph with this name could be found.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n\n\n**Example:**\n \n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/gharial/myGraph\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"graph\" : { \n    \"_key\" : \"myGraph\", \n    \"numberOfShards\" : 1, \n    \"replicationFactor\" : 1, \n    \"isSmart\" : false, \n    \"edgeDefinitions\" : [ \n      { \n        \"collection\" : \"edges\", \n        \"from\" : [ \n          \"startVertices\" \n        ], \n        \"to\" : [ \n          \"endVertices\" \n        ] \n      } \n    ], \n    \"orphanCollections\" : [ ], \n    \"_rev\" : \"_YNEaEzW--B\", \n    \"_id\" : \"_graphs/myGraph\", \n    \"name\" : \"myGraph\" \n  } \n}\n
\n\n\n\n\n", + "description": "\n\nSelects information for a given graph.\nWill return the edge definitions as well as the orphan collections.\nOr returns a 404 if the graph does not exist.\n\n\n**HTTP 200**\n*A json document with these Properties is returned:*\n\nReturns the graph if it could be found.\nThe result will have the following format:\n\n- **graph**:\n - **smartGraphAttribute**: The name of the sharding attribute in smart graph case (Enterprise Only)\n - **replicationFactor**: The replication factor used for every new collection in the graph.\n - **orphanCollections** (string): An array of additional vertex collections.\n Documents within these collections do not have edges within this graph.\n - **name**: The name of the graph\n - **_rev**: The revision of this graph. Can be used to make sure to not override\n concurrent modifications to this graph.\n - **numberOfShards**: Number of shards created for every new collection in the graph.\n - **isSmart**: Flag if the graph is a SmartGraph (Enterprise only) or not.\n - **_id**: The internal id value of this graph. \n - **edgeDefinitions**: An array of definitions for the relations of the graph.\n Each has the following type:\n - **to** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _to is in any of the collections here.\n - **from** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _from is in any of the collections here.\n - **collection**: Name of the edge collection, where the edge are stored in.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 404**\n*A json document with these Properties is returned:*\n\nReturned if no graph with this name could be found.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n\n\n**Example:**\n \n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/gharial/myGraph\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"graph\" : { \n    \"_key\" : \"myGraph\", \n    \"numberOfShards\" : 1, \n    \"replicationFactor\" : 1, \n    \"isSmart\" : false, \n    \"edgeDefinitions\" : [ \n      { \n        \"collection\" : \"edges\", \n        \"from\" : [ \n          \"startVertices\" \n        ], \n        \"to\" : [ \n          \"endVertices\" \n        ] \n      } \n    ], \n    \"orphanCollections\" : [ ], \n    \"_rev\" : \"_YOn1HMu--B\", \n    \"_id\" : \"_graphs/myGraph\", \n    \"name\" : \"myGraph\" \n  } \n}\n
\n\n\n\n\n", "parameters": [ { "description": "The name of the graph.\n\n", @@ -10042,7 +10042,7 @@ "x-hints": "" }, "post": { - "description": "\n\nAdds an additional edge definition to the graph.\n\nThis edge definition has to contain a *collection* and an array of\neach *from* and *to* vertex collections. An edge definition can only\nbe added if this definition is either not used in any other graph, or\nit is used with exactly the same definition. It is not possible to\nstore a definition \"e\" from \"v1\" to \"v2\" in the one graph, and \"e\"\nfrom \"v2\" to \"v1\" in the other graph.\n\n\n**A JSON object with these properties is required:**\n\n - **to** (string): One or many vertex collections that can contain target vertices.\n - **from** (string): One or many vertex collections that can contain source vertices.\n - **collection**: The name of the edge collection to be used.\n\n\n\n**HTTP 201**\n*A json document with these Properties is returned:*\n\nReturned if the definition could be added successfully and\nwaitForSync is enabled for the `_graphs` collection.\nThe response body contains the graph configuration that has been stored.\n\n- **graph**:\n - **smartGraphAttribute**: The name of the sharding attribute in smart graph case (Enterprise Only)\n - **replicationFactor**: The replication factor used for every new collection in the graph.\n - **orphanCollections** (string): An array of additional vertex collections.\n Documents within these collections do not have edges within this graph.\n - **name**: The name of the graph\n - **_rev**: The revision of this graph. Can be used to make sure to not override\n concurrent modifications to this graph.\n - **numberOfShards**: Number of shards created for every new collection in the graph.\n - **isSmart**: Flag if the graph is a SmartGraph (Enterprise only) or not.\n - **_id**: The internal id value of this graph. \n - **edgeDefinitions**: An array of definitions for the relations of the graph.\n Each has the following type:\n - **to** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _to is in any of the collections here.\n - **from** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _from is in any of the collections here.\n - **collection**: Name of the edge collection, where the edge are stored in.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 202**\n*A json document with these Properties is returned:*\n\nReturned if the definition could be added successfully and\nwaitForSync is disabled for the `_graphs` collection.\nThe response body contains the graph configuration that has been stored.\n\n- **graph**:\n - **smartGraphAttribute**: The name of the sharding attribute in smart graph case (Enterprise Only)\n - **replicationFactor**: The replication factor used for every new collection in the graph.\n - **orphanCollections** (string): An array of additional vertex collections.\n Documents within these collections do not have edges within this graph.\n - **name**: The name of the graph\n - **_rev**: The revision of this graph. Can be used to make sure to not override\n concurrent modifications to this graph.\n - **numberOfShards**: Number of shards created for every new collection in the graph.\n - **isSmart**: Flag if the graph is a SmartGraph (Enterprise only) or not.\n - **_id**: The internal id value of this graph. \n - **edgeDefinitions**: An array of definitions for the relations of the graph.\n Each has the following type:\n - **to** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _to is in any of the collections here.\n - **from** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _from is in any of the collections here.\n - **collection**: Name of the edge collection, where the edge are stored in.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 400**\n*A json document with these Properties is returned:*\n\nReturned if the definition could not be added.\nThis could be because it is ill-formed, or\nif the definition is used in an other graph with a different signature.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 403**\n*A json document with these Properties is returned:*\n\nReturned if your user has insufficient rights.\nIn order to modify a graph you at least need to have the following privileges:\n 1. `Administrate` access on the Database.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 404**\n*A json document with these Properties is returned:*\n\nReturned if no graph with this name could be found.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n\n\n**Example:**\n \n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge <<EOF\n{ \n  \"collection\" : \"works_in\", \n  \"from\" : [ \n    \"female\", \n    \"male\" \n  ], \n  \"to\" : [ \n    \"city\" \n  ] \n}\nEOF\n\nHTTP/1.1 Accepted\ncontent-type: application/json; charset=utf-8\netag: _YNEaENW--B\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"graph\" : { \n    \"_key\" : \"social\", \n    \"numberOfShards\" : 1, \n    \"replicationFactor\" : 1, \n    \"isSmart\" : false, \n    \"edgeDefinitions\" : [ \n      { \n        \"collection\" : \"relation\", \n        \"from\" : [ \n          \"female\", \n          \"male\" \n        ], \n        \"to\" : [ \n          \"female\", \n          \"male\" \n        ] \n      }, \n      { \n        \"collection\" : \"works_in\", \n        \"from\" : [ \n          \"female\", \n          \"male\" \n        ], \n        \"to\" : [ \n          \"city\" \n        ] \n      } \n    ], \n    \"orphanCollections\" : [ ], \n    \"_rev\" : \"_YNEaENW--B\", \n    \"_id\" : \"_graphs/social\", \n    \"name\" : \"social\" \n  } \n}\n
\n\n\n\n", + "description": "\n\nAdds an additional edge definition to the graph.\n\nThis edge definition has to contain a *collection* and an array of\neach *from* and *to* vertex collections. An edge definition can only\nbe added if this definition is either not used in any other graph, or\nit is used with exactly the same definition. It is not possible to\nstore a definition \"e\" from \"v1\" to \"v2\" in the one graph, and \"e\"\nfrom \"v2\" to \"v1\" in the other graph.\n\n\n**A JSON object with these properties is required:**\n\n - **to** (string): One or many vertex collections that can contain target vertices.\n - **from** (string): One or many vertex collections that can contain source vertices.\n - **collection**: The name of the edge collection to be used.\n\n\n\n**HTTP 201**\n*A json document with these Properties is returned:*\n\nReturned if the definition could be added successfully and\nwaitForSync is enabled for the `_graphs` collection.\nThe response body contains the graph configuration that has been stored.\n\n- **graph**:\n - **smartGraphAttribute**: The name of the sharding attribute in smart graph case (Enterprise Only)\n - **replicationFactor**: The replication factor used for every new collection in the graph.\n - **orphanCollections** (string): An array of additional vertex collections.\n Documents within these collections do not have edges within this graph.\n - **name**: The name of the graph\n - **_rev**: The revision of this graph. Can be used to make sure to not override\n concurrent modifications to this graph.\n - **numberOfShards**: Number of shards created for every new collection in the graph.\n - **isSmart**: Flag if the graph is a SmartGraph (Enterprise only) or not.\n - **_id**: The internal id value of this graph. \n - **edgeDefinitions**: An array of definitions for the relations of the graph.\n Each has the following type:\n - **to** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _to is in any of the collections here.\n - **from** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _from is in any of the collections here.\n - **collection**: Name of the edge collection, where the edge are stored in.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 202**\n*A json document with these Properties is returned:*\n\nReturned if the definition could be added successfully and\nwaitForSync is disabled for the `_graphs` collection.\nThe response body contains the graph configuration that has been stored.\n\n- **graph**:\n - **smartGraphAttribute**: The name of the sharding attribute in smart graph case (Enterprise Only)\n - **replicationFactor**: The replication factor used for every new collection in the graph.\n - **orphanCollections** (string): An array of additional vertex collections.\n Documents within these collections do not have edges within this graph.\n - **name**: The name of the graph\n - **_rev**: The revision of this graph. Can be used to make sure to not override\n concurrent modifications to this graph.\n - **numberOfShards**: Number of shards created for every new collection in the graph.\n - **isSmart**: Flag if the graph is a SmartGraph (Enterprise only) or not.\n - **_id**: The internal id value of this graph. \n - **edgeDefinitions**: An array of definitions for the relations of the graph.\n Each has the following type:\n - **to** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _to is in any of the collections here.\n - **from** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _from is in any of the collections here.\n - **collection**: Name of the edge collection, where the edge are stored in.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 400**\n*A json document with these Properties is returned:*\n\nReturned if the definition could not be added.\nThis could be because it is ill-formed, or\nif the definition is used in an other graph with a different signature.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 403**\n*A json document with these Properties is returned:*\n\nReturned if your user has insufficient rights.\nIn order to modify a graph you at least need to have the following privileges:\n 1. `Administrate` access on the Database.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 404**\n*A json document with these Properties is returned:*\n\nReturned if no graph with this name could be found.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n\n\n**Example:**\n \n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge <<EOF\n{ \n  \"collection\" : \"works_in\", \n  \"from\" : [ \n    \"female\", \n    \"male\" \n  ], \n  \"to\" : [ \n    \"city\" \n  ] \n}\nEOF\n\nHTTP/1.1 Accepted\ncontent-type: application/json; charset=utf-8\netag: _YOn1Goy--B\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"graph\" : { \n    \"_key\" : \"social\", \n    \"numberOfShards\" : 1, \n    \"replicationFactor\" : 1, \n    \"isSmart\" : false, \n    \"edgeDefinitions\" : [ \n      { \n        \"collection\" : \"relation\", \n        \"from\" : [ \n          \"female\", \n          \"male\" \n        ], \n        \"to\" : [ \n          \"female\", \n          \"male\" \n        ] \n      }, \n      { \n        \"collection\" : \"works_in\", \n        \"from\" : [ \n          \"female\", \n          \"male\" \n        ], \n        \"to\" : [ \n          \"city\" \n        ] \n      } \n    ], \n    \"orphanCollections\" : [ ], \n    \"_rev\" : \"_YOn1Goy--B\", \n    \"_id\" : \"_graphs/social\", \n    \"name\" : \"social\" \n  } \n}\n
\n\n\n\n", "parameters": [ { "description": "The name of the graph.\n\n", @@ -10113,7 +10113,7 @@ }, "/_api/gharial/{graph}/edge/{collection}": { "post": { - "description": "\n\nCreates a new edge in the collection.\nWithin the body the edge 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 the used \n[edge collection](../../Manual/Appendix/Glossary.html#edge-collection).\n\n\n**A JSON object with these properties is required:**\n\n - **_from**: The source vertex of this edge. Has to be valid within\n the used edge definition.\n - **_to**: The target vertex of this edge. Has to be valid within\n the used edge definition.\n\n\n\n**HTTP 201**\n*A json document with these Properties is returned:*\n\nReturned if the edge could be created and waitForSync is true.\n\n- **edge**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n - **_from**: The _from value of the stored data.\n - **_to**: The _to value of the stored data.\n- **code**: The response code.\n- **new**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n - **_from**: The _from value of the stored data.\n - **_to**: The _to value of the stored data.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 202**\n*A json document with these Properties is returned:*\n\nReturned if the request was successful but waitForSync is false.\n\n- **edge**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n - **_from**: The _from value of the stored data.\n - **_to**: The _to value of the stored data.\n- **code**: The response code.\n- **new**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n - **_from**: The _from value of the stored data.\n - **_to**: The _to value of the stored data.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 400**\n*A json document with these Properties is returned:*\n\nReturned if the input document is invalid.\nThis can for instance be the case if `_from` or `_to` is mising.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 403**\n*A json document with these Properties is returned:*\n\nReturned if your user has insufficient rights.\nIn order to insert edges into the graph you at least need to have the following privileges:\n 1. `Read Only` access on the Database.\n 2. `Write` access on the given collection.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 404**\n*A json document with these Properties is returned:*\n\nReturned in any of the following cases:\n* no graph with this name could be found.\n* this edge collection is not part of the graph.\n* either `_from` or `_to` vertex does not exist.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n\n\n**Example:**\n \n\n
shell> curl -X POST --header 'accept: application/json' --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 Accepted\ncontent-type: application/json; charset=utf-8\netag: _YNEaEJa--_\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"edge\" : { \n    \"_id\" : \"relation/100926\", \n    \"_key\" : \"100926\", \n    \"_rev\" : \"_YNEaEJa--_\" \n  } \n}\n
\n\n\n\n", + "description": "\n\nCreates a new edge in the collection.\nWithin the body the edge 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 the used \n[edge collection](../../Manual/Appendix/Glossary.html#edge-collection).\n\n\n**A JSON object with these properties is required:**\n\n - **_from**: The source vertex of this edge. Has to be valid within\n the used edge definition.\n - **_to**: The target vertex of this edge. Has to be valid within\n the used edge definition.\n\n\n\n**HTTP 201**\n*A json document with these Properties is returned:*\n\nReturned if the edge could be created and waitForSync is true.\n\n- **edge**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n - **_from**: The _from value of the stored data.\n - **_to**: The _to value of the stored data.\n- **code**: The response code.\n- **new**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n - **_from**: The _from value of the stored data.\n - **_to**: The _to value of the stored data.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 202**\n*A json document with these Properties is returned:*\n\nReturned if the request was successful but waitForSync is false.\n\n- **edge**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n - **_from**: The _from value of the stored data.\n - **_to**: The _to value of the stored data.\n- **code**: The response code.\n- **new**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n - **_from**: The _from value of the stored data.\n - **_to**: The _to value of the stored data.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 400**\n*A json document with these Properties is returned:*\n\nReturned if the input document is invalid.\nThis can for instance be the case if `_from` or `_to` is mising.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 403**\n*A json document with these Properties is returned:*\n\nReturned if your user has insufficient rights.\nIn order to insert edges into the graph you at least need to have the following privileges:\n 1. `Read Only` access on the Database.\n 2. `Write` access on the given collection.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 404**\n*A json document with these Properties is returned:*\n\nReturned in any of the following cases:\n* no graph with this name could be found.\n* this edge collection is not part of the graph.\n* either `_from` or `_to` vertex does not exist.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n\n\n**Example:**\n \n\n
shell> curl -X POST --header 'accept: application/json' --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 Accepted\ncontent-type: application/json; charset=utf-8\netag: _YOn1Gku--_\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"edge\" : { \n    \"_id\" : \"relation/100926\", \n    \"_key\" : \"100926\", \n    \"_rev\" : \"_YOn1Gku--_\" \n  } \n}\n
\n\n\n\n", "parameters": [ { "description": "The name of the graph.\n\n", @@ -10302,7 +10302,7 @@ "x-hints": "" }, "get": { - "description": "\n\nGets an edge from the given collection.\n\n\n**HTTP 200**\n*A json document with these Properties is returned:*\n\nReturned if the edge could be found.\n\n- **edge**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n - **_from**: The _from value of the stored data.\n - **_to**: The _to value of the stored data.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 304**\n*A json document with these Properties is returned:*\n\nReturned if the if-none-match header is given and the\ncurrently stored edge still has this revision value.\nSo there was no update between the last time the edge\nwas fetched by the caller.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 403**\n*A json document with these Properties is returned:*\n\nReturned if your user has insufficient rights.\nIn order to update vertices in the graph you at least need to have the following privileges:\n 1. `Read Only` access on the Database.\n 2. `Read Only` access on the given collection.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 404**\n*A json document with these Properties is returned:*\n\nReturned in the following cases:\n* No graph with this name could be found.\n* This collection is not part of the graph.\n* The edge does not exist.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 412**\n*A json document with these Properties is returned:*\n\nReturned if if-match header is given, but the stored documents revision is different.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n\n\n**Example:**\n \n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/gharial/social/edge/relation/101673\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\netag: _YNEaEuu--D\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"edge\" : { \n    \"_key\" : \"101673\", \n    \"_id\" : \"relation/101673\", \n    \"_from\" : \"male/charly\", \n    \"_to\" : \"female/diana\", \n    \"_rev\" : \"_YNEaEuu--D\", \n    \"type\" : \"married\", \n    \"vertex\" : \"charly\" \n  } \n}\n
\n\n\n\n\n", + "description": "\n\nGets an edge from the given collection.\n\n\n**HTTP 200**\n*A json document with these Properties is returned:*\n\nReturned if the edge could be found.\n\n- **edge**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n - **_from**: The _from value of the stored data.\n - **_to**: The _to value of the stored data.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 304**\n*A json document with these Properties is returned:*\n\nReturned if the if-none-match header is given and the\ncurrently stored edge still has this revision value.\nSo there was no update between the last time the edge\nwas fetched by the caller.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 403**\n*A json document with these Properties is returned:*\n\nReturned if your user has insufficient rights.\nIn order to update vertices in the graph you at least need to have the following privileges:\n 1. `Read Only` access on the Database.\n 2. `Read Only` access on the given collection.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 404**\n*A json document with these Properties is returned:*\n\nReturned in the following cases:\n* No graph with this name could be found.\n* This collection is not part of the graph.\n* The edge does not exist.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 412**\n*A json document with these Properties is returned:*\n\nReturned if if-match header is given, but the stored documents revision is different.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n\n\n**Example:**\n \n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/gharial/social/edge/relation/101670\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\netag: _YOn1HJG--J\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"edge\" : { \n    \"_key\" : \"101670\", \n    \"_id\" : \"relation/101670\", \n    \"_from\" : \"female/alice\", \n    \"_to\" : \"male/charly\", \n    \"_rev\" : \"_YOn1HJG--J\", \n    \"type\" : \"friend\", \n    \"vertex\" : \"alice\" \n  } \n}\n
\n\n\n\n\n", "parameters": [ { "description": "The name of the graph.\n\n", @@ -10397,7 +10397,7 @@ "x-hints": "" }, "patch": { - "description": "\n\nUpdates the data of the specific edge in the collection.\n\n\n**HTTP 200**\n*A json document with these Properties is returned:*\n\nReturned if the edge could be updated, and waitForSync is false.\n\n- **edge**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n - **_from**: The _from value of the stored data.\n - **_to**: The _to value of the stored data.\n- **code**: The response code.\n- **old**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n - **_from**: The _from value of the stored data.\n - **_to**: The _to value of the stored data.\n- **new**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n - **_from**: The _from value of the stored data.\n - **_to**: The _to value of the stored data.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 202**\n*A json document with these Properties is returned:*\n\nReturned if the request was successful but waitForSync is false.\n\n- **edge**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n - **_from**: The _from value of the stored data.\n - **_to**: The _to value of the stored data.\n- **code**: The response code.\n- **old**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n - **_from**: The _from value of the stored data.\n - **_to**: The _to value of the stored data.\n- **new**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n - **_from**: The _from value of the stored data.\n - **_to**: The _to value of the stored data.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 403**\n*A json document with these Properties is returned:*\n\nReturned if your user has insufficient rights.\nIn order to update edges in the graph you at least need to have the following privileges:\n 1. `Read Only` access on the Database.\n 2. `Write` access on the given collection.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 404**\n*A json document with these Properties is returned:*\n\nReturned in the following cases:\n* No graph with this name could be found.\n* This collection is not part of the graph.\n* The edge to update does not exist.\n* either `_from` or `_to` vertex does not exist (if updated).\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 412**\n*A json document with these Properties is returned:*\n\nReturned if if-match header is given, but the stored documents revision is different.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge/relation/102286 <<EOF\n{ \n  \"since\" : \"01.01.2001\" \n}\nEOF\n\nHTTP/1.1 Accepted\ncontent-type: application/json; charset=utf-8\netag: _YNEaFOa--_\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"edge\" : { \n    \"_id\" : \"relation/102286\", \n    \"_key\" : \"102286\", \n    \"_oldRev\" : \"_YNEaFOW--F\", \n    \"_rev\" : \"_YNEaFOa--_\" \n  } \n}\n
\n\n\n\n", + "description": "\n\nUpdates the data of the specific edge in the collection.\n\n\n**HTTP 200**\n*A json document with these Properties is returned:*\n\nReturned if the edge could be updated, and waitForSync is false.\n\n- **edge**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n - **_from**: The _from value of the stored data.\n - **_to**: The _to value of the stored data.\n- **code**: The response code.\n- **old**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n - **_from**: The _from value of the stored data.\n - **_to**: The _to value of the stored data.\n- **new**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n - **_from**: The _from value of the stored data.\n - **_to**: The _to value of the stored data.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 202**\n*A json document with these Properties is returned:*\n\nReturned if the request was successful but waitForSync is false.\n\n- **edge**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n - **_from**: The _from value of the stored data.\n - **_to**: The _to value of the stored data.\n- **code**: The response code.\n- **old**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n - **_from**: The _from value of the stored data.\n - **_to**: The _to value of the stored data.\n- **new**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n - **_from**: The _from value of the stored data.\n - **_to**: The _to value of the stored data.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 403**\n*A json document with these Properties is returned:*\n\nReturned if your user has insufficient rights.\nIn order to update edges in the graph you at least need to have the following privileges:\n 1. `Read Only` access on the Database.\n 2. `Write` access on the given collection.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 404**\n*A json document with these Properties is returned:*\n\nReturned in the following cases:\n* No graph with this name could be found.\n* This collection is not part of the graph.\n* The edge to update does not exist.\n* either `_from` or `_to` vertex does not exist (if updated).\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 412**\n*A json document with these Properties is returned:*\n\nReturned if if-match header is given, but the stored documents revision is different.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge/relation/102283 <<EOF\n{ \n  \"since\" : \"01.01.2001\" \n}\nEOF\n\nHTTP/1.1 Accepted\ncontent-type: application/json; charset=utf-8\netag: _YOn1HnK--_\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"edge\" : { \n    \"_id\" : \"relation/102283\", \n    \"_key\" : \"102283\", \n    \"_oldRev\" : \"_YOn1HnG--D\", \n    \"_rev\" : \"_YOn1HnK--_\" \n  } \n}\n
\n\n\n\n", "parameters": [ { "description": "The name of the graph.\n\n", @@ -10518,7 +10518,7 @@ "x-hints": "" }, "put": { - "description": "\n\nReplaces the data of an edge in the collection.\n\n\n**A JSON object with these properties is required:**\n\n - **_from**: The source vertex of this edge. Has to be valid within\n the used edge definition.\n - **_to**: The target vertex of this edge. Has to be valid within\n the used edge definition.\n\n\n\n**HTTP 201**\n*A json document with these Properties is returned:*\n\nReturned if the request was successful but waitForSync is true.\n\n- **edge**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n - **_from**: The _from value of the stored data.\n - **_to**: The _to value of the stored data.\n- **code**: The response code.\n- **old**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n - **_from**: The _from value of the stored data.\n - **_to**: The _to value of the stored data.\n- **new**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n - **_from**: The _from value of the stored data.\n - **_to**: The _to value of the stored data.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 202**\n*A json document with these Properties is returned:*\n\nReturned if the request was successful but waitForSync is false.\n\n- **edge**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n - **_from**: The _from value of the stored data.\n - **_to**: The _to value of the stored data.\n- **code**: The response code.\n- **old**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n - **_from**: The _from value of the stored data.\n - **_to**: The _to value of the stored data.\n- **new**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n - **_from**: The _from value of the stored data.\n - **_to**: The _to value of the stored data.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 403**\n*A json document with these Properties is returned:*\n\nReturned if your user has insufficient rights.\nIn order to replace edges in the graph you at least need to have the following privileges:\n 1. `Read Only` access on the Database.\n 2. `Write` access on the given collection.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 404**\n*A json document with these Properties is returned:*\n\nReturned in the following cases:\n* No graph with this name could be found.\n* This collection is not part of the graph.\n* The edge to replace does not exist.\n* either `_from` or `_to` vertex does not exist.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 412**\n*A json document with these Properties is returned:*\n\nReturned if if-match header is given, but the stored documents revision is different.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge/relation/102353 <<EOF\n{ \n  \"type\" : \"divorced\", \n  \"_from\" : \"female/alice\", \n  \"_to\" : \"male/bob\" \n}\nEOF\n\nHTTP/1.1 Accepted\ncontent-type: application/json; charset=utf-8\netag: _YNEaFRm--_\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"edge\" : { \n    \"_id\" : \"relation/102353\", \n    \"_key\" : \"102353\", \n    \"_oldRev\" : \"_YNEaFRe--H\", \n    \"_rev\" : \"_YNEaFRm--_\" \n  } \n}\n
\n\n\n\n", + "description": "\n\nReplaces the data of an edge in the collection.\n\n\n**A JSON object with these properties is required:**\n\n - **_from**: The source vertex of this edge. Has to be valid within\n the used edge definition.\n - **_to**: The target vertex of this edge. Has to be valid within\n the used edge definition.\n\n\n\n**HTTP 201**\n*A json document with these Properties is returned:*\n\nReturned if the request was successful but waitForSync is true.\n\n- **edge**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n - **_from**: The _from value of the stored data.\n - **_to**: The _to value of the stored data.\n- **code**: The response code.\n- **old**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n - **_from**: The _from value of the stored data.\n - **_to**: The _to value of the stored data.\n- **new**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n - **_from**: The _from value of the stored data.\n - **_to**: The _to value of the stored data.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 202**\n*A json document with these Properties is returned:*\n\nReturned if the request was successful but waitForSync is false.\n\n- **edge**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n - **_from**: The _from value of the stored data.\n - **_to**: The _to value of the stored data.\n- **code**: The response code.\n- **old**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n - **_from**: The _from value of the stored data.\n - **_to**: The _to value of the stored data.\n- **new**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n - **_from**: The _from value of the stored data.\n - **_to**: The _to value of the stored data.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 403**\n*A json document with these Properties is returned:*\n\nReturned if your user has insufficient rights.\nIn order to replace edges in the graph you at least need to have the following privileges:\n 1. `Read Only` access on the Database.\n 2. `Write` access on the given collection.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 404**\n*A json document with these Properties is returned:*\n\nReturned in the following cases:\n* No graph with this name could be found.\n* This collection is not part of the graph.\n* The edge to replace does not exist.\n* either `_from` or `_to` vertex does not exist.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 412**\n*A json document with these Properties is returned:*\n\nReturned if if-match header is given, but the stored documents revision is different.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge/relation/102360 <<EOF\n{ \n  \"type\" : \"divorced\", \n  \"_from\" : \"female/alice\", \n  \"_to\" : \"male/bob\" \n}\nEOF\n\nHTTP/1.1 Accepted\ncontent-type: application/json; charset=utf-8\netag: _YOn1HqS--_\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"edge\" : { \n    \"_id\" : \"relation/102360\", \n    \"_key\" : \"102360\", \n    \"_oldRev\" : \"_YOn1HqO--D\", \n    \"_rev\" : \"_YOn1HqS--_\" \n  } \n}\n
\n\n\n\n", "parameters": [ { "description": "The name of the graph.\n\n", @@ -10639,7 +10639,7 @@ }, "/_api/gharial/{graph}/edge/{definition}": { "delete": { - "description": "\n\nRemove one edge definition from the graph. This will only remove the\nedge collection, the vertex collections remain untouched and can still\nbe used in your queries.\n\n\n**HTTP 201**\n*A json document with these Properties is returned:*\n\nReturned if the edge definition could be removed from the graph \nand waitForSync is true.\n\n- **graph**:\n - **smartGraphAttribute**: The name of the sharding attribute in smart graph case (Enterprise Only)\n - **replicationFactor**: The replication factor used for every new collection in the graph.\n - **orphanCollections** (string): An array of additional vertex collections.\n Documents within these collections do not have edges within this graph.\n - **name**: The name of the graph\n - **_rev**: The revision of this graph. Can be used to make sure to not override\n concurrent modifications to this graph.\n - **numberOfShards**: Number of shards created for every new collection in the graph.\n - **isSmart**: Flag if the graph is a SmartGraph (Enterprise only) or not.\n - **_id**: The internal id value of this graph. \n - **edgeDefinitions**: An array of definitions for the relations of the graph.\n Each has the following type:\n - **to** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _to is in any of the collections here.\n - **from** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _from is in any of the collections here.\n - **collection**: Name of the edge collection, where the edge are stored in.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 202**\n*A json document with these Properties is returned:*\n\nReturned if the edge definition could be removed from the graph and\nwaitForSync is false.\n\n- **graph**:\n - **smartGraphAttribute**: The name of the sharding attribute in smart graph case (Enterprise Only)\n - **replicationFactor**: The replication factor used for every new collection in the graph.\n - **orphanCollections** (string): An array of additional vertex collections.\n Documents within these collections do not have edges within this graph.\n - **name**: The name of the graph\n - **_rev**: The revision of this graph. Can be used to make sure to not override\n concurrent modifications to this graph.\n - **numberOfShards**: Number of shards created for every new collection in the graph.\n - **isSmart**: Flag if the graph is a SmartGraph (Enterprise only) or not.\n - **_id**: The internal id value of this graph. \n - **edgeDefinitions**: An array of definitions for the relations of the graph.\n Each has the following type:\n - **to** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _to is in any of the collections here.\n - **from** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _from is in any of the collections here.\n - **collection**: Name of the edge collection, where the edge are stored in.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 403**\n*A json document with these Properties is returned:*\n\nReturned if your user has insufficient rights.\nIn order to drop a vertex you at least need to have the following privileges:\n 1. `Administrate` access on the Database.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 404**\n*A json document with these Properties is returned:*\n\nReturned if no graph with this name could be found,\nor if no edge definition with this name is found in the graph.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n\n\n**Example:**\n \n\n
shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/gharial/social/edge/relation\n\nHTTP/1.1 Accepted\ncontent-type: application/json; charset=utf-8\netag: _YNEaEqu--D\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"graph\" : { \n    \"_key\" : \"social\", \n    \"numberOfShards\" : 1, \n    \"replicationFactor\" : 1, \n    \"isSmart\" : false, \n    \"edgeDefinitions\" : [ ], \n    \"orphanCollections\" : [ \n      \"female\", \n      \"male\" \n    ], \n    \"_rev\" : \"_YNEaEqu--D\", \n    \"_id\" : \"_graphs/social\", \n    \"name\" : \"social\" \n  } \n}\n
\n\n\n\n", + "description": "\n\nRemove one edge definition from the graph. This will only remove the\nedge collection, the vertex collections remain untouched and can still\nbe used in your queries.\n\n\n**HTTP 201**\n*A json document with these Properties is returned:*\n\nReturned if the edge definition could be removed from the graph \nand waitForSync is true.\n\n- **graph**:\n - **smartGraphAttribute**: The name of the sharding attribute in smart graph case (Enterprise Only)\n - **replicationFactor**: The replication factor used for every new collection in the graph.\n - **orphanCollections** (string): An array of additional vertex collections.\n Documents within these collections do not have edges within this graph.\n - **name**: The name of the graph\n - **_rev**: The revision of this graph. Can be used to make sure to not override\n concurrent modifications to this graph.\n - **numberOfShards**: Number of shards created for every new collection in the graph.\n - **isSmart**: Flag if the graph is a SmartGraph (Enterprise only) or not.\n - **_id**: The internal id value of this graph. \n - **edgeDefinitions**: An array of definitions for the relations of the graph.\n Each has the following type:\n - **to** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _to is in any of the collections here.\n - **from** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _from is in any of the collections here.\n - **collection**: Name of the edge collection, where the edge are stored in.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 202**\n*A json document with these Properties is returned:*\n\nReturned if the edge definition could be removed from the graph and\nwaitForSync is false.\n\n- **graph**:\n - **smartGraphAttribute**: The name of the sharding attribute in smart graph case (Enterprise Only)\n - **replicationFactor**: The replication factor used for every new collection in the graph.\n - **orphanCollections** (string): An array of additional vertex collections.\n Documents within these collections do not have edges within this graph.\n - **name**: The name of the graph\n - **_rev**: The revision of this graph. Can be used to make sure to not override\n concurrent modifications to this graph.\n - **numberOfShards**: Number of shards created for every new collection in the graph.\n - **isSmart**: Flag if the graph is a SmartGraph (Enterprise only) or not.\n - **_id**: The internal id value of this graph. \n - **edgeDefinitions**: An array of definitions for the relations of the graph.\n Each has the following type:\n - **to** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _to is in any of the collections here.\n - **from** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _from is in any of the collections here.\n - **collection**: Name of the edge collection, where the edge are stored in.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 403**\n*A json document with these Properties is returned:*\n\nReturned if your user has insufficient rights.\nIn order to drop a vertex you at least need to have the following privileges:\n 1. `Administrate` access on the Database.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 404**\n*A json document with these Properties is returned:*\n\nReturned if no graph with this name could be found,\nor if no edge definition with this name is found in the graph.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n\n\n**Example:**\n \n\n
shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/gharial/social/edge/relation\n\nHTTP/1.1 Accepted\ncontent-type: application/json; charset=utf-8\netag: _YOn1HG---F\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"graph\" : { \n    \"_key\" : \"social\", \n    \"numberOfShards\" : 1, \n    \"replicationFactor\" : 1, \n    \"isSmart\" : false, \n    \"edgeDefinitions\" : [ ], \n    \"orphanCollections\" : [ \n      \"female\", \n      \"male\" \n    ], \n    \"_rev\" : \"_YOn1HG---F\", \n    \"_id\" : \"_graphs/social\", \n    \"name\" : \"social\" \n  } \n}\n
\n\n\n\n", "parameters": [ { "description": "The name of the graph.\n\n", @@ -10714,7 +10714,7 @@ "x-hints": "" }, "put": { - "description": "\n\nChange one specific edge definition.\nThis will modify all occurrences of this definition in all graphs known to your database.\n\n\n**A JSON object with these properties is required:**\n\n - **to** (string): One or many vertex collections that can contain target vertices.\n - **from** (string): One or many vertex collections that can contain source vertices.\n - **collection**: The name of the edge collection to be used.\n\n\n\n**HTTP 201**\n*A json document with these Properties is returned:*\n\nReturned if the request was successful and waitForSync is true.\n\n- **graph**:\n - **smartGraphAttribute**: The name of the sharding attribute in smart graph case (Enterprise Only)\n - **replicationFactor**: The replication factor used for every new collection in the graph.\n - **orphanCollections** (string): An array of additional vertex collections.\n Documents within these collections do not have edges within this graph.\n - **name**: The name of the graph\n - **_rev**: The revision of this graph. Can be used to make sure to not override\n concurrent modifications to this graph.\n - **numberOfShards**: Number of shards created for every new collection in the graph.\n - **isSmart**: Flag if the graph is a SmartGraph (Enterprise only) or not.\n - **_id**: The internal id value of this graph. \n - **edgeDefinitions**: An array of definitions for the relations of the graph.\n Each has the following type:\n - **to** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _to is in any of the collections here.\n - **from** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _from is in any of the collections here.\n - **collection**: Name of the edge collection, where the edge are stored in.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 202**\n*A json document with these Properties is returned:*\n\nReturned if the request was successful but waitForSync is false.\n\n- **graph**:\n - **smartGraphAttribute**: The name of the sharding attribute in smart graph case (Enterprise Only)\n - **replicationFactor**: The replication factor used for every new collection in the graph.\n - **orphanCollections** (string): An array of additional vertex collections.\n Documents within these collections do not have edges within this graph.\n - **name**: The name of the graph\n - **_rev**: The revision of this graph. Can be used to make sure to not override\n concurrent modifications to this graph.\n - **numberOfShards**: Number of shards created for every new collection in the graph.\n - **isSmart**: Flag if the graph is a SmartGraph (Enterprise only) or not.\n - **_id**: The internal id value of this graph. \n - **edgeDefinitions**: An array of definitions for the relations of the graph.\n Each has the following type:\n - **to** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _to is in any of the collections here.\n - **from** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _from is in any of the collections here.\n - **collection**: Name of the edge collection, where the edge are stored in.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 400**\n*A json document with these Properties is returned:*\n\nReturned if no edge definition with this name is found in the graph,\nor of the new definition is ill-formed and cannot be used.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 403**\n*A json document with these Properties is returned:*\n\nReturned if your user has insufficient rights.\nIn order to drop a vertex you at least need to have the following privileges:\n 1. `Administrate` access on the Database.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 404**\n*A json document with these Properties is returned:*\n\nReturned if no graph with this name could be found.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PUT --header 'accept: application/json' --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 Accepted\ncontent-type: application/json; charset=utf-8\netag: _YNEaFeK--_\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"graph\" : { \n    \"_key\" : \"social\", \n    \"numberOfShards\" : 1, \n    \"replicationFactor\" : 1, \n    \"isSmart\" : false, \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    \"_rev\" : \"_YNEaFeK--_\", \n    \"_id\" : \"_graphs/social\", \n    \"name\" : \"social\" \n  } \n}\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\n**A JSON object with these properties is required:**\n\n - **to** (string): One or many vertex collections that can contain target vertices.\n - **from** (string): One or many vertex collections that can contain source vertices.\n - **collection**: The name of the edge collection to be used.\n\n\n\n**HTTP 201**\n*A json document with these Properties is returned:*\n\nReturned if the request was successful and waitForSync is true.\n\n- **graph**:\n - **smartGraphAttribute**: The name of the sharding attribute in smart graph case (Enterprise Only)\n - **replicationFactor**: The replication factor used for every new collection in the graph.\n - **orphanCollections** (string): An array of additional vertex collections.\n Documents within these collections do not have edges within this graph.\n - **name**: The name of the graph\n - **_rev**: The revision of this graph. Can be used to make sure to not override\n concurrent modifications to this graph.\n - **numberOfShards**: Number of shards created for every new collection in the graph.\n - **isSmart**: Flag if the graph is a SmartGraph (Enterprise only) or not.\n - **_id**: The internal id value of this graph. \n - **edgeDefinitions**: An array of definitions for the relations of the graph.\n Each has the following type:\n - **to** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _to is in any of the collections here.\n - **from** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _from is in any of the collections here.\n - **collection**: Name of the edge collection, where the edge are stored in.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 202**\n*A json document with these Properties is returned:*\n\nReturned if the request was successful but waitForSync is false.\n\n- **graph**:\n - **smartGraphAttribute**: The name of the sharding attribute in smart graph case (Enterprise Only)\n - **replicationFactor**: The replication factor used for every new collection in the graph.\n - **orphanCollections** (string): An array of additional vertex collections.\n Documents within these collections do not have edges within this graph.\n - **name**: The name of the graph\n - **_rev**: The revision of this graph. Can be used to make sure to not override\n concurrent modifications to this graph.\n - **numberOfShards**: Number of shards created for every new collection in the graph.\n - **isSmart**: Flag if the graph is a SmartGraph (Enterprise only) or not.\n - **_id**: The internal id value of this graph. \n - **edgeDefinitions**: An array of definitions for the relations of the graph.\n Each has the following type:\n - **to** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _to is in any of the collections here.\n - **from** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _from is in any of the collections here.\n - **collection**: Name of the edge collection, where the edge are stored in.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 400**\n*A json document with these Properties is returned:*\n\nReturned if no edge definition with this name is found in the graph,\nor of the new definition is ill-formed and cannot be used.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 403**\n*A json document with these Properties is returned:*\n\nReturned if your user has insufficient rights.\nIn order to drop a vertex you at least need to have the following privileges:\n 1. `Administrate` access on the Database.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 404**\n*A json document with these Properties is returned:*\n\nReturned if no graph with this name could be found.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PUT --header 'accept: application/json' --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 Accepted\ncontent-type: application/json; charset=utf-8\netag: _YOn1H1K--B\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"graph\" : { \n    \"_key\" : \"social\", \n    \"numberOfShards\" : 1, \n    \"replicationFactor\" : 1, \n    \"isSmart\" : false, \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    \"_rev\" : \"_YOn1H1K--B\", \n    \"_id\" : \"_graphs/social\", \n    \"name\" : \"social\" \n  } \n}\n
\n\n\n\n", "parameters": [ { "description": "The name of the graph.\n\n", @@ -10846,7 +10846,7 @@ "x-hints": "" }, "post": { - "description": "\n\nAdds a vertex collection to the set of orphan collections of the graph.\nIf the collection does not exist, it will be created.\n\n\n**HTTP 201**\n*A json document with these Properties is returned:*\n\nIs returned if the collection could be created and waitForSync is enabled\nfor the `_graphs` collection, or given in the request.\nThe response body contains the graph configuration that has been stored.\n\n- **graph**:\n - **smartGraphAttribute**: The name of the sharding attribute in smart graph case (Enterprise Only)\n - **replicationFactor**: The replication factor used for every new collection in the graph.\n - **orphanCollections** (string): An array of additional vertex collections.\n Documents within these collections do not have edges within this graph.\n - **name**: The name of the graph\n - **_rev**: The revision of this graph. Can be used to make sure to not override\n concurrent modifications to this graph.\n - **numberOfShards**: Number of shards created for every new collection in the graph.\n - **isSmart**: Flag if the graph is a SmartGraph (Enterprise only) or not.\n - **_id**: The internal id value of this graph. \n - **edgeDefinitions**: An array of definitions for the relations of the graph.\n Each has the following type:\n - **to** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _to is in any of the collections here.\n - **from** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _from is in any of the collections here.\n - **collection**: Name of the edge collection, where the edge are stored in.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 202**\n*A json document with these Properties is returned:*\n\nIs returned if the collection could be created and waitForSync is disabled\nfor the `_graphs` collection, or given in the request.\nThe response body contains the graph configuration that has been stored.\n\n- **graph**:\n - **smartGraphAttribute**: The name of the sharding attribute in smart graph case (Enterprise Only)\n - **replicationFactor**: The replication factor used for every new collection in the graph.\n - **orphanCollections** (string): An array of additional vertex collections.\n Documents within these collections do not have edges within this graph.\n - **name**: The name of the graph\n - **_rev**: The revision of this graph. Can be used to make sure to not override\n concurrent modifications to this graph.\n - **numberOfShards**: Number of shards created for every new collection in the graph.\n - **isSmart**: Flag if the graph is a SmartGraph (Enterprise only) or not.\n - **_id**: The internal id value of this graph. \n - **edgeDefinitions**: An array of definitions for the relations of the graph.\n Each has the following type:\n - **to** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _to is in any of the collections here.\n - **from** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _from is in any of the collections here.\n - **collection**: Name of the edge collection, where the edge are stored in.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 400**\n*A json document with these Properties is returned:*\n\nReturned if the request is in an invalid format.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 403**\n*A json document with these Properties is returned:*\n\nReturned if your user has insufficient rights.\nIn order to modify a graph you at least need to have the following privileges:\n 1. `Administrate` access on the Database.\n 2. `Read Only` access on every collection used within this graph.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 404**\n*A json document with these Properties is returned:*\n\nReturned if no graph with this name could be found.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n\n\n**Example:**\n \n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/gharial/social/vertex <<EOF\n{ \n  \"collection\" : \"otherVertices\" \n}\nEOF\n\nHTTP/1.1 Accepted\ncontent-type: application/json; charset=utf-8\netag: _YNEaEU6--B\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"graph\" : { \n    \"_key\" : \"social\", \n    \"numberOfShards\" : 1, \n    \"replicationFactor\" : 1, \n    \"isSmart\" : false, \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    \"_rev\" : \"_YNEaEU6--B\", \n    \"_id\" : \"_graphs/social\", \n    \"name\" : \"social\" \n  } \n}\n
\n\n\n\n", + "description": "\n\nAdds a vertex collection to the set of orphan collections of the graph.\nIf the collection does not exist, it will be created.\n\n\n**HTTP 201**\n*A json document with these Properties is returned:*\n\nIs returned if the collection could be created and waitForSync is enabled\nfor the `_graphs` collection, or given in the request.\nThe response body contains the graph configuration that has been stored.\n\n- **graph**:\n - **smartGraphAttribute**: The name of the sharding attribute in smart graph case (Enterprise Only)\n - **replicationFactor**: The replication factor used for every new collection in the graph.\n - **orphanCollections** (string): An array of additional vertex collections.\n Documents within these collections do not have edges within this graph.\n - **name**: The name of the graph\n - **_rev**: The revision of this graph. Can be used to make sure to not override\n concurrent modifications to this graph.\n - **numberOfShards**: Number of shards created for every new collection in the graph.\n - **isSmart**: Flag if the graph is a SmartGraph (Enterprise only) or not.\n - **_id**: The internal id value of this graph. \n - **edgeDefinitions**: An array of definitions for the relations of the graph.\n Each has the following type:\n - **to** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _to is in any of the collections here.\n - **from** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _from is in any of the collections here.\n - **collection**: Name of the edge collection, where the edge are stored in.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 202**\n*A json document with these Properties is returned:*\n\nIs returned if the collection could be created and waitForSync is disabled\nfor the `_graphs` collection, or given in the request.\nThe response body contains the graph configuration that has been stored.\n\n- **graph**:\n - **smartGraphAttribute**: The name of the sharding attribute in smart graph case (Enterprise Only)\n - **replicationFactor**: The replication factor used for every new collection in the graph.\n - **orphanCollections** (string): An array of additional vertex collections.\n Documents within these collections do not have edges within this graph.\n - **name**: The name of the graph\n - **_rev**: The revision of this graph. Can be used to make sure to not override\n concurrent modifications to this graph.\n - **numberOfShards**: Number of shards created for every new collection in the graph.\n - **isSmart**: Flag if the graph is a SmartGraph (Enterprise only) or not.\n - **_id**: The internal id value of this graph. \n - **edgeDefinitions**: An array of definitions for the relations of the graph.\n Each has the following type:\n - **to** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _to is in any of the collections here.\n - **from** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _from is in any of the collections here.\n - **collection**: Name of the edge collection, where the edge are stored in.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 400**\n*A json document with these Properties is returned:*\n\nReturned if the request is in an invalid format.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 403**\n*A json document with these Properties is returned:*\n\nReturned if your user has insufficient rights.\nIn order to modify a graph you at least need to have the following privileges:\n 1. `Administrate` access on the Database.\n 2. `Read Only` access on every collection used within this graph.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 404**\n*A json document with these Properties is returned:*\n\nReturned if no graph with this name could be found.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n\n\n**Example:**\n \n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/gharial/social/vertex <<EOF\n{ \n  \"collection\" : \"otherVertices\" \n}\nEOF\n\nHTTP/1.1 Accepted\ncontent-type: application/json; charset=utf-8\netag: _YOn1Gwm--B\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"graph\" : { \n    \"_key\" : \"social\", \n    \"numberOfShards\" : 1, \n    \"replicationFactor\" : 1, \n    \"isSmart\" : false, \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    \"_rev\" : \"_YOn1Gwm--B\", \n    \"_id\" : \"_graphs/social\", \n    \"name\" : \"social\" \n  } \n}\n
\n\n\n\n", "parameters": [ { "description": "The name of the graph.\n\n", @@ -10908,7 +10908,7 @@ }, "/_api/gharial/{graph}/vertex/{collection}": { "delete": { - "description": "\n\nRemoves a vertex collection from the graph and optionally deletes the collection,\nif it is not used in any other graph.\nIt can only remove vertex collections that are no longer part of edge definitions,\nif they are used in edge definitions you are required to modify those first.\n\n\n**HTTP 200**\n*A json document with these Properties is returned:*\n\nReturned if the vertex collection was removed from the graph successfully\nand waitForSync is true.\n\n- **graph**:\n - **smartGraphAttribute**: The name of the sharding attribute in smart graph case (Enterprise Only)\n - **replicationFactor**: The replication factor used for every new collection in the graph.\n - **orphanCollections** (string): An array of additional vertex collections.\n Documents within these collections do not have edges within this graph.\n - **name**: The name of the graph\n - **_rev**: The revision of this graph. Can be used to make sure to not override\n concurrent modifications to this graph.\n - **numberOfShards**: Number of shards created for every new collection in the graph.\n - **isSmart**: Flag if the graph is a SmartGraph (Enterprise only) or not.\n - **_id**: The internal id value of this graph. \n - **edgeDefinitions**: An array of definitions for the relations of the graph.\n Each has the following type:\n - **to** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _to is in any of the collections here.\n - **from** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _from is in any of the collections here.\n - **collection**: Name of the edge collection, where the edge are stored in.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 202**\n*A json document with these Properties is returned:*\n\nReturned if the request was successful but waitForSync is false.\n\n- **graph**:\n - **smartGraphAttribute**: The name of the sharding attribute in smart graph case (Enterprise Only)\n - **replicationFactor**: The replication factor used for every new collection in the graph.\n - **orphanCollections** (string): An array of additional vertex collections.\n Documents within these collections do not have edges within this graph.\n - **name**: The name of the graph\n - **_rev**: The revision of this graph. Can be used to make sure to not override\n concurrent modifications to this graph.\n - **numberOfShards**: Number of shards created for every new collection in the graph.\n - **isSmart**: Flag if the graph is a SmartGraph (Enterprise only) or not.\n - **_id**: The internal id value of this graph. \n - **edgeDefinitions**: An array of definitions for the relations of the graph.\n Each has the following type:\n - **to** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _to is in any of the collections here.\n - **from** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _from is in any of the collections here.\n - **collection**: Name of the edge collection, where the edge are stored in.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 400**\n*A json document with these Properties is returned:*\n\nReturned if the vertex collection is still used in an edge definition.\nIn this case it cannot be removed from the graph yet, it has to be\nremoved from the edge definition first.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 403**\n*A json document with these Properties is returned:*\n\nReturned if your user has insufficient rights.\nIn order to drop a vertex you at least need to have the following privileges:\n 1. `Administrate` access on the Database.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 404**\n*A json document with these Properties is returned:*\n\nReturned if no graph with this name could be found.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n\n\n**Example:**\n You can remove vertex collections that are not used in any edge collection:\n\n
shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/gharial/social/vertex/otherVertices\n\nHTTP/1.1 Accepted\ncontent-type: application/json; charset=utf-8\netag: _YNEaFVS--_\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"graph\" : { \n    \"_key\" : \"social\", \n    \"numberOfShards\" : 1, \n    \"replicationFactor\" : 1, \n    \"isSmart\" : false, \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    \"_rev\" : \"_YNEaFVS--_\", \n    \"_id\" : \"_graphs/social\", \n    \"name\" : \"social\" \n  } \n}\n
\n\n\n\n\n**Example:**\n You cannot remove vertex collections that are used in edge collections:\n\n
shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/gharial/social/vertex/male\n\nHTTP/1.1 Bad Request\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"not in orphan collection\", \n  \"code\" : 400, \n  \"errorNum\" : 1928 \n}\n
\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.\nIt can only remove vertex collections that are no longer part of edge definitions,\nif they are used in edge definitions you are required to modify those first.\n\n\n**HTTP 200**\n*A json document with these Properties is returned:*\n\nReturned if the vertex collection was removed from the graph successfully\nand waitForSync is true.\n\n- **graph**:\n - **smartGraphAttribute**: The name of the sharding attribute in smart graph case (Enterprise Only)\n - **replicationFactor**: The replication factor used for every new collection in the graph.\n - **orphanCollections** (string): An array of additional vertex collections.\n Documents within these collections do not have edges within this graph.\n - **name**: The name of the graph\n - **_rev**: The revision of this graph. Can be used to make sure to not override\n concurrent modifications to this graph.\n - **numberOfShards**: Number of shards created for every new collection in the graph.\n - **isSmart**: Flag if the graph is a SmartGraph (Enterprise only) or not.\n - **_id**: The internal id value of this graph. \n - **edgeDefinitions**: An array of definitions for the relations of the graph.\n Each has the following type:\n - **to** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _to is in any of the collections here.\n - **from** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _from is in any of the collections here.\n - **collection**: Name of the edge collection, where the edge are stored in.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 202**\n*A json document with these Properties is returned:*\n\nReturned if the request was successful but waitForSync is false.\n\n- **graph**:\n - **smartGraphAttribute**: The name of the sharding attribute in smart graph case (Enterprise Only)\n - **replicationFactor**: The replication factor used for every new collection in the graph.\n - **orphanCollections** (string): An array of additional vertex collections.\n Documents within these collections do not have edges within this graph.\n - **name**: The name of the graph\n - **_rev**: The revision of this graph. Can be used to make sure to not override\n concurrent modifications to this graph.\n - **numberOfShards**: Number of shards created for every new collection in the graph.\n - **isSmart**: Flag if the graph is a SmartGraph (Enterprise only) or not.\n - **_id**: The internal id value of this graph. \n - **edgeDefinitions**: An array of definitions for the relations of the graph.\n Each has the following type:\n - **to** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _to is in any of the collections here.\n - **from** (string): List of vertex collection names.\n Edges in collection can only be inserted if their _from is in any of the collections here.\n - **collection**: Name of the edge collection, where the edge are stored in.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 400**\n*A json document with these Properties is returned:*\n\nReturned if the vertex collection is still used in an edge definition.\nIn this case it cannot be removed from the graph yet, it has to be\nremoved from the edge definition first.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 403**\n*A json document with these Properties is returned:*\n\nReturned if your user has insufficient rights.\nIn order to drop a vertex you at least need to have the following privileges:\n 1. `Administrate` access on the Database.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 404**\n*A json document with these Properties is returned:*\n\nReturned if no graph with this name could be found.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n\n\n**Example:**\n You can remove vertex collections that are not used in any edge collection:\n\n
shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/gharial/social/vertex/otherVertices\n\nHTTP/1.1 Accepted\ncontent-type: application/json; charset=utf-8\netag: _YOn1Htu--_\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"graph\" : { \n    \"_key\" : \"social\", \n    \"numberOfShards\" : 1, \n    \"replicationFactor\" : 1, \n    \"isSmart\" : false, \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    \"_rev\" : \"_YOn1Htu--_\", \n    \"_id\" : \"_graphs/social\", \n    \"name\" : \"social\" \n  } \n}\n
\n\n\n\n\n**Example:**\n You cannot remove vertex collections that are used in edge collections:\n\n
shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/gharial/social/vertex/male\n\nHTTP/1.1 Bad Request\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"not in orphan collection\", \n  \"code\" : 400, \n  \"errorNum\" : 1928 \n}\n
\n\n\n\n\n", "parameters": [ { "description": "The name of the graph.\n\n", @@ -10983,7 +10983,7 @@ "x-hints": "" }, "post": { - "description": "\n\nAdds a vertex to the given collection.\n\n\n**HTTP 201**\n*A json document with these Properties is returned:*\n\nReturned if the vertex could be added and waitForSync is true.\n\n- **new**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n- **code**: The response code.\n- **vertex**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 202**\n*A json document with these Properties is returned:*\n\nReturned if the request was successful but waitForSync is false.\n\n- **new**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n- **code**: The response code.\n- **vertex**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 403**\n*A json document with these Properties is returned:*\n\nReturned if your user has insufficient rights.\nIn order to insert vertices into the graph you at least need to have the following privileges:\n 1. `Read Only` access on the Database.\n 2. `Write` access on the given collection.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 404**\n*A json document with these Properties is returned:*\n\nReturned if no graph with this name could be found.\nOr if a graph is found but this collection is not part of the graph.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n\n\n**Example:**\n \n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/gharial/social/vertex/male <<EOF\n{ \n  \"name\" : \"Francis\" \n}\nEOF\n\nHTTP/1.1 Accepted\ncontent-type: application/json; charset=utf-8\netag: _YNEaERu--J\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"vertex\" : { \n    \"_id\" : \"male/101105\", \n    \"_key\" : \"101105\", \n    \"_rev\" : \"_YNEaERu--J\" \n  } \n}\n
\n\n\n\n\n", + "description": "\n\nAdds a vertex to the given collection.\n\n\n**HTTP 201**\n*A json document with these Properties is returned:*\n\nReturned if the vertex could be added and waitForSync is true.\n\n- **new**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n- **code**: The response code.\n- **vertex**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 202**\n*A json document with these Properties is returned:*\n\nReturned if the request was successful but waitForSync is false.\n\n- **new**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n- **code**: The response code.\n- **vertex**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 403**\n*A json document with these Properties is returned:*\n\nReturned if your user has insufficient rights.\nIn order to insert vertices into the graph you at least need to have the following privileges:\n 1. `Read Only` access on the Database.\n 2. `Write` access on the given collection.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 404**\n*A json document with these Properties is returned:*\n\nReturned if no graph with this name could be found.\nOr if a graph is found but this collection is not part of the graph.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n\n\n**Example:**\n \n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/gharial/social/vertex/male <<EOF\n{ \n  \"name\" : \"Francis\" \n}\nEOF\n\nHTTP/1.1 Accepted\ncontent-type: application/json; charset=utf-8\netag: _YOn1GtO--_\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"vertex\" : { \n    \"_id\" : \"male/101105\", \n    \"_key\" : \"101105\", \n    \"_rev\" : \"_YOn1GtO--_\" \n  } \n}\n
\n\n\n\n\n", "parameters": [ { "description": "The name of the graph.\n\n", @@ -11167,7 +11167,7 @@ "x-hints": "" }, "get": { - "description": "\n\nGets a vertex from the given collection.\n\n\n**HTTP 200**\n*A json document with these Properties is returned:*\n\nReturned if the vertex could be found.\n\n- **code**: The response code.\n- **vertex**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 304**\n*A json document with these Properties is returned:*\n\nReturned if the if-none-match header is given and the\ncurrently stored vertex still has this revision value.\nSo there was no update between the last time the vertex\nwas fetched by the caller.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 403**\n*A json document with these Properties is returned:*\n\nReturned if your user has insufficient rights.\nIn order to update vertices in the graph you at least need to have the following privileges:\n 1. `Read Only` access on the Database.\n 2. `Read Only` access on the given collection.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 404**\n*A json document with these Properties is returned:*\n\nReturned in the following cases:\n* No graph with this name could be found.\n* This collection is not part of the graph.\n* The vertex does not exist.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 412**\n*A json document with these Properties is returned:*\n\nReturned if if-match header is given, but the stored documents revision is different.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n\n\n**Example:**\n \n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/gharial/social/vertex/female/alice\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\netag: _YNEaE2i--_\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"vertex\" : { \n    \"_key\" : \"alice\", \n    \"_id\" : \"female/alice\", \n    \"_rev\" : \"_YNEaE2i--_\", \n    \"name\" : \"Alice\" \n  } \n}\n
\n\n\n\n", + "description": "\n\nGets a vertex from the given collection.\n\n\n**HTTP 200**\n*A json document with these Properties is returned:*\n\nReturned if the vertex could be found.\n\n- **code**: The response code.\n- **vertex**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 304**\n*A json document with these Properties is returned:*\n\nReturned if the if-none-match header is given and the\ncurrently stored vertex still has this revision value.\nSo there was no update between the last time the vertex\nwas fetched by the caller.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 403**\n*A json document with these Properties is returned:*\n\nReturned if your user has insufficient rights.\nIn order to update vertices in the graph you at least need to have the following privileges:\n 1. `Read Only` access on the Database.\n 2. `Read Only` access on the given collection.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 404**\n*A json document with these Properties is returned:*\n\nReturned in the following cases:\n* No graph with this name could be found.\n* This collection is not part of the graph.\n* The vertex does not exist.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 412**\n*A json document with these Properties is returned:*\n\nReturned if if-match header is given, but the stored documents revision is different.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n\n\n**Example:**\n \n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/gharial/social/vertex/female/alice\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\netag: _YOn1HP6--_\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"vertex\" : { \n    \"_key\" : \"alice\", \n    \"_id\" : \"female/alice\", \n    \"_rev\" : \"_YOn1HP6--_\", \n    \"name\" : \"Alice\" \n  } \n}\n
\n\n\n\n", "parameters": [ { "description": "The name of the graph.\n\n", @@ -11262,7 +11262,7 @@ "x-hints": "" }, "patch": { - "description": "\n\nUpdates the data of the specific vertex in the collection.\n\n\n**HTTP 200**\n*A json document with these Properties is returned:*\n\nReturned if the vertex could be updated, and waitForSync is true.\n\n- **new**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n- **old**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n- **code**: The response code.\n- **vertex**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 202**\n*A json document with these Properties is returned:*\n\nReturned if the request was successful, and waitForSync is false.\n\n- **new**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n- **old**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n- **code**: The response code.\n- **vertex**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 403**\n*A json document with these Properties is returned:*\n\nReturned if your user has insufficient rights.\nIn order to update vertices in the graph you at least need to have the following privileges:\n 1. `Read Only` access on the Database.\n 2. `Write` access on the given collection.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 404**\n*A json document with these Properties is returned:*\n\nReturned in the following cases:\n* No graph with this name could be found.\n* This collection is not part of the graph.\n* The vertex to update does not exist.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 412**\n*A json document with these Properties is returned:*\n\nReturned if if-match header is given, but the stored documents revision is different.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/gharial/social/vertex/female/alice <<EOF\n{ \n  \"age\" : 26 \n}\nEOF\n\nHTTP/1.1 Accepted\ncontent-type: application/json; charset=utf-8\netag: _YNEaFLO--J\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"vertex\" : { \n    \"_id\" : \"female/alice\", \n    \"_key\" : \"alice\", \n    \"_oldRev\" : \"_YNEaFLK--_\", \n    \"_rev\" : \"_YNEaFLO--J\" \n  } \n}\n
\n\n\n\n", + "description": "\n\nUpdates the data of the specific vertex in the collection.\n\n\n**HTTP 200**\n*A json document with these Properties is returned:*\n\nReturned if the vertex could be updated, and waitForSync is true.\n\n- **new**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n- **old**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n- **code**: The response code.\n- **vertex**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 202**\n*A json document with these Properties is returned:*\n\nReturned if the request was successful, and waitForSync is false.\n\n- **new**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n- **old**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n- **code**: The response code.\n- **vertex**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 403**\n*A json document with these Properties is returned:*\n\nReturned if your user has insufficient rights.\nIn order to update vertices in the graph you at least need to have the following privileges:\n 1. `Read Only` access on the Database.\n 2. `Write` access on the given collection.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 404**\n*A json document with these Properties is returned:*\n\nReturned in the following cases:\n* No graph with this name could be found.\n* This collection is not part of the graph.\n* The vertex to update does not exist.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 412**\n*A json document with these Properties is returned:*\n\nReturned if if-match header is given, but the stored documents revision is different.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/gharial/social/vertex/female/alice <<EOF\n{ \n  \"age\" : 26 \n}\nEOF\n\nHTTP/1.1 Accepted\ncontent-type: application/json; charset=utf-8\netag: _YOn1Hjy--J\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"vertex\" : { \n    \"_id\" : \"female/alice\", \n    \"_key\" : \"alice\", \n    \"_oldRev\" : \"_YOn1Hju--_\", \n    \"_rev\" : \"_YOn1Hjy--J\" \n  } \n}\n
\n\n\n\n", "parameters": [ { "description": "The name of the graph.\n\n", @@ -11383,7 +11383,7 @@ "x-hints": "" }, "put": { - "description": "\n\nReplaces the data of a vertex in the collection.\n\n\n**HTTP 200**\n*A json document with these Properties is returned:*\n\nReturned if the vertex could be replaced, and waitForSync is true.\n\n- **new**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n- **old**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n- **code**: The response code.\n- **vertex**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 202**\n*A json document with these Properties is returned:*\n\nReturned if the vertex could be replaced, and waitForSync is false.\n\n- **new**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n- **old**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n- **code**: The response code.\n- **vertex**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 403**\n*A json document with these Properties is returned:*\n\nReturned if your user has insufficient rights.\nIn order to replace vertices in the graph you at least need to have the following privileges:\n 1. `Read Only` access on the Database.\n 2. `Write` access on the given collection.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 404**\n*A json document with these Properties is returned:*\n\nReturned in the following cases:\n* No graph with this name could be found.\n* This collection is not part of the graph.\n* The vertex to replace does not exist.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 412**\n*A json document with these Properties is returned:*\n\nReturned if if-match header is given, but the stored documents revision is different.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PUT --header 'accept: application/json' --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 Accepted\ncontent-type: application/json; charset=utf-8\netag: _YNEaFiS--L\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"vertex\" : { \n    \"_id\" : \"female/alice\", \n    \"_key\" : \"alice\", \n    \"_oldRev\" : \"_YNEaFiO--_\", \n    \"_rev\" : \"_YNEaFiS--L\" \n  } \n}\n
\n\n\n\n", + "description": "\n\nReplaces the data of a vertex in the collection.\n\n\n**HTTP 200**\n*A json document with these Properties is returned:*\n\nReturned if the vertex could be replaced, and waitForSync is true.\n\n- **new**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n- **old**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n- **code**: The response code.\n- **vertex**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 202**\n*A json document with these Properties is returned:*\n\nReturned if the vertex could be replaced, and waitForSync is false.\n\n- **new**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n- **old**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n- **code**: The response code.\n- **vertex**:\n - **_key**: The _key value of the stored data.\n - **_rev**: The _rev value of the stored data.\n - **_id**: The _id value of the stored data.\n- **error**: Flag if there was an error (true) or not (false).\nIt is false in this response.\n\n\n**HTTP 403**\n*A json document with these Properties is returned:*\n\nReturned if your user has insufficient rights.\nIn order to replace vertices in the graph you at least need to have the following privileges:\n 1. `Read Only` access on the Database.\n 2. `Write` access on the given collection.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 404**\n*A json document with these Properties is returned:*\n\nReturned in the following cases:\n* No graph with this name could be found.\n* This collection is not part of the graph.\n* The vertex to replace does not exist.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n**HTTP 412**\n*A json document with these Properties is returned:*\n\nReturned if if-match header is given, but the stored documents revision is different.\n\n- **errorMessage**: A message created for this error.\n- **errorNum**: ArangoDB error number for the error that occured.\n- **code**: The response code.\n- **error**: Flag if there was an error (true) or not (false).\nIt is true in this response.\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PUT --header 'accept: application/json' --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 Accepted\ncontent-type: application/json; charset=utf-8\netag: _YOn1H5C--D\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 202, \n  \"vertex\" : { \n    \"_id\" : \"female/alice\", \n    \"_key\" : \"alice\", \n    \"_oldRev\" : \"_YOn1H5---_\", \n    \"_rev\" : \"_YOn1H5C--D\" \n  } \n}\n
\n\n\n\n", "parameters": [ { "description": "The name of the graph.\n\n", @@ -11709,7 +11709,7 @@ }, "/_api/index": { "get": { - "description": "\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\n\n**Example:**\n Return information about all indexes\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/index?collection=products\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"indexes\" : [ \n    { \n      \"fields\" : [ \n        \"_key\" \n      ], \n      \"id\" : \"products/0\", \n      \"selectivityEstimate\" : 1, \n      \"sparse\" : false, \n      \"type\" : \"primary\", \n      \"unique\" : true \n    }, \n    { \n      \"deduplicate\" : true, \n      \"fields\" : [ \n        \"name\" \n      ], \n      \"id\" : \"products/104718\", \n      \"selectivityEstimate\" : 1, \n      \"sparse\" : false, \n      \"type\" : \"hash\", \n      \"unique\" : false \n    }, \n    { \n      \"deduplicate\" : true, \n      \"fields\" : [ \n        \"price\" \n      ], \n      \"id\" : \"products/104721\", \n      \"sparse\" : true, \n      \"type\" : \"skiplist\", \n      \"unique\" : false \n    } \n  ], \n  \"identifiers\" : { \n    \"products/0\" : { \n      \"fields\" : [ \n        \"_key\" \n      ], \n      \"id\" : \"products/0\", \n      \"selectivityEstimate\" : 1, \n      \"sparse\" : false, \n      \"type\" : \"primary\", \n      \"unique\" : true \n    }, \n    \"products/104718\" : { \n      \"deduplicate\" : true, \n      \"fields\" : [ \n        \"name\" \n      ], \n      \"id\" : \"products/104718\", \n      \"selectivityEstimate\" : 1, \n      \"sparse\" : false, \n      \"type\" : \"hash\", \n      \"unique\" : false \n    }, \n    \"products/104721\" : { \n      \"deduplicate\" : true, \n      \"fields\" : [ \n        \"price\" \n      ], \n      \"id\" : \"products/104721\", \n      \"sparse\" : true, \n      \"type\" : \"skiplist\", \n      \"unique\" : false \n    } \n  } \n}\n
\n\n\n\n\n", + "description": "\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\n\n**Example:**\n Return information about all indexes\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/index?collection=products\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"indexes\" : [ \n    { \n      \"fields\" : [ \n        \"_key\" \n      ], \n      \"id\" : \"products/0\", \n      \"selectivityEstimate\" : 1, \n      \"sparse\" : false, \n      \"type\" : \"primary\", \n      \"unique\" : true \n    }, \n    { \n      \"deduplicate\" : true, \n      \"fields\" : [ \n        \"name\" \n      ], \n      \"id\" : \"products/104728\", \n      \"selectivityEstimate\" : 1, \n      \"sparse\" : false, \n      \"type\" : \"hash\", \n      \"unique\" : false \n    }, \n    { \n      \"deduplicate\" : true, \n      \"fields\" : [ \n        \"price\" \n      ], \n      \"id\" : \"products/104731\", \n      \"sparse\" : true, \n      \"type\" : \"skiplist\", \n      \"unique\" : false \n    } \n  ], \n  \"identifiers\" : { \n    \"products/0\" : { \n      \"fields\" : [ \n        \"_key\" \n      ], \n      \"id\" : \"products/0\", \n      \"selectivityEstimate\" : 1, \n      \"sparse\" : false, \n      \"type\" : \"primary\", \n      \"unique\" : true \n    }, \n    \"products/104728\" : { \n      \"deduplicate\" : true, \n      \"fields\" : [ \n        \"name\" \n      ], \n      \"id\" : \"products/104728\", \n      \"selectivityEstimate\" : 1, \n      \"sparse\" : false, \n      \"type\" : \"hash\", \n      \"unique\" : false \n    }, \n    \"products/104731\" : { \n      \"deduplicate\" : true, \n      \"fields\" : [ \n        \"price\" \n      ], \n      \"id\" : \"products/104731\", \n      \"sparse\" : true, \n      \"type\" : \"skiplist\", \n      \"unique\" : false \n    } \n  } \n}\n
\n\n\n\n\n", "parameters": [ { "description": "The collection name.\n\n", @@ -11735,7 +11735,7 @@ }, "/_api/index#fulltext": { "post": { - "description": "\n**A JSON object with these properties is required:**\n\n - **fields** (string): an array of attribute names. Currently, the array is limited\n to exactly one attribute.\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\n\n**Example:**\n Creating a fulltext index\n\n
shell> curl -X POST --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"fields\" : [ \n    \"text\" \n  ], \n  \"id\" : \"products/104764\", \n  \"isNewlyCreated\" : true, \n  \"minLength\" : 2, \n  \"sparse\" : true, \n  \"type\" : \"fulltext\", \n  \"unique\" : false, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n", + "description": "\n**A JSON object with these properties is required:**\n\n - **fields** (string): an array of attribute names. Currently, the array is limited\n to exactly one attribute.\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\n\n**Example:**\n Creating a fulltext index\n\n
shell> curl -X POST --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"fields\" : [ \n    \"text\" \n  ], \n  \"id\" : \"products/104774\", \n  \"isNewlyCreated\" : true, \n  \"minLength\" : 2, \n  \"sparse\" : true, \n  \"type\" : \"fulltext\", \n  \"unique\" : false, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n", "parameters": [ { "description": "The collection name.\n\n", @@ -11822,7 +11822,7 @@ }, "/_api/index#geo": { "post": { - "description": "\n**A JSON object with these properties is required:**\n\n - **fields** (string): 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.\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\n\n**Example:**\n Creating a geo index with a location attribute\n\n
shell> curl -X POST --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"bestIndexedLevel\" : 17, \n  \"fields\" : [ \n    \"b\" \n  ], \n  \"geoJson\" : false, \n  \"id\" : \"products/104750\", \n  \"isNewlyCreated\" : true, \n  \"maxNumCoverCells\" : 8, \n  \"sparse\" : true, \n  \"type\" : \"geo\", \n  \"unique\" : false, \n  \"worstIndexedLevel\" : 4, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n**Example:**\n Creating a geo index with latitude and longitude attributes\n\n
shell> curl -X POST --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"bestIndexedLevel\" : 17, \n  \"fields\" : [ \n    \"e\", \n    \"f\" \n  ], \n  \"geoJson\" : false, \n  \"id\" : \"products/104736\", \n  \"isNewlyCreated\" : true, \n  \"maxNumCoverCells\" : 8, \n  \"sparse\" : true, \n  \"type\" : \"geo\", \n  \"unique\" : false, \n  \"worstIndexedLevel\" : 4, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n", + "description": "\n**A JSON object with these properties is required:**\n\n - **fields** (string): 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.\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\n\n**Example:**\n Creating a geo index with a location attribute\n\n
shell> curl -X POST --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"bestIndexedLevel\" : 17, \n  \"fields\" : [ \n    \"b\" \n  ], \n  \"geoJson\" : false, \n  \"id\" : \"products/104760\", \n  \"isNewlyCreated\" : true, \n  \"maxNumCoverCells\" : 8, \n  \"sparse\" : true, \n  \"type\" : \"geo\", \n  \"unique\" : false, \n  \"worstIndexedLevel\" : 4, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n**Example:**\n Creating a geo index with latitude and longitude attributes\n\n
shell> curl -X POST --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"bestIndexedLevel\" : 17, \n  \"fields\" : [ \n    \"e\", \n    \"f\" \n  ], \n  \"geoJson\" : false, \n  \"id\" : \"products/104746\", \n  \"isNewlyCreated\" : true, \n  \"maxNumCoverCells\" : 8, \n  \"sparse\" : true, \n  \"type\" : \"geo\", \n  \"unique\" : false, \n  \"worstIndexedLevel\" : 4, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n", "parameters": [ { "description": "The collection name.\n\n\n", @@ -11863,7 +11863,7 @@ }, "/_api/index#hash": { "post": { - "description": "\n**A JSON object with these properties is required:**\n\n - **fields** (string): an array of attribute paths.\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 - **deduplicate**: if *false*, the deduplication of array values is turned off.\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\n\n**Example:**\n Creating an unique constraint\n\n
shell> curl -X POST --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"deduplicate\" : true, \n  \"fields\" : [ \n    \"a\", \n    \"b\" \n  ], \n  \"id\" : \"products/104834\", \n  \"isNewlyCreated\" : true, \n  \"selectivityEstimate\" : 1, \n  \"sparse\" : false, \n  \"type\" : \"hash\", \n  \"unique\" : true, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n**Example:**\n Creating a non-unique hash index\n\n
shell> curl -X POST --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"deduplicate\" : true, \n  \"fields\" : [ \n    \"a\", \n    \"b\" \n  ], \n  \"id\" : \"products/104778\", \n  \"isNewlyCreated\" : true, \n  \"selectivityEstimate\" : 1, \n  \"sparse\" : false, \n  \"type\" : \"hash\", \n  \"unique\" : false, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n**Example:**\n Creating a sparse index\n\n
shell> curl -X POST --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"deduplicate\" : true, \n  \"fields\" : [ \n    \"a\" \n  ], \n  \"id\" : \"products/104848\", \n  \"isNewlyCreated\" : true, \n  \"selectivityEstimate\" : 1, \n  \"sparse\" : true, \n  \"type\" : \"hash\", \n  \"unique\" : false, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n", + "description": "\n**A JSON object with these properties is required:**\n\n - **fields** (string): an array of attribute paths.\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 - **deduplicate**: if *false*, the deduplication of array values is turned off.\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\n\n**Example:**\n Creating an unique constraint\n\n
shell> curl -X POST --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"deduplicate\" : true, \n  \"fields\" : [ \n    \"a\", \n    \"b\" \n  ], \n  \"id\" : \"products/104844\", \n  \"isNewlyCreated\" : true, \n  \"selectivityEstimate\" : 1, \n  \"sparse\" : false, \n  \"type\" : \"hash\", \n  \"unique\" : true, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n**Example:**\n Creating a non-unique hash index\n\n
shell> curl -X POST --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"deduplicate\" : true, \n  \"fields\" : [ \n    \"a\", \n    \"b\" \n  ], \n  \"id\" : \"products/104788\", \n  \"isNewlyCreated\" : true, \n  \"selectivityEstimate\" : 1, \n  \"sparse\" : false, \n  \"type\" : \"hash\", \n  \"unique\" : false, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n**Example:**\n Creating a sparse index\n\n
shell> curl -X POST --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"deduplicate\" : true, \n  \"fields\" : [ \n    \"a\" \n  ], \n  \"id\" : \"products/104858\", \n  \"isNewlyCreated\" : true, \n  \"selectivityEstimate\" : 1, \n  \"sparse\" : true, \n  \"type\" : \"hash\", \n  \"unique\" : false, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n", "parameters": [ { "description": "The collection name.\n\n", @@ -11907,7 +11907,7 @@ }, "/_api/index#persistent": { "post": { - "description": "\n**A JSON object with these properties is required:**\n\n - **fields** (string): an array of attribute paths.\n - **unique**: if *true*, then create a unique index.\n - **type**: must be equal to *\"persistent\"*.\n - **sparse**: if *true*, then create a sparse index.\n\n\n\n\n\nCreates a persistent 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\n\n**Example:**\n Creating a persistent index\n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/index?collection=products <<EOF\n{ \n  \"type\" : \"persistent\", \n  \"unique\" : false, \n  \"fields\" : [ \n    \"a\", \n    \"b\" \n  ] \n}\nEOF\n\nHTTP/1.1 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"deduplicate\" : true, \n  \"fields\" : [ \n    \"a\", \n    \"b\" \n  ], \n  \"id\" : \"products/104792\", \n  \"isNewlyCreated\" : true, \n  \"sparse\" : false, \n  \"type\" : \"persistent\", \n  \"unique\" : false, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n**Example:**\n Creating a sparse persistent index\n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/index?collection=products <<EOF\n{ \n  \"type\" : \"persistent\", \n  \"unique\" : false, \n  \"sparse\" : true, \n  \"fields\" : [ \n    \"a\" \n  ] \n}\nEOF\n\nHTTP/1.1 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"deduplicate\" : true, \n  \"fields\" : [ \n    \"a\" \n  ], \n  \"id\" : \"products/104862\", \n  \"isNewlyCreated\" : true, \n  \"sparse\" : true, \n  \"type\" : \"persistent\", \n  \"unique\" : false, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n", + "description": "\n**A JSON object with these properties is required:**\n\n - **fields** (string): an array of attribute paths.\n - **unique**: if *true*, then create a unique index.\n - **type**: must be equal to *\"persistent\"*.\n - **sparse**: if *true*, then create a sparse index.\n\n\n\n\n\nCreates a persistent 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\n\n**Example:**\n Creating a persistent index\n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/index?collection=products <<EOF\n{ \n  \"type\" : \"persistent\", \n  \"unique\" : false, \n  \"fields\" : [ \n    \"a\", \n    \"b\" \n  ] \n}\nEOF\n\nHTTP/1.1 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"deduplicate\" : true, \n  \"fields\" : [ \n    \"a\", \n    \"b\" \n  ], \n  \"id\" : \"products/104802\", \n  \"isNewlyCreated\" : true, \n  \"sparse\" : false, \n  \"type\" : \"persistent\", \n  \"unique\" : false, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n**Example:**\n Creating a sparse persistent index\n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/index?collection=products <<EOF\n{ \n  \"type\" : \"persistent\", \n  \"unique\" : false, \n  \"sparse\" : true, \n  \"fields\" : [ \n    \"a\" \n  ] \n}\nEOF\n\nHTTP/1.1 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"deduplicate\" : true, \n  \"fields\" : [ \n    \"a\" \n  ], \n  \"id\" : \"products/104872\", \n  \"isNewlyCreated\" : true, \n  \"sparse\" : true, \n  \"type\" : \"persistent\", \n  \"unique\" : false, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n", "parameters": [ { "description": "The collection name.\n\n", @@ -11951,7 +11951,7 @@ }, "/_api/index#skiplist": { "post": { - "description": "\n**A JSON object with these properties is required:**\n\n - **fields** (string): an array of attribute paths.\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 - **deduplicate**: if *false*, the deduplication of array values is turned off.\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\n\n**Example:**\n Creating a skiplist index\n\n
shell> curl -X POST --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"deduplicate\" : true, \n  \"fields\" : [ \n    \"a\", \n    \"b\" \n  ], \n  \"id\" : \"products/104806\", \n  \"isNewlyCreated\" : true, \n  \"sparse\" : false, \n  \"type\" : \"skiplist\", \n  \"unique\" : false, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n**Example:**\n Creating a sparse skiplist index\n\n
shell> curl -X POST --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"deduplicate\" : true, \n  \"fields\" : [ \n    \"a\" \n  ], \n  \"id\" : \"products/104876\", \n  \"isNewlyCreated\" : true, \n  \"sparse\" : true, \n  \"type\" : \"skiplist\", \n  \"unique\" : false, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n", + "description": "\n**A JSON object with these properties is required:**\n\n - **fields** (string): an array of attribute paths.\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 - **deduplicate**: if *false*, the deduplication of array values is turned off.\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\n\n**Example:**\n Creating a skiplist index\n\n
shell> curl -X POST --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"deduplicate\" : true, \n  \"fields\" : [ \n    \"a\", \n    \"b\" \n  ], \n  \"id\" : \"products/104816\", \n  \"isNewlyCreated\" : true, \n  \"sparse\" : false, \n  \"type\" : \"skiplist\", \n  \"unique\" : false, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n**Example:**\n Creating a sparse skiplist index\n\n
shell> curl -X POST --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"deduplicate\" : true, \n  \"fields\" : [ \n    \"a\" \n  ], \n  \"id\" : \"products/104895\", \n  \"isNewlyCreated\" : true, \n  \"sparse\" : true, \n  \"type\" : \"skiplist\", \n  \"unique\" : false, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n", "parameters": [ { "description": "The collection name.\n\n", @@ -11995,7 +11995,7 @@ }, "/_api/index#ttl": { "post": { - "description": "\n**A JSON object with these properties is required:**\n\n - **fields** (string): an array with exactly one attribute path.\n - **type**: must be equal to *\"ttl\"*.\n - **expireAfter**: The time (in seconds) after a document's creation after which the\n documents count as \"expired\".\n\n\n\n\n**NOTE** Swagger examples won't work due to the anchor.\n\nCreates a TTL index for the collection *collection-name* if it\ndoes not already exist. The call expects an object containing the index\ndetails.\n\n\n\n\n**Example:**\n Creating a TTL index\n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/index?collection=sessions <<EOF\n{ \n  \"type\" : \"ttl\", \n  \"expireAfter\" : 3600, \n  \"fields\" : [ \n    \"createdAt\" \n  ] \n}\nEOF\n\nHTTP/1.1 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"expireAfter\" : 3600, \n  \"fields\" : [ \n    \"createdAt\" \n  ], \n  \"id\" : \"sessions/104820\", \n  \"isNewlyCreated\" : true, \n  \"sparse\" : true, \n  \"type\" : \"ttl\", \n  \"unique\" : false, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n\n", + "description": "\n**A JSON object with these properties is required:**\n\n - **fields** (string): an array with exactly one attribute path.\n - **type**: must be equal to *\"ttl\"*.\n - **expireAfter**: The time (in seconds) after a document's creation after which the\n documents count as \"expired\".\n\n\n\n\n**NOTE** Swagger examples won't work due to the anchor.\n\nCreates a TTL index for the collection *collection-name* if it\ndoes not already exist. The call expects an object containing the index\ndetails.\n\n\n\n\n**Example:**\n Creating a TTL index\n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/index?collection=sessions <<EOF\n{ \n  \"type\" : \"ttl\", \n  \"expireAfter\" : 3600, \n  \"fields\" : [ \n    \"createdAt\" \n  ] \n}\nEOF\n\nHTTP/1.1 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"expireAfter\" : 3600, \n  \"fields\" : [ \n    \"createdAt\" \n  ], \n  \"id\" : \"sessions/104830\", \n  \"isNewlyCreated\" : true, \n  \"sparse\" : true, \n  \"type\" : \"ttl\", \n  \"unique\" : false, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n\n", "parameters": [ { "description": "The collection name.\n\n", @@ -12039,7 +12039,7 @@ }, "/_api/index/{index-handle}": { "delete": { - "description": "\n\nDeletes an index with *index-handle*.\n\n\n\n\n**Example:**\n \n\n
shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/index/products/104890\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"id\" : \"products/104890\", \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n", + "description": "\n\nDeletes an index with *index-handle*.\n\n\n\n\n**Example:**\n \n\n
shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/index/products/104909\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"id\" : \"products/104909\", \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n", "parameters": [ { "description": "The index handle.\n\n", @@ -12097,7 +12097,7 @@ }, "/_api/job/{job-id}": { "get": { - "description": "\n\nReturns the processing status of the specified job. The processing status\ncan be\ndetermined by peeking into the HTTP response code of the response.\n\n\n\n\n**Example:**\n Querying the status of a done job:\n\n
shell> curl -X PUT --header 'x-arango-async: store' --header 'accept: application/json' --dump - http://localhost:8529/_api/version\n\nHTTP/1.1 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 132271\nx-content-type-options: nosniff\n\nshell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/job/132271\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-arango-async-id: 132271\nx-content-type-options: nosniff\n\n{ \n  \"server\" : \"arango\", \n  \"version\" : \"3.5.0-devel\", \n  \"license\" : \"enterprise\" \n}\n
\n\n\n\n\n**Example:**\n Querying the status of a pending job:\n(therefore we create a long runnging job...)\n\n
shell> curl -X POST --header 'x-arango-async: store' --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/transaction <<EOF\n{ \n  \"collections\" : { \n    \"read\" : [ \n      \"_frontend\" \n    ] \n  }, \n  \"action\" : \"function () {require('internal').sleep(15.0);}\" \n}\nEOF\n\nHTTP/1.1 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 132273\nx-content-type-options: nosniff\n\nshell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/job/132273\n\nHTTP/1.1 No Content\ncontent-type: text/plain; charset=utf-8\nx-content-type-options: nosniff\n\n
\n\n\n\n\n", + "description": "\n\nReturns the processing status of the specified job. The processing status\ncan be\ndetermined by peeking into the HTTP response code of the response.\n\n\n\n\n**Example:**\n Querying the status of a done job:\n\n
shell> curl -X PUT --header 'x-arango-async: store' --header 'accept: application/json' --dump - http://localhost:8529/_api/version\n\nHTTP/1.1 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 132291\nx-content-type-options: nosniff\n\nshell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/job/132291\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-arango-async-id: 132291\nx-content-type-options: nosniff\n\n{ \n  \"server\" : \"arango\", \n  \"version\" : \"3.5.0-devel\", \n  \"license\" : \"enterprise\" \n}\n
\n\n\n\n\n**Example:**\n Querying the status of a pending job:\n(therefore we create a long runnging job...)\n\n
shell> curl -X POST --header 'x-arango-async: store' --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/transaction <<EOF\n{ \n  \"collections\" : { \n    \"read\" : [ \n      \"_frontend\" \n    ] \n  }, \n  \"action\" : \"function () {require('internal').sleep(15.0);}\" \n}\nEOF\n\nHTTP/1.1 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 132293\nx-content-type-options: nosniff\n\nshell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/job/132293\n\nHTTP/1.1 No Content\ncontent-type: text/plain; charset=utf-8\nx-content-type-options: nosniff\n\n
\n\n\n\n\n", "parameters": [ { "description": "The async job id.\n\n", @@ -12128,7 +12128,7 @@ "x-hints": "" }, "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,\nthen\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\n\n**Example:**\n Not providing a job-id:\n\n
shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/job\n\nHTTP/1.1 Bad Request\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"bad parameter\", \n  \"code\" : 400, \n  \"errorNum\" : 400 \n}\n
\n\n\n\n\n**Example:**\n Providing a job-id for a non-existing job:\n\n
shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/job/notthere\n\nHTTP/1.1 Not Found\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"not found\", \n  \"code\" : 404, \n  \"errorNum\" : 404 \n}\n
\n\n\n\n\n**Example:**\n Fetching the result of an HTTP GET job:\n\n
shell> curl -X PUT --header 'x-arango-async: store' --header 'accept: application/json' --dump - http://localhost:8529/_api/version\n\nHTTP/1.1 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 132260\nx-content-type-options: nosniff\n\nshell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/job/132260\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-arango-async-id: 132260\nx-content-type-options: nosniff\n\n{ \n  \"server\" : \"arango\", \n  \"version\" : \"3.5.0-devel\", \n  \"license\" : \"enterprise\" \n}\n
\n\n\n\n\n**Example:**\n Fetching the result of an HTTP POST job that failed:\n\n
shell> curl -X PUT --header 'x-arango-async: store' --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/collection <<EOF\n{ \n  \"name\" : \" this name is invalid \" \n}\nEOF\n\nHTTP/1.1 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 132262\nx-content-type-options: nosniff\n\nshell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/job/132262\n\nHTTP/1.1 Bad Request\ncontent-type: application/json; charset=utf-8\nx-arango-async-id: 132262\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"expected PUT /_api/collection/<collection-name>/<action>\", \n  \"code\" : 400, \n  \"errorNum\" : 400 \n}\n
\n\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,\nthen\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\n\n**Example:**\n Not providing a job-id:\n\n
shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/job\n\nHTTP/1.1 Bad Request\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"bad parameter\", \n  \"code\" : 400, \n  \"errorNum\" : 400 \n}\n
\n\n\n\n\n**Example:**\n Providing a job-id for a non-existing job:\n\n
shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/job/notthere\n\nHTTP/1.1 Not Found\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"not found\", \n  \"code\" : 404, \n  \"errorNum\" : 404 \n}\n
\n\n\n\n\n**Example:**\n Fetching the result of an HTTP GET job:\n\n
shell> curl -X PUT --header 'x-arango-async: store' --header 'accept: application/json' --dump - http://localhost:8529/_api/version\n\nHTTP/1.1 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 132280\nx-content-type-options: nosniff\n\nshell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/job/132280\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-arango-async-id: 132280\nx-content-type-options: nosniff\n\n{ \n  \"server\" : \"arango\", \n  \"version\" : \"3.5.0-devel\", \n  \"license\" : \"enterprise\" \n}\n
\n\n\n\n\n**Example:**\n Fetching the result of an HTTP POST job that failed:\n\n
shell> curl -X PUT --header 'x-arango-async: store' --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/collection <<EOF\n{ \n  \"name\" : \" this name is invalid \" \n}\nEOF\n\nHTTP/1.1 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 132282\nx-content-type-options: nosniff\n\nshell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/job/132282\n\nHTTP/1.1 Bad Request\ncontent-type: application/json; charset=utf-8\nx-arango-async-id: 132282\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"expected PUT /_api/collection/<collection-name>/<action>\", \n  \"code\" : 400, \n  \"errorNum\" : 400 \n}\n
\n\n\n\n\n", "parameters": [ { "description": "The async job id.\n\n", @@ -12161,7 +12161,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\n\n**Example:**\n \n\n
shell> curl -X POST --header 'x-arango-async: store' --header 'accept: application/json' --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 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 132248\nx-content-type-options: nosniff\n\nshell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/job/pending\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n[ \n  \"132248\" \n]\nshell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/job/132248/cancel\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : true \n}\nshell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/job/pending\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n[ \n  \"132248\" \n]\n
\n\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\n\n**Example:**\n \n\n
shell> curl -X POST --header 'x-arango-async: store' --header 'accept: application/json' --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 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 132268\nx-content-type-options: nosniff\n\nshell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/job/pending\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n[ \n  \"132268\" \n]\nshell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/job/132268/cancel\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : true \n}\nshell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/job/pending\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n[ \n  \"132268\" \n]\n
\n\n\n\n\n", "parameters": [ { "description": "The async job id.\n\n", @@ -12194,7 +12194,7 @@ }, "/_api/job/{type}": { "delete": { - "description": "\n\nDeletes either all job results, expired job results, or the result of a\nspecific job.\nClients can use this method to perform an eventual garbage collection of job\nresults.\n\n\n\n\n**Example:**\n Deleting all jobs:\n\n
shell> curl -X PUT --header 'x-arango-async: store' --header 'accept: application/json' --dump - http://localhost:8529/_api/version\n\nHTTP/1.1 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 132251\nx-content-type-options: nosniff\n\nshell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/job/all\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : true \n}\n
\n\n\n\n\n**Example:**\n Deleting expired jobs:\n\n
shell> curl -X PUT --header 'x-arango-async: store' --header 'accept: application/json' --dump - http://localhost:8529/_api/version\n\nHTTP/1.1 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 132253\nx-content-type-options: nosniff\n\nshell> curl --header 'accept: application/json' --dump - http://localhost:8529/_admin/time\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"time\" : 1550241794.3178062, \n  \"error\" : false, \n  \"code\" : 200 \n}\nshell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/job/expired?stamp=1550241794.3178062\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : true \n}\nshell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/job/pending\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n[ ]\n
\n\n\n\n\n**Example:**\n Deleting the result of a specific job:\n\n
shell> curl -X PUT --header 'x-arango-async: store' --header 'accept: application/json' --dump - http://localhost:8529/_api/version\n\nHTTP/1.1 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 132255\nx-content-type-options: nosniff\n\nshell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/job/132255\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : true \n}\n
\n\n\n\n\n**Example:**\n Deleting the result of a non-existing job:\n\n
shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/job/AreYouThere\n\nHTTP/1.1 Not Found\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"not found\", \n  \"code\" : 404, \n  \"errorNum\" : 404 \n}\n
\n\n\n\n\n", + "description": "\n\nDeletes either all job results, expired job results, or the result of a\nspecific job.\nClients can use this method to perform an eventual garbage collection of job\nresults.\n\n\n\n\n**Example:**\n Deleting all jobs:\n\n
shell> curl -X PUT --header 'x-arango-async: store' --header 'accept: application/json' --dump - http://localhost:8529/_api/version\n\nHTTP/1.1 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 132271\nx-content-type-options: nosniff\n\nshell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/job/all\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : true \n}\n
\n\n\n\n\n**Example:**\n Deleting expired jobs:\n\n
shell> curl -X PUT --header 'x-arango-async: store' --header 'accept: application/json' --dump - http://localhost:8529/_api/version\n\nHTTP/1.1 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 132273\nx-content-type-options: nosniff\n\nshell> curl --header 'accept: application/json' --dump - http://localhost:8529/_admin/time\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"time\" : 1550658808.1522949, \n  \"error\" : false, \n  \"code\" : 200 \n}\nshell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/job/expired?stamp=1550658808.1522949\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : true \n}\nshell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/job/pending\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n[ ]\n
\n\n\n\n\n**Example:**\n Deleting the result of a specific job:\n\n
shell> curl -X PUT --header 'x-arango-async: store' --header 'accept: application/json' --dump - http://localhost:8529/_api/version\n\nHTTP/1.1 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 132275\nx-content-type-options: nosniff\n\nshell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/job/132275\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : true \n}\n
\n\n\n\n\n**Example:**\n Deleting the result of a non-existing job:\n\n
shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/job/AreYouThere\n\nHTTP/1.1 Not Found\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"not found\", \n  \"code\" : 404, \n  \"errorNum\" : 404 \n}\n
\n\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\n not be aborted.\n\n", @@ -12232,7 +12232,7 @@ "x-hints": "" }, "get": { - "description": "\n\nReturns the list of ids of async jobs with a specific status (either done or\npending).\nThe list can be used by the client to get an overview of the job system\nstatus and\nto retrieve completed job results later.\n\n\n\n\n**Example:**\n Fetching the list of done jobs:\n\n
shell> curl -X PUT --header 'x-arango-async: store' --header 'accept: application/json' --dump - http://localhost:8529/_api/version\n\nHTTP/1.1 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 132264\nx-content-type-options: nosniff\n\nshell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/job/done\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n[ \n  \"132264\" \n]\n
\n\n\n\n\n**Example:**\n Fetching the list of pending jobs:\n\n
shell> curl -X PUT --header 'x-arango-async: store' --header 'accept: application/json' --dump - http://localhost:8529/_api/version\n\nHTTP/1.1 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 132266\nx-content-type-options: nosniff\n\nshell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/job/pending\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n[ ]\n
\n\n\n\n\n**Example:**\n Querying the status of a pending job:\n(we create a sleep job therefore...)\n\n
shell> curl -X POST --header 'x-arango-async: store' --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/transaction <<EOF\n{ \n  \"collections\" : { \n    \"read\" : [ \n      \"_frontend\" \n    ] \n  }, \n  \"action\" : \"function () {require('internal').sleep(15.0);}\" \n}\nEOF\n\nHTTP/1.1 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 132268\nx-content-type-options: nosniff\n\nshell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/job/pending\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n[ \n  \"132268\" \n]\nshell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/job/132268\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : true \n}\n
\n\n\n\n\n", + "description": "\n\nReturns the list of ids of async jobs with a specific status (either done or\npending).\nThe list can be used by the client to get an overview of the job system\nstatus and\nto retrieve completed job results later.\n\n\n\n\n**Example:**\n Fetching the list of done jobs:\n\n
shell> curl -X PUT --header 'x-arango-async: store' --header 'accept: application/json' --dump - http://localhost:8529/_api/version\n\nHTTP/1.1 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 132284\nx-content-type-options: nosniff\n\nshell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/job/done\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n[ \n  \"132284\" \n]\n
\n\n\n\n\n**Example:**\n Fetching the list of pending jobs:\n\n
shell> curl -X PUT --header 'x-arango-async: store' --header 'accept: application/json' --dump - http://localhost:8529/_api/version\n\nHTTP/1.1 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 132286\nx-content-type-options: nosniff\n\nshell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/job/pending\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n[ ]\n
\n\n\n\n\n**Example:**\n Querying the status of a pending job:\n(we create a sleep job therefore...)\n\n
shell> curl -X POST --header 'x-arango-async: store' --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/transaction <<EOF\n{ \n  \"collections\" : { \n    \"read\" : [ \n      \"_frontend\" \n    ] \n  }, \n  \"action\" : \"function () {require('internal').sleep(15.0);}\" \n}\nEOF\n\nHTTP/1.1 Accepted\ncontent-type: text/plain; charset=utf-8\nx-arango-async-id: 132288\nx-content-type-options: nosniff\n\nshell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/job/pending\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n[ \n  \"132288\" \n]\nshell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/job/132288\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : true \n}\n
\n\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\nasync\njobs for which results can be fetched. Setting the type to pending will\nreturn\nthe ids of not yet finished async jobs.\n\n", @@ -12595,7 +12595,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\n\n**Example:**\n \n\n
shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/applier-start\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"state\" : { \n    \"running\" : true, \n    \"phase\" : \"running\", \n    \"lastAppliedContinuousTick\" : null, \n    \"lastProcessedContinuousTick\" : null, \n    \"lastAvailableContinuousTick\" : null, \n    \"safeResumeTick\" : null, \n    \"ticksBehind\" : 0, \n    \"progress\" : { \n      \"time\" : \"2019-02-15T14:42:34Z\", \n      \"message\" : \"applier initially created for database '_system'\", \n      \"failedConnects\" : 0 \n    }, \n    \"totalRequests\" : 0, \n    \"totalFailedConnects\" : 0, \n    \"totalEvents\" : 0, \n    \"totalResyncs\" : 0, \n    \"totalOperationsExcluded\" : 0, \n    \"lastError\" : { \n      \"errorNum\" : 0 \n    }, \n    \"time\" : \"2019-02-15T14:42:53Z\" \n  }, \n  \"server\" : { \n    \"version\" : \"3.5.0-devel\", \n    \"serverId\" : \"70528077254784\" \n  }, \n  \"endpoint\" : \"tcp://127.0.0.1:8529\", \n  \"database\" : \"_system\" \n}\n
\n\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\n\n**Example:**\n \n\n
shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/applier-start\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"state\" : { \n    \"running\" : true, \n    \"phase\" : \"running\", \n    \"lastAppliedContinuousTick\" : null, \n    \"lastProcessedContinuousTick\" : null, \n    \"lastAvailableContinuousTick\" : null, \n    \"safeResumeTick\" : null, \n    \"ticksBehind\" : 0, \n    \"progress\" : { \n      \"time\" : \"2019-02-20T10:32:42Z\", \n      \"message\" : \"applier initially created for database '_system'\", \n      \"failedConnects\" : 0 \n    }, \n    \"totalRequests\" : 0, \n    \"totalFailedConnects\" : 0, \n    \"totalEvents\" : 0, \n    \"totalResyncs\" : 0, \n    \"totalOperationsExcluded\" : 0, \n    \"lastError\" : { \n      \"errorNum\" : 0 \n    }, \n    \"time\" : \"2019-02-20T10:33:03Z\" \n  }, \n  \"server\" : { \n    \"version\" : \"3.5.0-devel\", \n    \"serverId\" : \"153018529730512\" \n  }, \n  \"endpoint\" : \"tcp://127.0.0.1:8529\", \n  \"database\" : \"_system\" \n}\n
\n\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", @@ -12630,7 +12630,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 remote server can\n provide, for all databases.\n\n - *ticksBehind*: this attribute will be present only if the applier is currently\n running. It will provide the number of log ticks between what the applier\n has applied/seen and the last log tick value provided by the remote server.\n If this value is zero, then both servers are in sync. If this is non-zero,\n then the remote server has additional data that the applier has not yet\n fetched and processed, or the remote server may have more data that is not\n applicable to the applier.\n\n Client applications can use it to determine approximately how far the applier\n is behind the remote server, and can periodically check if the value is \n increasing (applier is falling behind) or decreasing (applier is catching up).\n \n Please note that as the remote server will only keep one last log tick value \n for all of its databases, but replication may be restricted to just certain \n databases on the applier, this value is more meaningful when the global applier \n is used.\n Additionally, the last log tick provided by the remote server may increase\n due to writes into system collections that are not replicated due to replication\n configuration. So the reported value may exaggerate the reality a bit for\n some scenarios. \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\nPlease note that all \"tick\" values returned do not have a specific unit. Tick\nvalues are only meaningful when compared to each other. Higher tick values mean\n\"later in time\" than lower tick values.\n\n\n\n**Example:**\n Fetching the state of an inactive applier:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/applier-state\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"state\" : { \n    \"running\" : false, \n    \"phase\" : \"inactive\", \n    \"lastAppliedContinuousTick\" : null, \n    \"lastProcessedContinuousTick\" : null, \n    \"lastAvailableContinuousTick\" : null, \n    \"safeResumeTick\" : null, \n    \"progress\" : { \n      \"time\" : \"2019-02-15T14:42:54Z\", \n      \"message\" : \"applier shut down\", \n      \"failedConnects\" : 1 \n    }, \n    \"totalRequests\" : 2, \n    \"totalFailedConnects\" : 1, \n    \"totalEvents\" : 0, \n    \"totalResyncs\" : 0, \n    \"totalOperationsExcluded\" : 0, \n    \"lastError\" : { \n      \"errorNum\" : 0 \n    }, \n    \"time\" : \"2019-02-15T14:42:54Z\" \n  }, \n  \"server\" : { \n    \"version\" : \"3.5.0-devel\", \n    \"serverId\" : \"70528077254784\" \n  }, \n  \"endpoint\" : \"tcp://127.0.0.1:8529\", \n  \"database\" : \"_system\" \n}\n
\n\n\n\n\n**Example:**\n Fetching the state of an active applier:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/applier-state\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"state\" : { \n    \"running\" : true, \n    \"phase\" : \"running\", \n    \"lastAppliedContinuousTick\" : null, \n    \"lastProcessedContinuousTick\" : null, \n    \"lastAvailableContinuousTick\" : null, \n    \"safeResumeTick\" : null, \n    \"ticksBehind\" : 0, \n    \"progress\" : { \n      \"time\" : \"2019-02-15T14:42:54Z\", \n      \"message\" : \"fetching master state information\", \n      \"failedConnects\" : 0 \n    }, \n    \"totalRequests\" : 2, \n    \"totalFailedConnects\" : 1, \n    \"totalEvents\" : 0, \n    \"totalResyncs\" : 0, \n    \"totalOperationsExcluded\" : 0, \n    \"lastError\" : { \n      \"errorNum\" : 0 \n    }, \n    \"time\" : \"2019-02-15T14:42:54Z\" \n  }, \n  \"server\" : { \n    \"version\" : \"3.5.0-devel\", \n    \"serverId\" : \"70528077254784\" \n  }, \n  \"endpoint\" : \"tcp://127.0.0.1:8529\", \n  \"database\" : \"_system\" \n}\n
\n\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 remote server can\n provide, for all databases.\n\n - *ticksBehind*: this attribute will be present only if the applier is currently\n running. It will provide the number of log ticks between what the applier\n has applied/seen and the last log tick value provided by the remote server.\n If this value is zero, then both servers are in sync. If this is non-zero,\n then the remote server has additional data that the applier has not yet\n fetched and processed, or the remote server may have more data that is not\n applicable to the applier.\n\n Client applications can use it to determine approximately how far the applier\n is behind the remote server, and can periodically check if the value is \n increasing (applier is falling behind) or decreasing (applier is catching up).\n \n Please note that as the remote server will only keep one last log tick value \n for all of its databases, but replication may be restricted to just certain \n databases on the applier, this value is more meaningful when the global applier \n is used.\n Additionally, the last log tick provided by the remote server may increase\n due to writes into system collections that are not replicated due to replication\n configuration. So the reported value may exaggerate the reality a bit for\n some scenarios. \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\nPlease note that all \"tick\" values returned do not have a specific unit. Tick\nvalues are only meaningful when compared to each other. Higher tick values mean\n\"later in time\" than lower tick values.\n\n\n\n**Example:**\n Fetching the state of an inactive applier:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/applier-state\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"state\" : { \n    \"running\" : false, \n    \"phase\" : \"inactive\", \n    \"lastAppliedContinuousTick\" : null, \n    \"lastProcessedContinuousTick\" : null, \n    \"lastAvailableContinuousTick\" : null, \n    \"safeResumeTick\" : null, \n    \"progress\" : { \n      \"time\" : \"2019-02-20T10:33:03Z\", \n      \"message\" : \"applier shut down\", \n      \"failedConnects\" : 0 \n    }, \n    \"totalRequests\" : 1, \n    \"totalFailedConnects\" : 0, \n    \"totalEvents\" : 0, \n    \"totalResyncs\" : 0, \n    \"totalOperationsExcluded\" : 0, \n    \"lastError\" : { \n      \"errorNum\" : 0 \n    }, \n    \"time\" : \"2019-02-20T10:33:03Z\" \n  }, \n  \"server\" : { \n    \"version\" : \"3.5.0-devel\", \n    \"serverId\" : \"153018529730512\" \n  }, \n  \"endpoint\" : \"tcp://127.0.0.1:8529\", \n  \"database\" : \"_system\" \n}\n
\n\n\n\n\n**Example:**\n Fetching the state of an active applier:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/applier-state\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"state\" : { \n    \"running\" : true, \n    \"phase\" : \"running\", \n    \"lastAppliedContinuousTick\" : null, \n    \"lastProcessedContinuousTick\" : null, \n    \"lastAvailableContinuousTick\" : null, \n    \"safeResumeTick\" : null, \n    \"ticksBehind\" : 0, \n    \"progress\" : { \n      \"time\" : \"2019-02-20T10:33:03Z\", \n      \"message\" : \"fetching master state information\", \n      \"failedConnects\" : 0 \n    }, \n    \"totalRequests\" : 1, \n    \"totalFailedConnects\" : 0, \n    \"totalEvents\" : 0, \n    \"totalResyncs\" : 0, \n    \"totalOperationsExcluded\" : 0, \n    \"lastError\" : { \n      \"errorNum\" : 0 \n    }, \n    \"time\" : \"2019-02-20T10:33:03Z\" \n  }, \n  \"server\" : { \n    \"version\" : \"3.5.0-devel\", \n    \"serverId\" : \"153018529730512\" \n  }, \n  \"endpoint\" : \"tcp://127.0.0.1:8529\", \n  \"database\" : \"_system\" \n}\n
\n\n\n\n\n", "parameters": [], "responses": { "200": { @@ -12654,7 +12654,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\n\n**Example:**\n \n\n
shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/applier-stop\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"state\" : { \n    \"running\" : false, \n    \"phase\" : \"inactive\", \n    \"lastAppliedContinuousTick\" : null, \n    \"lastProcessedContinuousTick\" : null, \n    \"lastAvailableContinuousTick\" : null, \n    \"safeResumeTick\" : null, \n    \"progress\" : { \n      \"time\" : \"2019-02-15T14:42:55Z\", \n      \"message\" : \"applier shut down\", \n      \"failedConnects\" : 0 \n    }, \n    \"totalRequests\" : 6, \n    \"totalFailedConnects\" : 3, \n    \"totalEvents\" : 0, \n    \"totalResyncs\" : 0, \n    \"totalOperationsExcluded\" : 0, \n    \"lastError\" : { \n      \"errorNum\" : 0 \n    }, \n    \"time\" : \"2019-02-15T14:42:55Z\" \n  }, \n  \"server\" : { \n    \"version\" : \"3.5.0-devel\", \n    \"serverId\" : \"70528077254784\" \n  }, \n  \"endpoint\" : \"tcp://127.0.0.1:8529\", \n  \"database\" : \"_system\" \n}\n
\n\n\n\n\n", + "description": "\n\nStops the replication applier. This will return immediately if the\nreplication applier is not running.\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/applier-stop\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"state\" : { \n    \"running\" : false, \n    \"phase\" : \"inactive\", \n    \"lastAppliedContinuousTick\" : null, \n    \"lastProcessedContinuousTick\" : null, \n    \"lastAvailableContinuousTick\" : null, \n    \"safeResumeTick\" : null, \n    \"progress\" : { \n      \"time\" : \"2019-02-20T10:33:03Z\", \n      \"message\" : \"applier shut down\", \n      \"failedConnects\" : 0 \n    }, \n    \"totalRequests\" : 3, \n    \"totalFailedConnects\" : 0, \n    \"totalEvents\" : 0, \n    \"totalResyncs\" : 0, \n    \"totalOperationsExcluded\" : 0, \n    \"lastError\" : { \n      \"errorNum\" : 0 \n    }, \n    \"time\" : \"2019-02-20T10:33:03Z\" \n  }, \n  \"server\" : { \n    \"version\" : \"3.5.0-devel\", \n    \"serverId\" : \"153018529730512\" \n  }, \n  \"endpoint\" : \"tcp://127.0.0.1:8529\", \n  \"database\" : \"_system\" \n}\n
\n\n\n\n\n", "parameters": [], "responses": { "200": { @@ -12817,7 +12817,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\n\n**Example:**\n Empty collection:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/dump?collection=testCollection\n\nHTTP/1.1 No Content\ncontent-type: application/x-arango-dump; charset=utf-8\nx-arango-replication-checkmore: false\nx-arango-replication-lastincluded: 0\nx-content-type-options: nosniff\n\n
\n\n\n\n\n**Example:**\n Non-empty collection *(One JSON document per line)*:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/dump?collection=testCollection\n\nHTTP/1.1 OK\ncontent-type: application/x-arango-dump; charset=utf-8\nx-arango-replication-checkmore: false\nx-arango-replication-lastincluded: 104945\nx-content-type-options: nosniff\n\n{ \n  \"tick\" : \"104939\", \n  \"type\" : 2300, \n  \"data\" : { \n    \"_key\" : \"123456\", \n    \"_id\" : \"testCollection/123456\", \n    \"_rev\" : \"_YNEaNxC--B\", \n    \"b\" : 1, \n    \"c\" : false, \n    \"d\" : \"additional value\" \n  } \n}↩\n{ \n  \"tick\" : \"104943\", \n  \"type\" : 2302, \n  \"data\" : { \n    \"_key\" : \"foobar\", \n    \"_rev\" : \"_YNEaNxG--_\" \n  } \n}↩\n{ \n  \"tick\" : \"104945\", \n  \"type\" : 2302, \n  \"data\" : { \n    \"_key\" : \"abcdef\", \n    \"_rev\" : \"_YNEaNxG--B\" \n  } \n}↩\n
\n\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\n\n**Example:**\n Empty collection:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/dump?collection=testCollection\n\nHTTP/1.1 No Content\ncontent-type: application/x-arango-dump; charset=utf-8\nx-arango-replication-checkmore: false\nx-arango-replication-lastincluded: 0\nx-content-type-options: nosniff\n\n
\n\n\n\n\n**Example:**\n Non-empty collection *(One JSON document per line)*:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/dump?collection=testCollection\n\nHTTP/1.1 OK\ncontent-type: application/x-arango-dump; charset=utf-8\nx-arango-replication-checkmore: false\nx-arango-replication-lastincluded: 104964\nx-content-type-options: nosniff\n\n{ \n  \"tick\" : \"104958\", \n  \"type\" : 2300, \n  \"data\" : { \n    \"_key\" : \"123456\", \n    \"_id\" : \"testCollection/123456\", \n    \"_rev\" : \"_YOn1QmK--_\", \n    \"b\" : 1, \n    \"c\" : false, \n    \"d\" : \"additional value\" \n  } \n}↩\n{ \n  \"tick\" : \"104962\", \n  \"type\" : 2302, \n  \"data\" : { \n    \"_key\" : \"foobar\", \n    \"_rev\" : \"_YOn1QmK--D\" \n  } \n}↩\n{ \n  \"tick\" : \"104964\", \n  \"type\" : 2302, \n  \"data\" : { \n    \"_key\" : \"abcdef\", \n    \"_rev\" : \"_YOn1QmO--_\" \n  } \n}↩\n
\n\n\n\n\n", "parameters": [ { "description": "The name or id of the collection to dump.\n\n", @@ -12907,7 +12907,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 an array of collections with the following sub-attributes:\n\n- *parameters*: the collection properties\n\n- *indexes*: an array of the indexes of a the collection. Primary indexes and edge 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**Note:**: Using the `global` parameter the top-level object contains a key `databases`\nunder which each key represents a datbase name, and the value conforms to the above describtion.\n\n\n\n\n**Example:**\n \n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/inventory\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"collections\" : [ \n    { \n      \"indexes\" : [ ], \n      \"parameters\" : { \n        \"allowUserKeys\" : true, \n        \"cid\" : \"32\", \n        \"count\" : 0, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"globallyUniqueId\" : \"_appbundles\", \n        \"id\" : \"32\", \n        \"indexBuckets\" : 8, \n        \"isSmart\" : false, \n        \"isSystem\" : true, \n        \"isVolatile\" : false, \n        \"journalSize\" : 1048576, \n        \"keyOptions\" : { \n          \"allowUserKeys\" : true, \n          \"type\" : \"traditional\", \n          \"lastValue\" : 0 \n        }, \n        \"name\" : \"_appbundles\", \n        \"numberOfShards\" : 1, \n        \"planId\" : \"32\", \n        \"replicationFactor\" : 2, \n        \"shardKeys\" : [ \n          \"_key\" \n        ], \n        \"shards\" : { \n        }, \n        \"status\" : 3, \n        \"type\" : 2, \n        \"version\" : 7, \n        \"waitForSync\" : false \n      } \n    }, \n    { \n      \"indexes\" : [ \n        { \n          \"id\" : \"30\", \n          \"type\" : \"hash\", \n          \"fields\" : [ \n            \"mount\" \n          ], \n          \"unique\" : true, \n          \"sparse\" : true, \n          \"deduplicate\" : true \n        } \n      ], \n      \"parameters\" : { \n        \"allowUserKeys\" : true, \n        \"cid\" : \"27\", \n        \"count\" : 0, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"globallyUniqueId\" : \"_apps\", \n        \"id\" : \"27\", \n        \"indexBuckets\" : 8, \n        \"isSmart\" : false, \n        \"isSystem\" : true, \n        \"isVolatile\" : false, \n        \"journalSize\" : 1048576, \n        \"keyOptions\" : { \n          \"allowUserKeys\" : true, \n          \"type\" : \"traditional\", \n          \"lastValue\" : 41 \n        }, \n        \"name\" : \"_apps\", \n        \"numberOfShards\" : 1, \n        \"planId\" : \"27\", \n        \"replicationFactor\" : 2, \n        \"shardKeys\" : [ \n          \"_key\" \n        ], \n        \"shards\" : { \n        }, \n        \"status\" : 3, \n        \"type\" : 2, \n        \"version\" : 7, \n        \"waitForSync\" : false \n      } \n    }, \n    { \n      \"indexes\" : [ ], \n      \"parameters\" : { \n        \"allowUserKeys\" : true, \n        \"cid\" : \"13\", \n        \"count\" : 0, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"globallyUniqueId\" : \"_aqlfunctions\", \n        \"id\" : \"13\", \n        \"indexBuckets\" : 8, \n        \"isSmart\" : false, \n        \"isSystem\" : true, \n        \"isVolatile\" : false, \n        \"journalSize\" : 1048576, \n        \"keyOptions\" : { \n          \"allowUserKeys\" : true, \n          \"type\" : \"traditional\", \n          \"lastValue\" : 0 \n        }, \n        \"name\" : \"_aqlfunctions\", \n        \"numberOfShards\" : 1, \n        \"planId\" : \"13\", \n        \"replicationFactor\" : 2, \n        \"shardKeys\" : [ \n          \"_key\" \n        ], \n        \"shards\" : { \n        }, \n        \"status\" : 3, \n        \"type\" : 2, \n        \"version\" : 7, \n        \"waitForSync\" : false \n      } \n    }, \n    { \n      \"indexes\" : [ ], \n      \"parameters\" : { \n        \"allowUserKeys\" : true, \n        \"cid\" : \"6\", \n        \"count\" : 0, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"globallyUniqueId\" : \"_graphs\", \n        \"id\" : \"6\", \n        \"indexBuckets\" : 8, \n        \"isSmart\" : false, \n        \"isSystem\" : true, \n        \"isVolatile\" : false, \n        \"journalSize\" : 1048576, \n        \"keyOptions\" : { \n          \"allowUserKeys\" : true, \n          \"type\" : \"traditional\", \n          \"lastValue\" : 0 \n        }, \n        \"name\" : \"_graphs\", \n        \"numberOfShards\" : 1, \n        \"planId\" : \"6\", \n        \"replicationFactor\" : 2, \n        \"shardKeys\" : [ \n          \"_key\" \n        ], \n        \"shards\" : { \n        }, \n        \"status\" : 3, \n        \"type\" : 2, \n        \"version\" : 7, \n        \"waitForSync\" : false \n      } \n    }, \n    { \n      \"indexes\" : [ ], \n      \"parameters\" : { \n        \"allowUserKeys\" : true, \n        \"cid\" : \"2\", \n        \"count\" : 0, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"globallyUniqueId\" : \"_iresearch_analyzers\", \n        \"id\" : \"2\", \n        \"indexBuckets\" : 8, \n        \"isSmart\" : false, \n        \"isSystem\" : true, \n        \"isVolatile\" : false, \n        \"journalSize\" : 33554432, \n        \"keyOptions\" : { \n          \"allowUserKeys\" : true, \n          \"type\" : \"traditional\", \n          \"lastValue\" : 0 \n        }, \n        \"name\" : \"_iresearch_analyzers\", \n        \"numberOfShards\" : 1, \n        \"planId\" : \"2\", \n        \"replicationFactor\" : 1, \n        \"shardKeys\" : [ \n          \"_key\" \n        ], \n        \"shards\" : { \n        }, \n        \"status\" : 3, \n        \"type\" : 2, \n        \"version\" : 7, \n        \"waitForSync\" : false \n      } \n    }, \n    { \n      \"indexes\" : [ \n        { \n          \"id\" : \"11\", \n          \"type\" : \"hash\", \n          \"fields\" : [ \n            \"user\" \n          ], \n          \"unique\" : true, \n          \"sparse\" : true, \n          \"deduplicate\" : true \n        } \n      ], \n      \"parameters\" : { \n        \"allowUserKeys\" : true, \n        \"cid\" : \"8\", \n        \"count\" : 0, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"globallyUniqueId\" : \"_users\", \n        \"id\" : \"8\", \n        \"indexBuckets\" : 8, \n        \"isSmart\" : false, \n        \"isSystem\" : true, \n        \"isVolatile\" : false, \n        \"journalSize\" : 1048576, \n        \"keyOptions\" : { \n          \"allowUserKeys\" : true, \n          \"type\" : \"traditional\", \n          \"lastValue\" : 104914 \n        }, \n        \"name\" : \"_users\", \n        \"numberOfShards\" : 1, \n        \"planId\" : \"8\", \n        \"replicationFactor\" : 2, \n        \"shardKeys\" : [ \n          \"_key\" \n        ], \n        \"shards\" : { \n        }, \n        \"status\" : 3, \n        \"type\" : 2, \n        \"version\" : 7, \n        \"waitForSync\" : false \n      } \n    }, \n    { \n      \"indexes\" : [ ], \n      \"parameters\" : { \n        \"allowUserKeys\" : true, \n        \"cid\" : \"96\", \n        \"count\" : 0, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"globallyUniqueId\" : \"h402518FDD080/96\", \n        \"id\" : \"96\", \n        \"indexBuckets\" : 8, \n        \"isSmart\" : false, \n        \"isSystem\" : false, \n        \"isVolatile\" : false, \n        \"journalSize\" : 33554432, \n        \"keyOptions\" : { \n          \"allowUserKeys\" : true, \n          \"type\" : \"traditional\", \n          \"lastValue\" : 0 \n        }, \n        \"name\" : \"animals\", \n        \"numberOfShards\" : 1, \n        \"planId\" : \"96\", \n        \"replicationFactor\" : 1, \n        \"shardKeys\" : [ \n          \"_key\" \n        ], \n        \"shards\" : { \n        }, \n        \"status\" : 3, \n        \"type\" : 2, \n        \"version\" : 7, \n        \"waitForSync\" : false \n      } \n    }, \n    { \n      \"indexes\" : [ ], \n      \"parameters\" : { \n        \"allowUserKeys\" : true, \n        \"cid\" : \"87\", \n        \"count\" : 0, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"globallyUniqueId\" : \"h402518FDD080/87\", \n        \"id\" : \"87\", \n        \"indexBuckets\" : 8, \n        \"isSmart\" : false, \n        \"isSystem\" : false, \n        \"isVolatile\" : false, \n        \"journalSize\" : 33554432, \n        \"keyOptions\" : { \n          \"allowUserKeys\" : true, \n          \"type\" : \"traditional\", \n          \"lastValue\" : 0 \n        }, \n        \"name\" : \"demo\", \n        \"numberOfShards\" : 1, \n        \"planId\" : \"87\", \n        \"replicationFactor\" : 1, \n        \"shardKeys\" : [ \n          \"_key\" \n        ], \n        \"shards\" : { \n        }, \n        \"status\" : 3, \n        \"type\" : 2, \n        \"version\" : 7, \n        \"waitForSync\" : false \n      } \n    } \n  ], \n  \"views\" : [ \n    { \n      \"globallyUniqueId\" : \"h402518FDD080/102\", \n      \"id\" : \"102\", \n      \"name\" : \"demoView\", \n      \"type\" : \"arangosearch\", \n      \"cleanupIntervalStep\" : 10, \n      \"commitIntervalMsec\" : 60000, \n      \"consolidationIntervalMsec\" : 60000, \n      \"consolidationPolicy\" : { \n        \"type\" : \"bytes_accum\", \n        \"threshold\" : 0.10000000149011612 \n      }, \n      \"writebufferActive\" : 0, \n      \"writebufferIdle\" : 64, \n      \"writebufferSizeMax\" : 33554432, \n      \"links\" : { \n      } \n    } \n  ], \n  \"state\" : { \n    \"running\" : true, \n    \"lastLogTick\" : \"104972\", \n    \"lastUncommittedLogTick\" : \"104980\", \n    \"totalEvents\" : 35256, \n    \"time\" : \"2019-02-15T14:42:57Z\" \n  }, \n  \"tick\" : \"104981\" \n}\n
\n\n\n\n\n**Example:**\n With some additional indexes:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/inventory\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"collections\" : [ \n    { \n      \"indexes\" : [ \n        { \n          \"id\" : \"104991\", \n          \"type\" : \"hash\", \n          \"fields\" : [ \n            \"name\" \n          ], \n          \"unique\" : false, \n          \"sparse\" : false, \n          \"deduplicate\" : true \n        }, \n        { \n          \"id\" : \"104994\", \n          \"type\" : \"skiplist\", \n          \"fields\" : [ \n            \"a\", \n            \"b\" \n          ], \n          \"unique\" : true, \n          \"sparse\" : false, \n          \"deduplicate\" : true \n        } \n      ], \n      \"parameters\" : { \n        \"allowUserKeys\" : true, \n        \"cid\" : \"104984\", \n        \"count\" : 0, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"globallyUniqueId\" : \"h402518FDD080/104984\", \n        \"id\" : \"104984\", \n        \"indexBuckets\" : 8, \n        \"isSmart\" : false, \n        \"isSystem\" : false, \n        \"isVolatile\" : false, \n        \"journalSize\" : 33554432, \n        \"keyOptions\" : { \n          \"allowUserKeys\" : true, \n          \"type\" : \"traditional\", \n          \"lastValue\" : 0 \n        }, \n        \"name\" : \"IndexedCollection1\", \n        \"numberOfShards\" : 1, \n        \"planId\" : \"104984\", \n        \"replicationFactor\" : 1, \n        \"shardKeys\" : [ \n          \"_key\" \n        ], \n        \"shards\" : { \n        }, \n        \"status\" : 3, \n        \"type\" : 2, \n        \"version\" : 7, \n        \"waitForSync\" : false \n      } \n    }, \n    { \n      \"indexes\" : [ \n        { \n          \"id\" : \"105003\", \n          \"type\" : \"fulltext\", \n          \"fields\" : [ \n            \"text\" \n          ], \n          \"unique\" : false, \n          \"sparse\" : true, \n          \"minLength\" : 10 \n        }, \n        { \n          \"id\" : \"105006\", \n          \"type\" : \"skiplist\", \n          \"fields\" : [ \n            \"a\" \n          ], \n          \"unique\" : false, \n          \"sparse\" : false, \n          \"deduplicate\" : true \n        } \n      ], \n      \"parameters\" : { \n        \"allowUserKeys\" : true, \n        \"cid\" : \"104996\", \n        \"count\" : 0, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"globallyUniqueId\" : \"h402518FDD080/104996\", \n        \"id\" : \"104996\", \n        \"indexBuckets\" : 8, \n        \"isSmart\" : false, \n        \"isSystem\" : false, \n        \"isVolatile\" : false, \n        \"journalSize\" : 33554432, \n        \"keyOptions\" : { \n          \"allowUserKeys\" : true, \n          \"type\" : \"traditional\", \n          \"lastValue\" : 0 \n        }, \n        \"name\" : \"IndexedCollection2\", \n        \"numberOfShards\" : 1, \n        \"planId\" : \"104996\", \n        \"replicationFactor\" : 1, \n        \"shardKeys\" : [ \n          \"_key\" \n        ], \n        \"shards\" : { \n        }, \n        \"status\" : 3, \n        \"type\" : 2, \n        \"version\" : 7, \n        \"waitForSync\" : false \n      } \n    }, \n    { \n      \"indexes\" : [ ], \n      \"parameters\" : { \n        \"allowUserKeys\" : true, \n        \"cid\" : \"32\", \n        \"count\" : 0, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"globallyUniqueId\" : \"_appbundles\", \n        \"id\" : \"32\", \n        \"indexBuckets\" : 8, \n        \"isSmart\" : false, \n        \"isSystem\" : true, \n        \"isVolatile\" : false, \n        \"journalSize\" : 1048576, \n        \"keyOptions\" : { \n          \"allowUserKeys\" : true, \n          \"type\" : \"traditional\", \n          \"lastValue\" : 0 \n        }, \n        \"name\" : \"_appbundles\", \n        \"numberOfShards\" : 1, \n        \"planId\" : \"32\", \n        \"replicationFactor\" : 2, \n        \"shardKeys\" : [ \n          \"_key\" \n        ], \n        \"shards\" : { \n        }, \n        \"status\" : 3, \n        \"type\" : 2, \n        \"version\" : 7, \n        \"waitForSync\" : false \n      } \n    }, \n    { \n      \"indexes\" : [ \n        { \n          \"id\" : \"30\", \n          \"type\" : \"hash\", \n          \"fields\" : [ \n            \"mount\" \n          ], \n          \"unique\" : true, \n          \"sparse\" : true, \n          \"deduplicate\" : true \n        } \n      ], \n      \"parameters\" : { \n        \"allowUserKeys\" : true, \n        \"cid\" : \"27\", \n        \"count\" : 0, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"globallyUniqueId\" : \"_apps\", \n        \"id\" : \"27\", \n        \"indexBuckets\" : 8, \n        \"isSmart\" : false, \n        \"isSystem\" : true, \n        \"isVolatile\" : false, \n        \"journalSize\" : 1048576, \n        \"keyOptions\" : { \n          \"allowUserKeys\" : true, \n          \"type\" : \"traditional\", \n          \"lastValue\" : 41 \n        }, \n        \"name\" : \"_apps\", \n        \"numberOfShards\" : 1, \n        \"planId\" : \"27\", \n        \"replicationFactor\" : 2, \n        \"shardKeys\" : [ \n          \"_key\" \n        ], \n        \"shards\" : { \n        }, \n        \"status\" : 3, \n        \"type\" : 2, \n        \"version\" : 7, \n        \"waitForSync\" : false \n      } \n    }, \n    { \n      \"indexes\" : [ ], \n      \"parameters\" : { \n        \"allowUserKeys\" : true, \n        \"cid\" : \"13\", \n        \"count\" : 0, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"globallyUniqueId\" : \"_aqlfunctions\", \n        \"id\" : \"13\", \n        \"indexBuckets\" : 8, \n        \"isSmart\" : false, \n        \"isSystem\" : true, \n        \"isVolatile\" : false, \n        \"journalSize\" : 1048576, \n        \"keyOptions\" : { \n          \"allowUserKeys\" : true, \n          \"type\" : \"traditional\", \n          \"lastValue\" : 0 \n        }, \n        \"name\" : \"_aqlfunctions\", \n        \"numberOfShards\" : 1, \n        \"planId\" : \"13\", \n        \"replicationFactor\" : 2, \n        \"shardKeys\" : [ \n          \"_key\" \n        ], \n        \"shards\" : { \n        }, \n        \"status\" : 3, \n        \"type\" : 2, \n        \"version\" : 7, \n        \"waitForSync\" : false \n      } \n    }, \n    { \n      \"indexes\" : [ ], \n      \"parameters\" : { \n        \"allowUserKeys\" : true, \n        \"cid\" : \"6\", \n        \"count\" : 0, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"globallyUniqueId\" : \"_graphs\", \n        \"id\" : \"6\", \n        \"indexBuckets\" : 8, \n        \"isSmart\" : false, \n        \"isSystem\" : true, \n        \"isVolatile\" : false, \n        \"journalSize\" : 1048576, \n        \"keyOptions\" : { \n          \"allowUserKeys\" : true, \n          \"type\" : \"traditional\", \n          \"lastValue\" : 0 \n        }, \n        \"name\" : \"_graphs\", \n        \"numberOfShards\" : 1, \n        \"planId\" : \"6\", \n        \"replicationFactor\" : 2, \n        \"shardKeys\" : [ \n          \"_key\" \n        ], \n        \"shards\" : { \n        }, \n        \"status\" : 3, \n        \"type\" : 2, \n        \"version\" : 7, \n        \"waitForSync\" : false \n      } \n    }, \n    { \n      \"indexes\" : [ ], \n      \"parameters\" : { \n        \"allowUserKeys\" : true, \n        \"cid\" : \"2\", \n        \"count\" : 0, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"globallyUniqueId\" : \"_iresearch_analyzers\", \n        \"id\" : \"2\", \n        \"indexBuckets\" : 8, \n        \"isSmart\" : false, \n        \"isSystem\" : true, \n        \"isVolatile\" : false, \n        \"journalSize\" : 33554432, \n        \"keyOptions\" : { \n          \"allowUserKeys\" : true, \n          \"type\" : \"traditional\", \n          \"lastValue\" : 0 \n        }, \n        \"name\" : \"_iresearch_analyzers\", \n        \"numberOfShards\" : 1, \n        \"planId\" : \"2\", \n        \"replicationFactor\" : 1, \n        \"shardKeys\" : [ \n          \"_key\" \n        ], \n        \"shards\" : { \n        }, \n        \"status\" : 3, \n        \"type\" : 2, \n        \"version\" : 7, \n        \"waitForSync\" : false \n      } \n    }, \n    { \n      \"indexes\" : [ \n        { \n          \"id\" : \"11\", \n          \"type\" : \"hash\", \n          \"fields\" : [ \n            \"user\" \n          ], \n          \"unique\" : true, \n          \"sparse\" : true, \n          \"deduplicate\" : true \n        } \n      ], \n      \"parameters\" : { \n        \"allowUserKeys\" : true, \n        \"cid\" : \"8\", \n        \"count\" : 0, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"globallyUniqueId\" : \"_users\", \n        \"id\" : \"8\", \n        \"indexBuckets\" : 8, \n        \"isSmart\" : false, \n        \"isSystem\" : true, \n        \"isVolatile\" : false, \n        \"journalSize\" : 1048576, \n        \"keyOptions\" : { \n          \"allowUserKeys\" : true, \n          \"type\" : \"traditional\", \n          \"lastValue\" : 104914 \n        }, \n        \"name\" : \"_users\", \n        \"numberOfShards\" : 1, \n        \"planId\" : \"8\", \n        \"replicationFactor\" : 2, \n        \"shardKeys\" : [ \n          \"_key\" \n        ], \n        \"shards\" : { \n        }, \n        \"status\" : 3, \n        \"type\" : 2, \n        \"version\" : 7, \n        \"waitForSync\" : false \n      } \n    }, \n    { \n      \"indexes\" : [ ], \n      \"parameters\" : { \n        \"allowUserKeys\" : true, \n        \"cid\" : \"96\", \n        \"count\" : 0, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"globallyUniqueId\" : \"h402518FDD080/96\", \n        \"id\" : \"96\", \n        \"indexBuckets\" : 8, \n        \"isSmart\" : false, \n        \"isSystem\" : false, \n        \"isVolatile\" : false, \n        \"journalSize\" : 33554432, \n        \"keyOptions\" : { \n          \"allowUserKeys\" : true, \n          \"type\" : \"traditional\", \n          \"lastValue\" : 0 \n        }, \n        \"name\" : \"animals\", \n        \"numberOfShards\" : 1, \n        \"planId\" : \"96\", \n        \"replicationFactor\" : 1, \n        \"shardKeys\" : [ \n          \"_key\" \n        ], \n        \"shards\" : { \n        }, \n        \"status\" : 3, \n        \"type\" : 2, \n        \"version\" : 7, \n        \"waitForSync\" : false \n      } \n    }, \n    { \n      \"indexes\" : [ ], \n      \"parameters\" : { \n        \"allowUserKeys\" : true, \n        \"cid\" : \"87\", \n        \"count\" : 0, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"globallyUniqueId\" : \"h402518FDD080/87\", \n        \"id\" : \"87\", \n        \"indexBuckets\" : 8, \n        \"isSmart\" : false, \n        \"isSystem\" : false, \n        \"isVolatile\" : false, \n        \"journalSize\" : 33554432, \n        \"keyOptions\" : { \n          \"allowUserKeys\" : true, \n          \"type\" : \"traditional\", \n          \"lastValue\" : 0 \n        }, \n        \"name\" : \"demo\", \n        \"numberOfShards\" : 1, \n        \"planId\" : \"87\", \n        \"replicationFactor\" : 1, \n        \"shardKeys\" : [ \n          \"_key\" \n        ], \n        \"shards\" : { \n        }, \n        \"status\" : 3, \n        \"type\" : 2, \n        \"version\" : 7, \n        \"waitForSync\" : false \n      } \n    } \n  ], \n  \"views\" : [ \n    { \n      \"globallyUniqueId\" : \"h402518FDD080/102\", \n      \"id\" : \"102\", \n      \"name\" : \"demoView\", \n      \"type\" : \"arangosearch\", \n      \"cleanupIntervalStep\" : 10, \n      \"commitIntervalMsec\" : 60000, \n      \"consolidationIntervalMsec\" : 60000, \n      \"consolidationPolicy\" : { \n        \"type\" : \"bytes_accum\", \n        \"threshold\" : 0.10000000149011612 \n      }, \n      \"writebufferActive\" : 0, \n      \"writebufferIdle\" : 64, \n      \"writebufferSizeMax\" : 33554432, \n      \"links\" : { \n      } \n    } \n  ], \n  \"state\" : { \n    \"running\" : true, \n    \"lastLogTick\" : \"104980\", \n    \"lastUncommittedLogTick\" : \"105007\", \n    \"totalEvents\" : 35264, \n    \"time\" : \"2019-02-15T14:42:57Z\" \n  }, \n  \"tick\" : \"105007\" \n}\n
\n\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 an array of collections with the following sub-attributes:\n\n- *parameters*: the collection properties\n\n- *indexes*: an array of the indexes of a the collection. Primary indexes and edge 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**Note:**: Using the `global` parameter the top-level object contains a key `databases`\nunder which each key represents a datbase name, and the value conforms to the above describtion.\n\n\n\n\n**Example:**\n \n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/inventory\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"collections\" : [ \n    { \n      \"indexes\" : [ ], \n      \"parameters\" : { \n        \"allowUserKeys\" : true, \n        \"cid\" : \"32\", \n        \"count\" : 0, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"globallyUniqueId\" : \"_appbundles\", \n        \"id\" : \"32\", \n        \"indexBuckets\" : 8, \n        \"isSmart\" : false, \n        \"isSystem\" : true, \n        \"isVolatile\" : false, \n        \"journalSize\" : 1048576, \n        \"keyOptions\" : { \n          \"allowUserKeys\" : true, \n          \"type\" : \"traditional\", \n          \"lastValue\" : 0 \n        }, \n        \"name\" : \"_appbundles\", \n        \"numberOfShards\" : 1, \n        \"planId\" : \"32\", \n        \"replicationFactor\" : 2, \n        \"shardKeys\" : [ \n          \"_key\" \n        ], \n        \"shards\" : { \n        }, \n        \"status\" : 3, \n        \"type\" : 2, \n        \"version\" : 7, \n        \"waitForSync\" : false \n      } \n    }, \n    { \n      \"indexes\" : [ \n        { \n          \"id\" : \"30\", \n          \"type\" : \"hash\", \n          \"fields\" : [ \n            \"mount\" \n          ], \n          \"unique\" : true, \n          \"sparse\" : true, \n          \"deduplicate\" : true \n        } \n      ], \n      \"parameters\" : { \n        \"allowUserKeys\" : true, \n        \"cid\" : \"27\", \n        \"count\" : 0, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"globallyUniqueId\" : \"_apps\", \n        \"id\" : \"27\", \n        \"indexBuckets\" : 8, \n        \"isSmart\" : false, \n        \"isSystem\" : true, \n        \"isVolatile\" : false, \n        \"journalSize\" : 1048576, \n        \"keyOptions\" : { \n          \"allowUserKeys\" : true, \n          \"type\" : \"traditional\", \n          \"lastValue\" : 41 \n        }, \n        \"name\" : \"_apps\", \n        \"numberOfShards\" : 1, \n        \"planId\" : \"27\", \n        \"replicationFactor\" : 2, \n        \"shardKeys\" : [ \n          \"_key\" \n        ], \n        \"shards\" : { \n        }, \n        \"status\" : 3, \n        \"type\" : 2, \n        \"version\" : 7, \n        \"waitForSync\" : false \n      } \n    }, \n    { \n      \"indexes\" : [ ], \n      \"parameters\" : { \n        \"allowUserKeys\" : true, \n        \"cid\" : \"13\", \n        \"count\" : 0, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"globallyUniqueId\" : \"_aqlfunctions\", \n        \"id\" : \"13\", \n        \"indexBuckets\" : 8, \n        \"isSmart\" : false, \n        \"isSystem\" : true, \n        \"isVolatile\" : false, \n        \"journalSize\" : 1048576, \n        \"keyOptions\" : { \n          \"allowUserKeys\" : true, \n          \"type\" : \"traditional\", \n          \"lastValue\" : 0 \n        }, \n        \"name\" : \"_aqlfunctions\", \n        \"numberOfShards\" : 1, \n        \"planId\" : \"13\", \n        \"replicationFactor\" : 2, \n        \"shardKeys\" : [ \n          \"_key\" \n        ], \n        \"shards\" : { \n        }, \n        \"status\" : 3, \n        \"type\" : 2, \n        \"version\" : 7, \n        \"waitForSync\" : false \n      } \n    }, \n    { \n      \"indexes\" : [ ], \n      \"parameters\" : { \n        \"allowUserKeys\" : true, \n        \"cid\" : \"6\", \n        \"count\" : 0, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"globallyUniqueId\" : \"_graphs\", \n        \"id\" : \"6\", \n        \"indexBuckets\" : 8, \n        \"isSmart\" : false, \n        \"isSystem\" : true, \n        \"isVolatile\" : false, \n        \"journalSize\" : 1048576, \n        \"keyOptions\" : { \n          \"allowUserKeys\" : true, \n          \"type\" : \"traditional\", \n          \"lastValue\" : 0 \n        }, \n        \"name\" : \"_graphs\", \n        \"numberOfShards\" : 1, \n        \"planId\" : \"6\", \n        \"replicationFactor\" : 2, \n        \"shardKeys\" : [ \n          \"_key\" \n        ], \n        \"shards\" : { \n        }, \n        \"status\" : 3, \n        \"type\" : 2, \n        \"version\" : 7, \n        \"waitForSync\" : false \n      } \n    }, \n    { \n      \"indexes\" : [ ], \n      \"parameters\" : { \n        \"allowUserKeys\" : true, \n        \"cid\" : \"2\", \n        \"count\" : 0, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"globallyUniqueId\" : \"_iresearch_analyzers\", \n        \"id\" : \"2\", \n        \"indexBuckets\" : 8, \n        \"isSmart\" : false, \n        \"isSystem\" : true, \n        \"isVolatile\" : false, \n        \"journalSize\" : 33554432, \n        \"keyOptions\" : { \n          \"allowUserKeys\" : true, \n          \"type\" : \"traditional\", \n          \"lastValue\" : 0 \n        }, \n        \"name\" : \"_iresearch_analyzers\", \n        \"numberOfShards\" : 1, \n        \"planId\" : \"2\", \n        \"replicationFactor\" : 1, \n        \"shardKeys\" : [ \n          \"_key\" \n        ], \n        \"shards\" : { \n        }, \n        \"status\" : 3, \n        \"type\" : 2, \n        \"version\" : 7, \n        \"waitForSync\" : false \n      } \n    }, \n    { \n      \"indexes\" : [ \n        { \n          \"id\" : \"11\", \n          \"type\" : \"hash\", \n          \"fields\" : [ \n            \"user\" \n          ], \n          \"unique\" : true, \n          \"sparse\" : true, \n          \"deduplicate\" : true \n        } \n      ], \n      \"parameters\" : { \n        \"allowUserKeys\" : true, \n        \"cid\" : \"8\", \n        \"count\" : 0, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"globallyUniqueId\" : \"_users\", \n        \"id\" : \"8\", \n        \"indexBuckets\" : 8, \n        \"isSmart\" : false, \n        \"isSystem\" : true, \n        \"isVolatile\" : false, \n        \"journalSize\" : 1048576, \n        \"keyOptions\" : { \n          \"allowUserKeys\" : true, \n          \"type\" : \"traditional\", \n          \"lastValue\" : 104933 \n        }, \n        \"name\" : \"_users\", \n        \"numberOfShards\" : 1, \n        \"planId\" : \"8\", \n        \"replicationFactor\" : 2, \n        \"shardKeys\" : [ \n          \"_key\" \n        ], \n        \"shards\" : { \n        }, \n        \"status\" : 3, \n        \"type\" : 2, \n        \"version\" : 7, \n        \"waitForSync\" : false \n      } \n    }, \n    { \n      \"indexes\" : [ ], \n      \"parameters\" : { \n        \"allowUserKeys\" : true, \n        \"cid\" : \"96\", \n        \"count\" : 0, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"globallyUniqueId\" : \"h8B2B671BCFD0/96\", \n        \"id\" : \"96\", \n        \"indexBuckets\" : 8, \n        \"isSmart\" : false, \n        \"isSystem\" : false, \n        \"isVolatile\" : false, \n        \"journalSize\" : 33554432, \n        \"keyOptions\" : { \n          \"allowUserKeys\" : true, \n          \"type\" : \"traditional\", \n          \"lastValue\" : 0 \n        }, \n        \"name\" : \"animals\", \n        \"numberOfShards\" : 1, \n        \"planId\" : \"96\", \n        \"replicationFactor\" : 1, \n        \"shardKeys\" : [ \n          \"_key\" \n        ], \n        \"shards\" : { \n        }, \n        \"status\" : 3, \n        \"type\" : 2, \n        \"version\" : 7, \n        \"waitForSync\" : false \n      } \n    }, \n    { \n      \"indexes\" : [ ], \n      \"parameters\" : { \n        \"allowUserKeys\" : true, \n        \"cid\" : \"87\", \n        \"count\" : 0, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"globallyUniqueId\" : \"h8B2B671BCFD0/87\", \n        \"id\" : \"87\", \n        \"indexBuckets\" : 8, \n        \"isSmart\" : false, \n        \"isSystem\" : false, \n        \"isVolatile\" : false, \n        \"journalSize\" : 33554432, \n        \"keyOptions\" : { \n          \"allowUserKeys\" : true, \n          \"type\" : \"traditional\", \n          \"lastValue\" : 0 \n        }, \n        \"name\" : \"demo\", \n        \"numberOfShards\" : 1, \n        \"planId\" : \"87\", \n        \"replicationFactor\" : 1, \n        \"shardKeys\" : [ \n          \"_key\" \n        ], \n        \"shards\" : { \n        }, \n        \"status\" : 3, \n        \"type\" : 2, \n        \"version\" : 7, \n        \"waitForSync\" : false \n      } \n    } \n  ], \n  \"views\" : [ \n    { \n      \"globallyUniqueId\" : \"h8B2B671BCFD0/102\", \n      \"id\" : \"102\", \n      \"name\" : \"demoView\", \n      \"type\" : \"arangosearch\", \n      \"cleanupIntervalStep\" : 10, \n      \"commitIntervalMsec\" : 60000, \n      \"consolidationIntervalMsec\" : 60000, \n      \"consolidationPolicy\" : { \n        \"type\" : \"bytes_accum\", \n        \"threshold\" : 0.10000000149011612 \n      }, \n      \"writebufferActive\" : 0, \n      \"writebufferIdle\" : 64, \n      \"writebufferSizeMax\" : 33554432, \n      \"links\" : { \n      } \n    } \n  ], \n  \"state\" : { \n    \"running\" : true, \n    \"lastLogTick\" : \"104983\", \n    \"lastUncommittedLogTick\" : \"104989\", \n    \"totalEvents\" : 35260, \n    \"time\" : \"2019-02-20T10:33:06Z\" \n  }, \n  \"tick\" : \"104990\" \n}\n
\n\n\n\n\n**Example:**\n With some additional indexes:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/inventory\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"collections\" : [ \n    { \n      \"indexes\" : [ \n        { \n          \"id\" : \"105000\", \n          \"type\" : \"hash\", \n          \"fields\" : [ \n            \"name\" \n          ], \n          \"unique\" : false, \n          \"sparse\" : false, \n          \"deduplicate\" : true \n        }, \n        { \n          \"id\" : \"105003\", \n          \"type\" : \"skiplist\", \n          \"fields\" : [ \n            \"a\", \n            \"b\" \n          ], \n          \"unique\" : true, \n          \"sparse\" : false, \n          \"deduplicate\" : true \n        } \n      ], \n      \"parameters\" : { \n        \"allowUserKeys\" : true, \n        \"cid\" : \"104993\", \n        \"count\" : 0, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"globallyUniqueId\" : \"h8B2B671BCFD0/104993\", \n        \"id\" : \"104993\", \n        \"indexBuckets\" : 8, \n        \"isSmart\" : false, \n        \"isSystem\" : false, \n        \"isVolatile\" : false, \n        \"journalSize\" : 33554432, \n        \"keyOptions\" : { \n          \"allowUserKeys\" : true, \n          \"type\" : \"traditional\", \n          \"lastValue\" : 0 \n        }, \n        \"name\" : \"IndexedCollection1\", \n        \"numberOfShards\" : 1, \n        \"planId\" : \"104993\", \n        \"replicationFactor\" : 1, \n        \"shardKeys\" : [ \n          \"_key\" \n        ], \n        \"shards\" : { \n        }, \n        \"status\" : 3, \n        \"type\" : 2, \n        \"version\" : 7, \n        \"waitForSync\" : false \n      } \n    }, \n    { \n      \"indexes\" : [ \n        { \n          \"id\" : \"105012\", \n          \"type\" : \"fulltext\", \n          \"fields\" : [ \n            \"text\" \n          ], \n          \"unique\" : false, \n          \"sparse\" : true, \n          \"minLength\" : 10 \n        }, \n        { \n          \"id\" : \"105015\", \n          \"type\" : \"skiplist\", \n          \"fields\" : [ \n            \"a\" \n          ], \n          \"unique\" : false, \n          \"sparse\" : false, \n          \"deduplicate\" : true \n        } \n      ], \n      \"parameters\" : { \n        \"allowUserKeys\" : true, \n        \"cid\" : \"105005\", \n        \"count\" : 0, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"globallyUniqueId\" : \"h8B2B671BCFD0/105005\", \n        \"id\" : \"105005\", \n        \"indexBuckets\" : 8, \n        \"isSmart\" : false, \n        \"isSystem\" : false, \n        \"isVolatile\" : false, \n        \"journalSize\" : 33554432, \n        \"keyOptions\" : { \n          \"allowUserKeys\" : true, \n          \"type\" : \"traditional\", \n          \"lastValue\" : 0 \n        }, \n        \"name\" : \"IndexedCollection2\", \n        \"numberOfShards\" : 1, \n        \"planId\" : \"105005\", \n        \"replicationFactor\" : 1, \n        \"shardKeys\" : [ \n          \"_key\" \n        ], \n        \"shards\" : { \n        }, \n        \"status\" : 3, \n        \"type\" : 2, \n        \"version\" : 7, \n        \"waitForSync\" : false \n      } \n    }, \n    { \n      \"indexes\" : [ ], \n      \"parameters\" : { \n        \"allowUserKeys\" : true, \n        \"cid\" : \"32\", \n        \"count\" : 0, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"globallyUniqueId\" : \"_appbundles\", \n        \"id\" : \"32\", \n        \"indexBuckets\" : 8, \n        \"isSmart\" : false, \n        \"isSystem\" : true, \n        \"isVolatile\" : false, \n        \"journalSize\" : 1048576, \n        \"keyOptions\" : { \n          \"allowUserKeys\" : true, \n          \"type\" : \"traditional\", \n          \"lastValue\" : 0 \n        }, \n        \"name\" : \"_appbundles\", \n        \"numberOfShards\" : 1, \n        \"planId\" : \"32\", \n        \"replicationFactor\" : 2, \n        \"shardKeys\" : [ \n          \"_key\" \n        ], \n        \"shards\" : { \n        }, \n        \"status\" : 3, \n        \"type\" : 2, \n        \"version\" : 7, \n        \"waitForSync\" : false \n      } \n    }, \n    { \n      \"indexes\" : [ \n        { \n          \"id\" : \"30\", \n          \"type\" : \"hash\", \n          \"fields\" : [ \n            \"mount\" \n          ], \n          \"unique\" : true, \n          \"sparse\" : true, \n          \"deduplicate\" : true \n        } \n      ], \n      \"parameters\" : { \n        \"allowUserKeys\" : true, \n        \"cid\" : \"27\", \n        \"count\" : 0, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"globallyUniqueId\" : \"_apps\", \n        \"id\" : \"27\", \n        \"indexBuckets\" : 8, \n        \"isSmart\" : false, \n        \"isSystem\" : true, \n        \"isVolatile\" : false, \n        \"journalSize\" : 1048576, \n        \"keyOptions\" : { \n          \"allowUserKeys\" : true, \n          \"type\" : \"traditional\", \n          \"lastValue\" : 41 \n        }, \n        \"name\" : \"_apps\", \n        \"numberOfShards\" : 1, \n        \"planId\" : \"27\", \n        \"replicationFactor\" : 2, \n        \"shardKeys\" : [ \n          \"_key\" \n        ], \n        \"shards\" : { \n        }, \n        \"status\" : 3, \n        \"type\" : 2, \n        \"version\" : 7, \n        \"waitForSync\" : false \n      } \n    }, \n    { \n      \"indexes\" : [ ], \n      \"parameters\" : { \n        \"allowUserKeys\" : true, \n        \"cid\" : \"13\", \n        \"count\" : 0, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"globallyUniqueId\" : \"_aqlfunctions\", \n        \"id\" : \"13\", \n        \"indexBuckets\" : 8, \n        \"isSmart\" : false, \n        \"isSystem\" : true, \n        \"isVolatile\" : false, \n        \"journalSize\" : 1048576, \n        \"keyOptions\" : { \n          \"allowUserKeys\" : true, \n          \"type\" : \"traditional\", \n          \"lastValue\" : 0 \n        }, \n        \"name\" : \"_aqlfunctions\", \n        \"numberOfShards\" : 1, \n        \"planId\" : \"13\", \n        \"replicationFactor\" : 2, \n        \"shardKeys\" : [ \n          \"_key\" \n        ], \n        \"shards\" : { \n        }, \n        \"status\" : 3, \n        \"type\" : 2, \n        \"version\" : 7, \n        \"waitForSync\" : false \n      } \n    }, \n    { \n      \"indexes\" : [ ], \n      \"parameters\" : { \n        \"allowUserKeys\" : true, \n        \"cid\" : \"6\", \n        \"count\" : 0, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"globallyUniqueId\" : \"_graphs\", \n        \"id\" : \"6\", \n        \"indexBuckets\" : 8, \n        \"isSmart\" : false, \n        \"isSystem\" : true, \n        \"isVolatile\" : false, \n        \"journalSize\" : 1048576, \n        \"keyOptions\" : { \n          \"allowUserKeys\" : true, \n          \"type\" : \"traditional\", \n          \"lastValue\" : 0 \n        }, \n        \"name\" : \"_graphs\", \n        \"numberOfShards\" : 1, \n        \"planId\" : \"6\", \n        \"replicationFactor\" : 2, \n        \"shardKeys\" : [ \n          \"_key\" \n        ], \n        \"shards\" : { \n        }, \n        \"status\" : 3, \n        \"type\" : 2, \n        \"version\" : 7, \n        \"waitForSync\" : false \n      } \n    }, \n    { \n      \"indexes\" : [ ], \n      \"parameters\" : { \n        \"allowUserKeys\" : true, \n        \"cid\" : \"2\", \n        \"count\" : 0, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"globallyUniqueId\" : \"_iresearch_analyzers\", \n        \"id\" : \"2\", \n        \"indexBuckets\" : 8, \n        \"isSmart\" : false, \n        \"isSystem\" : true, \n        \"isVolatile\" : false, \n        \"journalSize\" : 33554432, \n        \"keyOptions\" : { \n          \"allowUserKeys\" : true, \n          \"type\" : \"traditional\", \n          \"lastValue\" : 0 \n        }, \n        \"name\" : \"_iresearch_analyzers\", \n        \"numberOfShards\" : 1, \n        \"planId\" : \"2\", \n        \"replicationFactor\" : 1, \n        \"shardKeys\" : [ \n          \"_key\" \n        ], \n        \"shards\" : { \n        }, \n        \"status\" : 3, \n        \"type\" : 2, \n        \"version\" : 7, \n        \"waitForSync\" : false \n      } \n    }, \n    { \n      \"indexes\" : [ \n        { \n          \"id\" : \"11\", \n          \"type\" : \"hash\", \n          \"fields\" : [ \n            \"user\" \n          ], \n          \"unique\" : true, \n          \"sparse\" : true, \n          \"deduplicate\" : true \n        } \n      ], \n      \"parameters\" : { \n        \"allowUserKeys\" : true, \n        \"cid\" : \"8\", \n        \"count\" : 0, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"globallyUniqueId\" : \"_users\", \n        \"id\" : \"8\", \n        \"indexBuckets\" : 8, \n        \"isSmart\" : false, \n        \"isSystem\" : true, \n        \"isVolatile\" : false, \n        \"journalSize\" : 1048576, \n        \"keyOptions\" : { \n          \"allowUserKeys\" : true, \n          \"type\" : \"traditional\", \n          \"lastValue\" : 104933 \n        }, \n        \"name\" : \"_users\", \n        \"numberOfShards\" : 1, \n        \"planId\" : \"8\", \n        \"replicationFactor\" : 2, \n        \"shardKeys\" : [ \n          \"_key\" \n        ], \n        \"shards\" : { \n        }, \n        \"status\" : 3, \n        \"type\" : 2, \n        \"version\" : 7, \n        \"waitForSync\" : false \n      } \n    }, \n    { \n      \"indexes\" : [ ], \n      \"parameters\" : { \n        \"allowUserKeys\" : true, \n        \"cid\" : \"96\", \n        \"count\" : 0, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"globallyUniqueId\" : \"h8B2B671BCFD0/96\", \n        \"id\" : \"96\", \n        \"indexBuckets\" : 8, \n        \"isSmart\" : false, \n        \"isSystem\" : false, \n        \"isVolatile\" : false, \n        \"journalSize\" : 33554432, \n        \"keyOptions\" : { \n          \"allowUserKeys\" : true, \n          \"type\" : \"traditional\", \n          \"lastValue\" : 0 \n        }, \n        \"name\" : \"animals\", \n        \"numberOfShards\" : 1, \n        \"planId\" : \"96\", \n        \"replicationFactor\" : 1, \n        \"shardKeys\" : [ \n          \"_key\" \n        ], \n        \"shards\" : { \n        }, \n        \"status\" : 3, \n        \"type\" : 2, \n        \"version\" : 7, \n        \"waitForSync\" : false \n      } \n    }, \n    { \n      \"indexes\" : [ ], \n      \"parameters\" : { \n        \"allowUserKeys\" : true, \n        \"cid\" : \"87\", \n        \"count\" : 0, \n        \"deleted\" : false, \n        \"doCompact\" : true, \n        \"globallyUniqueId\" : \"h8B2B671BCFD0/87\", \n        \"id\" : \"87\", \n        \"indexBuckets\" : 8, \n        \"isSmart\" : false, \n        \"isSystem\" : false, \n        \"isVolatile\" : false, \n        \"journalSize\" : 33554432, \n        \"keyOptions\" : { \n          \"allowUserKeys\" : true, \n          \"type\" : \"traditional\", \n          \"lastValue\" : 0 \n        }, \n        \"name\" : \"demo\", \n        \"numberOfShards\" : 1, \n        \"planId\" : \"87\", \n        \"replicationFactor\" : 1, \n        \"shardKeys\" : [ \n          \"_key\" \n        ], \n        \"shards\" : { \n        }, \n        \"status\" : 3, \n        \"type\" : 2, \n        \"version\" : 7, \n        \"waitForSync\" : false \n      } \n    } \n  ], \n  \"views\" : [ \n    { \n      \"globallyUniqueId\" : \"h8B2B671BCFD0/102\", \n      \"id\" : \"102\", \n      \"name\" : \"demoView\", \n      \"type\" : \"arangosearch\", \n      \"cleanupIntervalStep\" : 10, \n      \"commitIntervalMsec\" : 60000, \n      \"consolidationIntervalMsec\" : 60000, \n      \"consolidationPolicy\" : { \n        \"type\" : \"bytes_accum\", \n        \"threshold\" : 0.10000000149011612 \n      }, \n      \"writebufferActive\" : 0, \n      \"writebufferIdle\" : 64, \n      \"writebufferSizeMax\" : 33554432, \n      \"links\" : { \n      } \n    } \n  ], \n  \"state\" : { \n    \"running\" : true, \n    \"lastLogTick\" : \"104983\", \n    \"lastUncommittedLogTick\" : \"105016\", \n    \"totalEvents\" : 35268, \n    \"time\" : \"2019-02-20T10:33:06Z\" \n  }, \n  \"tick\" : \"105016\" \n}\n
\n\n\n\n\n", "parameters": [ { "description": "Include system collections in the result. The default value is *true*.\n\n", @@ -12980,7 +12980,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 [Operation Types](./WALAccess.md/#operation-types).\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\n\n**Warning:** \nThis route should no longer be used.\nIt is considered as deprecated from version 3.4.0 on.\n\n\n\n\n\n\n**Example:**\n No log events available\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/logger-follow?from=105037\n\nHTTP/1.1 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-lastscanned: 105037\nx-arango-replication-lasttick: 105037\nx-content-type-options: nosniff\n\n
\n\n\n\n\n**Example:**\n A few log events *(One JSON document per line)*\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/logger-follow?from=105037\n\nHTTP/1.1 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: 105058\nx-arango-replication-lastscanned: 105058\nx-arango-replication-lasttick: 105058\nx-content-type-options: nosniff\n\n{ \n  \"tick\" : \"105041\", \n  \"type\" : 2000, \n  \"database\" : \"1\", \n  \"cid\" : \"105040\", \n  \"cname\" : \"products\", \n  \"data\" : { \n    \"allowUserKeys\" : true, \n    \"cid\" : \"105040\", \n    \"count\" : 0, \n    \"deleted\" : false, \n    \"doCompact\" : true, \n    \"globallyUniqueId\" : \"h402518FDD080/105040\", \n    \"id\" : \"105040\", \n    \"indexBuckets\" : 8, \n    \"indexes\" : [ \n      { \n        \"id\" : \"0\", \n        \"type\" : \"primary\", \n        \"fields\" : [ \n          \"_key\" \n        ], \n        \"unique\" : true, \n        \"sparse\" : false \n      } \n    ], \n    \"isSmart\" : false, \n    \"isSystem\" : false, \n    \"isVolatile\" : false, \n    \"journalSize\" : 33554432, \n    \"keyOptions\" : { \n      \"allowUserKeys\" : true, \n      \"type\" : \"traditional\", \n      \"lastValue\" : 0 \n    }, \n    \"name\" : \"products\", \n    \"numberOfShards\" : 1, \n    \"planId\" : \"105040\", \n    \"replicationFactor\" : 1, \n    \"shardKeys\" : [ \n      \"_key\" \n    ], \n    \"shards\" : { \n    }, \n    \"status\" : 3, \n    \"type\" : 2, \n    \"version\" : 7, \n    \"waitForSync\" : false \n  } \n}↩\n{ \n  \"tick\" : \"105044\", \n  \"type\" : 2300, \n  \"tid\" : \"0\", \n  \"database\" : \"1\", \n  \"cid\" : \"8\", \n  \"cname\" : \"_users\", \n  \"data\" : { \n    \"_key\" : \"58\", \n    \"_id\" : \"_users/58\", \n    \"_rev\" : \"_YNEaQx6--_\", \n    \"user\" : \"root\", \n    \"source\" : \"LOCAL\", \n    \"authData\" : { \n      \"active\" : true, \n      \"simple\" : { \n        \"hash\" : \"60a0e3e3fb13484ace3c71fcca2b8a21647ab72cf81fe55bad49f2983b185888\", \n        \"salt\" : \"24a0094b\", \n        \"method\" : \"sha256\" \n      } \n    }, \n    \"databases\" : { \n      \"_system\" : { \n        \"permissions\" : { \n          \"read\" : true, \n          \"write\" : true \n        }, \n        \"collections\" : { \n          \"demo\" : { \n            \"permissions\" : { \n              \"read\" : true, \n              \"write\" : true \n            } \n          }, \n          \"animals\" : { \n            \"permissions\" : { \n              \"read\" : true, \n              \"write\" : true \n            } \n          }, \n          \"products\" : { \n            \"permissions\" : { \n              \"read\" : true, \n              \"write\" : true \n            } \n          }, \n          \"*\" : { \n            \"permissions\" : { \n              \"read\" : true, \n              \"write\" : true \n            } \n          }, \n          \"products1\" : { \n            \"permissions\" : { \n              \"read\" : true, \n              \"write\" : true \n            } \n          } \n        } \n      }, \n      \"*\" : { \n        \"permissions\" : { \n          \"read\" : true, \n          \"write\" : true \n        }, \n        \"collections\" : { \n          \"*\" : { \n            \"permissions\" : { \n              \"read\" : true, \n              \"write\" : true \n            } \n          } \n        } \n      } \n    } \n  } \n}↩\n{ \n  \"tick\" : \"105048\", \n  \"type\" : 2300, \n  \"tid\" : \"0\", \n  \"database\" : \"1\", \n  \"cid\" : \"105040\", \n  \"cname\" : \"products\", \n  \"data\" : { \n    \"_key\" : \"p1\", \n    \"_id\" : \"_unknown/p1\", \n    \"_rev\" : \"_YNEaQx6--B\", \n    \"name\" : \"flux compensator\" \n  } \n}↩\n{ \n  \"tick\" : \"105050\", \n  \"type\" : 2300, \n  \"tid\" : \"0\", \n  \"database\" : \"1\", \n  \"cid\" : \"105040\", \n  \"cname\" : \"products\", \n  \"data\" : { \n    \"_key\" : \"p2\", \n    \"_id\" : \"_unknown/p2\", \n    \"_rev\" : \"_YNEaQy---_\", \n    \"name\" : \"hybrid hovercraft\", \n    \"hp\" : 5100 \n  } \n}↩\n{ \n  \"tick\" : \"105052\", \n  \"type\" : 2302, \n  \"tid\" : \"0\", \n  \"database\" : \"1\", \n  \"cid\" : \"105040\", \n  \"cname\" : \"products\", \n  \"data\" : { \n    \"_key\" : \"p1\", \n    \"_rev\" : \"_YNEaQy---B\" \n  } \n}↩\n{ \n  \"tick\" : \"105054\", \n  \"type\" : 2300, \n  \"tid\" : \"0\", \n  \"database\" : \"1\", \n  \"cid\" : \"105040\", \n  \"cname\" : \"products\", \n  \"data\" : { \n    \"_key\" : \"p2\", \n    \"_id\" : \"_unknown/p2\", \n    \"_rev\" : \"_YNEaQy---D\", \n    \"name\" : \"broken hovercraft\", \n    \"hp\" : 5100 \n  } \n}↩\n{ \n  \"tick\" : \"105055\", \n  \"type\" : 2001, \n  \"database\" : \"1\", \n  \"cid\" : \"105040\", \n  \"cname\" : \"products\", \n  \"data\" : { \n    \"id\" : \"105040\", \n    \"name\" : \"products\", \n    \"cuid\" : \"h402518FDD080/105040\" \n  } \n}↩\n{ \n  \"tick\" : \"105058\", \n  \"type\" : 2300, \n  \"tid\" : \"0\", \n  \"database\" : \"1\", \n  \"cid\" : \"8\", \n  \"cname\" : \"_users\", \n  \"data\" : { \n    \"_key\" : \"58\", \n    \"_id\" : \"_users/58\", \n    \"_rev\" : \"_YNEaQya--_\", \n    \"user\" : \"root\", \n    \"source\" : \"LOCAL\", \n    \"authData\" : { \n      \"active\" : true, \n      \"simple\" : { \n        \"hash\" : \"60a0e3e3fb13484ace3c71fcca2b8a21647ab72cf81fe55bad49f2983b185888\", \n        \"salt\" : \"24a0094b\", \n        \"method\" : \"sha256\" \n      } \n    }, \n    \"databases\" : { \n      \"*\" : { \n        \"permissions\" : { \n          \"read\" : true, \n          \"write\" : true \n        }, \n        \"collections\" : { \n          \"*\" : { \n            \"permissions\" : { \n              \"read\" : true, \n              \"write\" : true \n            } \n          } \n        } \n      }, \n      \"_system\" : { \n        \"permissions\" : { \n          \"read\" : true, \n          \"write\" : true \n        }, \n        \"collections\" : { \n          \"products1\" : { \n            \"permissions\" : { \n              \"read\" : true, \n              \"write\" : true \n            } \n          }, \n          \"*\" : { \n            \"permissions\" : { \n              \"read\" : true, \n              \"write\" : true \n            } \n          }, \n          \"demo\" : { \n            \"permissions\" : { \n              \"read\" : true, \n              \"write\" : true \n            } \n          }, \n          \"animals\" : { \n            \"permissions\" : { \n              \"read\" : true, \n              \"write\" : true \n            } \n          } \n        } \n      } \n    } \n  } \n}↩\n
\n\n\n\n\n**Example:**\n More events than would fit into the response\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/logger-follow?from=105016&chunkSize=400\n\nHTTP/1.1 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: 105020\nx-arango-replication-lastscanned: 105020\nx-arango-replication-lasttick: 105037\nx-content-type-options: nosniff\n\n{ \n  \"tick\" : \"105020\", \n  \"type\" : 2000, \n  \"database\" : \"1\", \n  \"cid\" : \"105019\", \n  \"cname\" : \"products\", \n  \"data\" : { \n    \"allowUserKeys\" : true, \n    \"cid\" : \"105019\", \n    \"count\" : 0, \n    \"deleted\" : false, \n    \"doCompact\" : true, \n    \"globallyUniqueId\" : \"h402518FDD080/105019\", \n    \"id\" : \"105019\", \n    \"indexBuckets\" : 8, \n    \"indexes\" : [ \n      { \n        \"id\" : \"0\", \n        \"type\" : \"primary\", \n        \"fields\" : [ \n          \"_key\" \n        ], \n        \"unique\" : true, \n        \"sparse\" : false \n      } \n    ], \n    \"isSmart\" : false, \n    \"isSystem\" : false, \n    \"isVolatile\" : false, \n    \"journalSize\" : 33554432, \n    \"keyOptions\" : { \n      \"allowUserKeys\" : true, \n      \"type\" : \"traditional\", \n      \"lastValue\" : 0 \n    }, \n    \"name\" : \"products\", \n    \"numberOfShards\" : 1, \n    \"planId\" : \"105019\", \n    \"replicationFactor\" : 1, \n    \"shardKeys\" : [ \n      \"_key\" \n    ], \n    \"shards\" : { \n    }, \n    \"status\" : 3, \n    \"type\" : 2, \n    \"version\" : 7, \n    \"waitForSync\" : false \n  } \n}\n
\n\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 [Operation Types](./WALAccess.md/#operation-types).\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\n\n**Warning:** \nThis route should no longer be used.\nIt is considered as deprecated from version 3.4.0 on.\n\n\n\n\n\n\n**Example:**\n No log events available\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/logger-follow?from=105046\n\nHTTP/1.1 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-lastscanned: 105046\nx-arango-replication-lasttick: 105046\nx-content-type-options: nosniff\n\n
\n\n\n\n\n**Example:**\n A few log events *(One JSON document per line)*\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/logger-follow?from=105046\n\nHTTP/1.1 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: 105067\nx-arango-replication-lastscanned: 105067\nx-arango-replication-lasttick: 105067\nx-content-type-options: nosniff\n\n{ \n  \"tick\" : \"105050\", \n  \"type\" : 2000, \n  \"database\" : \"1\", \n  \"cid\" : \"105049\", \n  \"cname\" : \"products\", \n  \"data\" : { \n    \"allowUserKeys\" : true, \n    \"cid\" : \"105049\", \n    \"count\" : 0, \n    \"deleted\" : false, \n    \"doCompact\" : true, \n    \"globallyUniqueId\" : \"h8B2B671BCFD0/105049\", \n    \"id\" : \"105049\", \n    \"indexBuckets\" : 8, \n    \"indexes\" : [ \n      { \n        \"id\" : \"0\", \n        \"type\" : \"primary\", \n        \"fields\" : [ \n          \"_key\" \n        ], \n        \"unique\" : true, \n        \"sparse\" : false \n      } \n    ], \n    \"isSmart\" : false, \n    \"isSystem\" : false, \n    \"isVolatile\" : false, \n    \"journalSize\" : 33554432, \n    \"keyOptions\" : { \n      \"allowUserKeys\" : true, \n      \"type\" : \"traditional\", \n      \"lastValue\" : 0 \n    }, \n    \"name\" : \"products\", \n    \"numberOfShards\" : 1, \n    \"planId\" : \"105049\", \n    \"replicationFactor\" : 1, \n    \"shardKeys\" : [ \n      \"_key\" \n    ], \n    \"shards\" : { \n    }, \n    \"status\" : 3, \n    \"type\" : 2, \n    \"version\" : 7, \n    \"waitForSync\" : false \n  } \n}↩\n{ \n  \"tick\" : \"105053\", \n  \"type\" : 2300, \n  \"tid\" : \"0\", \n  \"database\" : \"1\", \n  \"cid\" : \"8\", \n  \"cname\" : \"_users\", \n  \"data\" : { \n    \"_key\" : \"58\", \n    \"_id\" : \"_users/58\", \n    \"_rev\" : \"_YOn1VSi--_\", \n    \"user\" : \"root\", \n    \"source\" : \"LOCAL\", \n    \"authData\" : { \n      \"active\" : true, \n      \"simple\" : { \n        \"hash\" : \"ba63424cac2432f605d770a3a2ca1c066f164ee2e022b3f6fa1c41bfa2391f6c\", \n        \"salt\" : \"93971d8d\", \n        \"method\" : \"sha256\" \n      } \n    }, \n    \"databases\" : { \n      \"_system\" : { \n        \"permissions\" : { \n          \"read\" : true, \n          \"write\" : true \n        }, \n        \"collections\" : { \n          \"demo\" : { \n            \"permissions\" : { \n              \"read\" : true, \n              \"write\" : true \n            } \n          }, \n          \"animals\" : { \n            \"permissions\" : { \n              \"read\" : true, \n              \"write\" : true \n            } \n          }, \n          \"products\" : { \n            \"permissions\" : { \n              \"read\" : true, \n              \"write\" : true \n            } \n          }, \n          \"*\" : { \n            \"permissions\" : { \n              \"read\" : true, \n              \"write\" : true \n            } \n          }, \n          \"products1\" : { \n            \"permissions\" : { \n              \"read\" : true, \n              \"write\" : true \n            } \n          } \n        } \n      }, \n      \"*\" : { \n        \"permissions\" : { \n          \"read\" : true, \n          \"write\" : true \n        }, \n        \"collections\" : { \n          \"*\" : { \n            \"permissions\" : { \n              \"read\" : true, \n              \"write\" : true \n            } \n          } \n        } \n      } \n    } \n  } \n}↩\n{ \n  \"tick\" : \"105057\", \n  \"type\" : 2300, \n  \"tid\" : \"0\", \n  \"database\" : \"1\", \n  \"cid\" : \"105049\", \n  \"cname\" : \"products\", \n  \"data\" : { \n    \"_key\" : \"p1\", \n    \"_id\" : \"_unknown/p1\", \n    \"_rev\" : \"_YOn1VSm--_\", \n    \"name\" : \"flux compensator\" \n  } \n}↩\n{ \n  \"tick\" : \"105059\", \n  \"type\" : 2300, \n  \"tid\" : \"0\", \n  \"database\" : \"1\", \n  \"cid\" : \"105049\", \n  \"cname\" : \"products\", \n  \"data\" : { \n    \"_key\" : \"p2\", \n    \"_id\" : \"_unknown/p2\", \n    \"_rev\" : \"_YOn1VSm--B\", \n    \"name\" : \"hybrid hovercraft\", \n    \"hp\" : 5100 \n  } \n}↩\n{ \n  \"tick\" : \"105061\", \n  \"type\" : 2302, \n  \"tid\" : \"0\", \n  \"database\" : \"1\", \n  \"cid\" : \"105049\", \n  \"cname\" : \"products\", \n  \"data\" : { \n    \"_key\" : \"p1\", \n    \"_rev\" : \"_YOn1VSm--D\" \n  } \n}↩\n{ \n  \"tick\" : \"105063\", \n  \"type\" : 2300, \n  \"tid\" : \"0\", \n  \"database\" : \"1\", \n  \"cid\" : \"105049\", \n  \"cname\" : \"products\", \n  \"data\" : { \n    \"_key\" : \"p2\", \n    \"_id\" : \"_unknown/p2\", \n    \"_rev\" : \"_YOn1VSq--_\", \n    \"name\" : \"broken hovercraft\", \n    \"hp\" : 5100 \n  } \n}↩\n{ \n  \"tick\" : \"105064\", \n  \"type\" : 2001, \n  \"database\" : \"1\", \n  \"cid\" : \"105049\", \n  \"cname\" : \"products\", \n  \"data\" : { \n    \"id\" : \"105049\", \n    \"name\" : \"products\", \n    \"cuid\" : \"h8B2B671BCFD0/105049\" \n  } \n}↩\n{ \n  \"tick\" : \"105067\", \n  \"type\" : 2300, \n  \"tid\" : \"0\", \n  \"database\" : \"1\", \n  \"cid\" : \"8\", \n  \"cname\" : \"_users\", \n  \"data\" : { \n    \"_key\" : \"58\", \n    \"_id\" : \"_users/58\", \n    \"_rev\" : \"_YOn1VTC--_\", \n    \"user\" : \"root\", \n    \"source\" : \"LOCAL\", \n    \"authData\" : { \n      \"active\" : true, \n      \"simple\" : { \n        \"hash\" : \"ba63424cac2432f605d770a3a2ca1c066f164ee2e022b3f6fa1c41bfa2391f6c\", \n        \"salt\" : \"93971d8d\", \n        \"method\" : \"sha256\" \n      } \n    }, \n    \"databases\" : { \n      \"*\" : { \n        \"permissions\" : { \n          \"read\" : true, \n          \"write\" : true \n        }, \n        \"collections\" : { \n          \"*\" : { \n            \"permissions\" : { \n              \"read\" : true, \n              \"write\" : true \n            } \n          } \n        } \n      }, \n      \"_system\" : { \n        \"permissions\" : { \n          \"read\" : true, \n          \"write\" : true \n        }, \n        \"collections\" : { \n          \"products1\" : { \n            \"permissions\" : { \n              \"read\" : true, \n              \"write\" : true \n            } \n          }, \n          \"*\" : { \n            \"permissions\" : { \n              \"read\" : true, \n              \"write\" : true \n            } \n          }, \n          \"demo\" : { \n            \"permissions\" : { \n              \"read\" : true, \n              \"write\" : true \n            } \n          }, \n          \"animals\" : { \n            \"permissions\" : { \n              \"read\" : true, \n              \"write\" : true \n            } \n          } \n        } \n      } \n    } \n  } \n}↩\n
\n\n\n\n\n**Example:**\n More events than would fit into the response\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/logger-follow?from=105025&chunkSize=400\n\nHTTP/1.1 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: 105029\nx-arango-replication-lastscanned: 105029\nx-arango-replication-lasttick: 105046\nx-content-type-options: nosniff\n\n{ \n  \"tick\" : \"105029\", \n  \"type\" : 2000, \n  \"database\" : \"1\", \n  \"cid\" : \"105028\", \n  \"cname\" : \"products\", \n  \"data\" : { \n    \"allowUserKeys\" : true, \n    \"cid\" : \"105028\", \n    \"count\" : 0, \n    \"deleted\" : false, \n    \"doCompact\" : true, \n    \"globallyUniqueId\" : \"h8B2B671BCFD0/105028\", \n    \"id\" : \"105028\", \n    \"indexBuckets\" : 8, \n    \"indexes\" : [ \n      { \n        \"id\" : \"0\", \n        \"type\" : \"primary\", \n        \"fields\" : [ \n          \"_key\" \n        ], \n        \"unique\" : true, \n        \"sparse\" : false \n      } \n    ], \n    \"isSmart\" : false, \n    \"isSystem\" : false, \n    \"isVolatile\" : false, \n    \"journalSize\" : 33554432, \n    \"keyOptions\" : { \n      \"allowUserKeys\" : true, \n      \"type\" : \"traditional\", \n      \"lastValue\" : 0 \n    }, \n    \"name\" : \"products\", \n    \"numberOfShards\" : 1, \n    \"planId\" : \"105028\", \n    \"replicationFactor\" : 1, \n    \"shardKeys\" : [ \n      \"_key\" \n    ], \n    \"shards\" : { \n    }, \n    \"status\" : 3, \n    \"type\" : 2, \n    \"version\" : 7, \n    \"waitForSync\" : false \n  } \n}\n
\n\n\n\n\n", "parameters": [ { "description": "Exclusive lower bound tick value for results.\n\n", @@ -13042,7 +13042,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\n\n**Example:**\n Returns the state of the replication logger.\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/logger-state\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"state\" : { \n    \"running\" : true, \n    \"lastLogTick\" : \"105058\", \n    \"lastUncommittedLogTick\" : \"105058\", \n    \"totalEvents\" : 35284, \n    \"time\" : \"2019-02-15T14:42:59Z\" \n  }, \n  \"server\" : { \n    \"version\" : \"3.5.0-devel\", \n    \"serverId\" : \"70528077254784\", \n    \"engine\" : \"mmfiles\" \n  }, \n  \"clients\" : [ ] \n}\n
\n\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\n\n**Example:**\n Returns the state of the replication logger.\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/logger-state\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"state\" : { \n    \"running\" : true, \n    \"lastLogTick\" : \"105067\", \n    \"lastUncommittedLogTick\" : \"105067\", \n    \"totalEvents\" : 35288, \n    \"time\" : \"2019-02-20T10:33:10Z\" \n  }, \n  \"server\" : { \n    \"version\" : \"3.5.0-devel\", \n    \"serverId\" : \"153018529730512\", \n    \"engine\" : \"mmfiles\" \n  }, \n  \"clients\" : [ ] \n}\n
\n\n\n\n\n", "parameters": [], "responses": { "200": { @@ -13066,7 +13066,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\nobject\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\n\n**Example:**\n Returns the available tick ranges.\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/logger-tick-ranges\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n[ \n  { \n    \"datafile\" : \"/tmp/arangosh_q2Dy3I/tmp-13879-1274251971/data/journals/logfile-3.db\", \n    \"status\" : \"collected\", \n    \"tickMin\" : \"5\", \n    \"tickMax\" : \"103215\" \n  }, \n  { \n    \"datafile\" : \"/tmp/arangosh_q2Dy3I/tmp-13879-1274251971/data/journals/logfile-85.db\", \n    \"status\" : \"collected\", \n    \"tickMin\" : \"103229\", \n    \"tickMax\" : \"103352\" \n  }, \n  { \n    \"datafile\" : \"/tmp/arangosh_q2Dy3I/tmp-13879-1274251971/data/journals/logfile-2040.db\", \n    \"status\" : \"collected\", \n    \"tickMin\" : \"103359\", \n    \"tickMax\" : \"104945\" \n  }, \n  { \n    \"datafile\" : \"/tmp/arangosh_q2Dy3I/tmp-13879-1274251971/data/journals/logfile-103218.db\", \n    \"status\" : \"collected\", \n    \"tickMin\" : \"104952\", \n    \"tickMax\" : \"104969\" \n  }, \n  { \n    \"datafile\" : \"/tmp/arangosh_q2Dy3I/tmp-13879-1274251971/data/journals/logfile-103355.db\", \n    \"status\" : \"open\", \n    \"tickMin\" : \"104977\", \n    \"tickMax\" : \"105058\" \n  } \n]\n
\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\nobject\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\n\n**Example:**\n Returns the available tick ranges.\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/logger-tick-ranges\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n[ \n  { \n    \"datafile\" : \"/tmp/arangosh_uprJb4/tmp-27793-56941049/data/journals/logfile-3.db\", \n    \"status\" : \"collected\", \n    \"tickMin\" : \"5\", \n    \"tickMax\" : \"103215\" \n  }, \n  { \n    \"datafile\" : \"/tmp/arangosh_uprJb4/tmp-27793-56941049/data/journals/logfile-85.db\", \n    \"status\" : \"collected\", \n    \"tickMin\" : \"103229\", \n    \"tickMax\" : \"103352\" \n  }, \n  { \n    \"datafile\" : \"/tmp/arangosh_uprJb4/tmp-27793-56941049/data/journals/logfile-232.db\", \n    \"status\" : \"collected\", \n    \"tickMin\" : \"103360\", \n    \"tickMax\" : \"104964\" \n  }, \n  { \n    \"datafile\" : \"/tmp/arangosh_uprJb4/tmp-27793-56941049/data/journals/logfile-103218.db\", \n    \"status\" : \"collected\", \n    \"tickMin\" : \"104968\", \n    \"tickMax\" : \"104980\" \n  }, \n  { \n    \"datafile\" : \"/tmp/arangosh_uprJb4/tmp-27793-56941049/data/journals/logfile-103355.db\", \n    \"status\" : \"open\", \n    \"tickMin\" : \"104986\", \n    \"tickMax\" : \"105067\" \n  } \n]\n
\n\n\n\n\n", "parameters": [], "responses": { "200": { @@ -13133,7 +13133,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\n\n**Example:**\n \n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/server-id\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"serverId\" : \"70528077254784\" \n}\n
\n\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\n\n**Example:**\n \n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/server-id\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"serverId\" : \"153018529730512\" \n}\n
\n\n\n\n\n", "parameters": [], "responses": { "200": { @@ -13197,7 +13197,7 @@ }, "/_api/simple/all": { "put": { - "description": "\n\nReturns all documents of a collections. Equivalent to the AQL query\n`FOR doc IN collection RETURN doc`. 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\n- *batchSize*: The number of documents to return in one go. (optional)\n\n- *ttl*: The time-to-live for the cursor (in seconds, optional). \n\n- *stream*: Create this cursor as a stream query (optional). \n\n\nReturns a cursor containing the result, see [HTTP Cursor](../AqlQueryCursor/README.md) for details.\n\n\n\n\n**Warning:** \nThis route should no longer be used.\nAll endpoints for Simple Queries are deprecated from version 3.4.0 on.\nThey are superseded by AQL queries.\n\n\n\n\n\n\n**Example:**\n Limit the amount of documents using *limit*\n\n
shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/simple/all <<EOF\n{ \"collection\": \"products\", \"skip\": 2, \"limit\" : 2 }\nEOF\n\nHTTP/1.1 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : [ \n    { \n      \"_key\" : \"105131\", \n      \"_id\" : \"products/105131\", \n      \"_rev\" : \"_YNEaR2G--D\", \n      \"Hello2\" : \"World2\" \n    }, \n    { \n      \"_key\" : \"105137\", \n      \"_id\" : \"products/105137\", \n      \"_rev\" : \"_YNEaR2K--B\", \n      \"Hello4\" : \"World4\" \n    } \n  ], \n  \"hasMore\" : false, \n  \"count\" : 2, \n  \"cached\" : false, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 4, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 0, \n      \"httpRequests\" : 0, \n      \"executionTime\" : 0.00015664100646972656, \n      \"peakMemoryUsage\" : 18328 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n**Example:**\n Using a *batchSize* value\n\n
shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/simple/all <<EOF\n{ \"collection\": \"products\", \"batchSize\" : 3 }\nEOF\n\nHTTP/1.1 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : [ \n    { \n      \"_key\" : \"105098\", \n      \"_id\" : \"products/105098\", \n      \"_rev\" : \"_YNEaR1G--_\", \n      \"Hello1\" : \"World1\" \n    }, \n    { \n      \"_key\" : \"105102\", \n      \"_id\" : \"products/105102\", \n      \"_rev\" : \"_YNEaR1G--B\", \n      \"Hello2\" : \"World2\" \n    }, \n    { \n      \"_key\" : \"105111\", \n      \"_id\" : \"products/105111\", \n      \"_rev\" : \"_YNEaR1G--H\", \n      \"Hello5\" : \"World5\" \n    } \n  ], \n  \"hasMore\" : true, \n  \"id\" : \"105114\", \n  \"count\" : 5, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 5, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 0, \n      \"httpRequests\" : 0, \n      \"executionTime\" : 0.00013375282287597656, \n      \"peakMemoryUsage\" : 17984 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"cached\" : false, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n", + "description": "\n\nReturns all documents of a collections. Equivalent to the AQL query\n`FOR doc IN collection RETURN doc`. 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\n- *batchSize*: The number of documents to return in one go. (optional)\n\n- *ttl*: The time-to-live for the cursor (in seconds, optional). \n\n- *stream*: Create this cursor as a stream query (optional). \n\n\nReturns a cursor containing the result, see [HTTP Cursor](../AqlQueryCursor/README.md) for details.\n\n\n\n\n**Warning:** \nThis route should no longer be used.\nAll endpoints for Simple Queries are deprecated from version 3.4.0 on.\nThey are superseded by AQL queries.\n\n\n\n\n\n\n**Example:**\n Limit the amount of documents using *limit*\n\n
shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/simple/all <<EOF\n{ \"collection\": \"products\", \"skip\": 2, \"limit\" : 2 }\nEOF\n\nHTTP/1.1 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : [ \n    { \n      \"_key\" : \"105136\", \n      \"_id\" : \"products/105136\", \n      \"_rev\" : \"_YOn1XT6--_\", \n      \"Hello1\" : \"World1\" \n    }, \n    { \n      \"_key\" : \"105149\", \n      \"_id\" : \"products/105149\", \n      \"_rev\" : \"_YOn1XU---D\", \n      \"Hello5\" : \"World5\" \n    } \n  ], \n  \"hasMore\" : false, \n  \"count\" : 2, \n  \"cached\" : false, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 4, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 0, \n      \"httpRequests\" : 0, \n      \"executionTime\" : 0.00012993812561035156, \n      \"peakMemoryUsage\" : 18328 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n**Example:**\n Using a *batchSize* value\n\n
shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/simple/all <<EOF\n{ \"collection\": \"products\", \"batchSize\" : 3 }\nEOF\n\nHTTP/1.1 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : [ \n    { \n      \"_key\" : \"105120\", \n      \"_id\" : \"products/105120\", \n      \"_rev\" : \"_YOn1XS6--H\", \n      \"Hello5\" : \"World5\" \n    }, \n    { \n      \"_key\" : \"105117\", \n      \"_id\" : \"products/105117\", \n      \"_rev\" : \"_YOn1XS6--F\", \n      \"Hello4\" : \"World4\" \n    }, \n    { \n      \"_key\" : \"105114\", \n      \"_id\" : \"products/105114\", \n      \"_rev\" : \"_YOn1XS6--D\", \n      \"Hello3\" : \"World3\" \n    } \n  ], \n  \"hasMore\" : true, \n  \"id\" : \"105123\", \n  \"count\" : 5, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 5, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 0, \n      \"httpRequests\" : 0, \n      \"executionTime\" : 0.00013184547424316406, \n      \"peakMemoryUsage\" : 17984 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"cached\" : false, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n", "parameters": [ { "description": "Contains the query.\n\n", @@ -13233,7 +13233,7 @@ }, "/_api/simple/all-keys": { "put": { - "description": "\n**A JSON object with these properties is required:**\n\n - **type**: The type of the result. The following values are allowed:\n - *id*: returns an array of document ids (*_id* attributes)\n - *key*: returns an array of document keys (*_key* attributes)\n - *path*: returns an array of document URI paths. This is the default.\n - **collection**: The collection that should be queried\n\n\n\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\nNote: the *all-keys* simple query is **deprecated** as of ArangoDB 3.4.0.\nThis API may get removed in future versions of ArangoDB. You can use the\n`/_api/cursor` endpoint instead with one of the below AQL queries depending\non the desired result:\n\n- `FOR doc IN @@collection RETURN doc._id` to mimic *type: id*\n- `FOR doc IN @@collection RETURN doc._key` to mimic *type: key*\n- `FOR doc IN @@collection RETURN CONCAT(\"/_db/\", CURRENT_DATABASE(), \"/_api/document/\", doc._id)`\n to mimic *type: path*\n\n\n\n\n**Warning:** \nThis route should no longer be used.\nAll endpoints for Simple Queries are deprecated from version 3.4.0 on.\nThey are superseded by AQL queries.\n\n\n\n\n\n\n**Example:**\n Return all document paths\n\n
shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/simple/all-keys <<EOF\n{ \n  \"collection\" : \"products\" \n}\nEOF\n\nHTTP/1.1 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : [ \n    \"/_db/_system/_api/document/products/103987\", \n    \"/_db/_system/_api/document/products/103980\", \n    \"/_db/_system/_api/document/products/103984\" \n  ], \n  \"hasMore\" : false, \n  \"cached\" : false, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 3, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 0, \n      \"httpRequests\" : 0, \n      \"executionTime\" : 0.00017881393432617188, \n      \"peakMemoryUsage\" : 34208 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n**Example:**\n Return all document keys\n\n
shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/simple/all-keys <<EOF\n{ \n  \"collection\" : \"products\", \n  \"type\" : \"id\" \n}\nEOF\n\nHTTP/1.1 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : [ \n    \"products/103958\", \n    \"products/103965\", \n    \"products/103962\" \n  ], \n  \"hasMore\" : false, \n  \"cached\" : false, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 3, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 0, \n      \"httpRequests\" : 0, \n      \"executionTime\" : 0.00019621849060058594, \n      \"peakMemoryUsage\" : 34040 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n**Example:**\n Collection does not exist\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/doesnotexist\n\nHTTP/1.1 Not Found\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"expecting GET /_api/document/<document-handle>\", \n  \"code\" : 404, \n  \"errorNum\" : 1203 \n}\n
\n\n\n\n\n", + "description": "\n**A JSON object with these properties is required:**\n\n - **type**: The type of the result. The following values are allowed:\n - *id*: returns an array of document ids (*_id* attributes)\n - *key*: returns an array of document keys (*_key* attributes)\n - *path*: returns an array of document URI paths. This is the default.\n - **collection**: The collection that should be queried\n\n\n\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\nNote: the *all-keys* simple query is **deprecated** as of ArangoDB 3.4.0.\nThis API may get removed in future versions of ArangoDB. You can use the\n`/_api/cursor` endpoint instead with one of the below AQL queries depending\non the desired result:\n\n- `FOR doc IN @@collection RETURN doc._id` to mimic *type: id*\n- `FOR doc IN @@collection RETURN doc._key` to mimic *type: key*\n- `FOR doc IN @@collection RETURN CONCAT(\"/_db/\", CURRENT_DATABASE(), \"/_api/document/\", doc._id)`\n to mimic *type: path*\n\n\n\n\n**Warning:** \nThis route should no longer be used.\nAll endpoints for Simple Queries are deprecated from version 3.4.0 on.\nThey are superseded by AQL queries.\n\n\n\n\n\n\n**Example:**\n Return all document paths\n\n
shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/simple/all-keys <<EOF\n{ \n  \"collection\" : \"products\" \n}\nEOF\n\nHTTP/1.1 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : [ \n    \"/_db/_system/_api/document/products/103997\", \n    \"/_db/_system/_api/document/products/103994\", \n    \"/_db/_system/_api/document/products/103990\" \n  ], \n  \"hasMore\" : false, \n  \"cached\" : false, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 3, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 0, \n      \"httpRequests\" : 0, \n      \"executionTime\" : 0.00018358230590820312, \n      \"peakMemoryUsage\" : 34208 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n**Example:**\n Return all document keys\n\n
shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/simple/all-keys <<EOF\n{ \n  \"collection\" : \"products\", \n  \"type\" : \"id\" \n}\nEOF\n\nHTTP/1.1 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : [ \n    \"products/103975\", \n    \"products/103972\", \n    \"products/103968\" \n  ], \n  \"hasMore\" : false, \n  \"cached\" : false, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 3, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 0, \n      \"httpRequests\" : 0, \n      \"executionTime\" : 0.0001857280731201172, \n      \"peakMemoryUsage\" : 34040 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n**Example:**\n Collection does not exist\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/doesnotexist\n\nHTTP/1.1 Not Found\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"expecting GET /_api/document/<document-handle>\", \n  \"code\" : 404, \n  \"errorNum\" : 1203 \n}\n
\n\n\n\n\n", "parameters": [ { "description": "The name of the collection.\n**This parameter is only for an easier migration path from old versions.**\nIn ArangoDB versions < 3.0, the URL path was `/_api/document` and\nthis was passed in via the query parameter \"collection\".\nThis combination was removed. The collection name can be passed to\n`/_api/simple/all-keys` as body parameter (preferred) or as query parameter.\n\n", @@ -13271,7 +13271,7 @@ }, "/_api/simple/any": { "put": { - "description": "\n\nReturns a random document from a collection. The call expects a JSON object\nas body with the following attributes:\n\n\n**A JSON object 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* attribute contains null.\n\n\n\n\n\n**Warning:** \nThis route should no longer be used.\nAll endpoints for Simple Queries are deprecated from version 3.4.0 on.\nThey are superseded by AQL queries.\n\n\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/simple/any <<EOF\n{ \n  \"collection\" : \"products\" \n}\nEOF\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"document\" : { \n    \"_key\" : \"105159\", \n    \"_id\" : \"products/105159\", \n    \"_rev\" : \"_YNEaR3K--_\", \n    \"Hello2\" : \"World2\" \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n", + "description": "\n\nReturns a random document from a collection. The call expects a JSON object\nas body with the following attributes:\n\n\n**A JSON object 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* attribute contains null.\n\n\n\n\n\n**Warning:** \nThis route should no longer be used.\nAll endpoints for Simple Queries are deprecated from version 3.4.0 on.\nThey are superseded by AQL queries.\n\n\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/simple/any <<EOF\n{ \n  \"collection\" : \"products\" \n}\nEOF\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"document\" : { \n    \"_key\" : \"105168\", \n    \"_id\" : \"products/105168\", \n    \"_rev\" : \"_YOn1XU6--D\", \n    \"Hello2\" : \"World2\" \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n", "parameters": [ { "in": "body", @@ -13305,7 +13305,7 @@ }, "/_api/simple/by-example": { "put": { - "description": "\n**A JSON object with these properties is required:**\n\n - **skip**: The number of documents to skip in the query (optional).\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 - **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](../AqlQueryCursor/README.md) for details.\n\n\n\n\n**Warning:** \nThis route should no longer be used.\nAll endpoints for Simple Queries are deprecated from version 3.4.0 on.\nThey are superseded by AQL queries.\n\n\n\n\n**Warning:** \nTill ArangoDB versions 3.2.13 and 3.3.7 this API is quite expensive.\nA more lightweight alternative is to use the [HTTP Cursor API](../AqlQueryCursor/README.md).\nStarting from versions 3.2.14 and 3.3.8 this performance impact is not\nan issue anymore, as the internal implementation of the API has changed.\n\n\n\n\n\n\n**Example:**\n Matching an attribute\n\n
shell> curl -X PUT --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : [ \n    { \n      \"_key\" : \"105187\", \n      \"_id\" : \"products/105187\", \n      \"_rev\" : \"_YNEaR4O--_\", \n      \"a\" : { \n        \"j\" : 1 \n      }, \n      \"i\" : 1 \n    }, \n    { \n      \"_key\" : \"105193\", \n      \"_id\" : \"products/105193\", \n      \"_rev\" : \"_YNEaR4O--D\", \n      \"a\" : { \n        \"k\" : 2, \n        \"j\" : 2 \n      }, \n      \"i\" : 1 \n    }, \n    { \n      \"_key\" : \"105183\", \n      \"_id\" : \"products/105183\", \n      \"_rev\" : \"_YNEaR4K--B\", \n      \"a\" : { \n        \"k\" : 1, \n        \"j\" : 1 \n      }, \n      \"i\" : 1 \n    }, \n    { \n      \"_key\" : \"105190\", \n      \"_id\" : \"products/105190\", \n      \"_rev\" : \"_YNEaR4O--B\", \n      \"i\" : 1 \n    } \n  ], \n  \"hasMore\" : false, \n  \"count\" : 4, \n  \"cached\" : false, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 4, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 0, \n      \"httpRequests\" : 0, \n      \"executionTime\" : 0.0002338886260986328, \n      \"peakMemoryUsage\" : 68336 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n**Example:**\n Matching an attribute which is a sub-document\n\n
shell> curl -X PUT --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : [ \n    { \n      \"_key\" : \"105208\", \n      \"_id\" : \"products/105208\", \n      \"_rev\" : \"_YNEaR5O--B\", \n      \"a\" : { \n        \"k\" : 1, \n        \"j\" : 1 \n      }, \n      \"i\" : 1 \n    }, \n    { \n      \"_key\" : \"105212\", \n      \"_id\" : \"products/105212\", \n      \"_rev\" : \"_YNEaR5S--_\", \n      \"a\" : { \n        \"j\" : 1 \n      }, \n      \"i\" : 1 \n    } \n  ], \n  \"hasMore\" : false, \n  \"count\" : 2, \n  \"cached\" : false, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 4, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 2, \n      \"httpRequests\" : 0, \n      \"executionTime\" : 0.00022029876708984375, \n      \"peakMemoryUsage\" : 68616 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n**Example:**\n Matching an attribute within a sub-document\n\n
shell> curl -X PUT --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : [ \n    { \n      \"_key\" : \"105237\", \n      \"_id\" : \"products/105237\", \n      \"_rev\" : \"_YNEaR6W--B\", \n      \"a\" : { \n        \"j\" : 1 \n      }, \n      \"i\" : 1 \n    } \n  ], \n  \"hasMore\" : false, \n  \"count\" : 1, \n  \"cached\" : false, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 4, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 3, \n      \"httpRequests\" : 0, \n      \"executionTime\" : 0.00020432472229003906, \n      \"peakMemoryUsage\" : 68896 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n", + "description": "\n**A JSON object with these properties is required:**\n\n - **skip**: The number of documents to skip in the query (optional).\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 - **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](../AqlQueryCursor/README.md) for details.\n\n\n\n\n**Warning:** \nThis route should no longer be used.\nAll endpoints for Simple Queries are deprecated from version 3.4.0 on.\nThey are superseded by AQL queries.\n\n\n\n\n**Warning:** \nTill ArangoDB versions 3.2.13 and 3.3.7 this API is quite expensive.\nA more lightweight alternative is to use the [HTTP Cursor API](../AqlQueryCursor/README.md).\nStarting from versions 3.2.14 and 3.3.8 this performance impact is not\nan issue anymore, as the internal implementation of the API has changed.\n\n\n\n\n\n\n**Example:**\n Matching an attribute\n\n
shell> curl -X PUT --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : [ \n    { \n      \"_key\" : \"105192\", \n      \"_id\" : \"products/105192\", \n      \"_rev\" : \"_YOn1XW---_\", \n      \"a\" : { \n        \"k\" : 1, \n        \"j\" : 1 \n      }, \n      \"i\" : 1 \n    }, \n    { \n      \"_key\" : \"105202\", \n      \"_id\" : \"products/105202\", \n      \"_rev\" : \"_YOn1XW---F\", \n      \"a\" : { \n        \"k\" : 2, \n        \"j\" : 2 \n      }, \n      \"i\" : 1 \n    }, \n    { \n      \"_key\" : \"105196\", \n      \"_id\" : \"products/105196\", \n      \"_rev\" : \"_YOn1XW---B\", \n      \"a\" : { \n        \"j\" : 1 \n      }, \n      \"i\" : 1 \n    }, \n    { \n      \"_key\" : \"105199\", \n      \"_id\" : \"products/105199\", \n      \"_rev\" : \"_YOn1XW---D\", \n      \"i\" : 1 \n    } \n  ], \n  \"hasMore\" : false, \n  \"count\" : 4, \n  \"cached\" : false, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 4, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 0, \n      \"httpRequests\" : 0, \n      \"executionTime\" : 0.0002498626708984375, \n      \"peakMemoryUsage\" : 68336 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n**Example:**\n Matching an attribute which is a sub-document\n\n
shell> curl -X PUT --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : [ \n    { \n      \"_key\" : \"105217\", \n      \"_id\" : \"products/105217\", \n      \"_rev\" : \"_YOn1XXC--_\", \n      \"a\" : { \n        \"k\" : 1, \n        \"j\" : 1 \n      }, \n      \"i\" : 1 \n    }, \n    { \n      \"_key\" : \"105221\", \n      \"_id\" : \"products/105221\", \n      \"_rev\" : \"_YOn1XXC--B\", \n      \"a\" : { \n        \"j\" : 1 \n      }, \n      \"i\" : 1 \n    } \n  ], \n  \"hasMore\" : false, \n  \"count\" : 2, \n  \"cached\" : false, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 4, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 2, \n      \"httpRequests\" : 0, \n      \"executionTime\" : 0.0002300739288330078, \n      \"peakMemoryUsage\" : 68616 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n**Example:**\n Matching an attribute within a sub-document\n\n
shell> curl -X PUT --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : [ \n    { \n      \"_key\" : \"105246\", \n      \"_id\" : \"products/105246\", \n      \"_rev\" : \"_YOn1XYC--D\", \n      \"a\" : { \n        \"j\" : 1 \n      }, \n      \"i\" : 1 \n    } \n  ], \n  \"hasMore\" : false, \n  \"count\" : 1, \n  \"cached\" : false, \n  \"extra\" : { \n    \"stats\" : { \n      \"writesExecuted\" : 0, \n      \"writesIgnored\" : 0, \n      \"scannedFull\" : 4, \n      \"scannedIndex\" : 0, \n      \"filtered\" : 3, \n      \"httpRequests\" : 0, \n      \"executionTime\" : 0.00022554397583007812, \n      \"peakMemoryUsage\" : 68896 \n    }, \n    \"warnings\" : [ ] \n  }, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n", "parameters": [ { "in": "body", @@ -13339,7 +13339,7 @@ }, "/_api/simple/first-example": { "put": { - "description": "\n**A JSON object 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\n\n**Warning:** \nThis route should no longer be used.\nAll endpoints for Simple Queries are deprecated from version 3.4.0 on.\nThey are superseded by AQL queries.\n\n\n\n\n**Warning:** \nTill ArangoDB versions 3.2.13 and 3.3.7 this API is quite expensive.\nA more lightweight alternative is to use the [HTTP Cursor API](../AqlQueryCursor/README.md).\nStarting from versions 3.2.14 and 3.3.8 this performance impact is not\nan issue anymore, as the internal implementation of the API has changed.\n\n\n\n\n\n\n**Example:**\n If a matching document was found\n\n
shell> curl -X PUT --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"document\" : { \n    \"_key\" : \"105268\", \n    \"_id\" : \"products/105268\", \n    \"_rev\" : \"_YNEaR7i--_\", \n    \"a\" : { \n      \"k\" : 2, \n      \"j\" : 2 \n    }, \n    \"i\" : 1 \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n If no document was found\n\n
shell> curl -X PUT --header 'accept: application/json' --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 Not Found\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"code\" : 404, \n  \"errorNum\" : 404, \n  \"errorMessage\" : \"no match\" \n}\n
\n\n\n\n\n", + "description": "\n**A JSON object 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\n\n**Warning:** \nThis route should no longer be used.\nAll endpoints for Simple Queries are deprecated from version 3.4.0 on.\nThey are superseded by AQL queries.\n\n\n\n\n**Warning:** \nTill ArangoDB versions 3.2.13 and 3.3.7 this API is quite expensive.\nA more lightweight alternative is to use the [HTTP Cursor API](../AqlQueryCursor/README.md).\nStarting from versions 3.2.14 and 3.3.8 this performance impact is not\nan issue anymore, as the internal implementation of the API has changed.\n\n\n\n\n\n\n**Example:**\n If a matching document was found\n\n
shell> curl -X PUT --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"document\" : { \n    \"_key\" : \"105277\", \n    \"_id\" : \"products/105277\", \n    \"_rev\" : \"_YOn1XZG--D\", \n    \"a\" : { \n      \"k\" : 2, \n      \"j\" : 2 \n    }, \n    \"i\" : 1 \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n If no document was found\n\n
shell> curl -X PUT --header 'accept: application/json' --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 Not Found\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"code\" : 404, \n  \"errorNum\" : 404, \n  \"errorMessage\" : \"no match\" \n}\n
\n\n\n\n\n", "parameters": [ { "in": "body", @@ -13373,7 +13373,7 @@ }, "/_api/simple/fulltext": { "put": { - "description": "\n**A JSON object 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](../../Manual/Appendix/Deprecated/SimpleQueries/FulltextQueries.html)\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](../AqlQueryCursor/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/Functions/Fulltext.html) \nas follows:\n\n FOR doc IN FULLTEXT(@@collection, @attributeName, @queryString, @limit) \n RETURN doc\n\n\n\n\n**Warning:** \nThis route should no longer be used.\nAll endpoints for Simple Queries are deprecated from version 3.4.0 on.\nThey are superseded by AQL queries.\n\n\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PUT --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : [ \n    { \n      \"_key\" : \"105308\", \n      \"_id\" : \"products/105308\", \n      \"_rev\" : \"_YNEaR92--B\", \n      \"text\" : \"this text contains word\" \n    }, \n    { \n      \"_key\" : \"105312\", \n      \"_id\" : \"products/105312\", \n      \"_rev\" : \"_YNEaR92--D\", \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\n\n\n", + "description": "\n**A JSON object 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](../../Manual/Appendix/Deprecated/SimpleQueries/FulltextQueries.html)\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](../AqlQueryCursor/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/Functions/Fulltext.html) \nas follows:\n\n FOR doc IN FULLTEXT(@@collection, @attributeName, @queryString, @limit) \n RETURN doc\n\n\n\n\n**Warning:** \nThis route should no longer be used.\nAll endpoints for Simple Queries are deprecated from version 3.4.0 on.\nThey are superseded by AQL queries.\n\n\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PUT --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : [ \n    { \n      \"_key\" : \"105317\", \n      \"_id\" : \"products/105317\", \n      \"_rev\" : \"_YOn1XbK--_\", \n      \"text\" : \"this text contains word\" \n    }, \n    { \n      \"_key\" : \"105321\", \n      \"_id\" : \"products/105321\", \n      \"_rev\" : \"_YOn1XbK--B\", \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\n\n\n", "parameters": [ { "in": "body", @@ -13407,7 +13407,7 @@ }, "/_api/simple/lookup-by-keys": { "put": { - "description": "\n**A JSON object with these properties is required:**\n\n - **keys** (string): array with the _keys of documents to remove.\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\nusing the array of keys provided. All documents for which a matching\nkey was specified in the *keys* array and that exist in the collection\nwill be returned. Keys for which no document can be found in the\nunderlying collection are ignored, and no exception will be thrown for\nthem.\n\nEquivalent AQL query:\n\n FOR doc IN @@collection FILTER doc._key IN @keys RETURN doc\n\nThe body of the response contains a JSON object with a *documents*\nattribute. The *documents* attribute is an array containing the\nmatching documents. The order in which matching documents are present\nin the result array is unspecified.\n\n\n\n\n**Warning:** \nThis route should no longer be used.\nAll endpoints for Simple Queries are deprecated from version 3.4.0 on.\nThey are superseded by AQL queries.\n\n\n\n\n\n\n**Example:**\n Looking up existing documents\n\n
shell> curl -X PUT --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"documents\" : [ \n    { \n      \"_key\" : \"test0\", \n      \"_id\" : \"test/test0\", \n      \"_rev\" : \"_YNEaSAG--B\", \n      \"value\" : 0 \n    }, \n    { \n      \"_key\" : \"test1\", \n      \"_id\" : \"test/test1\", \n      \"_rev\" : \"_YNEaSAK--_\", \n      \"value\" : 1 \n    }, \n    { \n      \"_key\" : \"test2\", \n      \"_id\" : \"test/test2\", \n      \"_rev\" : \"_YNEaSAK--B\", \n      \"value\" : 2 \n    }, \n    { \n      \"_key\" : \"test3\", \n      \"_id\" : \"test/test3\", \n      \"_rev\" : \"_YNEaSAK--D\", \n      \"value\" : 3 \n    }, \n    { \n      \"_key\" : \"test4\", \n      \"_id\" : \"test/test4\", \n      \"_rev\" : \"_YNEaSAK--F\", \n      \"value\" : 4 \n    }, \n    { \n      \"_key\" : \"test5\", \n      \"_id\" : \"test/test5\", \n      \"_rev\" : \"_YNEaSAK--H\", \n      \"value\" : 5 \n    }, \n    { \n      \"_key\" : \"test6\", \n      \"_id\" : \"test/test6\", \n      \"_rev\" : \"_YNEaSAK--J\", \n      \"value\" : 6 \n    }, \n    { \n      \"_key\" : \"test7\", \n      \"_id\" : \"test/test7\", \n      \"_rev\" : \"_YNEaSAK--L\", \n      \"value\" : 7 \n    }, \n    { \n      \"_key\" : \"test8\", \n      \"_id\" : \"test/test8\", \n      \"_rev\" : \"_YNEaSAO--_\", \n      \"value\" : 8 \n    }, \n    { \n      \"_key\" : \"test9\", \n      \"_id\" : \"test/test9\", \n      \"_rev\" : \"_YNEaSAO--B\", \n      \"value\" : 9 \n    } \n  ], \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n Looking up non-existing documents\n\n
shell> curl -X PUT --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"documents\" : [ ], \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n\n", + "description": "\n**A JSON object with these properties is required:**\n\n - **keys** (string): array with the _keys of documents to remove.\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\nusing the array of keys provided. All documents for which a matching\nkey was specified in the *keys* array and that exist in the collection\nwill be returned. Keys for which no document can be found in the\nunderlying collection are ignored, and no exception will be thrown for\nthem.\n\nEquivalent AQL query:\n\n FOR doc IN @@collection FILTER doc._key IN @keys RETURN doc\n\nThe body of the response contains a JSON object with a *documents*\nattribute. The *documents* attribute is an array containing the\nmatching documents. The order in which matching documents are present\nin the result array is unspecified.\n\n\n\n\n**Warning:** \nThis route should no longer be used.\nAll endpoints for Simple Queries are deprecated from version 3.4.0 on.\nThey are superseded by AQL queries.\n\n\n\n\n\n\n**Example:**\n Looking up existing documents\n\n
shell> curl -X PUT --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"documents\" : [ \n    { \n      \"_key\" : \"test0\", \n      \"_id\" : \"test/test0\", \n      \"_rev\" : \"_YOn1XdO--B\", \n      \"value\" : 0 \n    }, \n    { \n      \"_key\" : \"test1\", \n      \"_id\" : \"test/test1\", \n      \"_rev\" : \"_YOn1XdS--_\", \n      \"value\" : 1 \n    }, \n    { \n      \"_key\" : \"test2\", \n      \"_id\" : \"test/test2\", \n      \"_rev\" : \"_YOn1XdS--B\", \n      \"value\" : 2 \n    }, \n    { \n      \"_key\" : \"test3\", \n      \"_id\" : \"test/test3\", \n      \"_rev\" : \"_YOn1XdS--D\", \n      \"value\" : 3 \n    }, \n    { \n      \"_key\" : \"test4\", \n      \"_id\" : \"test/test4\", \n      \"_rev\" : \"_YOn1XdS--F\", \n      \"value\" : 4 \n    }, \n    { \n      \"_key\" : \"test5\", \n      \"_id\" : \"test/test5\", \n      \"_rev\" : \"_YOn1XdW--_\", \n      \"value\" : 5 \n    }, \n    { \n      \"_key\" : \"test6\", \n      \"_id\" : \"test/test6\", \n      \"_rev\" : \"_YOn1XdW--B\", \n      \"value\" : 6 \n    }, \n    { \n      \"_key\" : \"test7\", \n      \"_id\" : \"test/test7\", \n      \"_rev\" : \"_YOn1XdW--D\", \n      \"value\" : 7 \n    }, \n    { \n      \"_key\" : \"test8\", \n      \"_id\" : \"test/test8\", \n      \"_rev\" : \"_YOn1XdW--F\", \n      \"value\" : 8 \n    }, \n    { \n      \"_key\" : \"test9\", \n      \"_id\" : \"test/test9\", \n      \"_rev\" : \"_YOn1XdW--H\", \n      \"value\" : 9 \n    } \n  ], \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n Looking up non-existing documents\n\n
shell> curl -X PUT --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"documents\" : [ ], \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n\n", "parameters": [ { "in": "body", @@ -13441,7 +13441,7 @@ }, "/_api/simple/near": { "put": { - "description": "\n**A JSON object 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](../AqlQueryCursor/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/Functions/Geo.html) using the *NEAR* function as follows: \n\n FOR doc IN NEAR(@@collection, @latitude, @longitude, @limit)\n RETURN doc`\n\n\n\n\n**Warning:** \nThis route should no longer be used.\nAll endpoints for Simple Queries are deprecated from version 3.4.0 on.\nThey are superseded by AQL queries.\n\n\n\n\n\n\n**Example:**\n Without distance\n\n
shell> curl -X PUT --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : [ \n    { \n      \"_key\" : \"105417\", \n      \"_id\" : \"products/105417\", \n      \"_rev\" : \"_YNEaSDS--D\", \n      \"name\" : \"Name/-0.002/\", \n      \"loc\" : [ \n        -0.002, \n        0 \n      ] \n    }, \n    { \n      \"_key\" : \"105423\", \n      \"_id\" : \"products/105423\", \n      \"_rev\" : \"_YNEaSDW--_\", \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\n\n\n\n**Example:**\n With distance\n\n
shell> curl -X PUT --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : [ \n    { \n      \"_id\" : \"products/105468\", \n      \"_key\" : \"105468\", \n      \"_rev\" : \"_YNEaSFW--D\", \n      \"loc\" : [ \n        -0.002, \n        0 \n      ], \n      \"name\" : \"Name/-0.002/\", \n      \"distance\" : 222.3898532891175 \n    }, \n    { \n      \"_id\" : \"products/105474\", \n      \"_key\" : \"105474\", \n      \"_rev\" : \"_YNEaSFW--H\", \n      \"loc\" : [ \n        0.002, \n        0 \n      ], \n      \"name\" : \"Name/0.002/\", \n      \"distance\" : 222.3898532891175 \n    }, \n    { \n      \"_id\" : \"products/105477\", \n      \"_key\" : \"105477\", \n      \"_rev\" : \"_YNEaSFa--_\", \n      \"loc\" : [ \n        0.004, \n        0 \n      ], \n      \"name\" : \"Name/0.004/\", \n      \"distance\" : 444.779706578235 \n    } \n  ], \n  \"hasMore\" : false, \n  \"count\" : 3, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n", + "description": "\n**A JSON object 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](../AqlQueryCursor/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/Functions/Geo.html) using the *NEAR* function as follows: \n\n FOR doc IN NEAR(@@collection, @latitude, @longitude, @limit)\n RETURN doc`\n\n\n\n\n**Warning:** \nThis route should no longer be used.\nAll endpoints for Simple Queries are deprecated from version 3.4.0 on.\nThey are superseded by AQL queries.\n\n\n\n\n\n\n**Example:**\n Without distance\n\n
shell> curl -X PUT --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : [ \n    { \n      \"_key\" : \"105426\", \n      \"_id\" : \"products/105426\", \n      \"_rev\" : \"_YOn1XgW--D\", \n      \"name\" : \"Name/-0.002/\", \n      \"loc\" : [ \n        -0.002, \n        0 \n      ] \n    }, \n    { \n      \"_key\" : \"105432\", \n      \"_id\" : \"products/105432\", \n      \"_rev\" : \"_YOn1XgW--H\", \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\n\n\n\n**Example:**\n With distance\n\n
shell> curl -X PUT --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : [ \n    { \n      \"_id\" : \"products/105477\", \n      \"_key\" : \"105477\", \n      \"_rev\" : \"_YOn1Xie--_\", \n      \"loc\" : [ \n        -0.002, \n        0 \n      ], \n      \"name\" : \"Name/-0.002/\", \n      \"distance\" : 222.3898532891175 \n    }, \n    { \n      \"_id\" : \"products/105483\", \n      \"_key\" : \"105483\", \n      \"_rev\" : \"_YOn1Xie--D\", \n      \"loc\" : [ \n        0.002, \n        0 \n      ], \n      \"name\" : \"Name/0.002/\", \n      \"distance\" : 222.3898532891175 \n    }, \n    { \n      \"_id\" : \"products/105486\", \n      \"_key\" : \"105486\", \n      \"_rev\" : \"_YOn1Xie--F\", \n      \"loc\" : [ \n        0.004, \n        0 \n      ], \n      \"name\" : \"Name/0.004/\", \n      \"distance\" : 444.779706578235 \n    } \n  ], \n  \"hasMore\" : false, \n  \"count\" : 3, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n", "parameters": [ { "in": "body", @@ -13475,7 +13475,7 @@ }, "/_api/simple/range": { "put": { - "description": "\n**A JSON object 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](../AqlQueryCursor/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 FOR doc IN @@collection \n FILTER doc.value >= @left && doc.value < @right \n LIMIT @skip, @limit \n RETURN doc`\n\n\n\n\n**Warning:** \nThis route should no longer be used.\nAll endpoints for Simple Queries are deprecated from version 3.4.0 on.\nThey are superseded by AQL queries.\n\n\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PUT --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : [ \n    { \n      \"_key\" : \"105510\", \n      \"_id\" : \"products/105510\", \n      \"_rev\" : \"_YNEaSHa--_\", \n      \"i\" : 2 \n    }, \n    { \n      \"_key\" : \"105513\", \n      \"_id\" : \"products/105513\", \n      \"_rev\" : \"_YNEaSHa--B\", \n      \"i\" : 3 \n    } \n  ], \n  \"hasMore\" : false, \n  \"count\" : 2, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n", + "description": "\n**A JSON object 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](../AqlQueryCursor/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 FOR doc IN @@collection \n FILTER doc.value >= @left && doc.value < @right \n LIMIT @skip, @limit \n RETURN doc`\n\n\n\n\n**Warning:** \nThis route should no longer be used.\nAll endpoints for Simple Queries are deprecated from version 3.4.0 on.\nThey are superseded by AQL queries.\n\n\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PUT --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : [ \n    { \n      \"_key\" : \"105519\", \n      \"_id\" : \"products/105519\", \n      \"_rev\" : \"_YOn1Xke--B\", \n      \"i\" : 2 \n    }, \n    { \n      \"_key\" : \"105522\", \n      \"_id\" : \"products/105522\", \n      \"_rev\" : \"_YOn1Xke--D\", \n      \"i\" : 3 \n    } \n  ], \n  \"hasMore\" : false, \n  \"count\" : 2, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n", "parameters": [ { "in": "body", @@ -13645,7 +13645,7 @@ }, "/_api/simple/within": { "put": { - "description": "\n**A JSON object 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](../AqlQueryCursor/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/Functions/Geo.html) using the *WITHIN* function as follows: \n\n FOR doc IN WITHIN(@@collection, @latitude, @longitude, @radius, @distanceAttributeName)\n RETURN doc\n\n\n\n\n**Warning:** \nThis route should no longer be used.\nAll endpoints for Simple Queries are deprecated from version 3.4.0 on.\nThey are superseded by AQL queries.\n\n\n\n\n\n\n**Example:**\n Without distance\n\n
shell> curl -X PUT --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : [ \n    { \n      \"_key\" : \"105830\", \n      \"_id\" : \"products/105830\", \n      \"_rev\" : \"_YNEaSW---D\", \n      \"name\" : \"Name/-0.002/\", \n      \"loc\" : [ \n        -0.002, \n        0 \n      ] \n    }, \n    { \n      \"_key\" : \"105836\", \n      \"_id\" : \"products/105836\", \n      \"_rev\" : \"_YNEaSW---H\", \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\n\n\n\n**Example:**\n With distance\n\n
shell> curl -X PUT --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : [ \n    { \n      \"_id\" : \"products/105881\", \n      \"_key\" : \"105881\", \n      \"_rev\" : \"_YNEaSYG--B\", \n      \"loc\" : [ \n        -0.002, \n        0 \n      ], \n      \"name\" : \"Name/-0.002/\", \n      \"distance\" : 222.3898532891175 \n    }, \n    { \n      \"_id\" : \"products/105887\", \n      \"_key\" : \"105887\", \n      \"_rev\" : \"_YNEaSYG--F\", \n      \"loc\" : [ \n        0.002, \n        0 \n      ], \n      \"name\" : \"Name/0.002/\", \n      \"distance\" : 222.3898532891175 \n    }, \n    { \n      \"_id\" : \"products/105890\", \n      \"_key\" : \"105890\", \n      \"_rev\" : \"_YNEaSYG--H\", \n      \"loc\" : [ \n        0.004, \n        0 \n      ], \n      \"name\" : \"Name/0.004/\", \n      \"distance\" : 444.779706578235 \n    } \n  ], \n  \"hasMore\" : false, \n  \"count\" : 3, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n", + "description": "\n**A JSON object 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](../AqlQueryCursor/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/Functions/Geo.html) using the *WITHIN* function as follows: \n\n FOR doc IN WITHIN(@@collection, @latitude, @longitude, @radius, @distanceAttributeName)\n RETURN doc\n\n\n\n\n**Warning:** \nThis route should no longer be used.\nAll endpoints for Simple Queries are deprecated from version 3.4.0 on.\nThey are superseded by AQL queries.\n\n\n\n\n\n\n**Example:**\n Without distance\n\n
shell> curl -X PUT --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : [ \n    { \n      \"_key\" : \"105839\", \n      \"_id\" : \"products/105839\", \n      \"_rev\" : \"_YOn1Xx6--D\", \n      \"name\" : \"Name/-0.002/\", \n      \"loc\" : [ \n        -0.002, \n        0 \n      ] \n    }, \n    { \n      \"_key\" : \"105845\", \n      \"_id\" : \"products/105845\", \n      \"_rev\" : \"_YOn1Xy---_\", \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\n\n\n\n**Example:**\n With distance\n\n
shell> curl -X PUT --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : [ \n    { \n      \"_id\" : \"products/105890\", \n      \"_key\" : \"105890\", \n      \"_rev\" : \"_YOn1X1G--H\", \n      \"loc\" : [ \n        -0.002, \n        0 \n      ], \n      \"name\" : \"Name/-0.002/\", \n      \"distance\" : 222.3898532891175 \n    }, \n    { \n      \"_id\" : \"products/105896\", \n      \"_key\" : \"105896\", \n      \"_rev\" : \"_YOn1X1K--B\", \n      \"loc\" : [ \n        0.002, \n        0 \n      ], \n      \"name\" : \"Name/0.002/\", \n      \"distance\" : 222.3898532891175 \n    }, \n    { \n      \"_id\" : \"products/105899\", \n      \"_key\" : \"105899\", \n      \"_rev\" : \"_YOn1X1K--D\", \n      \"loc\" : [ \n        0.004, \n        0 \n      ], \n      \"name\" : \"Name/0.004/\", \n      \"distance\" : 444.779706578235 \n    } \n  ], \n  \"hasMore\" : false, \n  \"count\" : 3, \n  \"error\" : false, \n  \"code\" : 201 \n}\n
\n\n\n\n\n", "parameters": [ { "in": "body", @@ -13679,7 +13679,7 @@ }, "/_api/simple/within-rectangle": { "put": { - "description": "\n**A JSON object 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](../AqlQueryCursor/README.md) for details.\n\n\n\n\n**Warning:** \nThis route should no longer be used.\nAll endpoints for Simple Queries are deprecated from version 3.4.0 on.\nThey are superseded by AQL queries.\n\n\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PUT --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : [ \n    { \n      \"_key\" : \"105947\", \n      \"_id\" : \"products/105947\", \n      \"_rev\" : \"_YNEaSaK--J\", \n      \"name\" : \"Name/0.008/\", \n      \"loc\" : [ \n        0.008, \n        0 \n      ] \n    }, \n    { \n      \"_key\" : \"105944\", \n      \"_id\" : \"products/105944\", \n      \"_rev\" : \"_YNEaSaK--H\", \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\n\n\n", + "description": "\n**A JSON object 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](../AqlQueryCursor/README.md) for details.\n\n\n\n\n**Warning:** \nThis route should no longer be used.\nAll endpoints for Simple Queries are deprecated from version 3.4.0 on.\nThey are superseded by AQL queries.\n\n\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PUT --header 'accept: application/json' --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 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : [ \n    { \n      \"_key\" : \"105956\", \n      \"_id\" : \"products/105956\", \n      \"_rev\" : \"_YOn1X3O--J\", \n      \"name\" : \"Name/0.008/\", \n      \"loc\" : [ \n        0.008, \n        0 \n      ] \n    }, \n    { \n      \"_key\" : \"105953\", \n      \"_id\" : \"products/105953\", \n      \"_rev\" : \"_YOn1X3O--H\", \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\n\n\n", "parameters": [ { "in": "body", @@ -13713,7 +13713,7 @@ }, "/_api/tasks": { "post": { - "description": "\n**A JSON object 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\n**HTTP 200**\n*A json document with these Properties is returned:*\n\nThe task was registered\n\n- **code**: The status code, 200 in this case.\n- **created**: The timestamp when this task was created\n- **database**: the database this task belongs to\n- **period**: this task should run each `period` seconds\n- **command**: the javascript function for this task\n- **error**: *false* in this case\n- **offset**: time offset in seconds from the created timestamp\n- **type**: What type of task is this [ `periodic`, `timed`]\n - periodic are tasks that repeat periodically\n - timed are tasks that execute once at a specific time\n- **id**: A string identifying the task\n\n\n\n\n**Example:**\n \n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/tasks/ <<EOF\n{ \n  \"name\" : \"SampleTask\", \n  \"command\" : \"(function(params) { require('@arangodb').print(params); })(params)\", \n  \"params\" : { \n    \"foo\" : \"bar\", \n    \"bar\" : \"foo\" \n  }, \n  \"period\" : 2 \n}\nEOF\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"id\" : \"105960\", \n  \"name\" : \"SampleTask\", \n  \"created\" : 1550241780.1720579, \n  \"type\" : \"periodic\", \n  \"period\" : 2, \n  \"offset\" : 0, \n  \"command\" : \"(function (params) { (function(params) { require('@arangodb').print(params); })(params) } )(params);\", \n  \"database\" : \"_system\" \n}\nshell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/tasks/105960\n\n
\n\n\n\n\n", + "description": "\n**A JSON object 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\n**HTTP 200**\n*A json document with these Properties is returned:*\n\nThe task was registered\n\n- **code**: The status code, 200 in this case.\n- **created**: The timestamp when this task was created\n- **database**: the database this task belongs to\n- **period**: this task should run each `period` seconds\n- **command**: the javascript function for this task\n- **error**: *false* in this case\n- **offset**: time offset in seconds from the created timestamp\n- **type**: What type of task is this [ `periodic`, `timed`]\n - periodic are tasks that repeat periodically\n - timed are tasks that execute once at a specific time\n- **id**: A string identifying the task\n\n\n\n\n**Example:**\n \n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/tasks/ <<EOF\n{ \n  \"name\" : \"SampleTask\", \n  \"command\" : \"(function(params) { require('@arangodb').print(params); })(params)\", \n  \"params\" : { \n    \"foo\" : \"bar\", \n    \"bar\" : \"foo\" \n  }, \n  \"period\" : 2 \n}\nEOF\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"id\" : \"105969\", \n  \"name\" : \"SampleTask\", \n  \"created\" : 1550658791.3249488, \n  \"type\" : \"periodic\", \n  \"period\" : 2, \n  \"offset\" : 0, \n  \"command\" : \"(function (params) { (function(params) { require('@arangodb').print(params); })(params) } )(params);\", \n  \"database\" : \"_system\" \n}\nshell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/tasks/105969\n\n
\n\n\n\n\n", "parameters": [ { "in": "body", @@ -13751,7 +13751,7 @@ }, "/_api/tasks/": { "get": { - "description": "\n\nfetches all existing tasks on the server\n\n\n**HTTP 200**\n*A json document with these Properties is returned:*\n\nThe list of tasks\n\n[\n - **name**: The fully qualified name of the user function\n - **created**: The timestamp when this task was created\n - **database**: the database this task belongs to\n - **period**: this task should run each `period` seconds\n - **command**: the javascript function for this task\n - **offset**: time offset in seconds from the created timestamp\n - **type**: What type of task is this [ `periodic`, `timed`]\n - periodic are tasks that repeat periodically\n - timed are tasks that execute once at a specific time\n - **id**: A string identifying the task\n]\n\n\n\n\n**Example:**\n Fetching all tasks\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/tasks\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n[ \n  { \n    \"id\" : \"55\", \n    \"name\" : \"user-defined task\", \n    \"created\" : 1550241755.3885667, \n    \"type\" : \"periodic\", \n    \"period\" : 1, \n    \"offset\" : 0.000001, \n    \"command\" : \"(function (params) { (function () {\\n        require('@arangodb/foxx/queues/manager').manage();\\n      })(params) } )(params);\", \n    \"database\" : \"_system\" \n  } \n]\n
\n\n\n\n\n", + "description": "\n\nfetches all existing tasks on the server\n\n\n**HTTP 200**\n*A json document with these Properties is returned:*\n\nThe list of tasks\n\n[\n - **name**: The fully qualified name of the user function\n - **created**: The timestamp when this task was created\n - **database**: the database this task belongs to\n - **period**: this task should run each `period` seconds\n - **command**: the javascript function for this task\n - **offset**: time offset in seconds from the created timestamp\n - **type**: What type of task is this [ `periodic`, `timed`]\n - periodic are tasks that repeat periodically\n - timed are tasks that execute once at a specific time\n - **id**: A string identifying the task\n]\n\n\n\n\n**Example:**\n Fetching all tasks\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/tasks\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n[ \n  { \n    \"id\" : \"55\", \n    \"name\" : \"user-defined task\", \n    \"created\" : 1550658763.4988394, \n    \"type\" : \"periodic\", \n    \"period\" : 1, \n    \"offset\" : 0.000001, \n    \"command\" : \"(function (params) { (function () {\\n        require('@arangodb/foxx/queues/manager').manage();\\n      })(params) } )(params);\", \n    \"database\" : \"_system\" \n  } \n]\n
\n\n\n\n\n", "parameters": [], "produces": [ "application/json" @@ -13815,7 +13815,7 @@ "x-hints": "" }, "get": { - "description": "\n\nfetches one existing task on the server specified by *id*\n\n\n**HTTP 200**\n*A json document with these Properties is returned:*\n\nThe requested task\n\n- **name**: The fully qualified name of the user function\n- **created**: The timestamp when this task was created\n- **database**: the database this task belongs to\n- **period**: this task should run each `period` seconds\n- **command**: the javascript function for this task\n- **offset**: time offset in seconds from the created timestamp\n- **type**: What type of task is this [ `periodic`, `timed`]\n - periodic are tasks that repeat periodically\n - timed are tasks that execute once at a specific time\n- **id**: A string identifying the task\n\n\n\n\n**Example:**\n Fetching a single task by its id\n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/tasks <<EOF\n{\"id\":\"testTask\",\"command\":\"console.log('Hello from task!');\",\"offset\":10000}\nEOF\n\nshell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/tasks/testTask\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"id\" : \"testTask\", \n  \"name\" : \"user-defined task\", \n  \"created\" : 1550241780.1837342, \n  \"type\" : \"timed\", \n  \"offset\" : 10000, \n  \"command\" : \"(function (params) { console.log('Hello from task!'); } )(params);\", \n  \"database\" : \"_system\" \n}\n
\n\n\n\n\n**Example:**\n Trying to fetch a non-existing task\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/tasks/non-existing-task\n\nHTTP/1.1 Not Found\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"task not found\", \n  \"code\" : 404, \n  \"errorNum\" : 1852 \n}\n
\n\n\n\n\n", + "description": "\n\nfetches one existing task on the server specified by *id*\n\n\n**HTTP 200**\n*A json document with these Properties is returned:*\n\nThe requested task\n\n- **name**: The fully qualified name of the user function\n- **created**: The timestamp when this task was created\n- **database**: the database this task belongs to\n- **period**: this task should run each `period` seconds\n- **command**: the javascript function for this task\n- **offset**: time offset in seconds from the created timestamp\n- **type**: What type of task is this [ `periodic`, `timed`]\n - periodic are tasks that repeat periodically\n - timed are tasks that execute once at a specific time\n- **id**: A string identifying the task\n\n\n\n\n**Example:**\n Fetching a single task by its id\n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/tasks <<EOF\n{\"id\":\"testTask\",\"command\":\"console.log('Hello from task!');\",\"offset\":10000}\nEOF\n\nshell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/tasks/testTask\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"id\" : \"testTask\", \n  \"name\" : \"user-defined task\", \n  \"created\" : 1550658791.3349102, \n  \"type\" : \"timed\", \n  \"offset\" : 10000, \n  \"command\" : \"(function (params) { console.log('Hello from task!'); } )(params);\", \n  \"database\" : \"_system\" \n}\n
\n\n\n\n\n**Example:**\n Trying to fetch a non-existing task\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/tasks/non-existing-task\n\nHTTP/1.1 Not Found\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"task not found\", \n  \"code\" : 404, \n  \"errorNum\" : 1852 \n}\n
\n\n\n\n\n", "parameters": [ { "description": "The id of the task to fetch.\n\n", @@ -13847,7 +13847,7 @@ "x-hints": "" }, "put": { - "description": "\n**A JSON object 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\n\n**Example:**\n \n\n
shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/tasks/sampleTask <<EOF\n{ \n  \"id\" : \"SampleTask\", \n  \"name\" : \"SampleTask\", \n  \"command\" : \"(function(params) { require('@arangodb').print(params); })(params)\", \n  \"params\" : { \n    \"foo\" : \"bar\", \n    \"bar\" : \"foo\" \n  }, \n  \"period\" : 2 \n}\nEOF\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"id\" : \"sampleTask\", \n  \"name\" : \"SampleTask\", \n  \"created\" : 1550241780.1868074, \n  \"type\" : \"periodic\", \n  \"period\" : 2, \n  \"offset\" : 0, \n  \"command\" : \"(function (params) { (function(params) { require('@arangodb').print(params); })(params) } )(params);\", \n  \"database\" : \"_system\" \n}\n
\n\n\n\n", + "description": "\n**A JSON object 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\n\n**Example:**\n \n\n
shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/tasks/sampleTask <<EOF\n{ \n  \"id\" : \"SampleTask\", \n  \"name\" : \"SampleTask\", \n  \"command\" : \"(function(params) { require('@arangodb').print(params); })(params)\", \n  \"params\" : { \n    \"foo\" : \"bar\", \n    \"bar\" : \"foo\" \n  }, \n  \"period\" : 2 \n}\nEOF\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"id\" : \"sampleTask\", \n  \"name\" : \"SampleTask\", \n  \"created\" : 1550658791.336974, \n  \"type\" : \"periodic\", \n  \"period\" : 2, \n  \"offset\" : 0, \n  \"command\" : \"(function (params) { (function(params) { require('@arangodb').print(params); })(params) } )(params);\", \n  \"database\" : \"_system\" \n}\n
\n\n\n\n", "parameters": [ { "description": "The id of the task to create\n\n", @@ -13883,7 +13883,7 @@ }, "/_api/transaction": { "post": { - "description": "\n**A JSON object with these properties is required:**\n\n - **maxTransactionSize**: Transaction size limit in bytes. Honored by the RocksDB storage engine only.\n - **lockTimeout**: an optional numeric value that can be used to set a\n timeout for waiting on collection locks. If not specified, a default\n value will be used. Setting *lockTimeout* to *0* will make ArangoDB\n not time out waiting for a lock.\n - **waitForSync**: an optional boolean flag that, if set, will force the\n transaction to write all data to disk before returning.\n - **params**: optional arguments passed to *action*.\n - **action**: the actual transaction operations to be executed, in the\n form of stringified JavaScript code. The code will be executed on server\n side, with late binding. It is thus critical that the code specified in\n *action* properly sets up all the variables it needs.\n If the code specified in *action* ends with a return statement, the\n value returned will also be returned by the REST API in the *result*\n attribute if the transaction committed successfully.\n - **collections**: *collections* must be a JSON object that can have one or all sub-attributes\n *read*, *write* or *exclusive*, each being an array of collection names or a\n single collection name as string. Collections that will be written to in the\n transaction must be declared with the *write* or *exclusive* attribute or it\n will fail, whereas non-declared collections from which is solely read will be\n added lazily. The optional sub-attribute *allowImplicit* can be set to *false*\n to let transactions fail in case of undeclared collections for reading.\n Collections for reading should be fully declared if possible, to avoid\n deadlocks.\n See [locking and isolation](../../Manual/Transactions/LockingAndIsolation.html)\n for more information.\n\n\n\n\nThe transaction description must be passed in the body of the POST request.\n\nIf the transaction is fully executed and committed on the server,\n*HTTP 200* will be returned. Additionally, the return value of the\ncode defined in *action* will be returned in the *result* attribute.\n\nFor successfully committed transactions, 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 transaction\n\nIf the transaction 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\nIf a transaction fails to commit, either by an exception thrown in the\n*action* code, or by an internal error, the server will respond with\nan error.\nAny other errors will be returned with any of the return codes\n*HTTP 400*, *HTTP 409*, or *HTTP 500*.\n\n\n\n\n**Example:**\n Executing a transaction on a single collection\n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/transaction <<EOF\n{ \n  \"collections\" : { \n    \"write\" : \"products\" \n  }, \n  \"action\" : \"function () { var db = require('@arangodb').db; db.products.save({});  return db.products.count(); }\" \n}\nEOF\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"result\" : 1 \n}\n
\n\n\n\n\n**Example:**\n Executing a transaction using multiple collections\n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/transaction <<EOF\n{ \n  \"collections\" : { \n    \"write\" : [ \n      \"products\", \n      \"materials\" \n    ] \n  }, \n  \"action\" : \"function () {var db = require('@arangodb').db;db.products.save({});db.materials.save({});return 'worked!';}\" \n}\nEOF\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"result\" : \"worked!\" \n}\n
\n\n\n\n\n**Example:**\n Aborting a transaction due to an internal error\n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/transaction <<EOF\n{ \n  \"collections\" : { \n    \"write\" : \"products\" \n  }, \n  \"action\" : \"function () {var db = require('@arangodb').db;db.products.save({ _key: 'abc'});db.products.save({ _key: 'abc'});}\" \n}\nEOF\n\nHTTP/1.1 Conflict\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"unique constraint violated - in index 0 of type primary over '_key'; conflicting key: abc\", \n  \"code\" : 409, \n  \"errorNum\" : 1210 \n}\n
\n\n\n\n\n**Example:**\n Aborting a transaction by explicitly throwing an exception\n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/transaction <<EOF\n{ \n  \"collections\" : { \n    \"read\" : \"products\" \n  }, \n  \"action\" : \"function () { throw 'doh!'; }\" \n}\nEOF\n\nHTTP/1.1 Internal Server Error\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"doh!\", \n  \"code\" : 500, \n  \"errorNum\" : 1650 \n}\n
\n\n\n\n\n**Example:**\n Referring to a non-existing collection\n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/transaction <<EOF\n{ \n  \"collections\" : { \n    \"read\" : \"products\" \n  }, \n  \"action\" : \"function () { return true; }\" \n}\nEOF\n\nHTTP/1.1 Not Found\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"collection or view not found: products\", \n  \"code\" : 404, \n  \"errorNum\" : 1203 \n}\n
\n\n\n\n\n", + "description": "\n**A JSON object with these properties is required:**\n\n - **maxTransactionSize**: Transaction size limit in bytes. Honored by the RocksDB storage engine only.\n - **lockTimeout**: an optional numeric value that can be used to set a\n timeout for waiting on collection locks. If not specified, a default\n value will be used. Setting *lockTimeout* to *0* will make ArangoDB\n not time out waiting for a lock.\n - **waitForSync**: an optional boolean flag that, if set, will force the\n transaction to write all data to disk before returning.\n - **params**: optional arguments passed to *action*.\n - **action**: the actual transaction operations to be executed, in the\n form of stringified JavaScript code. The code will be executed on server\n side, with late binding. It is thus critical that the code specified in\n *action* properly sets up all the variables it needs.\n If the code specified in *action* ends with a return statement, the\n value returned will also be returned by the REST API in the *result*\n attribute if the transaction committed successfully.\n - **collections**: *collections* must be a JSON object that can have one or all sub-attributes\n *read*, *write* or *exclusive*, each being an array of collection names or a\n single collection name as string. Collections that will be written to in the\n transaction must be declared with the *write* or *exclusive* attribute or it\n will fail, whereas non-declared collections from which is solely read will be\n added lazily. The optional sub-attribute *allowImplicit* can be set to *false*\n to let transactions fail in case of undeclared collections for reading.\n Collections for reading should be fully declared if possible, to avoid\n deadlocks.\n See [locking and isolation](../../Manual/Transactions/LockingAndIsolation.html)\n for more information.\n\n\n\n\nThe transaction description must be passed in the body of the POST request.\n\nIf the transaction is fully executed and committed on the server,\n*HTTP 200* will be returned. Additionally, the return value of the\ncode defined in *action* will be returned in the *result* attribute.\n\nFor successfully committed transactions, 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 transaction\n\nIf the transaction 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\nIf a transaction fails to commit, either by an exception thrown in the\n*action* code, or by an internal error, the server will respond with\nan error.\nAny other errors will be returned with any of the return codes\n*HTTP 400*, *HTTP 409*, or *HTTP 500*.\n\n\n\n\n**Example:**\n Executing a transaction on a single collection\n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/transaction <<EOF\n{ \n  \"collections\" : { \n    \"write\" : \"products\" \n  }, \n  \"action\" : \"function () { var db = require('@arangodb').db; db.products.save({});  return db.products.count(); }\" \n}\nEOF\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"result\" : 1 \n}\n
\n\n\n\n\n**Example:**\n Executing a transaction using multiple collections\n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/transaction <<EOF\n{ \n  \"collections\" : { \n    \"write\" : [ \n      \"products\", \n      \"materials\" \n    ] \n  }, \n  \"action\" : \"function () {var db = require('@arangodb').db;db.products.save({});db.materials.save({});return 'worked!';}\" \n}\nEOF\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"result\" : \"worked!\" \n}\n
\n\n\n\n\n**Example:**\n Aborting a transaction due to an internal error\n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/transaction <<EOF\n{ \n  \"collections\" : { \n    \"write\" : \"products\" \n  }, \n  \"action\" : \"function () {var db = require('@arangodb').db;db.products.save({ _key: 'abc'});db.products.save({ _key: 'abc'});}\" \n}\nEOF\n\nHTTP/1.1 Conflict\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \" - in index 0 of type primary over '_key'; conflicting key: abc\", \n  \"code\" : 409, \n  \"errorNum\" : 1210 \n}\n
\n\n\n\n\n**Example:**\n Aborting a transaction by explicitly throwing an exception\n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/transaction <<EOF\n{ \n  \"collections\" : { \n    \"read\" : \"products\" \n  }, \n  \"action\" : \"function () { throw 'doh!'; }\" \n}\nEOF\n\nHTTP/1.1 Internal Server Error\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"doh!\", \n  \"code\" : 500, \n  \"errorNum\" : 1650 \n}\n
\n\n\n\n\n**Example:**\n Referring to a non-existing collection\n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/transaction <<EOF\n{ \n  \"collections\" : { \n    \"read\" : \"products\" \n  }, \n  \"action\" : \"function () { return true; }\" \n}\nEOF\n\nHTTP/1.1 Not Found\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : true, \n  \"errorMessage\" : \"collection or view not found: products\", \n  \"code\" : 404, \n  \"errorNum\" : 1203 \n}\n
\n\n\n\n\n", "parameters": [ { "in": "body", @@ -13920,7 +13920,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\n**A JSON object 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 its edges.\n - *Array* -> containing any combination of the above.\n If there is at least one *\"exclude\"* or *\"prune\"* respectively\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 preferred.\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\n\n**Warning:** \nThis route should no longer be used.\nIt is considered as deprecated from version 3.4.0 on.\nIt is superseded by AQL graph traversal.\n\n\n\n\n\n\n**Example:**\n 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\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\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_key\" : \"alice\", \n          \"_id\" : \"persons/alice\", \n          \"_rev\" : \"_YNEaS62--_\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_key\" : \"bob\", \n          \"_id\" : \"persons/bob\", \n          \"_rev\" : \"_YNEaS66--_\", \n          \"name\" : \"Bob\" \n        }, \n        { \n          \"_key\" : \"charlie\", \n          \"_id\" : \"persons/charlie\", \n          \"_rev\" : \"_YNEaS66--B\", \n          \"name\" : \"Charlie\" \n        }, \n        { \n          \"_key\" : \"dave\", \n          \"_id\" : \"persons/dave\", \n          \"_rev\" : \"_YNEaS66--D\", \n          \"name\" : \"Dave\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaS62--_\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106906\", \n              \"_id\" : \"knows/106906\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaS66--H\", \n              \"vertex\" : \"alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaS62--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaS66--_\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106906\", \n              \"_id\" : \"knows/106906\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaS66--H\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106910\", \n              \"_id\" : \"knows/106910\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\", \n              \"_rev\" : \"_YNEaS7---_\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaS62--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaS66--_\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"charlie\", \n              \"_id\" : \"persons/charlie\", \n              \"_rev\" : \"_YNEaS66--B\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106906\", \n              \"_id\" : \"knows/106906\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaS66--H\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106913\", \n              \"_id\" : \"knows/106913\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\", \n              \"_rev\" : \"_YNEaS7---B\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaS62--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaS66--_\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"dave\", \n              \"_id\" : \"persons/dave\", \n              \"_rev\" : \"_YNEaS66--D\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n Follow only inbound edges\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_key\" : \"alice\", \n          \"_id\" : \"persons/alice\", \n          \"_rev\" : \"_YNEaSyG--_\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_key\" : \"eve\", \n          \"_id\" : \"persons/eve\", \n          \"_rev\" : \"_YNEaSyK--F\", \n          \"name\" : \"Eve\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSyG--_\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106604\", \n              \"_id\" : \"knows/106604\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSyO--B\", \n              \"vertex\" : \"eve\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSyG--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YNEaSyK--F\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n Follow any direction of edges\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_key\" : \"alice\", \n          \"_id\" : \"persons/alice\", \n          \"_rev\" : \"_YNEaSim--_\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_key\" : \"bob\", \n          \"_id\" : \"persons/bob\", \n          \"_rev\" : \"_YNEaSim--B\", \n          \"name\" : \"Bob\" \n        }, \n        { \n          \"_key\" : \"charlie\", \n          \"_id\" : \"persons/charlie\", \n          \"_rev\" : \"_YNEaSim--D\", \n          \"name\" : \"Charlie\" \n        }, \n        { \n          \"_key\" : \"dave\", \n          \"_id\" : \"persons/dave\", \n          \"_rev\" : \"_YNEaSim--F\", \n          \"name\" : \"Dave\" \n        }, \n        { \n          \"_key\" : \"eve\", \n          \"_id\" : \"persons/eve\", \n          \"_rev\" : \"_YNEaSim--H\", \n          \"name\" : \"Eve\" \n        }, \n        { \n          \"_key\" : \"alice\", \n          \"_id\" : \"persons/alice\", \n          \"_rev\" : \"_YNEaSim--_\", \n          \"name\" : \"Alice\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSim--_\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106087\", \n              \"_id\" : \"knows/106087\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSiq--_\", \n              \"vertex\" : \"alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSim--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSim--B\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106087\", \n              \"_id\" : \"knows/106087\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSiq--_\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106091\", \n              \"_id\" : \"knows/106091\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\", \n              \"_rev\" : \"_YNEaSiq--B\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSim--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSim--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"charlie\", \n              \"_id\" : \"persons/charlie\", \n              \"_rev\" : \"_YNEaSim--D\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106087\", \n              \"_id\" : \"knows/106087\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSiq--_\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106094\", \n              \"_id\" : \"knows/106094\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\", \n              \"_rev\" : \"_YNEaSiq--D\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSim--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSim--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"dave\", \n              \"_id\" : \"persons/dave\", \n              \"_rev\" : \"_YNEaSim--F\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106087\", \n              \"_id\" : \"knows/106087\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSiq--_\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106100\", \n              \"_id\" : \"knows/106100\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSiq--H\", \n              \"vertex\" : \"eve\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSim--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSim--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YNEaSim--H\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106087\", \n              \"_id\" : \"knows/106087\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSiq--_\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106100\", \n              \"_id\" : \"knows/106100\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSiq--H\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106097\", \n              \"_id\" : \"knows/106097\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSiq--F\", \n              \"vertex\" : \"eve\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSim--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSim--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YNEaSim--H\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSim--_\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n Excluding *Charlie* and *Bob*\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_key\" : \"alice\", \n          \"_id\" : \"persons/alice\", \n          \"_rev\" : \"_YNEaStu--_\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_key\" : \"dave\", \n          \"_id\" : \"persons/dave\", \n          \"_rev\" : \"_YNEaStu--F\", \n          \"name\" : \"Dave\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaStu--_\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106453\", \n              \"_id\" : \"knows/106453\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSty--_\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106460\", \n              \"_id\" : \"knows/106460\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\", \n              \"_rev\" : \"_YNEaSty--D\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaStu--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaStu--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"dave\", \n              \"_id\" : \"persons/dave\", \n              \"_rev\" : \"_YNEaStu--F\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n Do not follow edges from *Bob*\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_key\" : \"alice\", \n          \"_id\" : \"persons/alice\", \n          \"_rev\" : \"_YNEaSv6--_\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_key\" : \"bob\", \n          \"_id\" : \"persons/bob\", \n          \"_rev\" : \"_YNEaSv6--B\", \n          \"name\" : \"Bob\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSv6--_\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106526\", \n              \"_id\" : \"knows/106526\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSw---_\", \n              \"vertex\" : \"alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSv6--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSv6--B\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n Visit only nodes in a depth of at least 2\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_key\" : \"charlie\", \n          \"_id\" : \"persons/charlie\", \n          \"_rev\" : \"_YNEaS4m--D\", \n          \"name\" : \"Charlie\" \n        }, \n        { \n          \"_key\" : \"dave\", \n          \"_id\" : \"persons/dave\", \n          \"_rev\" : \"_YNEaS4m--F\", \n          \"name\" : \"Dave\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106833\", \n              \"_id\" : \"knows/106833\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaS4q--B\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106837\", \n              \"_id\" : \"knows/106837\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\", \n              \"_rev\" : \"_YNEaS4q--D\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaS4m--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaS4m--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"charlie\", \n              \"_id\" : \"persons/charlie\", \n              \"_rev\" : \"_YNEaS4m--D\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106833\", \n              \"_id\" : \"knows/106833\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaS4q--B\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106840\", \n              \"_id\" : \"knows/106840\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\", \n              \"_rev\" : \"_YNEaS4q--F\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaS4m--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaS4m--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"dave\", \n              \"_id\" : \"persons/dave\", \n              \"_rev\" : \"_YNEaS4m--F\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n Visit only nodes in a depth of at most 1\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_key\" : \"alice\", \n          \"_id\" : \"persons/alice\", \n          \"_rev\" : \"_YNEaS0S--_\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_key\" : \"bob\", \n          \"_id\" : \"persons/bob\", \n          \"_rev\" : \"_YNEaS0S--B\", \n          \"name\" : \"Bob\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaS0S--_\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106663\", \n              \"_id\" : \"knows/106663\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaS0W--F\", \n              \"vertex\" : \"alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaS0S--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaS0S--B\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n Using a visitor function to return vertex ids only\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\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\n\n\n\n**Example:**\n Count all visited nodes and return a list of nodes only\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : { \n    \"visited\" : 4, \n    \"myVertices\" : [ \n      { \n        \"_key\" : \"alice\", \n        \"_id\" : \"persons/alice\", \n        \"_rev\" : \"_YNEaTAC--_\", \n        \"name\" : \"Alice\" \n      }, \n      { \n        \"_key\" : \"bob\", \n        \"_id\" : \"persons/bob\", \n        \"_rev\" : \"_YNEaTAG--_\", \n        \"name\" : \"Bob\" \n      }, \n      { \n        \"_key\" : \"charlie\", \n        \"_id\" : \"persons/charlie\", \n        \"_rev\" : \"_YNEaTAG--B\", \n        \"name\" : \"Charlie\" \n      }, \n      { \n        \"_key\" : \"dave\", \n        \"_id\" : \"persons/dave\", \n        \"_rev\" : \"_YNEaTAG--D\", \n        \"name\" : \"Dave\" \n      } \n    ] \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n Expand only inbound edges of *Alice* and outbound edges of *Eve*\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_key\" : \"alice\", \n          \"_id\" : \"persons/alice\", \n          \"_rev\" : \"_YNEaTCK--_\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_key\" : \"eve\", \n          \"_id\" : \"persons/eve\", \n          \"_rev\" : \"_YNEaTCO--F\", \n          \"name\" : \"Eve\" \n        }, \n        { \n          \"_key\" : \"bob\", \n          \"_id\" : \"persons/bob\", \n          \"_rev\" : \"_YNEaTCO--_\", \n          \"name\" : \"Bob\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaTCK--_\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"107161\", \n              \"_id\" : \"knows/107161\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaTCS--D\", \n              \"vertex\" : \"eve\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaTCK--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YNEaTCO--F\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"107161\", \n              \"_id\" : \"knows/107161\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaTCS--D\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"107164\", \n              \"_id\" : \"knows/107164\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaTCS--F\", \n              \"vertex\" : \"eve\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaTCK--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YNEaTCO--F\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaTCO--_\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n Follow the *depthfirst* strategy\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_key\" : \"alice\", \n          \"_id\" : \"persons/alice\", \n          \"_rev\" : \"_YNEaSoS--_\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_key\" : \"bob\", \n          \"_id\" : \"persons/bob\", \n          \"_rev\" : \"_YNEaSoS--B\", \n          \"name\" : \"Bob\" \n        }, \n        { \n          \"_key\" : \"charlie\", \n          \"_id\" : \"persons/charlie\", \n          \"_rev\" : \"_YNEaSoW--_\", \n          \"name\" : \"Charlie\" \n        }, \n        { \n          \"_key\" : \"dave\", \n          \"_id\" : \"persons/dave\", \n          \"_rev\" : \"_YNEaSoW--B\", \n          \"name\" : \"Dave\" \n        }, \n        { \n          \"_key\" : \"eve\", \n          \"_id\" : \"persons/eve\", \n          \"_rev\" : \"_YNEaSoW--D\", \n          \"name\" : \"Eve\" \n        }, \n        { \n          \"_key\" : \"alice\", \n          \"_id\" : \"persons/alice\", \n          \"_rev\" : \"_YNEaSoS--_\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_key\" : \"eve\", \n          \"_id\" : \"persons/eve\", \n          \"_rev\" : \"_YNEaSoW--D\", \n          \"name\" : \"Eve\" \n        }, \n        { \n          \"_key\" : \"bob\", \n          \"_id\" : \"persons/bob\", \n          \"_rev\" : \"_YNEaSoS--B\", \n          \"name\" : \"Bob\" \n        }, \n        { \n          \"_key\" : \"charlie\", \n          \"_id\" : \"persons/charlie\", \n          \"_rev\" : \"_YNEaSoW--_\", \n          \"name\" : \"Charlie\" \n        }, \n        { \n          \"_key\" : \"dave\", \n          \"_id\" : \"persons/dave\", \n          \"_rev\" : \"_YNEaSoW--B\", \n          \"name\" : \"Dave\" \n        }, \n        { \n          \"_key\" : \"alice\", \n          \"_id\" : \"persons/alice\", \n          \"_rev\" : \"_YNEaSoS--_\", \n          \"name\" : \"Alice\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSoS--_\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106270\", \n              \"_id\" : \"knows/106270\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSoW--F\", \n              \"vertex\" : \"alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSoS--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSoS--B\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106270\", \n              \"_id\" : \"knows/106270\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSoW--F\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106274\", \n              \"_id\" : \"knows/106274\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\", \n              \"_rev\" : \"_YNEaSoW--H\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSoS--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSoS--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"charlie\", \n              \"_id\" : \"persons/charlie\", \n              \"_rev\" : \"_YNEaSoW--_\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106270\", \n              \"_id\" : \"knows/106270\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSoW--F\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106277\", \n              \"_id\" : \"knows/106277\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\", \n              \"_rev\" : \"_YNEaSoW--J\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSoS--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSoS--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"dave\", \n              \"_id\" : \"persons/dave\", \n              \"_rev\" : \"_YNEaSoW--B\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106270\", \n              \"_id\" : \"knows/106270\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSoW--F\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106283\", \n              \"_id\" : \"knows/106283\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSoa--_\", \n              \"vertex\" : \"eve\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSoS--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSoS--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YNEaSoW--D\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106270\", \n              \"_id\" : \"knows/106270\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSoW--F\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106283\", \n              \"_id\" : \"knows/106283\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSoa--_\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106280\", \n              \"_id\" : \"knows/106280\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSoW--L\", \n              \"vertex\" : \"eve\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSoS--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSoS--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YNEaSoW--D\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSoS--_\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106280\", \n              \"_id\" : \"knows/106280\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSoW--L\", \n              \"vertex\" : \"eve\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSoS--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YNEaSoW--D\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106280\", \n              \"_id\" : \"knows/106280\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSoW--L\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106283\", \n              \"_id\" : \"knows/106283\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSoa--_\", \n              \"vertex\" : \"eve\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSoS--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YNEaSoW--D\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSoS--B\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106280\", \n              \"_id\" : \"knows/106280\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSoW--L\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106283\", \n              \"_id\" : \"knows/106283\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSoa--_\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106274\", \n              \"_id\" : \"knows/106274\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\", \n              \"_rev\" : \"_YNEaSoW--H\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSoS--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YNEaSoW--D\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSoS--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"charlie\", \n              \"_id\" : \"persons/charlie\", \n              \"_rev\" : \"_YNEaSoW--_\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106280\", \n              \"_id\" : \"knows/106280\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSoW--L\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106283\", \n              \"_id\" : \"knows/106283\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSoa--_\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106277\", \n              \"_id\" : \"knows/106277\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\", \n              \"_rev\" : \"_YNEaSoW--J\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSoS--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YNEaSoW--D\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSoS--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"dave\", \n              \"_id\" : \"persons/dave\", \n              \"_rev\" : \"_YNEaSoW--B\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106280\", \n              \"_id\" : \"knows/106280\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSoW--L\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106283\", \n              \"_id\" : \"knows/106283\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSoa--_\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106270\", \n              \"_id\" : \"knows/106270\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSoW--F\", \n              \"vertex\" : \"alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSoS--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YNEaSoW--D\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSoS--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSoS--_\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n Using *postorder* ordering\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_key\" : \"charlie\", \n          \"_id\" : \"persons/charlie\", \n          \"_rev\" : \"_YNEaS9G--D\", \n          \"name\" : \"Charlie\" \n        }, \n        { \n          \"_key\" : \"dave\", \n          \"_id\" : \"persons/dave\", \n          \"_rev\" : \"_YNEaS9G--F\", \n          \"name\" : \"Dave\" \n        }, \n        { \n          \"_key\" : \"alice\", \n          \"_id\" : \"persons/alice\", \n          \"_rev\" : \"_YNEaS9G--_\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_key\" : \"eve\", \n          \"_id\" : \"persons/eve\", \n          \"_rev\" : \"_YNEaS9K--_\", \n          \"name\" : \"Eve\" \n        }, \n        { \n          \"_key\" : \"bob\", \n          \"_id\" : \"persons/bob\", \n          \"_rev\" : \"_YNEaS9G--B\", \n          \"name\" : \"Bob\" \n        }, \n        { \n          \"_key\" : \"charlie\", \n          \"_id\" : \"persons/charlie\", \n          \"_rev\" : \"_YNEaS9G--D\", \n          \"name\" : \"Charlie\" \n        }, \n        { \n          \"_key\" : \"dave\", \n          \"_id\" : \"persons/dave\", \n          \"_rev\" : \"_YNEaS9G--F\", \n          \"name\" : \"Dave\" \n        }, \n        { \n          \"_key\" : \"alice\", \n          \"_id\" : \"persons/alice\", \n          \"_rev\" : \"_YNEaS9G--_\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_key\" : \"bob\", \n          \"_id\" : \"persons/bob\", \n          \"_rev\" : \"_YNEaS9G--B\", \n          \"name\" : \"Bob\" \n        }, \n        { \n          \"_key\" : \"eve\", \n          \"_id\" : \"persons/eve\", \n          \"_rev\" : \"_YNEaS9K--_\", \n          \"name\" : \"Eve\" \n        }, \n        { \n          \"_key\" : \"alice\", \n          \"_id\" : \"persons/alice\", \n          \"_rev\" : \"_YNEaS9G--_\", \n          \"name\" : \"Alice\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106979\", \n              \"_id\" : \"knows/106979\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaS9K--B\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106983\", \n              \"_id\" : \"knows/106983\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\", \n              \"_rev\" : \"_YNEaS9K--D\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaS9G--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaS9G--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"charlie\", \n              \"_id\" : \"persons/charlie\", \n              \"_rev\" : \"_YNEaS9G--D\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106979\", \n              \"_id\" : \"knows/106979\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaS9K--B\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106986\", \n              \"_id\" : \"knows/106986\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\", \n              \"_rev\" : \"_YNEaS9K--F\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaS9G--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaS9G--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"dave\", \n              \"_id\" : \"persons/dave\", \n              \"_rev\" : \"_YNEaS9G--F\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106979\", \n              \"_id\" : \"knows/106979\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaS9K--B\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106992\", \n              \"_id\" : \"knows/106992\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaS9O--_\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106989\", \n              \"_id\" : \"knows/106989\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaS9K--H\", \n              \"vertex\" : \"eve\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaS9G--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaS9G--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YNEaS9K--_\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaS9G--_\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106979\", \n              \"_id\" : \"knows/106979\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaS9K--B\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106992\", \n              \"_id\" : \"knows/106992\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaS9O--_\", \n              \"vertex\" : \"eve\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaS9G--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaS9G--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YNEaS9K--_\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106979\", \n              \"_id\" : \"knows/106979\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaS9K--B\", \n              \"vertex\" : \"alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaS9G--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaS9G--B\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106989\", \n              \"_id\" : \"knows/106989\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaS9K--H\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106992\", \n              \"_id\" : \"knows/106992\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaS9O--_\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106983\", \n              \"_id\" : \"knows/106983\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\", \n              \"_rev\" : \"_YNEaS9K--D\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaS9G--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YNEaS9K--_\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaS9G--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"charlie\", \n              \"_id\" : \"persons/charlie\", \n              \"_rev\" : \"_YNEaS9G--D\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106989\", \n              \"_id\" : \"knows/106989\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaS9K--H\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106992\", \n              \"_id\" : \"knows/106992\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaS9O--_\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106986\", \n              \"_id\" : \"knows/106986\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\", \n              \"_rev\" : \"_YNEaS9K--F\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaS9G--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YNEaS9K--_\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaS9G--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"dave\", \n              \"_id\" : \"persons/dave\", \n              \"_rev\" : \"_YNEaS9G--F\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106989\", \n              \"_id\" : \"knows/106989\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaS9K--H\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106992\", \n              \"_id\" : \"knows/106992\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaS9O--_\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106979\", \n              \"_id\" : \"knows/106979\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaS9K--B\", \n              \"vertex\" : \"alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaS9G--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YNEaS9K--_\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaS9G--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaS9G--_\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106989\", \n              \"_id\" : \"knows/106989\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaS9K--H\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106992\", \n              \"_id\" : \"knows/106992\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaS9O--_\", \n              \"vertex\" : \"eve\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaS9G--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YNEaS9K--_\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaS9G--B\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106989\", \n              \"_id\" : \"knows/106989\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaS9K--H\", \n              \"vertex\" : \"eve\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaS9G--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YNEaS9K--_\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaS9G--_\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n Using *backward* item-ordering:\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_key\" : \"alice\", \n          \"_id\" : \"persons/alice\", \n          \"_rev\" : \"_YNEaSlW--_\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_key\" : \"eve\", \n          \"_id\" : \"persons/eve\", \n          \"_rev\" : \"_YNEaSla--B\", \n          \"name\" : \"Eve\" \n        }, \n        { \n          \"_key\" : \"bob\", \n          \"_id\" : \"persons/bob\", \n          \"_rev\" : \"_YNEaSlW--B\", \n          \"name\" : \"Bob\" \n        }, \n        { \n          \"_key\" : \"alice\", \n          \"_id\" : \"persons/alice\", \n          \"_rev\" : \"_YNEaSlW--_\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_key\" : \"dave\", \n          \"_id\" : \"persons/dave\", \n          \"_rev\" : \"_YNEaSla--_\", \n          \"name\" : \"Dave\" \n        }, \n        { \n          \"_key\" : \"charlie\", \n          \"_id\" : \"persons/charlie\", \n          \"_rev\" : \"_YNEaSlW--D\", \n          \"name\" : \"Charlie\" \n        }, \n        { \n          \"_key\" : \"bob\", \n          \"_id\" : \"persons/bob\", \n          \"_rev\" : \"_YNEaSlW--B\", \n          \"name\" : \"Bob\" \n        }, \n        { \n          \"_key\" : \"eve\", \n          \"_id\" : \"persons/eve\", \n          \"_rev\" : \"_YNEaSla--B\", \n          \"name\" : \"Eve\" \n        }, \n        { \n          \"_key\" : \"alice\", \n          \"_id\" : \"persons/alice\", \n          \"_rev\" : \"_YNEaSlW--_\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_key\" : \"dave\", \n          \"_id\" : \"persons/dave\", \n          \"_rev\" : \"_YNEaSla--_\", \n          \"name\" : \"Dave\" \n        }, \n        { \n          \"_key\" : \"charlie\", \n          \"_id\" : \"persons/charlie\", \n          \"_rev\" : \"_YNEaSlW--D\", \n          \"name\" : \"Charlie\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSlW--_\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106181\", \n              \"_id\" : \"knows/106181\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSla--J\", \n              \"vertex\" : \"eve\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSlW--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YNEaSla--B\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106181\", \n              \"_id\" : \"knows/106181\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSla--J\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106184\", \n              \"_id\" : \"knows/106184\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSla--L\", \n              \"vertex\" : \"eve\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSlW--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YNEaSla--B\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSlW--B\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106181\", \n              \"_id\" : \"knows/106181\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSla--J\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106184\", \n              \"_id\" : \"knows/106184\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSla--L\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106171\", \n              \"_id\" : \"knows/106171\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSla--D\", \n              \"vertex\" : \"alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSlW--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YNEaSla--B\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSlW--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSlW--_\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106181\", \n              \"_id\" : \"knows/106181\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSla--J\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106184\", \n              \"_id\" : \"knows/106184\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSla--L\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106178\", \n              \"_id\" : \"knows/106178\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\", \n              \"_rev\" : \"_YNEaSla--H\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSlW--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YNEaSla--B\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSlW--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"dave\", \n              \"_id\" : \"persons/dave\", \n              \"_rev\" : \"_YNEaSla--_\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106181\", \n              \"_id\" : \"knows/106181\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSla--J\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106184\", \n              \"_id\" : \"knows/106184\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSla--L\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106175\", \n              \"_id\" : \"knows/106175\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\", \n              \"_rev\" : \"_YNEaSla--F\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSlW--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YNEaSla--B\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSlW--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"charlie\", \n              \"_id\" : \"persons/charlie\", \n              \"_rev\" : \"_YNEaSlW--D\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106171\", \n              \"_id\" : \"knows/106171\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSla--D\", \n              \"vertex\" : \"alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSlW--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSlW--B\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106171\", \n              \"_id\" : \"knows/106171\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSla--D\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106184\", \n              \"_id\" : \"knows/106184\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSla--L\", \n              \"vertex\" : \"eve\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSlW--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSlW--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YNEaSla--B\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106171\", \n              \"_id\" : \"knows/106171\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSla--D\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106184\", \n              \"_id\" : \"knows/106184\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSla--L\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106181\", \n              \"_id\" : \"knows/106181\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSla--J\", \n              \"vertex\" : \"eve\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSlW--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSlW--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YNEaSla--B\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSlW--_\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106171\", \n              \"_id\" : \"knows/106171\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSla--D\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106178\", \n              \"_id\" : \"knows/106178\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\", \n              \"_rev\" : \"_YNEaSla--H\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSlW--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSlW--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"dave\", \n              \"_id\" : \"persons/dave\", \n              \"_rev\" : \"_YNEaSla--_\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106171\", \n              \"_id\" : \"knows/106171\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSla--D\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106175\", \n              \"_id\" : \"knows/106175\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\", \n              \"_rev\" : \"_YNEaSla--F\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSlW--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSlW--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"charlie\", \n              \"_id\" : \"persons/charlie\", \n              \"_rev\" : \"_YNEaSlW--D\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n Edges should only be included once globally,\nbut nodes are included every time they are visited\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_key\" : \"alice\", \n          \"_id\" : \"persons/alice\", \n          \"_rev\" : \"_YNEaSrK--_\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_key\" : \"bob\", \n          \"_id\" : \"persons/bob\", \n          \"_rev\" : \"_YNEaSrO--_\", \n          \"name\" : \"Bob\" \n        }, \n        { \n          \"_key\" : \"charlie\", \n          \"_id\" : \"persons/charlie\", \n          \"_rev\" : \"_YNEaSrO--B\", \n          \"name\" : \"Charlie\" \n        }, \n        { \n          \"_key\" : \"dave\", \n          \"_id\" : \"persons/dave\", \n          \"_rev\" : \"_YNEaSrO--D\", \n          \"name\" : \"Dave\" \n        }, \n        { \n          \"_key\" : \"eve\", \n          \"_id\" : \"persons/eve\", \n          \"_rev\" : \"_YNEaSrO--F\", \n          \"name\" : \"Eve\" \n        }, \n        { \n          \"_key\" : \"alice\", \n          \"_id\" : \"persons/alice\", \n          \"_rev\" : \"_YNEaSrK--_\", \n          \"name\" : \"Alice\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSrK--_\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106369\", \n              \"_id\" : \"knows/106369\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSrO--H\", \n              \"vertex\" : \"alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSrK--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSrO--_\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106369\", \n              \"_id\" : \"knows/106369\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSrO--H\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106373\", \n              \"_id\" : \"knows/106373\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\", \n              \"_rev\" : \"_YNEaSrO--J\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSrK--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSrO--_\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"charlie\", \n              \"_id\" : \"persons/charlie\", \n              \"_rev\" : \"_YNEaSrO--B\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106369\", \n              \"_id\" : \"knows/106369\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSrO--H\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106376\", \n              \"_id\" : \"knows/106376\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\", \n              \"_rev\" : \"_YNEaSrO--L\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSrK--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSrO--_\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"dave\", \n              \"_id\" : \"persons/dave\", \n              \"_rev\" : \"_YNEaSrO--D\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106369\", \n              \"_id\" : \"knows/106369\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSrO--H\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106382\", \n              \"_id\" : \"knows/106382\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSrS--B\", \n              \"vertex\" : \"eve\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSrK--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSrO--_\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YNEaSrO--F\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106369\", \n              \"_id\" : \"knows/106369\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSrO--H\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106382\", \n              \"_id\" : \"knows/106382\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSrS--B\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106379\", \n              \"_id\" : \"knows/106379\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSrS--_\", \n              \"vertex\" : \"eve\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSrK--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YNEaSrO--_\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YNEaSrO--F\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YNEaSrK--_\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n 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\n- *Alice* knows *Bob*\n- *Bob* knows *Alice*\n\n
shell> curl -X POST --header 'accept: application/json' --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 Internal Server Error\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\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\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\n**A JSON object 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 its edges.\n - *Array* -> containing any combination of the above.\n If there is at least one *\"exclude\"* or *\"prune\"* respectively\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 preferred.\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\n\n**Warning:** \nThis route should no longer be used.\nIt is considered as deprecated from version 3.4.0 on.\nIt is superseded by AQL graph traversal.\n\n\n\n\n\n\n**Example:**\n 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\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\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_key\" : \"alice\", \n          \"_id\" : \"persons/alice\", \n          \"_rev\" : \"_YOn1YXy--_\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_key\" : \"bob\", \n          \"_id\" : \"persons/bob\", \n          \"_rev\" : \"_YOn1YXy--B\", \n          \"name\" : \"Bob\" \n        }, \n        { \n          \"_key\" : \"charlie\", \n          \"_id\" : \"persons/charlie\", \n          \"_rev\" : \"_YOn1YXy--D\", \n          \"name\" : \"Charlie\" \n        }, \n        { \n          \"_key\" : \"dave\", \n          \"_id\" : \"persons/dave\", \n          \"_rev\" : \"_YOn1YXy--F\", \n          \"name\" : \"Dave\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YXy--_\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106915\", \n              \"_id\" : \"knows/106915\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YX2--B\", \n              \"vertex\" : \"alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YXy--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YXy--B\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106915\", \n              \"_id\" : \"knows/106915\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YX2--B\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106919\", \n              \"_id\" : \"knows/106919\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\", \n              \"_rev\" : \"_YOn1YX2--D\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YXy--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YXy--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"charlie\", \n              \"_id\" : \"persons/charlie\", \n              \"_rev\" : \"_YOn1YXy--D\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106915\", \n              \"_id\" : \"knows/106915\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YX2--B\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106922\", \n              \"_id\" : \"knows/106922\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\", \n              \"_rev\" : \"_YOn1YX2--F\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YXy--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YXy--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"dave\", \n              \"_id\" : \"persons/dave\", \n              \"_rev\" : \"_YOn1YXy--F\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n Follow only inbound edges\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_key\" : \"alice\", \n          \"_id\" : \"persons/alice\", \n          \"_rev\" : \"_YOn1YN2--_\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_key\" : \"eve\", \n          \"_id\" : \"persons/eve\", \n          \"_rev\" : \"_YOn1YN6--D\", \n          \"name\" : \"Eve\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YN2--_\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106613\", \n              \"_id\" : \"knows/106613\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YN6--L\", \n              \"vertex\" : \"eve\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YN2--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YOn1YN6--D\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n Follow any direction of edges\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_key\" : \"alice\", \n          \"_id\" : \"persons/alice\", \n          \"_rev\" : \"_YOn1Y_G--_\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_key\" : \"bob\", \n          \"_id\" : \"persons/bob\", \n          \"_rev\" : \"_YOn1Y_G--B\", \n          \"name\" : \"Bob\" \n        }, \n        { \n          \"_key\" : \"charlie\", \n          \"_id\" : \"persons/charlie\", \n          \"_rev\" : \"_YOn1Y_G--D\", \n          \"name\" : \"Charlie\" \n        }, \n        { \n          \"_key\" : \"dave\", \n          \"_id\" : \"persons/dave\", \n          \"_rev\" : \"_YOn1Y_G--F\", \n          \"name\" : \"Dave\" \n        }, \n        { \n          \"_key\" : \"eve\", \n          \"_id\" : \"persons/eve\", \n          \"_rev\" : \"_YOn1Y_G--H\", \n          \"name\" : \"Eve\" \n        }, \n        { \n          \"_key\" : \"alice\", \n          \"_id\" : \"persons/alice\", \n          \"_rev\" : \"_YOn1Y_G--_\", \n          \"name\" : \"Alice\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1Y_G--_\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106096\", \n              \"_id\" : \"knows/106096\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1Y_K--_\", \n              \"vertex\" : \"alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1Y_G--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1Y_G--B\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106096\", \n              \"_id\" : \"knows/106096\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1Y_K--_\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106100\", \n              \"_id\" : \"knows/106100\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\", \n              \"_rev\" : \"_YOn1Y_K--B\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1Y_G--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1Y_G--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"charlie\", \n              \"_id\" : \"persons/charlie\", \n              \"_rev\" : \"_YOn1Y_G--D\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106096\", \n              \"_id\" : \"knows/106096\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1Y_K--_\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106103\", \n              \"_id\" : \"knows/106103\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\", \n              \"_rev\" : \"_YOn1Y_K--D\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1Y_G--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1Y_G--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"dave\", \n              \"_id\" : \"persons/dave\", \n              \"_rev\" : \"_YOn1Y_G--F\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106096\", \n              \"_id\" : \"knows/106096\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1Y_K--_\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106109\", \n              \"_id\" : \"knows/106109\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1Y_K--H\", \n              \"vertex\" : \"eve\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1Y_G--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1Y_G--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YOn1Y_G--H\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106096\", \n              \"_id\" : \"knows/106096\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1Y_K--_\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106109\", \n              \"_id\" : \"knows/106109\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1Y_K--H\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106106\", \n              \"_id\" : \"knows/106106\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1Y_K--F\", \n              \"vertex\" : \"eve\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1Y_G--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1Y_G--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YOn1Y_G--H\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1Y_G--_\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n Excluding *Charlie* and *Bob*\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_key\" : \"alice\", \n          \"_id\" : \"persons/alice\", \n          \"_rev\" : \"_YOn1YJi--_\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_key\" : \"dave\", \n          \"_id\" : \"persons/dave\", \n          \"_rev\" : \"_YOn1YJm--B\", \n          \"name\" : \"Dave\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YJi--_\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106462\", \n              \"_id\" : \"knows/106462\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YJm--F\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106469\", \n              \"_id\" : \"knows/106469\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\", \n              \"_rev\" : \"_YOn1YJm--J\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YJi--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YJi--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"dave\", \n              \"_id\" : \"persons/dave\", \n              \"_rev\" : \"_YOn1YJm--B\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n Do not follow edges from *Bob*\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_key\" : \"alice\", \n          \"_id\" : \"persons/alice\", \n          \"_rev\" : \"_YOn1YLu--_\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_key\" : \"bob\", \n          \"_id\" : \"persons/bob\", \n          \"_rev\" : \"_YOn1YLu--B\", \n          \"name\" : \"Bob\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YLu--_\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106535\", \n              \"_id\" : \"knows/106535\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YLy--B\", \n              \"vertex\" : \"alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YLu--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YLu--B\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n Visit only nodes in a depth of at least 2\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_key\" : \"charlie\", \n          \"_id\" : \"persons/charlie\", \n          \"_rev\" : \"_YOn1YUO--D\", \n          \"name\" : \"Charlie\" \n        }, \n        { \n          \"_key\" : \"dave\", \n          \"_id\" : \"persons/dave\", \n          \"_rev\" : \"_YOn1YUO--F\", \n          \"name\" : \"Dave\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106842\", \n              \"_id\" : \"knows/106842\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YUS--B\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106846\", \n              \"_id\" : \"knows/106846\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\", \n              \"_rev\" : \"_YOn1YUS--D\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YUO--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YUO--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"charlie\", \n              \"_id\" : \"persons/charlie\", \n              \"_rev\" : \"_YOn1YUO--D\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106842\", \n              \"_id\" : \"knows/106842\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YUS--B\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106849\", \n              \"_id\" : \"knows/106849\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\", \n              \"_rev\" : \"_YOn1YUS--F\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YUO--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YUO--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"dave\", \n              \"_id\" : \"persons/dave\", \n              \"_rev\" : \"_YOn1YUO--F\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n Visit only nodes in a depth of at most 1\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_key\" : \"alice\", \n          \"_id\" : \"persons/alice\", \n          \"_rev\" : \"_YOn1YQ---_\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_key\" : \"bob\", \n          \"_id\" : \"persons/bob\", \n          \"_rev\" : \"_YOn1YQ---B\", \n          \"name\" : \"Bob\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YQ---_\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106672\", \n              \"_id\" : \"knows/106672\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YQC--_\", \n              \"vertex\" : \"alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YQ---_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YQ---B\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n Using a visitor function to return vertex ids only\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\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\n\n\n\n**Example:**\n Count all visited nodes and return a list of nodes only\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : { \n    \"visited\" : 4, \n    \"myVertices\" : [ \n      { \n        \"_key\" : \"alice\", \n        \"_id\" : \"persons/alice\", \n        \"_rev\" : \"_YOn1Yci--_\", \n        \"name\" : \"Alice\" \n      }, \n      { \n        \"_key\" : \"bob\", \n        \"_id\" : \"persons/bob\", \n        \"_rev\" : \"_YOn1Ycm--_\", \n        \"name\" : \"Bob\" \n      }, \n      { \n        \"_key\" : \"charlie\", \n        \"_id\" : \"persons/charlie\", \n        \"_rev\" : \"_YOn1Ycm--B\", \n        \"name\" : \"Charlie\" \n      }, \n      { \n        \"_key\" : \"dave\", \n        \"_id\" : \"persons/dave\", \n        \"_rev\" : \"_YOn1Ycm--D\", \n        \"name\" : \"Dave\" \n      } \n    ] \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n Expand only inbound edges of *Alice* and outbound edges of *Eve*\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_key\" : \"alice\", \n          \"_id\" : \"persons/alice\", \n          \"_rev\" : \"_YOn1Yeq--_\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_key\" : \"eve\", \n          \"_id\" : \"persons/eve\", \n          \"_rev\" : \"_YOn1Yeu--B\", \n          \"name\" : \"Eve\" \n        }, \n        { \n          \"_key\" : \"bob\", \n          \"_id\" : \"persons/bob\", \n          \"_rev\" : \"_YOn1Yeq--B\", \n          \"name\" : \"Bob\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1Yeq--_\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"107170\", \n              \"_id\" : \"knows/107170\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1Yeu--J\", \n              \"vertex\" : \"eve\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1Yeq--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YOn1Yeu--B\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"107170\", \n              \"_id\" : \"knows/107170\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1Yeu--J\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"107173\", \n              \"_id\" : \"knows/107173\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1Yey--_\", \n              \"vertex\" : \"eve\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1Yeq--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YOn1Yeu--B\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1Yeq--B\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n Follow the *depthfirst* strategy\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_key\" : \"alice\", \n          \"_id\" : \"persons/alice\", \n          \"_rev\" : \"_YOn1YEe--_\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_key\" : \"bob\", \n          \"_id\" : \"persons/bob\", \n          \"_rev\" : \"_YOn1YEe--B\", \n          \"name\" : \"Bob\" \n        }, \n        { \n          \"_key\" : \"charlie\", \n          \"_id\" : \"persons/charlie\", \n          \"_rev\" : \"_YOn1YEe--D\", \n          \"name\" : \"Charlie\" \n        }, \n        { \n          \"_key\" : \"dave\", \n          \"_id\" : \"persons/dave\", \n          \"_rev\" : \"_YOn1YEe--F\", \n          \"name\" : \"Dave\" \n        }, \n        { \n          \"_key\" : \"eve\", \n          \"_id\" : \"persons/eve\", \n          \"_rev\" : \"_YOn1YEi--_\", \n          \"name\" : \"Eve\" \n        }, \n        { \n          \"_key\" : \"alice\", \n          \"_id\" : \"persons/alice\", \n          \"_rev\" : \"_YOn1YEe--_\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_key\" : \"eve\", \n          \"_id\" : \"persons/eve\", \n          \"_rev\" : \"_YOn1YEi--_\", \n          \"name\" : \"Eve\" \n        }, \n        { \n          \"_key\" : \"bob\", \n          \"_id\" : \"persons/bob\", \n          \"_rev\" : \"_YOn1YEe--B\", \n          \"name\" : \"Bob\" \n        }, \n        { \n          \"_key\" : \"charlie\", \n          \"_id\" : \"persons/charlie\", \n          \"_rev\" : \"_YOn1YEe--D\", \n          \"name\" : \"Charlie\" \n        }, \n        { \n          \"_key\" : \"dave\", \n          \"_id\" : \"persons/dave\", \n          \"_rev\" : \"_YOn1YEe--F\", \n          \"name\" : \"Dave\" \n        }, \n        { \n          \"_key\" : \"alice\", \n          \"_id\" : \"persons/alice\", \n          \"_rev\" : \"_YOn1YEe--_\", \n          \"name\" : \"Alice\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YEe--_\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106279\", \n              \"_id\" : \"knows/106279\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YEi--B\", \n              \"vertex\" : \"alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YEe--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YEe--B\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106279\", \n              \"_id\" : \"knows/106279\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YEi--B\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106283\", \n              \"_id\" : \"knows/106283\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\", \n              \"_rev\" : \"_YOn1YEi--D\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YEe--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YEe--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"charlie\", \n              \"_id\" : \"persons/charlie\", \n              \"_rev\" : \"_YOn1YEe--D\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106279\", \n              \"_id\" : \"knows/106279\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YEi--B\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106286\", \n              \"_id\" : \"knows/106286\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\", \n              \"_rev\" : \"_YOn1YEi--F\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YEe--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YEe--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"dave\", \n              \"_id\" : \"persons/dave\", \n              \"_rev\" : \"_YOn1YEe--F\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106279\", \n              \"_id\" : \"knows/106279\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YEi--B\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106292\", \n              \"_id\" : \"knows/106292\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YEi--J\", \n              \"vertex\" : \"eve\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YEe--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YEe--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YOn1YEi--_\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106279\", \n              \"_id\" : \"knows/106279\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YEi--B\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106292\", \n              \"_id\" : \"knows/106292\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YEi--J\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106289\", \n              \"_id\" : \"knows/106289\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YEi--H\", \n              \"vertex\" : \"eve\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YEe--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YEe--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YOn1YEi--_\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YEe--_\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106289\", \n              \"_id\" : \"knows/106289\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YEi--H\", \n              \"vertex\" : \"eve\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YEe--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YOn1YEi--_\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106289\", \n              \"_id\" : \"knows/106289\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YEi--H\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106292\", \n              \"_id\" : \"knows/106292\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YEi--J\", \n              \"vertex\" : \"eve\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YEe--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YOn1YEi--_\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YEe--B\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106289\", \n              \"_id\" : \"knows/106289\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YEi--H\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106292\", \n              \"_id\" : \"knows/106292\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YEi--J\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106283\", \n              \"_id\" : \"knows/106283\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\", \n              \"_rev\" : \"_YOn1YEi--D\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YEe--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YOn1YEi--_\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YEe--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"charlie\", \n              \"_id\" : \"persons/charlie\", \n              \"_rev\" : \"_YOn1YEe--D\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106289\", \n              \"_id\" : \"knows/106289\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YEi--H\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106292\", \n              \"_id\" : \"knows/106292\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YEi--J\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106286\", \n              \"_id\" : \"knows/106286\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\", \n              \"_rev\" : \"_YOn1YEi--F\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YEe--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YOn1YEi--_\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YEe--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"dave\", \n              \"_id\" : \"persons/dave\", \n              \"_rev\" : \"_YOn1YEe--F\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106289\", \n              \"_id\" : \"knows/106289\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YEi--H\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106292\", \n              \"_id\" : \"knows/106292\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YEi--J\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106279\", \n              \"_id\" : \"knows/106279\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YEi--B\", \n              \"vertex\" : \"alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YEe--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YOn1YEi--_\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YEe--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YEe--_\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n Using *postorder* ordering\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_key\" : \"charlie\", \n          \"_id\" : \"persons/charlie\", \n          \"_rev\" : \"_YOn1YaC--_\", \n          \"name\" : \"Charlie\" \n        }, \n        { \n          \"_key\" : \"dave\", \n          \"_id\" : \"persons/dave\", \n          \"_rev\" : \"_YOn1YaC--B\", \n          \"name\" : \"Dave\" \n        }, \n        { \n          \"_key\" : \"alice\", \n          \"_id\" : \"persons/alice\", \n          \"_rev\" : \"_YOn1Ya---_\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_key\" : \"eve\", \n          \"_id\" : \"persons/eve\", \n          \"_rev\" : \"_YOn1YaC--D\", \n          \"name\" : \"Eve\" \n        }, \n        { \n          \"_key\" : \"bob\", \n          \"_id\" : \"persons/bob\", \n          \"_rev\" : \"_YOn1Ya---B\", \n          \"name\" : \"Bob\" \n        }, \n        { \n          \"_key\" : \"charlie\", \n          \"_id\" : \"persons/charlie\", \n          \"_rev\" : \"_YOn1YaC--_\", \n          \"name\" : \"Charlie\" \n        }, \n        { \n          \"_key\" : \"dave\", \n          \"_id\" : \"persons/dave\", \n          \"_rev\" : \"_YOn1YaC--B\", \n          \"name\" : \"Dave\" \n        }, \n        { \n          \"_key\" : \"alice\", \n          \"_id\" : \"persons/alice\", \n          \"_rev\" : \"_YOn1Ya---_\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_key\" : \"bob\", \n          \"_id\" : \"persons/bob\", \n          \"_rev\" : \"_YOn1Ya---B\", \n          \"name\" : \"Bob\" \n        }, \n        { \n          \"_key\" : \"eve\", \n          \"_id\" : \"persons/eve\", \n          \"_rev\" : \"_YOn1YaC--D\", \n          \"name\" : \"Eve\" \n        }, \n        { \n          \"_key\" : \"alice\", \n          \"_id\" : \"persons/alice\", \n          \"_rev\" : \"_YOn1Ya---_\", \n          \"name\" : \"Alice\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106988\", \n              \"_id\" : \"knows/106988\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YaC--F\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106992\", \n              \"_id\" : \"knows/106992\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\", \n              \"_rev\" : \"_YOn1YaC--H\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1Ya---_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1Ya---B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"charlie\", \n              \"_id\" : \"persons/charlie\", \n              \"_rev\" : \"_YOn1YaC--_\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106988\", \n              \"_id\" : \"knows/106988\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YaC--F\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106995\", \n              \"_id\" : \"knows/106995\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\", \n              \"_rev\" : \"_YOn1YaC--J\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1Ya---_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1Ya---B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"dave\", \n              \"_id\" : \"persons/dave\", \n              \"_rev\" : \"_YOn1YaC--B\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106988\", \n              \"_id\" : \"knows/106988\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YaC--F\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"107001\", \n              \"_id\" : \"knows/107001\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YaG--B\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106998\", \n              \"_id\" : \"knows/106998\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YaG--_\", \n              \"vertex\" : \"eve\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1Ya---_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1Ya---B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YOn1YaC--D\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1Ya---_\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106988\", \n              \"_id\" : \"knows/106988\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YaC--F\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"107001\", \n              \"_id\" : \"knows/107001\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YaG--B\", \n              \"vertex\" : \"eve\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1Ya---_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1Ya---B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YOn1YaC--D\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106988\", \n              \"_id\" : \"knows/106988\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YaC--F\", \n              \"vertex\" : \"alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1Ya---_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1Ya---B\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106998\", \n              \"_id\" : \"knows/106998\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YaG--_\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"107001\", \n              \"_id\" : \"knows/107001\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YaG--B\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106992\", \n              \"_id\" : \"knows/106992\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\", \n              \"_rev\" : \"_YOn1YaC--H\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1Ya---_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YOn1YaC--D\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1Ya---B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"charlie\", \n              \"_id\" : \"persons/charlie\", \n              \"_rev\" : \"_YOn1YaC--_\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106998\", \n              \"_id\" : \"knows/106998\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YaG--_\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"107001\", \n              \"_id\" : \"knows/107001\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YaG--B\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106995\", \n              \"_id\" : \"knows/106995\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\", \n              \"_rev\" : \"_YOn1YaC--J\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1Ya---_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YOn1YaC--D\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1Ya---B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"dave\", \n              \"_id\" : \"persons/dave\", \n              \"_rev\" : \"_YOn1YaC--B\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106998\", \n              \"_id\" : \"knows/106998\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YaG--_\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"107001\", \n              \"_id\" : \"knows/107001\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YaG--B\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106988\", \n              \"_id\" : \"knows/106988\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YaC--F\", \n              \"vertex\" : \"alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1Ya---_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YOn1YaC--D\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1Ya---B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1Ya---_\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106998\", \n              \"_id\" : \"knows/106998\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YaG--_\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"107001\", \n              \"_id\" : \"knows/107001\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YaG--B\", \n              \"vertex\" : \"eve\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1Ya---_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YOn1YaC--D\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1Ya---B\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106998\", \n              \"_id\" : \"knows/106998\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YaG--_\", \n              \"vertex\" : \"eve\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1Ya---_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YOn1YaC--D\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1Ya---_\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n Using *backward* item-ordering:\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_key\" : \"alice\", \n          \"_id\" : \"persons/alice\", \n          \"_rev\" : \"_YOn1YBq--_\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_key\" : \"eve\", \n          \"_id\" : \"persons/eve\", \n          \"_rev\" : \"_YOn1YBu--C\", \n          \"name\" : \"Eve\" \n        }, \n        { \n          \"_key\" : \"bob\", \n          \"_id\" : \"persons/bob\", \n          \"_rev\" : \"_YOn1YBq--B\", \n          \"name\" : \"Bob\" \n        }, \n        { \n          \"_key\" : \"alice\", \n          \"_id\" : \"persons/alice\", \n          \"_rev\" : \"_YOn1YBq--_\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_key\" : \"dave\", \n          \"_id\" : \"persons/dave\", \n          \"_rev\" : \"_YOn1YBu--A\", \n          \"name\" : \"Dave\" \n        }, \n        { \n          \"_key\" : \"charlie\", \n          \"_id\" : \"persons/charlie\", \n          \"_rev\" : \"_YOn1YBu---\", \n          \"name\" : \"Charlie\" \n        }, \n        { \n          \"_key\" : \"bob\", \n          \"_id\" : \"persons/bob\", \n          \"_rev\" : \"_YOn1YBq--B\", \n          \"name\" : \"Bob\" \n        }, \n        { \n          \"_key\" : \"eve\", \n          \"_id\" : \"persons/eve\", \n          \"_rev\" : \"_YOn1YBu--C\", \n          \"name\" : \"Eve\" \n        }, \n        { \n          \"_key\" : \"alice\", \n          \"_id\" : \"persons/alice\", \n          \"_rev\" : \"_YOn1YBq--_\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_key\" : \"dave\", \n          \"_id\" : \"persons/dave\", \n          \"_rev\" : \"_YOn1YBu--A\", \n          \"name\" : \"Dave\" \n        }, \n        { \n          \"_key\" : \"charlie\", \n          \"_id\" : \"persons/charlie\", \n          \"_rev\" : \"_YOn1YBu---\", \n          \"name\" : \"Charlie\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YBq--_\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106190\", \n              \"_id\" : \"knows/106190\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YBy--B\", \n              \"vertex\" : \"eve\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YBq--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YOn1YBu--C\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106190\", \n              \"_id\" : \"knows/106190\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YBy--B\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106193\", \n              \"_id\" : \"knows/106193\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YBy--D\", \n              \"vertex\" : \"eve\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YBq--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YOn1YBu--C\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YBq--B\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106190\", \n              \"_id\" : \"knows/106190\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YBy--B\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106193\", \n              \"_id\" : \"knows/106193\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YBy--D\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106180\", \n              \"_id\" : \"knows/106180\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YBu--E\", \n              \"vertex\" : \"alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YBq--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YOn1YBu--C\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YBq--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YBq--_\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106190\", \n              \"_id\" : \"knows/106190\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YBy--B\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106193\", \n              \"_id\" : \"knows/106193\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YBy--D\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106187\", \n              \"_id\" : \"knows/106187\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\", \n              \"_rev\" : \"_YOn1YBy--_\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YBq--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YOn1YBu--C\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YBq--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"dave\", \n              \"_id\" : \"persons/dave\", \n              \"_rev\" : \"_YOn1YBu--A\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106190\", \n              \"_id\" : \"knows/106190\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YBy--B\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106193\", \n              \"_id\" : \"knows/106193\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YBy--D\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106184\", \n              \"_id\" : \"knows/106184\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\", \n              \"_rev\" : \"_YOn1YBu--G\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YBq--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YOn1YBu--C\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YBq--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"charlie\", \n              \"_id\" : \"persons/charlie\", \n              \"_rev\" : \"_YOn1YBu---\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106180\", \n              \"_id\" : \"knows/106180\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YBu--E\", \n              \"vertex\" : \"alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YBq--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YBq--B\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106180\", \n              \"_id\" : \"knows/106180\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YBu--E\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106193\", \n              \"_id\" : \"knows/106193\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YBy--D\", \n              \"vertex\" : \"eve\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YBq--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YBq--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YOn1YBu--C\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106180\", \n              \"_id\" : \"knows/106180\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YBu--E\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106193\", \n              \"_id\" : \"knows/106193\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YBy--D\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106190\", \n              \"_id\" : \"knows/106190\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YBy--B\", \n              \"vertex\" : \"eve\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YBq--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YBq--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YOn1YBu--C\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YBq--_\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106180\", \n              \"_id\" : \"knows/106180\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YBu--E\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106187\", \n              \"_id\" : \"knows/106187\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\", \n              \"_rev\" : \"_YOn1YBy--_\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YBq--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YBq--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"dave\", \n              \"_id\" : \"persons/dave\", \n              \"_rev\" : \"_YOn1YBu--A\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106180\", \n              \"_id\" : \"knows/106180\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YBu--E\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106184\", \n              \"_id\" : \"knows/106184\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\", \n              \"_rev\" : \"_YOn1YBu--G\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YBq--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YBq--B\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"charlie\", \n              \"_id\" : \"persons/charlie\", \n              \"_rev\" : \"_YOn1YBu---\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n Edges should only be included once globally,\nbut nodes are included every time they are visited\n\n
shell> curl -X POST --header 'accept: application/json' --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 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"result\" : { \n    \"visited\" : { \n      \"vertices\" : [ \n        { \n          \"_key\" : \"alice\", \n          \"_id\" : \"persons/alice\", \n          \"_rev\" : \"_YOn1YHG--_\", \n          \"name\" : \"Alice\" \n        }, \n        { \n          \"_key\" : \"bob\", \n          \"_id\" : \"persons/bob\", \n          \"_rev\" : \"_YOn1YHK--_\", \n          \"name\" : \"Bob\" \n        }, \n        { \n          \"_key\" : \"charlie\", \n          \"_id\" : \"persons/charlie\", \n          \"_rev\" : \"_YOn1YHK--B\", \n          \"name\" : \"Charlie\" \n        }, \n        { \n          \"_key\" : \"dave\", \n          \"_id\" : \"persons/dave\", \n          \"_rev\" : \"_YOn1YHK--D\", \n          \"name\" : \"Dave\" \n        }, \n        { \n          \"_key\" : \"eve\", \n          \"_id\" : \"persons/eve\", \n          \"_rev\" : \"_YOn1YHK--F\", \n          \"name\" : \"Eve\" \n        }, \n        { \n          \"_key\" : \"alice\", \n          \"_id\" : \"persons/alice\", \n          \"_rev\" : \"_YOn1YHG--_\", \n          \"name\" : \"Alice\" \n        } \n      ], \n      \"paths\" : [ \n        { \n          \"edges\" : [ ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YHG--_\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106378\", \n              \"_id\" : \"knows/106378\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YHO--_\", \n              \"vertex\" : \"alice\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YHG--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YHK--_\", \n              \"name\" : \"Bob\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106378\", \n              \"_id\" : \"knows/106378\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YHO--_\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106382\", \n              \"_id\" : \"knows/106382\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/charlie\", \n              \"_rev\" : \"_YOn1YHO--B\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YHG--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YHK--_\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"charlie\", \n              \"_id\" : \"persons/charlie\", \n              \"_rev\" : \"_YOn1YHK--B\", \n              \"name\" : \"Charlie\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106378\", \n              \"_id\" : \"knows/106378\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YHO--_\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106385\", \n              \"_id\" : \"knows/106385\", \n              \"_from\" : \"persons/bob\", \n              \"_to\" : \"persons/dave\", \n              \"_rev\" : \"_YOn1YHO--D\", \n              \"vertex\" : \"bob\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YHG--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YHK--_\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"dave\", \n              \"_id\" : \"persons/dave\", \n              \"_rev\" : \"_YOn1YHK--D\", \n              \"name\" : \"Dave\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106378\", \n              \"_id\" : \"knows/106378\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YHO--_\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106391\", \n              \"_id\" : \"knows/106391\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YHO--H\", \n              \"vertex\" : \"eve\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YHG--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YHK--_\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YOn1YHK--F\", \n              \"name\" : \"Eve\" \n            } \n          ] \n        }, \n        { \n          \"edges\" : [ \n            { \n              \"_key\" : \"106378\", \n              \"_id\" : \"knows/106378\", \n              \"_from\" : \"persons/alice\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YHO--_\", \n              \"vertex\" : \"alice\" \n            }, \n            { \n              \"_key\" : \"106391\", \n              \"_id\" : \"knows/106391\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YHO--H\", \n              \"vertex\" : \"eve\" \n            }, \n            { \n              \"_key\" : \"106388\", \n              \"_id\" : \"knows/106388\", \n              \"_from\" : \"persons/eve\", \n              \"_to\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YHO--F\", \n              \"vertex\" : \"eve\" \n            } \n          ], \n          \"vertices\" : [ \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YHG--_\", \n              \"name\" : \"Alice\" \n            }, \n            { \n              \"_key\" : \"bob\", \n              \"_id\" : \"persons/bob\", \n              \"_rev\" : \"_YOn1YHK--_\", \n              \"name\" : \"Bob\" \n            }, \n            { \n              \"_key\" : \"eve\", \n              \"_id\" : \"persons/eve\", \n              \"_rev\" : \"_YOn1YHK--F\", \n              \"name\" : \"Eve\" \n            }, \n            { \n              \"_key\" : \"alice\", \n              \"_id\" : \"persons/alice\", \n              \"_rev\" : \"_YOn1YHG--_\", \n              \"name\" : \"Alice\" \n            } \n          ] \n        } \n      ] \n    } \n  }, \n  \"error\" : false, \n  \"code\" : 200 \n}\n
\n\n\n\n\n**Example:**\n 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\n- *Alice* knows *Bob*\n- *Bob* knows *Alice*\n\n
shell> curl -X POST --header 'accept: application/json' --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 Internal Server Error\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\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\n\n\n", "parameters": [ { "in": "body", @@ -13997,7 +13997,7 @@ }, "/_api/user/": { "get": { - "description": "\n\nFetches data about all users. You need the *Administrate* server access level\nin order to execute this REST call. Otherwise, you will only get information\nabout yourself.\n\nThe call will return a JSON object with at least the following\nattributes on success:\n\n- *user*: The name of the user as a string.\n- *active*: An optional flag that specifies whether the user is active.\n- *extra*: An optional JSON object with arbitrary extra data about the user.\n\n\n\n\n**Example:**\n \n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/user\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"result\" : [ \n    { \n      \"user\" : \"admin\", \n      \"active\" : true, \n      \"extra\" : { \n      } \n    }, \n    { \n      \"user\" : \"root\", \n      \"active\" : true, \n      \"extra\" : { \n      } \n    }, \n    { \n      \"user\" : \"tester\", \n      \"active\" : false, \n      \"extra\" : { \n      } \n    } \n  ] \n}\n
\n\n\n\n\n", + "description": "\n\nFetches data about all users. You need the *Administrate* server access level\nin order to execute this REST call. Otherwise, you will only get information\nabout yourself.\n\nThe call will return a JSON object with at least the following\nattributes on success:\n\n- *user*: The name of the user as a string.\n- *active*: An optional flag that specifies whether the user is active.\n- *extra*: An optional JSON object with arbitrary extra data about the user.\n\n\n\n\n**Example:**\n \n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/user\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"result\" : [ \n    { \n      \"user\" : \"tester\", \n      \"active\" : false, \n      \"extra\" : { \n      } \n    }, \n    { \n      \"user\" : \"admin\", \n      \"active\" : true, \n      \"extra\" : { \n      } \n    }, \n    { \n      \"user\" : \"root\", \n      \"active\" : true, \n      \"extra\" : { \n      } \n    } \n  ] \n}\n
\n\n\n\n\n", "parameters": [], "responses": { "200": { @@ -14516,7 +14516,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\n**HTTP 200**\n*A json document with these Properties is returned:*\n\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**:\n - **failure-tests**: *false* for production binaries (the facility to invoke fatal errors is disabled)\n - **boost-version**: which boost version do we bind\n - **zlib-version**: the version of the bundled zlib\n - **sse42**: do we have a SSE 4.2 enabled cpu?\n - **assertions**: do we have assertions compiled in (=> developer version)\n - **jemalloc**: *true* if we use jemalloc\n - **arm**: *false* - this is not running on an ARM cpu\n - **rocksdb-version**: the rocksdb version this release bundles\n - **cplusplus**: C++ standards version\n - **sizeof int**: number of bytes for *integers*\n - **openssl-version**: which openssl version do we link?\n - **platform**: the host os - *linux*, *windows* or *darwin*\n - **endianness**: currently only *little* is supported\n - **vpack-version**: the version of the used velocypack implementation\n - **icu-version**: Which version of ICU do we bundle\n - **mode**: the mode we're runnig as - one of [*server*, *console*, *script*]\n - **unaligned-access**: does this system support unaligned memory access?\n - **build-repository**: reference to the git-ID this was compiled from\n - **asm-crc32**: do we have assembler implemented CRC functions?\n - **host**: the host ID\n - **fd-setsize**: if not *poll* the fd setsize is valid for the maximum number of filedescriptors\n - **maintainer-mode**: *false* if this is a production binary\n - **sizeof void***: number of bytes for *void pointers*\n - **asan**: has this been compiled with the asan address sanitizer turned on? (should be false)\n - **build-date**: the date when this binary was created\n - **compiler**: which compiler did we use\n - **server-version**: the ArangoDB release version\n - **fd-client-event-handler**: which method do we use to handle fd-sets, *poll* should be here on linux.\n - **reactor-type**: *epoll* TODO \n - **architecture**: The CPU architecture, i.e. *64bit*\n - **debug**: *false* for production binaries\n - **full-version-string**: The full version string\n - **v8-version**: the bundled V8 javascript engine version\n- **server**: will always contain *arango*\n\n\n\n\n**Example:**\n Return the version information\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/version\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"server\" : \"arango\", \n  \"version\" : \"3.5.0-devel\", \n  \"license\" : \"enterprise\" \n}\n
\n\n\n\n\n**Example:**\n Return the version information with details\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/version?details=true\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"server\" : \"arango\", \n  \"version\" : \"3.5.0-devel\", \n  \"license\" : \"enterprise\", \n  \"details\" : { \n    \"architecture\" : \"64bit\", \n    \"arm\" : \"false\", \n    \"asan\" : \"false\", \n    \"asm-crc32\" : \"true\", \n    \"assertions\" : \"true\", \n    \"avx2\" : \"true\", \n    \"boost-version\" : \"1.69.0\", \n    \"build-date\" : \"2019-02-15 10:01:13\", \n    \"build-repository\" : \"heads/feature/ttl-index-0-g5d46b69bbd-dirty\", \n    \"compiler\" : \"gcc [8.2.0]\", \n    \"cplusplus\" : \"201402\", \n    \"curl-version\" : \"libcurl/7.63.0 OpenSSL/1.1.0g\", \n    \"debug\" : \"false\", \n    \"endianness\" : \"little\", \n    \"enterprise-version\" : \"enterprise\", \n    \"failure-tests\" : \"true\", \n    \"fd-client-event-handler\" : \"poll\", \n    \"fd-setsize\" : \"1024\", \n    \"full-version-string\" : \"ArangoDB 3.5.0-devel enterprise [linux] 64bit maintainer mode, using jemalloc, build heads/feature/ttl-index-0-g5d46b69bbd-dirty, VPack 0.1.33, RocksDB 5.18.0, ICU 58.1, V8 5.7.492.77, OpenSSL 1.1.0g  2 Nov 2017\", \n    \"icu-version\" : \"58.1\", \n    \"iresearch-version\" : \"1.0.0.0\", \n    \"jemalloc\" : \"true\", \n    \"license\" : \"enterprise\", \n    \"maintainer-mode\" : \"true\", \n    \"ndebug\" : \"true\", \n    \"openssl-version-compile-time\" : \"OpenSSL 1.1.0g  2 Nov 2017\", \n    \"openssl-version-run-time\" : \"OpenSSL 1.1.0g  2 Nov 2017\", \n    \"optimization-flags\" : \"-march=haswell -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -mfma -mbmi2 -mavx2 -mno-sse4a -mno-xop -mno-fma4 -mno-avx512f -mno-avx512vl -mno-avx512pf -mno-avx512er -mno-avx512cd -mno-avx512dq -mno-avx512bw -mno-avx512ifma -mno-avx512vbmi\", \n    \"platform\" : \"linux\", \n    \"reactor-type\" : \"epoll\", \n    \"rocksdb-version\" : \"5.18.0\", \n    \"server-version\" : \"3.5.0-devel\", \n    \"sizeof int\" : \"4\", \n    \"sizeof long\" : \"8\", \n    \"sizeof void*\" : \"8\", \n    \"sse42\" : \"true\", \n    \"unaligned-access\" : \"true\", \n    \"v8-version\" : \"5.7.492.77\", \n    \"vpack-version\" : \"0.1.33\", \n    \"zlib-version\" : \"1.2.11\", \n    \"mode\" : \"server\", \n    \"host\" : \"c54ebb83e5eb4257b9e0f7201ba87ded\" \n  } \n}\n
\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\n**HTTP 200**\n*A json document with these Properties is returned:*\n\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**:\n - **failure-tests**: *false* for production binaries (the facility to invoke fatal errors is disabled)\n - **boost-version**: which boost version do we bind\n - **zlib-version**: the version of the bundled zlib\n - **sse42**: do we have a SSE 4.2 enabled cpu?\n - **assertions**: do we have assertions compiled in (=> developer version)\n - **jemalloc**: *true* if we use jemalloc\n - **arm**: *false* - this is not running on an ARM cpu\n - **rocksdb-version**: the rocksdb version this release bundles\n - **cplusplus**: C++ standards version\n - **sizeof int**: number of bytes for *integers*\n - **openssl-version**: which openssl version do we link?\n - **platform**: the host os - *linux*, *windows* or *darwin*\n - **endianness**: currently only *little* is supported\n - **vpack-version**: the version of the used velocypack implementation\n - **icu-version**: Which version of ICU do we bundle\n - **mode**: the mode we're runnig as - one of [*server*, *console*, *script*]\n - **unaligned-access**: does this system support unaligned memory access?\n - **build-repository**: reference to the git-ID this was compiled from\n - **asm-crc32**: do we have assembler implemented CRC functions?\n - **host**: the host ID\n - **fd-setsize**: if not *poll* the fd setsize is valid for the maximum number of filedescriptors\n - **maintainer-mode**: *false* if this is a production binary\n - **sizeof void***: number of bytes for *void pointers*\n - **asan**: has this been compiled with the asan address sanitizer turned on? (should be false)\n - **build-date**: the date when this binary was created\n - **compiler**: which compiler did we use\n - **server-version**: the ArangoDB release version\n - **fd-client-event-handler**: which method do we use to handle fd-sets, *poll* should be here on linux.\n - **reactor-type**: *epoll* TODO \n - **architecture**: The CPU architecture, i.e. *64bit*\n - **debug**: *false* for production binaries\n - **full-version-string**: The full version string\n - **v8-version**: the bundled V8 javascript engine version\n- **server**: will always contain *arango*\n\n\n\n\n**Example:**\n Return the version information\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/version\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"server\" : \"arango\", \n  \"version\" : \"3.5.0-devel\", \n  \"license\" : \"enterprise\" \n}\n
\n\n\n\n\n**Example:**\n Return the version information with details\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/version?details=true\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"server\" : \"arango\", \n  \"version\" : \"3.5.0-devel\", \n  \"license\" : \"enterprise\", \n  \"details\" : { \n    \"architecture\" : \"64bit\", \n    \"arm\" : \"false\", \n    \"asan\" : \"false\", \n    \"asm-crc32\" : \"true\", \n    \"assertions\" : \"true\", \n    \"avx2\" : \"true\", \n    \"boost-version\" : \"1.69.0\", \n    \"build-date\" : \"2019-02-20 08:48:55\", \n    \"build-repository\" : \"heads/bug-fix/fix-query-cache-shutdown-0-gd977f1786a\", \n    \"compiler\" : \"gcc [8.2.0]\", \n    \"cplusplus\" : \"201402\", \n    \"curl-version\" : \"libcurl/7.63.0 OpenSSL/1.1.0g\", \n    \"debug\" : \"false\", \n    \"endianness\" : \"little\", \n    \"enterprise-version\" : \"enterprise\", \n    \"failure-tests\" : \"true\", \n    \"fd-client-event-handler\" : \"poll\", \n    \"fd-setsize\" : \"1024\", \n    \"full-version-string\" : \"ArangoDB 3.5.0-devel enterprise [linux] 64bit maintainer mode, using jemalloc, build heads/bug-fix/fix-query-cache-shutdown-0-gd977f1786a, VPack 0.1.33, RocksDB 5.18.0, ICU 58.1, V8 7.1.302.28, OpenSSL 1.1.0g  2 Nov 2017\", \n    \"icu-version\" : \"58.1\", \n    \"iresearch-version\" : \"1.0.0.0\", \n    \"jemalloc\" : \"true\", \n    \"license\" : \"enterprise\", \n    \"maintainer-mode\" : \"true\", \n    \"ndebug\" : \"true\", \n    \"openssl-version-compile-time\" : \"OpenSSL 1.1.0g  2 Nov 2017\", \n    \"openssl-version-run-time\" : \"OpenSSL 1.1.0g  2 Nov 2017\", \n    \"optimization-flags\" : \"-march=haswell -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -mfma -mbmi2 -mavx2 -mno-sse4a -mno-xop -mno-fma4 -mno-avx512f -mno-avx512vl -mno-avx512pf -mno-avx512er -mno-avx512cd -mno-avx512dq -mno-avx512bw -mno-avx512ifma -mno-avx512vbmi\", \n    \"platform\" : \"linux\", \n    \"reactor-type\" : \"epoll\", \n    \"rocksdb-version\" : \"5.18.0\", \n    \"server-version\" : \"3.5.0-devel\", \n    \"sizeof int\" : \"4\", \n    \"sizeof long\" : \"8\", \n    \"sizeof void*\" : \"8\", \n    \"sse42\" : \"true\", \n    \"unaligned-access\" : \"true\", \n    \"v8-version\" : \"7.1.302.28\", \n    \"vpack-version\" : \"0.1.33\", \n    \"zlib-version\" : \"1.2.11\", \n    \"mode\" : \"server\", \n    \"host\" : \"c54ebb83e5eb4257b9e0f7201ba87ded\" \n  } \n}\n
\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", @@ -14549,7 +14549,7 @@ }, "/_api/view": { "get": { - "description": "\n\nReturns an object containing an array of all view descriptions.\n\n\n\n\n**Example:**\n Return information about all views:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/view\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"result\" : [ \n    { \n      \"globallyUniqueId\" : \"h402518FDD080/102\", \n      \"id\" : \"102\", \n      \"name\" : \"demoView\", \n      \"type\" : \"arangosearch\" \n    } \n  ] \n}\n
\n\n\n\n", + "description": "\n\nReturns an object containing an array of all view descriptions.\n\n\n\n\n**Example:**\n Return information about all views:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/view\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"result\" : [ \n    { \n      \"globallyUniqueId\" : \"h8B2B671BCFD0/102\", \n      \"id\" : \"102\", \n      \"name\" : \"demoView\", \n      \"type\" : \"arangosearch\" \n    } \n  ] \n}\n
\n\n\n\n", "parameters": [], "responses": { "200": { @@ -14567,7 +14567,7 @@ }, "/_api/view#ArangoSearch": { "post": { - "description": "\n**A JSON object with these properties is required:**\n\n - **type**: The type of the view. must be equal to *\"arangosearch\"*\n - **name**: The name of the view.\n - **properties**:\n - **commitIntervalMsec**: Wait at least this many milliseconds between committing view data store\n changes and making documents visible to queries (default: 60000, to disable\n use: 0).\n For the case where there are a lot of inserts/updates, a lower value, until\n commit, will cause the index not to account for them and memory usage would\n continue to grow.\n For the case where there are a few inserts/updates, a higher value will impact\n performance and waste disk space for each commit call without any added\n benefits.\n Background:\n For data retrieval ArangoSearch views follow the concept of\n \"eventually-consistent\", i.e. eventually all the data in ArangoDB will be\n matched by corresponding query expressions.\n The concept of ArangoSearch view \"commit\" operation is introduced to\n control the upper-bound on the time until document addition/removals are\n actually reflected by corresponding query expressions.\n Once a \"commit\" operation is complete all documents added/removed prior to\n the start of the \"commit\" operation will be reflected by queries invoked in\n subsequent ArangoDB transactions, in-progress ArangoDB transactions will\n still continue to return a repeatable-read state.\n - **links**:\n - **[collection-name]**:\n - **analyzers** (string): The list of analyzers to be used for indexing of string values\n (default: [\"identity\"]).\n - **fields**:\n - **field-name** (object): This is a recursive structure for the specific attribute path, potentially\n containing any of the following attributes:\n *analyzers*, *includeAllFields*, *trackListPositions*, *storeValues*\n Any attributes not specified are inherited from the parent.\n - **includeAllFields**: The flag determines whether or not to index all fields on a particular level of\n depth (default: false).\n - **trackListPositions**: The flag determines whether or not values in a lists should be treated separate\n (default: false).\n - **storeValues**: How should the view track the attribute values, this setting allows for\n additional value retrieval optimizations, one of:\n - *none*: Do not store values by the view\n - *id*: Store only information about value presence, to allow use of the EXISTS() function\n (default \"none\").\n - **consolidationIntervalMsec**: Wait at least this many milliseconds between applying 'consolidationPolicy' to\n consolidate view data store and possibly release space on the filesystem\n (default: 60000, to disable use: 0).\n For the case where there are a lot of data modification operations, a higher\n value could potentially have the data store consume more space and file handles.\n For the case where there are a few data modification operations, a lower value\n will impact performance due to no segment candidates available for\n consolidation.\n Background:\n For data modification ArangoSearch views follow the concept of a\n \"versioned data store\". Thus old versions of data may be removed once there\n are no longer any users of the old data. The frequency of the cleanup and\n compaction operations are governed by 'consolidationIntervalMsec' and the\n candidates for compaction are selected via 'consolidationPolicy'.\n - **cleanupIntervalStep**: Wait at least this many commits between removing unused files in the\n ArangoSearch data directory (default: 10, to disable use: 0).\n For the case where the consolidation policies merge segments often (i.e. a lot\n of commit+consolidate), a lower value will cause a lot of disk space to be\n wasted.\n For the case where the consolidation policies rarely merge segments (i.e. few\n inserts/deletes), a higher value will impact performance without any added\n benefits.\n Background:\n With every \"commit\" or \"consolidate\" operation a new state of the view\n internal data-structures is created on disk.\n Old states/snapshots are released once there are no longer any users\n remaining.\n However, the files for the released states/snapshots are left on disk, and\n only removed by \"cleanup\" operation.\n - **consolidationPolicy**:\n\n\n\n\nCreates a new view with a given name and properties if it does not\nalready exist.\n\n**Note**: view can't be created with the links. Please use PUT/PATCH for links\nmanagement.\n\n\n\n\n**Example:**\n \n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/view <<EOF\n{ \n  \"name\" : \"testViewBasics\", \n  \"type\" : \"arangosearch\" \n}\nEOF\n\nHTTP/1.1 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"globallyUniqueId\" : \"h402518FDD080/107322\", \n  \"id\" : \"107322\", \n  \"name\" : \"testViewBasics\", \n  \"type\" : \"arangosearch\", \n  \"cleanupIntervalStep\" : 10, \n  \"commitIntervalMsec\" : 60000, \n  \"consolidationIntervalMsec\" : 60000, \n  \"consolidationPolicy\" : { \n    \"type\" : \"bytes_accum\", \n    \"threshold\" : 0.10000000149011612 \n  }, \n  \"writebufferActive\" : 0, \n  \"writebufferIdle\" : 64, \n  \"writebufferSizeMax\" : 33554432, \n  \"links\" : { \n  } \n}\n
\n\n\n\n", + "description": "\n**A JSON object with these properties is required:**\n\n - **type**: The type of the view. must be equal to *\"arangosearch\"*\n - **name**: The name of the view.\n - **properties**:\n - **commitIntervalMsec**: Wait at least this many milliseconds between committing view data store\n changes and making documents visible to queries (default: 60000, to disable\n use: 0).\n For the case where there are a lot of inserts/updates, a lower value, until\n commit, will cause the index not to account for them and memory usage would\n continue to grow.\n For the case where there are a few inserts/updates, a higher value will impact\n performance and waste disk space for each commit call without any added\n benefits.\n Background:\n For data retrieval ArangoSearch views follow the concept of\n \"eventually-consistent\", i.e. eventually all the data in ArangoDB will be\n matched by corresponding query expressions.\n The concept of ArangoSearch view \"commit\" operation is introduced to\n control the upper-bound on the time until document addition/removals are\n actually reflected by corresponding query expressions.\n Once a \"commit\" operation is complete all documents added/removed prior to\n the start of the \"commit\" operation will be reflected by queries invoked in\n subsequent ArangoDB transactions, in-progress ArangoDB transactions will\n still continue to return a repeatable-read state.\n - **links**:\n - **[collection-name]**:\n - **analyzers** (string): The list of analyzers to be used for indexing of string values\n (default: [\"identity\"]).\n - **fields**:\n - **field-name** (object): This is a recursive structure for the specific attribute path, potentially\n containing any of the following attributes:\n *analyzers*, *includeAllFields*, *trackListPositions*, *storeValues*\n Any attributes not specified are inherited from the parent.\n - **includeAllFields**: The flag determines whether or not to index all fields on a particular level of\n depth (default: false).\n - **trackListPositions**: The flag determines whether or not values in a lists should be treated separate\n (default: false).\n - **storeValues**: How should the view track the attribute values, this setting allows for\n additional value retrieval optimizations, one of:\n - *none*: Do not store values by the view\n - *id*: Store only information about value presence, to allow use of the EXISTS() function\n (default \"none\").\n - **consolidationIntervalMsec**: Wait at least this many milliseconds between applying 'consolidationPolicy' to\n consolidate view data store and possibly release space on the filesystem\n (default: 60000, to disable use: 0).\n For the case where there are a lot of data modification operations, a higher\n value could potentially have the data store consume more space and file handles.\n For the case where there are a few data modification operations, a lower value\n will impact performance due to no segment candidates available for\n consolidation.\n Background:\n For data modification ArangoSearch views follow the concept of a\n \"versioned data store\". Thus old versions of data may be removed once there\n are no longer any users of the old data. The frequency of the cleanup and\n compaction operations are governed by 'consolidationIntervalMsec' and the\n candidates for compaction are selected via 'consolidationPolicy'.\n - **cleanupIntervalStep**: Wait at least this many commits between removing unused files in the\n ArangoSearch data directory (default: 10, to disable use: 0).\n For the case where the consolidation policies merge segments often (i.e. a lot\n of commit+consolidate), a lower value will cause a lot of disk space to be\n wasted.\n For the case where the consolidation policies rarely merge segments (i.e. few\n inserts/deletes), a higher value will impact performance without any added\n benefits.\n Background:\n With every \"commit\" or \"consolidate\" operation a new state of the view\n internal data-structures is created on disk.\n Old states/snapshots are released once there are no longer any users\n remaining.\n However, the files for the released states/snapshots are left on disk, and\n only removed by \"cleanup\" operation.\n - **consolidationPolicy**:\n\n\n\n\nCreates a new view with a given name and properties if it does not\nalready exist.\n\n**Note**: view can't be created with the links. Please use PUT/PATCH for links\nmanagement.\n\n\n\n\n**Example:**\n \n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/view <<EOF\n{ \n  \"name\" : \"testViewBasics\", \n  \"type\" : \"arangosearch\" \n}\nEOF\n\nHTTP/1.1 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"globallyUniqueId\" : \"h8B2B671BCFD0/107331\", \n  \"id\" : \"107331\", \n  \"name\" : \"testViewBasics\", \n  \"type\" : \"arangosearch\", \n  \"cleanupIntervalStep\" : 10, \n  \"commitIntervalMsec\" : 60000, \n  \"consolidationIntervalMsec\" : 60000, \n  \"consolidationPolicy\" : { \n    \"type\" : \"bytes_accum\", \n    \"threshold\" : 0.10000000149011612 \n  }, \n  \"writebufferActive\" : 0, \n  \"writebufferIdle\" : 64, \n  \"writebufferSizeMax\" : 33554432, \n  \"links\" : { \n  } \n}\n
\n\n\n\n", "parameters": [ { "in": "body", @@ -14598,7 +14598,7 @@ }, "/_api/view#arangosearch": { "post": { - "description": "\n**A JSON object with these properties is required:**\n\n - **type**: The type of the view. must be equal to one of the supported ArangoDB view\n types.\n - **name**: The name of the view.\n - **properties**:\n - **commitIntervalMsec**: Wait at least this many milliseconds between committing view data store\n changes and making documents visible to queries (default: 60000, to disable\n use: 0).\n For the case where there are a lot of inserts/updates, a lower value, until\n commit, will cause the index not to account for them and memory usage would\n continue to grow.\n For the case where there are a few inserts/updates, a higher value will impact\n performance and waste disk space for each commit call without any added\n benefits.\n Background:\n For data retrieval ArangoSearch views follow the concept of\n \"eventually-consistent\", i.e. eventually all the data in ArangoDB will be\n matched by corresponding query expressions.\n The concept of ArangoSearch view \"commit\" operation is introduced to\n control the upper-bound on the time until document addition/removals are\n actually reflected by corresponding query expressions.\n Once a \"commit\" operation is complete all documents added/removed prior to\n the start of the \"commit\" operation will be reflected by queries invoked in\n subsequent ArangoDB transactions, in-progress ArangoDB transactions will\n still continue to return a repeatable-read state.\n - **links**:\n - **[collection-name]**:\n - **analyzers** (string): The list of analyzers to be used for indexing of string values\n (default: [\"identity\"]).\n - **fields**:\n - **field-name** (object): This is a recursive structure for the specific attribute path, potentially\n containing any of the following attributes:\n *analyzers*, *includeAllFields*, *trackListPositions*, *storeValues*\n Any attributes not specified are inherited from the parent.\n - **includeAllFields**: The flag determines whether or not to index all fields on a particular level of\n depth (default: false).\n - **trackListPositions**: The flag determines whether or not values in a lists should be treated separate\n (default: false).\n - **storeValues**: How should the view track the attribute values, this setting allows for\n additional value retrieval optimizations, one of:\n - *none*: Do not store values by the view\n - *id*: Store only information about value presence, to allow use of the EXISTS() function\n (default \"none\").\n - **consolidationIntervalMsec**: Wait at least this many milliseconds between applying 'consolidationPolicy' to\n consolidate view data store and possibly release space on the filesystem\n (default: 60000, to disable use: 0).\n For the case where there are a lot of data modification operations, a higher\n value could potentially have the data store consume more space and file handles.\n For the case where there are a few data modification operations, a lower value\n will impact performance due to no segment candidates available for\n consolidation.\n Background:\n For data modification ArangoSearch views follow the concept of a\n \"versioned data store\". Thus old versions of data may be removed once there\n are no longer any users of the old data. The frequency of the cleanup and\n compaction operations are governed by 'consolidationIntervalMsec' and the\n candidates for compaction are selected via 'consolidationPolicy'.\n - **cleanupIntervalStep**: Wait at least this many commits between removing unused files in the\n ArangoSearch data directory (default: 10, to disable use: 0).\n For the case where the consolidation policies merge segments often (i.e. a lot\n of commit+consolidate), a lower value will cause a lot of disk space to be\n wasted.\n For the case where the consolidation policies rarely merge segments (i.e. few\n inserts/deletes), a higher value will impact performance without any added\n benefits.\n Background:\n With every \"commit\" or \"consolidate\" operation a new state of the view\n internal data-structures is created on disk.\n Old states/snapshots are released once there are no longer any users\n remaining.\n However, the files for the released states/snapshots are left on disk, and\n only removed by \"cleanup\" operation.\n - **consolidationPolicy**:\n\n\n\n\nCreates a new view with a given name and properties if it does not already\nexist.\n\n**Note**: view can't be created with the links. Please use PUT/PATCH\nfor links management.\n\n\n\n\n**Example:**\n \n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/view <<EOF\n{ \n  \"name\" : \"testViewBasics\", \n  \"type\" : \"arangosearch\" \n}\nEOF\n\nHTTP/1.1 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"globallyUniqueId\" : \"h402518FDD080/104450\", \n  \"id\" : \"104450\", \n  \"name\" : \"testViewBasics\", \n  \"type\" : \"arangosearch\", \n  \"cleanupIntervalStep\" : 10, \n  \"commitIntervalMsec\" : 60000, \n  \"consolidationIntervalMsec\" : 60000, \n  \"consolidationPolicy\" : { \n    \"type\" : \"bytes_accum\", \n    \"threshold\" : 0.10000000149011612 \n  }, \n  \"writebufferActive\" : 0, \n  \"writebufferIdle\" : 64, \n  \"writebufferSizeMax\" : 33554432, \n  \"links\" : { \n  } \n}\n
\n\n\n\n", + "description": "\n**A JSON object with these properties is required:**\n\n - **type**: The type of the view. must be equal to one of the supported ArangoDB view\n types.\n - **name**: The name of the view.\n - **properties**:\n - **commitIntervalMsec**: Wait at least this many milliseconds between committing view data store\n changes and making documents visible to queries (default: 60000, to disable\n use: 0).\n For the case where there are a lot of inserts/updates, a lower value, until\n commit, will cause the index not to account for them and memory usage would\n continue to grow.\n For the case where there are a few inserts/updates, a higher value will impact\n performance and waste disk space for each commit call without any added\n benefits.\n Background:\n For data retrieval ArangoSearch views follow the concept of\n \"eventually-consistent\", i.e. eventually all the data in ArangoDB will be\n matched by corresponding query expressions.\n The concept of ArangoSearch view \"commit\" operation is introduced to\n control the upper-bound on the time until document addition/removals are\n actually reflected by corresponding query expressions.\n Once a \"commit\" operation is complete all documents added/removed prior to\n the start of the \"commit\" operation will be reflected by queries invoked in\n subsequent ArangoDB transactions, in-progress ArangoDB transactions will\n still continue to return a repeatable-read state.\n - **links**:\n - **[collection-name]**:\n - **analyzers** (string): The list of analyzers to be used for indexing of string values\n (default: [\"identity\"]).\n - **fields**:\n - **field-name** (object): This is a recursive structure for the specific attribute path, potentially\n containing any of the following attributes:\n *analyzers*, *includeAllFields*, *trackListPositions*, *storeValues*\n Any attributes not specified are inherited from the parent.\n - **includeAllFields**: The flag determines whether or not to index all fields on a particular level of\n depth (default: false).\n - **trackListPositions**: The flag determines whether or not values in a lists should be treated separate\n (default: false).\n - **storeValues**: How should the view track the attribute values, this setting allows for\n additional value retrieval optimizations, one of:\n - *none*: Do not store values by the view\n - *id*: Store only information about value presence, to allow use of the EXISTS() function\n (default \"none\").\n - **consolidationIntervalMsec**: Wait at least this many milliseconds between applying 'consolidationPolicy' to\n consolidate view data store and possibly release space on the filesystem\n (default: 60000, to disable use: 0).\n For the case where there are a lot of data modification operations, a higher\n value could potentially have the data store consume more space and file handles.\n For the case where there are a few data modification operations, a lower value\n will impact performance due to no segment candidates available for\n consolidation.\n Background:\n For data modification ArangoSearch views follow the concept of a\n \"versioned data store\". Thus old versions of data may be removed once there\n are no longer any users of the old data. The frequency of the cleanup and\n compaction operations are governed by 'consolidationIntervalMsec' and the\n candidates for compaction are selected via 'consolidationPolicy'.\n - **cleanupIntervalStep**: Wait at least this many commits between removing unused files in the\n ArangoSearch data directory (default: 10, to disable use: 0).\n For the case where the consolidation policies merge segments often (i.e. a lot\n of commit+consolidate), a lower value will cause a lot of disk space to be\n wasted.\n For the case where the consolidation policies rarely merge segments (i.e. few\n inserts/deletes), a higher value will impact performance without any added\n benefits.\n Background:\n With every \"commit\" or \"consolidate\" operation a new state of the view\n internal data-structures is created on disk.\n Old states/snapshots are released once there are no longer any users\n remaining.\n However, the files for the released states/snapshots are left on disk, and\n only removed by \"cleanup\" operation.\n - **consolidationPolicy**:\n\n\n\n\nCreates a new view with a given name and properties if it does not already\nexist.\n\n**Note**: view can't be created with the links. Please use PUT/PATCH\nfor links management.\n\n\n\n\n**Example:**\n \n\n
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/view <<EOF\n{ \n  \"name\" : \"testViewBasics\", \n  \"type\" : \"arangosearch\" \n}\nEOF\n\nHTTP/1.1 Created\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"globallyUniqueId\" : \"h8B2B671BCFD0/104460\", \n  \"id\" : \"104460\", \n  \"name\" : \"testViewBasics\", \n  \"type\" : \"arangosearch\", \n  \"cleanupIntervalStep\" : 10, \n  \"commitIntervalMsec\" : 60000, \n  \"consolidationIntervalMsec\" : 60000, \n  \"consolidationPolicy\" : { \n    \"type\" : \"bytes_accum\", \n    \"threshold\" : 0.10000000149011612 \n  }, \n  \"writebufferActive\" : 0, \n  \"writebufferIdle\" : 64, \n  \"writebufferSizeMax\" : 33554432, \n  \"links\" : { \n  } \n}\n
\n\n\n\n", "parameters": [ { "in": "body", @@ -14629,7 +14629,7 @@ }, "/_api/view/{view-name}": { "delete": { - "description": "\n\nDrops the view identified by *view-name*.\n\nIf the view was successfully dropped, an object is returned with\nthe following attributes:\n- *error*: *false*\n- *id*: The identifier of the dropped view\n\n\n\n\n**Example:**\n Using an identifier:\n\n
shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/view/107276\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"result\" : true \n}\n
\n\n\n\n\n**Example:**\n Using a name:\n\n
shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/view/testView\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"result\" : true \n}\n
\n\n\n\n", + "description": "\n\nDrops the view identified by *view-name*.\n\nIf the view was successfully dropped, an object is returned with\nthe following attributes:\n- *error*: *false*\n- *id*: The identifier of the dropped view\n\n\n\n\n**Example:**\n Using an identifier:\n\n
shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/view/107285\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"result\" : true \n}\n
\n\n\n\n\n**Example:**\n Using a name:\n\n
shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/view/testView\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"result\" : true \n}\n
\n\n\n\n", "parameters": [ { "description": "The name of the view to drop.\n\n", @@ -14657,7 +14657,7 @@ "x-hints": "" }, "get": { - "description": "\n\nThe result is an object describing the view with the following attributes:\n- *id*: The identifier of the view\n- *name*: The name of the view\n- *type*: The type of the view as string\n\n\n\n\n**Example:**\n Using an identifier:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/view/107288\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"type\" : \"arangosearch\", \n  \"name\" : \"testView\", \n  \"globallyUniqueId\" : \"h402518FDD080/107288\", \n  \"id\" : \"107288\" \n}\n
\n\n\n\n\n**Example:**\n Using a name:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/view/testView\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"type\" : \"arangosearch\", \n  \"name\" : \"testView\", \n  \"globallyUniqueId\" : \"h402518FDD080/107294\", \n  \"id\" : \"107294\" \n}\n
\n\n\n\n", + "description": "\n\nThe result is an object describing the view with the following attributes:\n- *id*: The identifier of the view\n- *name*: The name of the view\n- *type*: The type of the view as string\n\n\n\n\n**Example:**\n Using an identifier:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/view/107297\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"type\" : \"arangosearch\", \n  \"name\" : \"testView\", \n  \"globallyUniqueId\" : \"h8B2B671BCFD0/107297\", \n  \"id\" : \"107297\" \n}\n
\n\n\n\n\n**Example:**\n Using a name:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/view/testView\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"type\" : \"arangosearch\", \n  \"name\" : \"testView\", \n  \"globallyUniqueId\" : \"h8B2B671BCFD0/107303\", \n  \"id\" : \"107303\" \n}\n
\n\n\n\n", "parameters": [ { "description": "The name of the view.\n\n", @@ -14684,7 +14684,7 @@ }, "/_api/view/{view-name}/properties": { "get": { - "description": "\n\nReturns an object containing the definition of the view identified by *view-name*.\n\n\n\nThe result is an object describing the view with the following attributes:\n- *id*: The identifier of the view\n- *name*: The name of the view\n- *type*: The type of the view as string\n- any additional view implementation specific properties\n\n\n\n\n**Example:**\n Using an identifier:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/view/107300/properties\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"writebufferIdle\" : 64, \n  \"writebufferActive\" : 0, \n  \"type\" : \"arangosearch\", \n  \"writebufferSizeMax\" : 33554432, \n  \"name\" : \"products\", \n  \"commitIntervalMsec\" : 60000, \n  \"consolidationPolicy\" : { \n    \"type\" : \"bytes_accum\", \n    \"threshold\" : 0.10000000149011612 \n  }, \n  \"globallyUniqueId\" : \"h402518FDD080/107300\", \n  \"cleanupIntervalStep\" : 10, \n  \"id\" : \"107300\", \n  \"links\" : { \n  }, \n  \"consolidationIntervalMsec\" : 60000 \n}\n
\n\n\n\n\n**Example:**\n Using a name:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/view/products/properties\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"writebufferIdle\" : 64, \n  \"writebufferActive\" : 0, \n  \"type\" : \"arangosearch\", \n  \"writebufferSizeMax\" : 33554432, \n  \"name\" : \"products\", \n  \"commitIntervalMsec\" : 60000, \n  \"consolidationPolicy\" : { \n    \"type\" : \"bytes_accum\", \n    \"threshold\" : 0.10000000149011612 \n  }, \n  \"globallyUniqueId\" : \"h402518FDD080/107307\", \n  \"cleanupIntervalStep\" : 10, \n  \"id\" : \"107307\", \n  \"links\" : { \n  }, \n  \"consolidationIntervalMsec\" : 60000 \n}\n
\n\n\n\n", + "description": "\n\nReturns an object containing the definition of the view identified by *view-name*.\n\n\n\nThe result is an object describing the view with the following attributes:\n- *id*: The identifier of the view\n- *name*: The name of the view\n- *type*: The type of the view as string\n- any additional view implementation specific properties\n\n\n\n\n**Example:**\n Using an identifier:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/view/107309/properties\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"writebufferIdle\" : 64, \n  \"writebufferActive\" : 0, \n  \"type\" : \"arangosearch\", \n  \"writebufferSizeMax\" : 33554432, \n  \"name\" : \"products\", \n  \"commitIntervalMsec\" : 60000, \n  \"consolidationPolicy\" : { \n    \"type\" : \"bytes_accum\", \n    \"threshold\" : 0.10000000149011612 \n  }, \n  \"globallyUniqueId\" : \"h8B2B671BCFD0/107309\", \n  \"cleanupIntervalStep\" : 10, \n  \"id\" : \"107309\", \n  \"links\" : { \n  }, \n  \"consolidationIntervalMsec\" : 60000 \n}\n
\n\n\n\n\n**Example:**\n Using a name:\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/view/products/properties\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"writebufferIdle\" : 64, \n  \"writebufferActive\" : 0, \n  \"type\" : \"arangosearch\", \n  \"writebufferSizeMax\" : 33554432, \n  \"name\" : \"products\", \n  \"commitIntervalMsec\" : 60000, \n  \"consolidationPolicy\" : { \n    \"type\" : \"bytes_accum\", \n    \"threshold\" : 0.10000000149011612 \n  }, \n  \"globallyUniqueId\" : \"h8B2B671BCFD0/107316\", \n  \"cleanupIntervalStep\" : 10, \n  \"id\" : \"107316\", \n  \"links\" : { \n  }, \n  \"consolidationIntervalMsec\" : 60000 \n}\n
\n\n\n\n", "parameters": [ { "description": "The name of the view.\n\n", @@ -14714,7 +14714,7 @@ }, "/_api/view/{view-name}/properties#ArangoSearch": { "patch": { - "description": "\n**A JSON object with these properties is required:**\n\n - **properties**:\n - **commitIntervalMsec**: Wait at least this many milliseconds between committing view data store\n changes and making documents visible to queries (default: 60000, to disable\n use: 0).\n For the case where there are a lot of inserts/updates, a lower value, until\n commit, will cause the index not to account for them and memory usage would\n continue to grow.\n For the case where there are a few inserts/updates, a higher value will impact\n performance and waste disk space for each commit call without any added\n benefits.\n Background:\n For data retrieval ArangoSearch views follow the concept of\n \"eventually-consistent\", i.e. eventually all the data in ArangoDB will be\n matched by corresponding query expressions.\n The concept of ArangoSearch view \"commit\" operation is introduced to\n control the upper-bound on the time until document addition/removals are\n actually reflected by corresponding query expressions.\n Once a \"commit\" operation is complete all documents added/removed prior to\n the start of the \"commit\" operation will be reflected by queries invoked in\n subsequent ArangoDB transactions, in-progress ArangoDB transactions will\n still continue to return a repeatable-read state.\n - **links**:\n - **[collection-name]**:\n - **analyzers** (string): The list of analyzers to be used for indexing of string values\n (default: [\"identity\"]).\n - **fields**:\n - **field-name** (object): This is a recursive structure for the specific attribute path, potentially\n containing any of the following attributes:\n *analyzers*, *includeAllFields*, *trackListPositions*, *storeValues*\n Any attributes not specified are inherited from the parent.\n - **includeAllFields**: The flag determines whether or not to index all fields on a particular level of\n depth (default: false).\n - **trackListPositions**: The flag determines whether or not values in a lists should be treated separate\n (default: false).\n - **storeValues**: How should the view track the attribute values, this setting allows for\n additional value retrieval optimizations, one of:\n - *none*: Do not store values by the view\n - *id*: Store only information about value presence, to allow use of the EXISTS() function\n (default \"none\").\n - **consolidationIntervalMsec**: Wait at least this many milliseconds between applying 'consolidationPolicy' to\n consolidate view data store and possibly release space on the filesystem\n (default: 60000, to disable use: 0).\n For the case where there are a lot of data modification operations, a higher\n value could potentially have the data store consume more space and file handles.\n For the case where there are a few data modification operations, a lower value\n will impact performance due to no segment candidates available for\n consolidation.\n Background:\n For data modification ArangoSearch views follow the concept of a\n \"versioned data store\". Thus old versions of data may be removed once there\n are no longer any users of the old data. The frequency of the cleanup and\n compaction operations are governed by 'consolidationIntervalMsec' and the\n candidates for compaction are selected via 'consolidationPolicy'.\n - **cleanupIntervalStep**: Wait at least this many commits between removing unused files in the\n ArangoSearch data directory (default: 10, to disable use: 0).\n For the case where the consolidation policies merge segments often (i.e. a lot\n of commit+consolidate), a lower value will cause a lot of disk space to be\n wasted.\n For the case where the consolidation policies rarely merge segments (i.e. few\n inserts/deletes), a higher value will impact performance without any added\n benefits.\n Background:\n With every \"commit\" or \"consolidate\" operation a new state of the view\n internal data-structures is created on disk.\n Old states/snapshots are released once there are no longer any users\n remaining.\n However, the files for the released states/snapshots are left on disk, and\n only removed by \"cleanup\" operation.\n - **consolidationPolicy**:\n\n\n\n\nChanges the properties of a view.\n\nOn success an object with the following attributes is returned:\n- *id*: The identifier of the view\n- *name*: The name of the view\n- *type*: The view type\n- all additional arangosearch view implementation specific properties\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/view/products/properties <<EOF\n{ \n  \"locale\" : \"en\" \n}\nEOF\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"globallyUniqueId\" : \"h402518FDD080/104442\", \n  \"id\" : \"104442\", \n  \"name\" : \"products\", \n  \"type\" : \"arangosearch\", \n  \"cleanupIntervalStep\" : 10, \n  \"commitIntervalMsec\" : 60000, \n  \"consolidationIntervalMsec\" : 60000, \n  \"consolidationPolicy\" : { \n    \"type\" : \"bytes_accum\", \n    \"threshold\" : 0.10000000149011612 \n  }, \n  \"writebufferActive\" : 0, \n  \"writebufferIdle\" : 64, \n  \"writebufferSizeMax\" : 33554432, \n  \"links\" : { \n  } \n}\n
\n\n\n\n", + "description": "\n**A JSON object with these properties is required:**\n\n - **properties**:\n - **commitIntervalMsec**: Wait at least this many milliseconds between committing view data store\n changes and making documents visible to queries (default: 60000, to disable\n use: 0).\n For the case where there are a lot of inserts/updates, a lower value, until\n commit, will cause the index not to account for them and memory usage would\n continue to grow.\n For the case where there are a few inserts/updates, a higher value will impact\n performance and waste disk space for each commit call without any added\n benefits.\n Background:\n For data retrieval ArangoSearch views follow the concept of\n \"eventually-consistent\", i.e. eventually all the data in ArangoDB will be\n matched by corresponding query expressions.\n The concept of ArangoSearch view \"commit\" operation is introduced to\n control the upper-bound on the time until document addition/removals are\n actually reflected by corresponding query expressions.\n Once a \"commit\" operation is complete all documents added/removed prior to\n the start of the \"commit\" operation will be reflected by queries invoked in\n subsequent ArangoDB transactions, in-progress ArangoDB transactions will\n still continue to return a repeatable-read state.\n - **links**:\n - **[collection-name]**:\n - **analyzers** (string): The list of analyzers to be used for indexing of string values\n (default: [\"identity\"]).\n - **fields**:\n - **field-name** (object): This is a recursive structure for the specific attribute path, potentially\n containing any of the following attributes:\n *analyzers*, *includeAllFields*, *trackListPositions*, *storeValues*\n Any attributes not specified are inherited from the parent.\n - **includeAllFields**: The flag determines whether or not to index all fields on a particular level of\n depth (default: false).\n - **trackListPositions**: The flag determines whether or not values in a lists should be treated separate\n (default: false).\n - **storeValues**: How should the view track the attribute values, this setting allows for\n additional value retrieval optimizations, one of:\n - *none*: Do not store values by the view\n - *id*: Store only information about value presence, to allow use of the EXISTS() function\n (default \"none\").\n - **consolidationIntervalMsec**: Wait at least this many milliseconds between applying 'consolidationPolicy' to\n consolidate view data store and possibly release space on the filesystem\n (default: 60000, to disable use: 0).\n For the case where there are a lot of data modification operations, a higher\n value could potentially have the data store consume more space and file handles.\n For the case where there are a few data modification operations, a lower value\n will impact performance due to no segment candidates available for\n consolidation.\n Background:\n For data modification ArangoSearch views follow the concept of a\n \"versioned data store\". Thus old versions of data may be removed once there\n are no longer any users of the old data. The frequency of the cleanup and\n compaction operations are governed by 'consolidationIntervalMsec' and the\n candidates for compaction are selected via 'consolidationPolicy'.\n - **cleanupIntervalStep**: Wait at least this many commits between removing unused files in the\n ArangoSearch data directory (default: 10, to disable use: 0).\n For the case where the consolidation policies merge segments often (i.e. a lot\n of commit+consolidate), a lower value will cause a lot of disk space to be\n wasted.\n For the case where the consolidation policies rarely merge segments (i.e. few\n inserts/deletes), a higher value will impact performance without any added\n benefits.\n Background:\n With every \"commit\" or \"consolidate\" operation a new state of the view\n internal data-structures is created on disk.\n Old states/snapshots are released once there are no longer any users\n remaining.\n However, the files for the released states/snapshots are left on disk, and\n only removed by \"cleanup\" operation.\n - **consolidationPolicy**:\n\n\n\n\nChanges the properties of a view.\n\nOn success an object with the following attributes is returned:\n- *id*: The identifier of the view\n- *name*: The name of the view\n- *type*: The view type\n- all additional arangosearch view implementation specific properties\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/view/products/properties <<EOF\n{ \n  \"locale\" : \"en\" \n}\nEOF\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"globallyUniqueId\" : \"h8B2B671BCFD0/104452\", \n  \"id\" : \"104452\", \n  \"name\" : \"products\", \n  \"type\" : \"arangosearch\", \n  \"cleanupIntervalStep\" : 10, \n  \"commitIntervalMsec\" : 60000, \n  \"consolidationIntervalMsec\" : 60000, \n  \"consolidationPolicy\" : { \n    \"type\" : \"bytes_accum\", \n    \"threshold\" : 0.10000000149011612 \n  }, \n  \"writebufferActive\" : 0, \n  \"writebufferIdle\" : 64, \n  \"writebufferSizeMax\" : 33554432, \n  \"links\" : { \n  } \n}\n
\n\n\n\n", "parameters": [ { "description": "The name of the view.\n\n", @@ -14751,7 +14751,7 @@ "x-hints": "" }, "put": { - "description": "\n**A JSON object with these properties is required:**\n\n - **properties**:\n - **commitIntervalMsec**: Wait at least this many milliseconds between committing view data store\n changes and making documents visible to queries (default: 60000, to disable\n use: 0).\n For the case where there are a lot of inserts/updates, a lower value, until\n commit, will cause the index not to account for them and memory usage would\n continue to grow.\n For the case where there are a few inserts/updates, a higher value will impact\n performance and waste disk space for each commit call without any added\n benefits.\n Background:\n For data retrieval ArangoSearch views follow the concept of\n \"eventually-consistent\", i.e. eventually all the data in ArangoDB will be\n matched by corresponding query expressions.\n The concept of ArangoSearch view \"commit\" operation is introduced to\n control the upper-bound on the time until document addition/removals are\n actually reflected by corresponding query expressions.\n Once a \"commit\" operation is complete all documents added/removed prior to\n the start of the \"commit\" operation will be reflected by queries invoked in\n subsequent ArangoDB transactions, in-progress ArangoDB transactions will\n still continue to return a repeatable-read state.\n - **links**:\n - **[collection-name]**:\n - **analyzers** (string): The list of analyzers to be used for indexing of string values\n (default: [\"identity\"]).\n - **fields**:\n - **field-name** (object): This is a recursive structure for the specific attribute path, potentially\n containing any of the following attributes:\n *analyzers*, *includeAllFields*, *trackListPositions*, *storeValues*\n Any attributes not specified are inherited from the parent.\n - **includeAllFields**: The flag determines whether or not to index all fields on a particular level of\n depth (default: false).\n - **trackListPositions**: The flag determines whether or not values in a lists should be treated separate\n (default: false).\n - **storeValues**: How should the view track the attribute values, this setting allows for\n additional value retrieval optimizations, one of:\n - *none*: Do not store values by the view\n - *id*: Store only information about value presence, to allow use of the EXISTS() function\n (default \"none\").\n - **consolidationIntervalMsec**: Wait at least this many milliseconds between applying 'consolidationPolicy' to\n consolidate view data store and possibly release space on the filesystem\n (default: 60000, to disable use: 0).\n For the case where there are a lot of data modification operations, a higher\n value could potentially have the data store consume more space and file handles.\n For the case where there are a few data modification operations, a lower value\n will impact performance due to no segment candidates available for\n consolidation.\n Background:\n For data modification ArangoSearch views follow the concept of a\n \"versioned data store\". Thus old versions of data may be removed once there\n are no longer any users of the old data. The frequency of the cleanup and\n compaction operations are governed by 'consolidationIntervalMsec' and the\n candidates for compaction are selected via 'consolidationPolicy'.\n - **cleanupIntervalStep**: Wait at least this many commits between removing unused files in the\n ArangoSearch data directory (default: 10, to disable use: 0).\n For the case where the consolidation policies merge segments often (i.e. a lot\n of commit+consolidate), a lower value will cause a lot of disk space to be\n wasted.\n For the case where the consolidation policies rarely merge segments (i.e. few\n inserts/deletes), a higher value will impact performance without any added\n benefits.\n Background:\n With every \"commit\" or \"consolidate\" operation a new state of the view\n internal data-structures is created on disk.\n Old states/snapshots are released once there are no longer any users\n remaining.\n However, the files for the released states/snapshots are left on disk, and\n only removed by \"cleanup\" operation.\n - **consolidationPolicy**:\n\n\n\n\nChanges the properties of a view.\n\nOn success an object with the following attributes is returned:\n- *id*: The identifier of the view\n- *name*: The name of the view\n- *type*: The view type\n- all additional arangosearch view implementation specific properties\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/view/products/properties <<EOF\n{ \n  \"locale\" : \"en\" \n}\nEOF\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"globallyUniqueId\" : \"h402518FDD080/104456\", \n  \"id\" : \"104456\", \n  \"name\" : \"products\", \n  \"type\" : \"arangosearch\", \n  \"cleanupIntervalStep\" : 10, \n  \"commitIntervalMsec\" : 60000, \n  \"consolidationIntervalMsec\" : 60000, \n  \"consolidationPolicy\" : { \n    \"type\" : \"bytes_accum\", \n    \"threshold\" : 0.10000000149011612 \n  }, \n  \"writebufferActive\" : 0, \n  \"writebufferIdle\" : 64, \n  \"writebufferSizeMax\" : 33554432, \n  \"links\" : { \n  } \n}\n
\n\n\n\n", + "description": "\n**A JSON object with these properties is required:**\n\n - **properties**:\n - **commitIntervalMsec**: Wait at least this many milliseconds between committing view data store\n changes and making documents visible to queries (default: 60000, to disable\n use: 0).\n For the case where there are a lot of inserts/updates, a lower value, until\n commit, will cause the index not to account for them and memory usage would\n continue to grow.\n For the case where there are a few inserts/updates, a higher value will impact\n performance and waste disk space for each commit call without any added\n benefits.\n Background:\n For data retrieval ArangoSearch views follow the concept of\n \"eventually-consistent\", i.e. eventually all the data in ArangoDB will be\n matched by corresponding query expressions.\n The concept of ArangoSearch view \"commit\" operation is introduced to\n control the upper-bound on the time until document addition/removals are\n actually reflected by corresponding query expressions.\n Once a \"commit\" operation is complete all documents added/removed prior to\n the start of the \"commit\" operation will be reflected by queries invoked in\n subsequent ArangoDB transactions, in-progress ArangoDB transactions will\n still continue to return a repeatable-read state.\n - **links**:\n - **[collection-name]**:\n - **analyzers** (string): The list of analyzers to be used for indexing of string values\n (default: [\"identity\"]).\n - **fields**:\n - **field-name** (object): This is a recursive structure for the specific attribute path, potentially\n containing any of the following attributes:\n *analyzers*, *includeAllFields*, *trackListPositions*, *storeValues*\n Any attributes not specified are inherited from the parent.\n - **includeAllFields**: The flag determines whether or not to index all fields on a particular level of\n depth (default: false).\n - **trackListPositions**: The flag determines whether or not values in a lists should be treated separate\n (default: false).\n - **storeValues**: How should the view track the attribute values, this setting allows for\n additional value retrieval optimizations, one of:\n - *none*: Do not store values by the view\n - *id*: Store only information about value presence, to allow use of the EXISTS() function\n (default \"none\").\n - **consolidationIntervalMsec**: Wait at least this many milliseconds between applying 'consolidationPolicy' to\n consolidate view data store and possibly release space on the filesystem\n (default: 60000, to disable use: 0).\n For the case where there are a lot of data modification operations, a higher\n value could potentially have the data store consume more space and file handles.\n For the case where there are a few data modification operations, a lower value\n will impact performance due to no segment candidates available for\n consolidation.\n Background:\n For data modification ArangoSearch views follow the concept of a\n \"versioned data store\". Thus old versions of data may be removed once there\n are no longer any users of the old data. The frequency of the cleanup and\n compaction operations are governed by 'consolidationIntervalMsec' and the\n candidates for compaction are selected via 'consolidationPolicy'.\n - **cleanupIntervalStep**: Wait at least this many commits between removing unused files in the\n ArangoSearch data directory (default: 10, to disable use: 0).\n For the case where the consolidation policies merge segments often (i.e. a lot\n of commit+consolidate), a lower value will cause a lot of disk space to be\n wasted.\n For the case where the consolidation policies rarely merge segments (i.e. few\n inserts/deletes), a higher value will impact performance without any added\n benefits.\n Background:\n With every \"commit\" or \"consolidate\" operation a new state of the view\n internal data-structures is created on disk.\n Old states/snapshots are released once there are no longer any users\n remaining.\n However, the files for the released states/snapshots are left on disk, and\n only removed by \"cleanup\" operation.\n - **consolidationPolicy**:\n\n\n\n\nChanges the properties of a view.\n\nOn success an object with the following attributes is returned:\n- *id*: The identifier of the view\n- *name*: The name of the view\n- *type*: The view type\n- all additional arangosearch view implementation specific properties\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/view/products/properties <<EOF\n{ \n  \"locale\" : \"en\" \n}\nEOF\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"globallyUniqueId\" : \"h8B2B671BCFD0/104466\", \n  \"id\" : \"104466\", \n  \"name\" : \"products\", \n  \"type\" : \"arangosearch\", \n  \"cleanupIntervalStep\" : 10, \n  \"commitIntervalMsec\" : 60000, \n  \"consolidationIntervalMsec\" : 60000, \n  \"consolidationPolicy\" : { \n    \"type\" : \"bytes_accum\", \n    \"threshold\" : 0.10000000149011612 \n  }, \n  \"writebufferActive\" : 0, \n  \"writebufferIdle\" : 64, \n  \"writebufferSizeMax\" : 33554432, \n  \"links\" : { \n  } \n}\n
\n\n\n\n", "parameters": [ { "description": "The name of the view.\n\n", @@ -14790,7 +14790,7 @@ }, "/_api/view/{view-name}/properties#arangosearch": { "patch": { - "description": "\n\nChanges the properties of a view.\n\nOn success an object with the following attributes is returned:\n- *id*: The identifier of the view\n- *name*: The name of the view\n- *type*: The view type\n- any additional view implementation specific properties\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/view/products/properties <<EOF\n{ \n}\nEOF\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"globallyUniqueId\" : \"h402518FDD080/107314\", \n  \"id\" : \"107314\", \n  \"name\" : \"products\", \n  \"type\" : \"arangosearch\", \n  \"cleanupIntervalStep\" : 10, \n  \"commitIntervalMsec\" : 60000, \n  \"consolidationIntervalMsec\" : 60000, \n  \"consolidationPolicy\" : { \n    \"type\" : \"bytes_accum\", \n    \"threshold\" : 0.10000000149011612 \n  }, \n  \"writebufferActive\" : 0, \n  \"writebufferIdle\" : 64, \n  \"writebufferSizeMax\" : 33554432, \n  \"links\" : { \n  } \n}\n
\n\n\n\n\n", + "description": "\n\nChanges the properties of a view.\n\nOn success an object with the following attributes is returned:\n- *id*: The identifier of the view\n- *name*: The name of the view\n- *type*: The view type\n- any additional view implementation specific properties\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/view/products/properties <<EOF\n{ \n}\nEOF\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"globallyUniqueId\" : \"h8B2B671BCFD0/107323\", \n  \"id\" : \"107323\", \n  \"name\" : \"products\", \n  \"type\" : \"arangosearch\", \n  \"cleanupIntervalStep\" : 10, \n  \"commitIntervalMsec\" : 60000, \n  \"consolidationIntervalMsec\" : 60000, \n  \"consolidationPolicy\" : { \n    \"type\" : \"bytes_accum\", \n    \"threshold\" : 0.10000000149011612 \n  }, \n  \"writebufferActive\" : 0, \n  \"writebufferIdle\" : 64, \n  \"writebufferSizeMax\" : 33554432, \n  \"links\" : { \n  } \n}\n
\n\n\n\n\n", "parameters": [ { "description": "The name of the view.\n\n", @@ -14818,7 +14818,7 @@ "x-hints": "" }, "put": { - "description": "\n\nChanges the properties of a view.\n\nOn success an object with the following attributes is returned:\n- *id*: The identifier of the view\n- *name*: The name of the view\n- *type*: The view type\n- any additional view implementation specific properties\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/view/products/properties <<EOF\n{ \n}\nEOF\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"globallyUniqueId\" : \"h402518FDD080/107328\", \n  \"id\" : \"107328\", \n  \"name\" : \"products\", \n  \"type\" : \"arangosearch\", \n  \"cleanupIntervalStep\" : 10, \n  \"commitIntervalMsec\" : 60000, \n  \"consolidationIntervalMsec\" : 60000, \n  \"consolidationPolicy\" : { \n    \"type\" : \"bytes_accum\", \n    \"threshold\" : 0.10000000149011612 \n  }, \n  \"writebufferActive\" : 0, \n  \"writebufferIdle\" : 64, \n  \"writebufferSizeMax\" : 33554432, \n  \"links\" : { \n  } \n}\n
\n\n\n\n", + "description": "\n\nChanges the properties of a view.\n\nOn success an object with the following attributes is returned:\n- *id*: The identifier of the view\n- *name*: The name of the view\n- *type*: The view type\n- any additional view implementation specific properties\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/view/products/properties <<EOF\n{ \n}\nEOF\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"globallyUniqueId\" : \"h8B2B671BCFD0/107337\", \n  \"id\" : \"107337\", \n  \"name\" : \"products\", \n  \"type\" : \"arangosearch\", \n  \"cleanupIntervalStep\" : 10, \n  \"commitIntervalMsec\" : 60000, \n  \"consolidationIntervalMsec\" : 60000, \n  \"consolidationPolicy\" : { \n    \"type\" : \"bytes_accum\", \n    \"threshold\" : 0.10000000149011612 \n  }, \n  \"writebufferActive\" : 0, \n  \"writebufferIdle\" : 64, \n  \"writebufferSizeMax\" : 33554432, \n  \"links\" : { \n  } \n}\n
\n\n\n\n", "parameters": [ { "description": "The name of the view.\n\n", @@ -14848,7 +14848,7 @@ }, "/_api/view/{view-name}/rename": { "put": { - "description": "\n\nRenames a view. Expects an object with the attribute(s)\n- *name*: The new name\n\nIt returns an object with the attributes\n- *id*: The identifier of the view.\n- *name*: The new name of the view.\n- *type*: The view type.\n\n**Note**: this method is not available in a cluster.\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/view/products1/rename <<EOF\n{ \n  \"name\" : \"viewNewName\" \n}\nEOF\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"type\" : \"arangosearch\", \n  \"name\" : \"viewNewName\", \n  \"globallyUniqueId\" : \"h402518FDD080/107336\", \n  \"id\" : \"107336\" \n}\n
\n\n\n\n", + "description": "\n\nRenames a view. Expects an object with the attribute(s)\n- *name*: The new name\n\nIt returns an object with the attributes\n- *id*: The identifier of the view.\n- *name*: The new name of the view.\n- *type*: The view type.\n\n**Note**: this method is not available in a cluster.\n\n\n\n\n**Example:**\n \n\n
shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/view/products1/rename <<EOF\n{ \n  \"name\" : \"viewNewName\" \n}\nEOF\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"error\" : false, \n  \"code\" : 200, \n  \"type\" : \"arangosearch\", \n  \"name\" : \"viewNewName\", \n  \"globallyUniqueId\" : \"h8B2B671BCFD0/107345\", \n  \"id\" : \"107345\" \n}\n
\n\n\n\n", "parameters": [ { "description": "The name of the view to rename.\n\n", @@ -14878,7 +14878,7 @@ }, "/_api/wal/lastTick": { "get": { - "description": "\n\nReturns the last available tick value that can be served from the server's\nreplication log. This corresponds to the tick of the latest successfull operation.\n\nThe result is a JSON object containing the attributes *tick*, *time* and *server*. \n* *tick*: contains the last available tick, *time* \n* *time*: the server time as string in format \"YYYY-MM-DDTHH:MM:SSZ\"\n* *server*: An object with fields *version* and *serverId*\n\n**Note**: this method is not supported on a coordinator in a cluster.\n\n\n\n\n**Example:**\n Returning the first available tick\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/wal/lastTick\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"time\" : \"2019-02-15T14:43:01Z\", \n  \"tick\" : \"107343\", \n  \"server\" : { \n    \"version\" : \"3.5.0-devel\", \n    \"serverId\" : \"70528077254784\" \n  } \n}\n
\n\n\n\n\n", + "description": "\n\nReturns the last available tick value that can be served from the server's\nreplication log. This corresponds to the tick of the latest successfull operation.\n\nThe result is a JSON object containing the attributes *tick*, *time* and *server*. \n* *tick*: contains the last available tick, *time* \n* *time*: the server time as string in format \"YYYY-MM-DDTHH:MM:SSZ\"\n* *server*: An object with fields *version* and *serverId*\n\n**Note**: this method is not supported on a coordinator in a cluster.\n\n\n\n\n**Example:**\n Returning the first available tick\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/wal/lastTick\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"time\" : \"2019-02-20T10:33:12Z\", \n  \"tick\" : \"107352\", \n  \"server\" : { \n    \"version\" : \"3.5.0-devel\", \n    \"serverId\" : \"153018529730512\" \n  } \n}\n
\n\n\n\n\n", "parameters": [], "responses": { "200": { @@ -14905,7 +14905,7 @@ }, "/_api/wal/range": { "get": { - "description": "\n\nReturns the currently available ranges of tick values for all WAL files.\nThe 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 object. \n* *tickMin*: minimum tick available\n* *tickMax: maximum tick available\n* *time*: the server time as string in format \"YYYY-MM-DDTHH:MM:SSZ\"\n* *server*: An object with fields *version* and *serverId*\n\n\n\n\n**Example:**\n Returns the available tick ranges.\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/wal/range\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"time\" : \"2019-02-15T14:43:03Z\", \n  \"tickMin\" : \"5\", \n  \"tickMax\" : \"107385\", \n  \"server\" : { \n    \"version\" : \"3.5.0-devel\", \n    \"serverId\" : \"70528077254784\" \n  } \n}\n
\n\n\n\n\n", + "description": "\n\nReturns the currently available ranges of tick values for all WAL files.\nThe 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 object. \n* *tickMin*: minimum tick available\n* *tickMax: maximum tick available\n* *time*: the server time as string in format \"YYYY-MM-DDTHH:MM:SSZ\"\n* *server*: An object with fields *version* and *serverId*\n\n\n\n\n**Example:**\n Returns the available tick ranges.\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/wal/range\n\nHTTP/1.1 OK\ncontent-type: application/json; charset=utf-8\nx-content-type-options: nosniff\n\n{ \n  \"time\" : \"2019-02-20T10:33:16Z\", \n  \"tickMin\" : \"5\", \n  \"tickMax\" : \"107403\", \n  \"server\" : { \n    \"version\" : \"3.5.0-devel\", \n    \"serverId\" : \"153018529730512\" \n  } \n}\n
\n\n\n\n\n", "parameters": [], "responses": { "200": { @@ -14932,7 +14932,7 @@ }, "/_api/wal/tail": { "get": { - "description": "\n\nReturns data from the server's write-ahead log (also named replication log). This method can be called\nby replication clients after an initial synchronization of data. The method\nwill return all \"recent\" logged operations from the server. Clients\ncan replay and apply these operations locally so they get to the same data\nstate as the server.\n\nClients can call this method repeatedly to incrementally fetch all changes\nfrom the 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 server will return log\nentries starting at the beginning of its replication log. When the *from*\nparameter is used, the 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- *cuid*: globally unique id of the view or collection the event was for\n\n- *db*: the database name the event was for\n\n- *tid*: id of the transaction the event was contained in\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 [Operation Types](#operation-types).\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-lastscanned*: the last tick the server scanned while\n computing the operation log. This might include operations the server did not\n returned to you due to various reasons (i.e. the value was filtered or skipped).\n You may use this value in the *lastScanned* header to allow the rocksdb engine\n to break up requests over multiple responses.\n\n- *x-arango-replication-lasttick*: the last tick value the server has\n logged in its write ahead log (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-frompresent*: is set to _true_ if server returned\n all tick values starting from the specified tick in the _from_ parameter.\n Should this be set to false the server did not have these operations anymore\n and the client might have missed operations.\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\n\n**Example:**\n No log events available\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/wal/tail?from=107364\n\nHTTP/1.1 No Content\ncontent-type: application/x-arango-dump; charset=utf-8\nx-arango-replication-checkmore: false\nx-arango-replication-frompresent: true\nx-arango-replication-lastincluded: 0\nx-arango-replication-lastscanned: 107364\nx-arango-replication-lasttick: 107364\nx-content-type-options: nosniff\n\n
\n\n\n\n\n**Example:**\n A few log events *(One JSON document per line)*\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/wal/tail?from=107364\n\nHTTP/1.1 OK\ncontent-type: application/x-arango-dump; charset=utf-8\nx-arango-replication-checkmore: true\nx-arango-replication-frompresent: true\nx-arango-replication-lastincluded: 107382\nx-arango-replication-lastscanned: 107385\nx-arango-replication-lasttick: 107385\nx-content-type-options: nosniff\n\n{ \n  \"tick\" : \"107382\", \n  \"type\" : 2001, \n  \"db\" : \"_system\", \n  \"cuid\" : \"h402518FDD080/107367\" \n}↩\n
\n\n\n\n\n**Example:**\n More events than would fit into the response\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/wal/tail?from=107343&chunkSize=400\n\nHTTP/1.1 OK\ncontent-type: application/x-arango-dump; charset=utf-8\nx-arango-replication-checkmore: true\nx-arango-replication-frompresent: true\nx-arango-replication-lastincluded: 107361\nx-arango-replication-lastscanned: 107364\nx-arango-replication-lasttick: 107364\nx-content-type-options: nosniff\n\n{ \n  \"tick\" : \"107361\", \n  \"type\" : 2001, \n  \"db\" : \"_system\", \n  \"cuid\" : \"h402518FDD080/107346\" \n}\n
\n\n\n\n\n", + "description": "\n\nReturns data from the server's write-ahead log (also named replication log). This method can be called\nby replication clients after an initial synchronization of data. The method\nwill return all \"recent\" logged operations from the server. Clients\ncan replay and apply these operations locally so they get to the same data\nstate as the server.\n\nClients can call this method repeatedly to incrementally fetch all changes\nfrom the 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 server will return log\nentries starting at the beginning of its replication log. When the *from*\nparameter is used, the 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- *cuid*: globally unique id of the view or collection the event was for\n\n- *db*: the database name the event was for\n\n- *tid*: id of the transaction the event was contained in\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 [Operation Types](#operation-types).\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-lastscanned*: the last tick the server scanned while\n computing the operation log. This might include operations the server did not\n returned to you due to various reasons (i.e. the value was filtered or skipped).\n You may use this value in the *lastScanned* header to allow the rocksdb engine\n to break up requests over multiple responses.\n\n- *x-arango-replication-lasttick*: the last tick value the server has\n logged in its write ahead log (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-frompresent*: is set to _true_ if server returned\n all tick values starting from the specified tick in the _from_ parameter.\n Should this be set to false the server did not have these operations anymore\n and the client might have missed operations.\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\n\n**Example:**\n No log events available\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/wal/tail?from=107382\n\nHTTP/1.1 No Content\ncontent-type: application/x-arango-dump; charset=utf-8\nx-arango-replication-checkmore: false\nx-arango-replication-frompresent: true\nx-arango-replication-lastincluded: 0\nx-arango-replication-lastscanned: 107382\nx-arango-replication-lasttick: 107382\nx-content-type-options: nosniff\n\n
\n\n\n\n\n**Example:**\n A few log events *(One JSON document per line)*\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/wal/tail?from=107382\n\nHTTP/1.1 OK\ncontent-type: application/x-arango-dump; charset=utf-8\nx-arango-replication-checkmore: true\nx-arango-replication-frompresent: true\nx-arango-replication-lastincluded: 107400\nx-arango-replication-lastscanned: 107403\nx-arango-replication-lasttick: 107403\nx-content-type-options: nosniff\n\n{ \n  \"tick\" : \"107400\", \n  \"type\" : 2001, \n  \"db\" : \"_system\", \n  \"cuid\" : \"h8B2B671BCFD0/107385\" \n}↩\n
\n\n\n\n\n**Example:**\n More events than would fit into the response\n\n
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/wal/tail?from=107352&chunkSize=400\n\nHTTP/1.1 OK\ncontent-type: application/x-arango-dump; charset=utf-8\nx-arango-replication-checkmore: true\nx-arango-replication-frompresent: true\nx-arango-replication-lastincluded: 107370\nx-arango-replication-lastscanned: 107382\nx-arango-replication-lasttick: 107382\nx-content-type-options: nosniff\n\n{ \n  \"tick\" : \"107370\", \n  \"type\" : 2001, \n  \"db\" : \"_system\", \n  \"cuid\" : \"h8B2B671BCFD0/107355\" \n}\n
\n\n\n\n\n", "parameters": [ { "description": "Exclusive lower bound tick value for results. On successive calls\nto this API you should set this to the value returned\nwith the *x-arango-replication-lastincluded* header (Unless that header\ncontains 0).\n\n", diff --git a/tests/js/common/shell/shell-ttl.js b/tests/js/common/shell/shell-ttl.js index aab9a506ca..0344eec142 100644 --- a/tests/js/common/shell/shell-ttl.js +++ b/tests/js/common/shell/shell-ttl.js @@ -284,7 +284,7 @@ function TtlSuite () { assertEqual(1000, db._collection(cn).count()); }, - testRemovalsAll : function () { + testRemovalsAllNumeric : function () { internal.ttlProperties({ active: false }); let c = db._create(cn, { numberOfShards: 2 }); @@ -312,7 +312,67 @@ function TtlSuite () { assertEqual(0, db._collection(cn).count()); }, - testRemovalsAllButOne : function () { + testRemovalsAllDate : function () { + internal.ttlProperties({ active: false }); + + let c = db._create(cn, { numberOfShards: 2 }); + c.ensureIndex({ type: "ttl", fields: ["dateCreated"], expireAfter: 1 }); + + // dt is one minute in the past + const dt = new Date((new Date()).getTime() - 1000 * 60).toISOString(); + assertTrue(dt >= "2019-01-"); + + for (let i = 0; i < 1000; ++i) { + c.insert({ dateCreated: dt, value: i }); + } + + const oldStats = internal.ttlStatistics(); + + // reenable + internal.ttlProperties({ active: true, frequency: 1000, maxTotalRemoves: 100000, maxCollectionRemoves: 100000 }); + + let stats = waitForNextRun(c, oldStats, 10); + + // both number of runs and deletions must have changed + assertNotEqual(stats.runs, oldStats.runs); + assertEqual(stats.documentsRemoved, oldStats.documentsRemoved + 1000); + + assertEqual(0, db._collection(cn).count()); + }, + + testRemovalsAllMixed : function () { + internal.ttlProperties({ active: false }); + + let c = db._create(cn, { numberOfShards: 2 }); + c.ensureIndex({ type: "ttl", fields: ["dateCreated"], expireAfter: 1 }); + + // dt is one minute in the past + let dt = new Date((new Date()).getTime() - 1000 * 60).toISOString(); + assertTrue(dt >= "2019-01-"); + + for (let i = 0; i < 1000; ++i) { + c.insert({ dateCreated: dt, value: i }); + } + dt = new Date((new Date()).getTime() - 1000 * 60).getTime(); + for (let i = 0; i < 1000; ++i) { + c.insert({ dateCreated: dt / 1000, value: i }); + } + + const oldStats = internal.ttlStatistics(); + + // reenable + internal.ttlProperties({ active: true, frequency: 1000, maxTotalRemoves: 100000, maxCollectionRemoves: 100000 }); + + let stats = waitForNextRun(c, oldStats, 10); + + // both number of runs and deletions must have changed + assertNotEqual(stats.runs, oldStats.runs); + assertEqual(stats.documentsRemoved, oldStats.documentsRemoved + 2000); + + assertEqual(0, db._collection(cn).count()); + }, + + testRemovalsAllButOneNumeric : function () { internal.ttlProperties({ active: false }); let c = db._create(cn, { numberOfShards: 2 }); @@ -342,7 +402,39 @@ function TtlSuite () { assertEqual(dt, db._collection(cn).any().dateCreated); }, - testRemovalsAllBigger : function () { + testRemovalsAllButOneDate : function () { + internal.ttlProperties({ active: false }); + + let c = db._create(cn, { numberOfShards: 2 }); + c.ensureIndex({ type: "ttl", fields: ["dateCreated"], expireAfter: 1 }); + + // dt is one minute in the past + const dt = new Date((new Date()).getTime() - 1000 * 60).toISOString(); + assertTrue(dt >= "2019-01-"); + + for (let i = 0; i < 1000; ++i) { + c.insert({ dateCreated: dt, value: i }); + } + // insert a date in the futue + const dt2 = new Date((new Date()).getTime() + 1000 * 60).toISOString(); + c.insert({ dateCreated: dt2 }); + + const oldStats = internal.ttlStatistics(); + + // reenable + internal.ttlProperties({ active: true, frequency: 1000, maxTotalRemoves: 100000, maxCollectionRemoves: 100000 }); + + let stats = waitForNextRun(c, oldStats, 10); + + // both number of runs and deletions must have changed + assertNotEqual(stats.runs, oldStats.runs); + assertEqual(stats.documentsRemoved, oldStats.documentsRemoved + 1000); + + assertEqual(1, db._collection(cn).count()); + assertEqual(dt2, db._collection(cn).any().dateCreated); + }, + + testRemovalsAllBiggerNumeric : function () { internal.ttlProperties({ active: false }); let c = db._create(cn, { numberOfShards: 2 }); @@ -370,7 +462,35 @@ function TtlSuite () { assertEqual(0, db._collection(cn).count()); }, - testRemovalsExpireAfterInTheFuture : function () { + testRemovalsAllBiggerDate : function () { + internal.ttlProperties({ active: false }); + + let c = db._create(cn, { numberOfShards: 2 }); + c.ensureIndex({ type: "ttl", fields: ["dateCreated"], expireAfter: 1 }); + + // dt is one minute in the past + const dt = new Date((new Date()).getTime() - 1000 * 60).toISOString(); + assertTrue(dt >= "2019-01-"); + + for (let i = 0; i < 10000; ++i) { + c.insert({ dateCreated: dt, value: i }); + } + + const oldStats = internal.ttlStatistics(); + + // reenable + internal.ttlProperties({ active: true, frequency: 1000, maxTotalRemoves: 100000, maxCollectionRemoves: 100000 }); + + let stats = waitForNextRun(c, oldStats, 10); + + // both number of runs and deletions must have changed + assertNotEqual(stats.runs, oldStats.runs); + assertEqual(stats.documentsRemoved, oldStats.documentsRemoved + 10000); + + assertEqual(0, db._collection(cn).count()); + }, + + testRemovalsExpireAfterInTheFutureNumeric : function () { internal.ttlProperties({ active: false }); let c = db._create(cn, { numberOfShards: 2 }); @@ -398,7 +518,35 @@ function TtlSuite () { assertEqual(1000, db._collection(cn).count()); }, - testRemovalsExpireAfterSomeInTheFuture : function () { + testRemovalsExpireAfterInTheFutureDate : function () { + internal.ttlProperties({ active: false }); + + let c = db._create(cn, { numberOfShards: 2 }); + c.ensureIndex({ type: "ttl", fields: ["dateCreated"], expireAfter: 1 }); + + // dt is one day in the future + const dt = new Date((new Date()).getTime() + 1000 * 86400).toISOString(); + assertTrue(dt >= "2019-01-"); + + for (let i = 0; i < 1000; ++i) { + c.insert({ dateCreated: dt, value: i }); + } + + const oldStats = internal.ttlStatistics(); + + // reenable + internal.ttlProperties({ active: true, frequency: 1000, maxTotalRemoves: 100000, maxCollectionRemoves: 100000 }); + + let stats = waitForNextRun(c, oldStats, 10); + + // number of runs must have changed, number of deletions must not + assertNotEqual(stats.runs, oldStats.runs); + assertEqual(stats.documentsRemoved, oldStats.documentsRemoved); + + assertEqual(1000, db._collection(cn).count()); + }, + + testRemovalsExpireAfterSomeInTheFutureNumeric : function () { internal.ttlProperties({ active: false }); let c = db._create(cn, { numberOfShards: 2 }); @@ -440,7 +588,49 @@ function TtlSuite () { assertEqual(1000, db._collection(cn).count()); }, - testRemovalsLimitsHitGlobal : function () { + testRemovalsExpireAfterSomeInTheFutureDate : function () { + internal.ttlProperties({ active: false }); + + let c = db._create(cn, { numberOfShards: 2 }); + c.ensureIndex({ type: "ttl", fields: ["dateCreated"], expireAfter: 1 }); + + // dt is one day in the future + let dt = new Date((new Date()).getTime() + 1000 * 86400).toISOString(); + assertTrue(dt >= "2019-01-"); + + for (let i = 0; i < 1000; ++i) { + c.insert({ dateCreated: dt, value: i }); + } + + // dt is a minute in the past + dt = new Date((new Date()).getTime() - 1000 * 60).toISOString(); + assertTrue(dt >= "2019-01-"); + + for (let i = 0; i < 1000; ++i) { + c.insert({ dateCreated: dt, value: i }); + } + + assertEqual(2000, db._collection(cn).count()); + + const oldStats = internal.ttlStatistics(); + + // reenable + let props = internal.ttlProperties({ active: true, frequency: 1000, maxTotalRemoves: 100000, maxCollectionRemoves: 100000 }); + assertTrue(props.active); + assertEqual(1000, props.frequency); + assertEqual(100000, props.maxTotalRemoves); + assertEqual(100000, props.maxCollectionRemoves); + + let stats = waitForNextRun(c, oldStats, 10); + + // both number of runs and deletions must have changed + assertNotEqual(stats.runs, oldStats.runs); + assertEqual(stats.documentsRemoved, oldStats.documentsRemoved + 1000); + + assertEqual(1000, db._collection(cn).count()); + }, + + testRemovalsLimitsHitGlobalNumeric : function () { internal.ttlProperties({ active: false }); let c = db._create(cn, { numberOfShards: 2 }); @@ -479,7 +669,46 @@ function TtlSuite () { assertTrue(db._collection(cn).count() < oldCount); }, - testRemovalsLimitsHitCollection : function () { + testRemovalsLimitsHitGlobalDate : function () { + internal.ttlProperties({ active: false }); + + let c = db._create(cn, { numberOfShards: 2 }); + c.ensureIndex({ type: "ttl", fields: ["dateCreated"], expireAfter: 1 }); + + // dt is one minute in the past + const dt = new Date((new Date()).getTime() - 1000 * 60).toISOString(); + assertTrue(dt >= "2019-01-"); + + for (let i = 0; i < 10000; ++i) { + c.insert({ dateCreated: dt, value: i }); + } + + let oldStats = internal.ttlStatistics(); + let oldCount = 10000; + + // reenable + internal.ttlProperties({ active: true, frequency: 1000, maxTotalRemoves: 10, maxCollectionRemoves: 100000 }); + + let stats = waitForNextRun(c, oldStats, 10); + + // number of runs, deletions and limitReached must have changed + assertNotEqual(stats.runs, oldStats.runs); + assertTrue(stats.limitReached > oldStats.limitReached); + assertTrue(stats.documentsRemoved > oldStats.documentsRemoved); + assertTrue(db._collection(cn).count() < oldCount); + oldCount = db._collection(cn).count(); + + // wait again for next removal + oldStats = stats; + stats = waitForNextRun(c, oldStats, 10); + + assertNotEqual(stats.runs, oldStats.runs); + assertTrue(stats.limitReached > oldStats.limitReached); + assertTrue(stats.documentsRemoved > oldStats.documentsRemoved); + assertTrue(db._collection(cn).count() < oldCount); + }, + + testRemovalsLimitsHitCollectionNumeric : function () { internal.ttlProperties({ active: false }); let c = db._create(cn, { numberOfShards: 2 }); @@ -517,6 +746,45 @@ function TtlSuite () { assertTrue(stats.documentsRemoved > oldStats.documentsRemoved); assertTrue(db._collection(cn).count() < oldCount); }, + + testRemovalsLimitsHitCollectionDate : function () { + internal.ttlProperties({ active: false }); + + let c = db._create(cn, { numberOfShards: 2 }); + c.ensureIndex({ type: "ttl", fields: ["dateCreated"], expireAfter: 1 }); + + // dt is one minute in the past + const dt = new Date((new Date()).getTime() - 1000 * 60).toISOString(); + assertTrue(dt >= "2019-01-"); + + for (let i = 0; i < 10000; ++i) { + c.insert({ dateCreated: dt, value: i }); + } + + let oldStats = internal.ttlStatistics(); + let oldCount = 10000; + + // reenable + internal.ttlProperties({ active: true, frequency: 1000, maxTotalRemoves: 1000, maxCollectionRemoves: 2000 }); + + let stats = waitForNextRun(c, oldStats, 10); + + // number of runs, deletions and limitReached must have changed + assertNotEqual(stats.runs, oldStats.runs); + assertTrue(stats.limitReached > oldStats.limitReached); + assertTrue(stats.documentsRemoved > oldStats.documentsRemoved); + assertTrue(db._collection(cn).count() < oldCount); + oldCount = db._collection(cn).count(); + + // wait again for next removal + oldStats = stats; + stats = waitForNextRun(c, oldStats, 10); + + assertNotEqual(stats.runs, oldStats.runs); + assertTrue(stats.limitReached > oldStats.limitReached); + assertTrue(stats.documentsRemoved > oldStats.documentsRemoved); + assertTrue(db._collection(cn).count() < oldCount); + }, }; }