diff --git a/.gitignore b/.gitignore index 24524e3609..0179c7cf6a 100644 --- a/.gitignore +++ b/.gitignore @@ -53,6 +53,12 @@ core TAGS tags +Documentation/Examples/*.generated +Documentation/Books/Users/book.json +Documentation/Books/Users/manual.epub +Documentation/Books/Users/manual.mobi +Documentation/Books/Users/manual.pdf +Documentation/Books/Makefile Documentation/Examples/*.generated UnitTests/HttpInterface/logs/ UnitTests/basics_suite diff --git a/CHANGELOG b/CHANGELOG index f405dcf4e0..55a1aa3fb0 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,48 @@ -v2.3.0 (XXXX-XX-XX) +v2.4.0 (XXXX-XX-XX) ------------------- +* fixed non-working subquery index optimizations + +* do not restrict summary of Foxx applications to 60 characters + +* fixed display of "required" path parameters in Foxx application documentation + +* added more optimizations of constants values in AQL FILTER conditions + +* fixed invalid or-to-in optimization for FILTERs containing comparisons + with boolean values + +* fixed replication of `_graphs` collection + +* added AQL list functions `PUSH`, `POP`, `UNSHIFT`, `SHIFT`, `REMOVE_VALUES`, + `REMOVE_VALUE`, `REMOVE_NTH` and `APPEND` + +* added AQL functions `CALL` and `APPLY` to dynamically call other functions + +* fixed AQL optimizer cost estimation for LIMIT node + +* prevent Foxx queues from permanently writing to the journal even when + server is idle + + +v2.3.0 (2014-11-18) +------------------- + +* fixed syslog flags. `--log.syslog` is deprecated and setting it has no effect, + `--log.facility` now works as described. Application name has been changed from + `triagens` to `arangod`. It can be changed using `--log.application`. The syslog + will only contain the actual log message. The datetime prefix is omiited. + +* fixed deflate in SimpleHttpClient + +* fixed issue #1104: edgeExamples broken or changed + +* fixed issue #1103: Error while importing user queries + +* fixed issue #1100: AQL: HAS() fails on doc[attribute_name] + +* fixed issue #1098: runtime error when creating graph vertex + * hide system applications in **Applications** tab by default Display of system applications can be toggled by using the *system applications* @@ -20,10 +62,14 @@ v2.3.0 (XXXX-XX-XX) * added AQL string functions `LTRIM`, `RTRIM`, `FIND_FIRST`, `FIND_LAST`, `SPLIT`, `SUBSTITUTE` -* added AQL functions `ASSEMBLE` and `VALUES` +* added AQL functions `ZIP`, `VALUES` and `PERCENTILE` * made AQL functions `CONCAT` and `CONCAT_SEPARATOR` work with list arguments +* dynamically create extra dispatcher threads if required + +* fixed issue #1097: schemas in the API docs no longer show required properties as optional + v2.3.0-beta2 (2014-11-08) ------------------------- @@ -117,22 +163,23 @@ v2.3.0-beta1 (2014-11-01) V8 contexts created in arangod. Previously, the number of V8 contexts was equal to the number of server threads - (as specified by option `--server.threads`). However, it may be sensible to - create different amounts of threads and V8 contexts. If the option is not - specified, the number of V8 contexts created will be equal to the number of - server threads. Thus no change in configuration is required to keep the old - behavior. - - However, the default configuration files shipped with ArangoDB have been changed. - The number of server threads has been increased in the configuration files, and - the number of V8 contexts is now explicitly set in the configuration files (to - the same value as the number of server threads was set to in 2.2). + (as specified by option `--server.threads`). - If you are using the default config files or merge them with your local config files, - please review if the higher default number of server threads is okay in your + However, it may be sensible to create different amounts of threads and V8 + contexts. If the option is not specified, the number of V8 contexts created + will be equal to the number of server threads. Thus no change in configuration + is required to keep the old behavior. + + If you are using the default config files or merge them with your local config + files, please review if the default number of server threads is okay in your environment. Additionally you should verify that the number of V8 contexts created (as specified in option `--javascript.v8-contexts`) is okay. +* the number of server.threads specified is now the minimum of threads + started. There are situation in which threads are waiting for results of + distributed database servers. In this case the number of threads is + dynamically increased. + * removed index type "bitarray" Bitarray indexes were only half-way documented and integrated in previous versions @@ -307,7 +354,7 @@ v2.3.0-beta1 (2014-11-01) storing JavaScript date objects in the database in a sensible manner. -v2.2.7 (XXXX-XX-XX) +v2.2.7 (2014-11-19) ------------------- * fixed issue #998: Incorrect application URL for non-system Foxx apps diff --git a/Documentation/Books/Users/Aql/DocumentFunctions.mdpp b/Documentation/Books/Users/Aql/DocumentFunctions.mdpp index 7dbe93d558..5d9ee26641 100644 --- a/Documentation/Books/Users/Aql/DocumentFunctions.mdpp +++ b/Documentation/Books/Users/Aql/DocumentFunctions.mdpp @@ -94,15 +94,14 @@ AQL supports the following functions to operate on document values: as a list. If *removeInternal* is set to *true*, then all internal attributes (such as *_id*, *_key* etc.) are removed from the result. -- *ASSEMBLE(attributes, values)*: Returns a document object assembled from the +- *ZIP(attributes, values)*: Returns a document object assembled from the separate parameters *attributes* and *values*. *attributes* and *values* must be lists and must have the same length. The items in *attributes* will be used for naming the attributes in the result. The items in *values* will be used as the actual values of the result. /* { "name" : "some user", "active" : true, "hobbies" : [ "swimming", "riding" ] } */ - ASSEMBLE([ 'name', 'active', 'hobbies' ], - [ 'some user', true, [ 'swimming', 'riding' ] ]) + ZIP([ 'name', 'active', 'hobbies' ], [ 'some user', true, [ 'swimming', 'riding' ] ]) - *UNSET(document, attributename, ...)*: Removes the attributes *attributename* (can be one or many) from *document*. All other attributes will be preserved. diff --git a/Documentation/Books/Users/Aql/Invoke.mdpp b/Documentation/Books/Users/Aql/Invoke.mdpp index f7073b7df0..c4fe63e826 100644 --- a/Documentation/Books/Users/Aql/Invoke.mdpp +++ b/Documentation/Books/Users/Aql/Invoke.mdpp @@ -35,6 +35,8 @@ return an empty list. To retrieve statistics for a data-modification query, use "warnings" : [ ] } +The meaning of the statistics values is described below. + The *_query* method is a shorthand for creating an ArangoStatement object, executing it and iterating over the resulting cursor. If more control over the result set iteration is needed, it is recommended to first create an @@ -134,6 +136,43 @@ on the server-side and may be able to apply optimizations if a result set is not a client. +!SECTION Query statistics + +A query that has been executed will always return execution statistics. Execution statistics +can be retrieved by calling `getExtra()` on the cursor. The statistics are returned in the +return value's `stats` attribute: + + arangosh> db._query("FOR i IN 1..100 INSERT { _key: CONCAT('test', TO_STRING(i)) } INTO mycollection").getExtra(); + { + "stats" : { + "writesExecuted" : 100, + "writesIgnored" : 0, + "scannedFull" : 0, + "scannedIndex" : 0 + }, + "warnings" : [ ] + } + +The meaning of the statistics attributes is as follows: + +* *writesExecuted*: the total number of data-modification operations successfully executed. + This is equivalent to the number of documents created, updated or removed by `INSERT`, + `UPDATE`, `REPLACE` or `REMOVE` operations. +* *writesIgnored*: the total number of data-modification operations that were unsuccessful, + but have been ignored because of query option `ignoreErrors`. +* *scannedFull*: the total number of documents iterated over when scanning a collection + without an index. Documents scanned by sub-queries will be included in the result, but not + no operations triggered by built-in or user-defined AQL functions. +* *scannedIndex*: the total number of documents iterated over when scanning a collection using + an index. Documents scanned by sub-queries will be included in the result, but not + no operations triggered by built-in or user-defined AQL functions. +* *fullCount*: the total number of documents that matched the search condition if the query's + final `LIMIT` statement were not present. + This attribute will only be returned if the `fullCount` option was set when starting the + query and will only contain a sensible value if the query contained a `LIMIT` operation on + the top level. + + !SECTION Explaining queries If it is unclear how a given query will perform, clients can retrieve a query's execution from @@ -153,7 +192,7 @@ is a list of warnings that occurred during optimization or execution plan creati Each plan in the result is an object with the following attributes: - *nodes*: the list of execution nodes of the plan. The list of available node types - can be found [here](.../Aql/Optimizer.html) + can be found [here](../Aql/Optimizer.html) - *estimatedCost*: the total estimated cost for the plan. If there are multiple plans, the optimizer will choose the plan with the lowest total cost. - *collections*: a list of collections used in the query diff --git a/Documentation/Books/Users/Aql/ListFunctions.mdpp b/Documentation/Books/Users/Aql/ListFunctions.mdpp index 7b297104cf..8070c50624 100644 --- a/Documentation/Books/Users/Aql/ListFunctions.mdpp +++ b/Documentation/Books/Users/Aql/ListFunctions.mdpp @@ -48,6 +48,12 @@ AQL supports the following functions to operate on list values: list is empty or only *null* values are contained in the list, the function will return *null*. +- *PERCENTILE(list, n, method)*: Returns the *n*th percentile of the values in *list*. + This requires the elements in *list* to be numbers. *null* values are ignored. *n* must + be between 0 (excluded) and 100 (included). *method* can be *rank* or *interpolation*. + The function will return null if the list is empty or only *null* values are contained + in it or the percentile cannot be calculated. + - *VARIANCE_POPULATION(list)*: Returns the population variance of the values in *list*. This requires the elements in *list* to be numbers. *null* values are ignored. If the list is empty or only *null* values are contained in the list, @@ -167,6 +173,85 @@ AQL supports the following functions to operate on list values: Note: Duplicates will be removed. +- *APPEND(list, values, unique)*: Adds all elements from the list *values* to the list + specified by *list*. If *unique* is set to true, then only those *values* will be added + that are not already contained in *list*. + The modified list is returned. All values are added at the end of the list (right side). + + /* [ 1, 2, 3, 5, 6, 9 ] */ + APPEND([ 1, 2, 3 ], [ 5, 6, 9 ]) + + /* [ 1, 2, 3, 4, 5, 9 ] */ + APPEND([ 1, 2, 3 ], [ 3, 4, 5, 2, 9 ], true) + +- *PUSH(list, value, unique)*: Adds *value* to the list specified by *list*. If + *unique* is set to true, then *value* is not added if already present in the list. + The modified list is returned. The value is added at the end of the list (right side). + + Note: non-unique elements will not be removed from the list if they were already present + before the call to `PUSH`. The *unique* flag will only control if the value will + be added again to the list if already present. To make a list unique, use the `UNIQUE` + function. + + /* [ 1, 2, 3, 4 ] */ + PUSH([ 1, 2, 3 ], 4) + + /* [ 1, 2, 3 ] */ + PUSH([ 1, 2, 3 ], 2, true) + +- *UNSHIFT(list, value, unique)*: Adds *value* to the list specified by *list*. If + *unique* is set to true, then *value* is not added if already present in the list. + The modified list is returned. The value is added at the start of the list (left side). + + Note: non-unique elements will not be removed from the list if they were already present + before the call to `UNSHIFT`. The *unique* flag will only control if the value will + be added again to the list if already present. To make a list unique, use the `UNIQUE` + function. + + /* [ 4, 1, 2, 3 ] */ + UNSHIFT([ 1, 2, 3 ], 4) + + /* [ 1, 2, 3 ] */ + UNSHIFT([ 1, 2, 3 ], 2, true) + +- *POP(list)*: Removes the element at the end (right side) of *list*. The modified list + is returned. If the list is already empty or *null*, an empty list is returned. + + /* [ 1, 2, 3 ] */ + POP([ 1, 2, 3, 4 ]) + +- *SHIFT(list)*: Removes the element at the start (left side) of *list*. The modified list + is returned. If the list is already empty or *null*, an empty list is returned. + + /* [ 2, 3, 4 ] */ + SHIFT([ 1, 2, 3, 4 ]) + +- *REMOVE_VALUE(list, value, limit)*: Removes all occurrences of *value* in the list + specified by *list*. If the optional *limit* is specified, only *limit* occurrences + will be removed. + + /* [ "b", "b", "c" ] */ + REMOVE_VALUE([ "a", "b", "b", "a", "c" ], "a") + + /* [ "b", "b", "a", "c" ] */ + REMOVE_VALUE([ "a", "b", "b", "a", "c" ], "a", 1) + +- *REMOVE_VALUES(list, values)*: Removes all occurrences of any of the values specified + in list *values* from the list specified by *list*. + + /* [ "b", "c", "e", "g" ] */ + REMOVE_VALUES([ "a", "b", "c", "d", "e", "f", "g" ], [ "a", "f", "d" ]) + +- *REMOVE_NTH(list, position)*: Removes the element at position *position* from the + list specified by *list*. Positions start at 0. Negative positions are supported, + with -1 being the last list element. If *position* is out of bounds, the list is + returned unmodified. Otherwise, the modified list is returned. + + /* [ "a", "c", "d", "e" ] */ + REMOVE_NTH([ "a", "b", "c", "d", "e" ], 1) + + /* [ "a", "b", "c", "e" ] */ + REMOVE_NTH([ "a", "b", "c", "d", "e" ], -2) Apart from these functions, AQL also offers several language constructs (e.g. -*FOR*, *SORT*, *LIMIT*, *COLLECT*) to operate on lists. \ No newline at end of file +*FOR*, *SORT*, *LIMIT*, *COLLECT*) to operate on lists. diff --git a/Documentation/Books/Users/Aql/MiscellaneousFunctions.mdpp b/Documentation/Books/Users/Aql/MiscellaneousFunctions.mdpp index ed7a88dc0e..172cd57232 100644 --- a/Documentation/Books/Users/Aql/MiscellaneousFunctions.mdpp +++ b/Documentation/Books/Users/Aql/MiscellaneousFunctions.mdpp @@ -66,3 +66,17 @@ function categories: as in the index. If no suitable skiplist index is found, an error will be raised and the query will be aborted. +- *CALL(function, arg1, ..., argn)*: Dynamically calls the function with name *function* + with the arguments specified. Both built-in and user-defined functions can be called. + Arguments are passed as seperate parameters to the called function. + + /* "this" */ + CALL('SUBSTRING', 'this is a test', 0, 4) + +- *APPLY(function, arguments)*: Dynamically calls the function with name *function* + with the arguments specified. Both built-in and user-defined functions can be called. + Arguments are passed as seperate parameters to the called function. + + /* "this is" */ + APPLY('SUBSTRING', [ 'this is a test', 0, 7 ]) + diff --git a/Documentation/Books/Users/Aql/StringFunctions.mdpp b/Documentation/Books/Users/Aql/StringFunctions.mdpp index 42464e779e..17d316be99 100644 --- a/Documentation/Books/Users/Aql/StringFunctions.mdpp +++ b/Documentation/Books/Users/Aql/StringFunctions.mdpp @@ -17,10 +17,10 @@ For string processing, AQL offers the following functions: *separator* string. *null* values are ignored. List value arguments are expanded automatically, and their individual members will be concatenated. - /* "foo,bar,baz" */ + /* "foo, bar, baz" */ CONCAT_SEPARATOR(', ', 'foo', 'bar', 'baz') - /* "foo,bar,baz" */ + /* "foo, bar, baz" */ CONCAT_SEPARATOR(', ', [ 'foo', 'bar', 'baz' ]) - *CHAR_LENGTH(value)*: Return the number of characters in *value*. This is @@ -88,7 +88,7 @@ For string processing, AQL offers the following functions: TRIM(" foobar\t \r\n ") /* "foo;bar;baz" */ - TRIM(";foo;bar;baz, ", "; ") + TRIM(";foo;bar;baz, ", ",; ") - *LTRIM(value, chars)*: Returns the string *value* with whitespace stripped from the start only. The optional *chars* parameter can be used to override the diff --git a/Documentation/Books/Users/Arangodump/README.mdpp b/Documentation/Books/Users/Arangodump/README.mdpp index 7832dabdc5..cd82bf294b 100644 --- a/Documentation/Books/Users/Arangodump/README.mdpp +++ b/Documentation/Books/Users/Arangodump/README.mdpp @@ -70,10 +70,10 @@ will behave exactly as described above, working on sharded collections in the cluster. However, as opposed to the single instance situation, this operation -does not lock the data in the cluster and can therefore not guarantee -to dump a consistent snapshot if writing operations happen during the -dump operation! That is, it is recommended not to perform any data -modifying operations on the cluster whilst *arangodump* is running. +does not guarantee to dump a consistent snapshot if write operations +happen during the dump operation. It is therefore recommended not to +perform any data-modifcation operations on the cluster whilst *arangodump* +is running. As above, the output will be one structure description file and one data file per sharded collection. Note that the data in the data file is diff --git a/Documentation/Books/Users/Blueprint-Graphs/EdgeMethods.mdpp b/Documentation/Books/Users/Blueprint-Graphs/EdgeMethods.mdpp index 32dfd3d76f..d736851949 100644 --- a/Documentation/Books/Users/Blueprint-Graphs/EdgeMethods.mdpp +++ b/Documentation/Books/Users/Blueprint-Graphs/EdgeMethods.mdpp @@ -1,5 +1,7 @@ !CHAPTER Edge Methods +**Warning: This Chapter is Deprecated** + `edge.getId()` Returns the identifier of the edge. diff --git a/Documentation/Books/Users/Blueprint-Graphs/GraphConstructor.mdpp b/Documentation/Books/Users/Blueprint-Graphs/GraphConstructor.mdpp index c0e1ae4fb7..fc3123b047 100644 --- a/Documentation/Books/Users/Blueprint-Graphs/GraphConstructor.mdpp +++ b/Documentation/Books/Users/Blueprint-Graphs/GraphConstructor.mdpp @@ -1,5 +1,6 @@ !CHAPTER Graph Constructors and Methods +**Warning: This Chapter is Deprecated** The graph module provides basic functions dealing with graph structures. The examples assume diff --git a/Documentation/Books/Users/Blueprint-Graphs/README.mdpp b/Documentation/Books/Users/Blueprint-Graphs/README.mdpp index 406dd029b5..8fa76be82c 100644 --- a/Documentation/Books/Users/Blueprint-Graphs/README.mdpp +++ b/Documentation/Books/Users/Blueprint-Graphs/README.mdpp @@ -1,6 +1,6 @@ !CHAPTER Graphs -**Warning: Deprecated** +**Warning: This Chapter is Deprecated** This module is deprecated and will be removed soon. Please use [General Graphs](../General-Graphs/README.md) instead. diff --git a/Documentation/Books/Users/Blueprint-Graphs/VertexMethods.mdpp b/Documentation/Books/Users/Blueprint-Graphs/VertexMethods.mdpp index b804e83779..db961ee53f 100644 --- a/Documentation/Books/Users/Blueprint-Graphs/VertexMethods.mdpp +++ b/Documentation/Books/Users/Blueprint-Graphs/VertexMethods.mdpp @@ -1,5 +1,7 @@ !CHAPTER Vertex Methods +**Warning: This Chapter is Deprecated** + `vertex.addInEdge( peer, id)` Creates a new edge from peer to vertex and returns the edge object. The identifier id must be a unique identifier or null. diff --git a/Documentation/Books/Users/ConfigureArango/Logging.mdpp b/Documentation/Books/Users/ConfigureArango/Logging.mdpp index daeb37ab0c..f091f3ee7c 100644 --- a/Documentation/Books/Users/ConfigureArango/Logging.mdpp +++ b/Documentation/Books/Users/ConfigureArango/Logging.mdpp @@ -19,10 +19,6 @@ statistics about executed requests and timings about computation steps. @startDocuBlock logSeverity -!SUBSECTION Syslog - -@startDocuBlock logSyslog - !SECTION Human Readable Logging !SUBSECTION Level @@ -62,7 +58,3 @@ statistics about executed requests and timings about computation steps. !SUBSECTION Facility @startDocuBlock logFacility - -!SUBSECTION Histname - -@startDocuBlock logHostname diff --git a/Documentation/Books/Users/Foxx/FoxxModel.mdpp b/Documentation/Books/Users/Foxx/FoxxModel.mdpp index aa31ed9dab..af8bf182ba 100644 --- a/Documentation/Books/Users/Foxx/FoxxModel.mdpp +++ b/Documentation/Books/Users/Foxx/FoxxModel.mdpp @@ -55,6 +55,47 @@ person.attributes // => { name: "Pete", admin: true, active: true } person.errors // => {admin: [ValidationError: value is not allowed]} ``` +The following events are emitted by a model: + +- beforeCreate +- afterCreate +- beforeSave +- afterSave +- beforeUpdate +- afterUpdate +- beforeRemove +- afterRemove + +Model lifecycle: + +```js +var person = new PersonModel(); +person.on('beforeCreate', function() { + var model = this; + model.fancyMethod(); // Do something fancy with the model +}); +var people = new Repository(appContext.collection("people"), { model: PersonModel }); + +people.save(person); +// beforeCreate() +// beforeSave() +// The model is created at db +// afterSave() +// afterCreate() + +people.update(person, data); +// beforeUpdate(data) +// beforeSave(data) +// The model is updated at db +// afterSave(data) +// afterUpdate(data) + +people.remove(person); +// beforeRemove() +// The model is deleted at db +// afterRemove() +``` + !SUBSECTION Extend @startDocuBlock JSF_foxx_model_extend diff --git a/Documentation/Books/Users/Glossary/README.mdpp b/Documentation/Books/Users/Glossary/README.mdpp index 7337fc7ef9..30f91c12e3 100644 --- a/Documentation/Books/Users/Glossary/README.mdpp +++ b/Documentation/Books/Users/Glossary/README.mdpp @@ -4,9 +4,8 @@ A collection consists of documents. It is uniquely identified by its collection identifier. It also has a unique name that clients should use to identify and access it. -Collections can be renamed. is will change the collection name, but not the collection identifier. -Collections have a type that is specified by the user when the collection is created. -There are currently two types: document and edge. The default type is document. +Collections can be renamed. It will change the collection name, but not the collection identifier. +Collections contain documents of a specific type. There are currently two types: document (default) and edge. The type is specified by the user when the collection is created, and cannot be changed later. !SUBSECTION Collection Identifier @@ -15,7 +14,6 @@ A collection identifier identifies a collection in a database. It is a string va ArangoDB currently uses 64bit unsigned integer values to maintain collection ids internally. When returning collection ids to clients, ArangoDB will put them into a string to ensure the collection id is not clipped by clients that do not support big integers. Clients should treat the collection ids returned by ArangoDB as opaque strings when they store or use it locally. - !SUBSECTION Collection Name A collection name identifies a collection in a database. It is a string and is unique within the database. Unlike the collection identifier it is supplied by the creator of the collection. The collection name must consist of letters, digits, and the _ (underscore) and - (dash) characters only. Please refer to [NamingConventions](../NamingConventions/CollectionNames.html) for more information on valid collection names. @@ -28,7 +26,7 @@ A database contains its own collections (which cannot be accessed from other dat There will always be at least one database in ArangoDB. This is the default database, named _system. This database cannot be dropped, and provides special operations for creating, dropping, and enumerating databases. Users can create additional databases and give them unique names to access them later. Database management operations cannot be initiated from out of user-defined databases. -When ArangoDB is accessed via its HTTP REST API, the database name is read from the first part of the request URI path (e.g. /_db/_system/...). If the request URI does not contain a database name, the database name is automatically. +When ArangoDB is accessed via its HTTP REST API, the database name is read from the first part of the request URI path (e.g. /_db/_system/...). If the request URI does not contain a database name, the database name is automatically derived from the endpoint. Please refer to [DatabaseEndpoint](../HttpDatabase/DatabaseEndpoint.html) for more information. !SUBSECTION Database Name @@ -101,17 +99,17 @@ ArangoDB currently uses 64bit unsigned integer values to maintain document revis !SUBSECTION Edge -Edges in ArangoDB are special documents. In addition to the internal attributes _key, _id and _rev, they have two attributes _from and _to, which contain document handles, namely the start-point and the end-point of the edge. +Edges are special documents used for connecting other documents into a graph. An edge describe the connection between two documents using the internal attributes: _from and _to. These contain document handles, namely the start-point and the end-point of the edge. The values of _from and _to are immutable once saved. !SUBSECTION Edge Collection -Edge collections are special collection that store edge documents. Edge documents are connection documents that reference other documents. The type of a collection must be specified when a collection is created and cannot be changed afterwards. +Edge collections are collections that store edges. !SUBSECTION Index -Indexes are used to allow fast access to documents. For each collection there is always the primary index which is a hash index for the document key (_key attribute). This index cannot be dropped or changed. +Indexes are used to allow fast access to documents in a collection. All collections have a primary index, which is the document's _key attribute. This index cannot be dropped or changed. Edge collections will also have an automatically created edges index, which cannot be modified. This index provides quick access to documents via the _from and _to attributes. @@ -145,4 +143,4 @@ If the index is declared unique, then access to the indexed attributes should be !SUBSECTION Skiplist Index -A skiplist is used to find ranges of documents. \ No newline at end of file +A skiplist is used to find ranges of documents. diff --git a/Documentation/Books/Users/HttpGraphs/Edge.mdpp b/Documentation/Books/Users/HttpGraphs/Edge.mdpp index 3931ae2026..0f319a58a6 100644 --- a/Documentation/Books/Users/HttpGraphs/Edge.mdpp +++ b/Documentation/Books/Users/HttpGraphs/Edge.mdpp @@ -1,6 +1,6 @@ !CHAPTER Edge -**Warning Deprecated** +**Warning: This Chapter is Deprecated** `POST /_api/graph/graph-name/edge-name`*(create edge)* diff --git a/Documentation/Books/Users/HttpGraphs/README.mdpp b/Documentation/Books/Users/HttpGraphs/README.mdpp index a062ae6f19..f0585c6c08 100644 --- a/Documentation/Books/Users/HttpGraphs/README.mdpp +++ b/Documentation/Books/Users/HttpGraphs/README.mdpp @@ -1,6 +1,6 @@ !CHAPTER HTTP Interface for Graphs -**Warning Deprecated** +**Warning: This Chapter is Deprecated** This api is deprecated and will be removed soon. Please use [General Graphs](../HttpGharial/README.md) instead. diff --git a/Documentation/Books/Users/HttpGraphs/Vertex.mdpp b/Documentation/Books/Users/HttpGraphs/Vertex.mdpp index 82851c8326..c9544fd24a 100644 --- a/Documentation/Books/Users/HttpGraphs/Vertex.mdpp +++ b/Documentation/Books/Users/HttpGraphs/Vertex.mdpp @@ -1,6 +1,6 @@ !CHAPTER Vertex -**Warning Deprecated** +**Warning: This Chapter is Deprecated** `POST /_api/graph/graph-name/vertex-name`*(create vertex)* diff --git a/Documentation/Books/Users/Installing/Compiling.mdpp b/Documentation/Books/Users/Installing/Compiling.mdpp index 27948288e3..0380f7fd95 100644 --- a/Documentation/Books/Users/Installing/Compiling.mdpp +++ b/Documentation/Books/Users/Installing/Compiling.mdpp @@ -1,25 +1,25 @@ !CHAPTER Compiling ArangoDB from scratch The following sections describe how to compile and build the ArangoDB from -scratch. The ArangoDB will compile on most Linux and Mac OS X systems. It -assumes that you use the GNU C/C++ compiler or clang/clang++ to compile the +scratch. The ArangoDB will compile on most Linux and Mac OS X systems. We +assume that you use the GNU C/C++ compiler or clang/clang++ to compile the source. ArangoDB has been tested with the GNU C/C++ compiler and clang/clang++, -but should be able to compile with any Posix-compliant compiler. +but should be able to compile with any Posix-compliant, C++11-enabled compiler. Please let us know whether you successfully compiled it with another C/C++ compiler. There are the following possibilities: -* all-in-one: this version contains the source code of the ArangoDB, all +* **all-in-one**: this version contains the source code of the ArangoDB, all generated files from the autotools, FLEX, and BISON as well as a version of V8, libev, and ICU. -* devel: this version contains the development version of the ArangoDB. +* **devel**: this version contains the development version of the ArangoDB. Use this branch if you want to make changes to the ArangoDB source. -The devel version requires a complete development environment, while the -all-in-one version allows you to compile the ArangoDB without installing all the +The **devel** version requires a complete development environment, while the +**all-in-one** version allows you to compile the ArangoDB without installing all the prerequisites. The disadvantage is that it takes longer to compile and you cannot make changes to the flex or bison files. @@ -43,11 +43,11 @@ Note: there are separate instructions for the **devel** version in the next sect Verify that your system contains: -* the GNU C/C++ compilers "gcc" and "g++" and the standard C/C++ libraries. You will +* the GNU C/C++ compilers "gcc" and "g++" and the standard C/C++ libraries. You will need compiler and library support for C++11. To be on the safe side with gcc/g++, you will need version number 4.8.1 or higher. For "clang" and "clang++", you will need at least version 3.4. -* the GNU make +* GNU make In addition you will need the following libraries: @@ -159,53 +159,47 @@ parameter once to perform required upgrade or initialisation tasks. !SECTION Devel Version +Note: a seperate [blog article](http://jsteemann.github.io/blog/2014/10/16/how-to-compile-arangodb-from-source/) +is available that describes how to compile ArangoDB from source on Ubuntu. + !SUBSECTION Basic System Requirements Verify that your system contains -* the GNU C/C++ compilers "gcc" and "g++" and the standard C/C++ libraries. You will -* compiler and library support for C++11. To be on the safe side with gcc/g++, you will -* need version number 4.8.1 or higher. For "clang" and "clang++", you will need at least -* version 3.4. +* the GNU C/C++ compilers "gcc" and "g++" and the standard C/C++ libraries, with support + for C++11. You will need version gcc number 4.8.1 or higher. For "clang" and "clang++", + you will need at least version 3.4. * the GNU autotools (autoconf, automake) -* the GNU make +* GNU make * the GNU scanner generator FLEX, at least version 2.3.35 * the GNU parser generator BISON, at least version 2.4 * Python, version 2 or 3 +* the OpenSSL library, version 1.0.1g or higher (development package) +* the GNU readline library (development package) * Go, version 1.2.2 -In addition you will need the following libraries +Most Linux systems already supply RPMs or DPKGs for these packages. +Some distributions, for example Ubuntu 12.04 or Centos 5, provide only very out-dated +versions of compilers, FLEX, BISON, and/or the V8 engine. In that case you need to compile +newer versions of the programs and/or libraries. -* libev in version 3 or 4 (only when configured with `--disable-all-in-one-libev`) -* Google's V8 engine (only when configured with `--disable-all-in-one-v8`) -* the ICU library (only when not configured with `--enable-all-in-one-icu`) -* the GNU readline library -* the OpenSSL library -* the Boost test framework library (boost_unit_test_framework) +When compiling with special configure options, you may need the following extra libraries: -To compile Google V8 yourself, you will also need Python 2 and SCons. +* libev in version 3 or 4 (only when using configure option `--disable-all-in-one-libev`, + available from http://software.schmorp.de/pkg/libev.html) +* Google's V8 engine, version 3.16.14 (only when using configure option + `--disable-all-in-one-v8`, available from http://code.google.com/p/v8) +* SCons for compiling V8 (only when using configure option + `--disable-all-in-one-v8`, see http://www.scons.org) +* the ICU library (only when not using configure option `--enable-all-in-one-icu`) +* the Boost test framework library (only when using configure option `--enable-maintainer-mode`) -Some distributions, for example Centos 5, provide only very out-dated versions -of compilers, FLEX, BISON, and the V8 engine. In that case you need to compile newer -versions of the programs and/or libraries. - -If necessary, install or download the prerequisites: - -* GNU C/C++ 4.8.1 or higher (see http://gcc.gnu.org) -* Google's V8 engine (see http://code.google.com/p/v8) -* SCons for compiling V8 (see http://www.scons.org) -* libev (see http://software.schmorp.de/pkg/libev.html) -* OpenSSL (http://openssl.org/) -* Go (http://golang.org/) - -Most linux systems already supply RPM or DEP for these -packages. Please note that you have to install the development packages. !SUBSECTION Download the Source -Download the latest source using GIT: +Download the latest ArangoDB source using *git*: - git clone git://github.com/triAGENS/ArangoDB.git + git clone -b devel git://github.com/triAGENS/ArangoDB.git !SUBSECTION Setup diff --git a/Documentation/Books/Users/ModuleGraph/EdgeMethods.mdpp b/Documentation/Books/Users/ModuleGraph/EdgeMethods.mdpp index b86812e83a..5443fbeee6 100644 --- a/Documentation/Books/Users/ModuleGraph/EdgeMethods.mdpp +++ b/Documentation/Books/Users/ModuleGraph/EdgeMethods.mdpp @@ -1,6 +1,6 @@ !CHAPTER Edge Methods -**Warning Deprecated** +**Warning: This Chapter is Deprecated** `edge.getId()` diff --git a/Documentation/Books/Users/ModuleGraph/GraphConstructor.mdpp b/Documentation/Books/Users/ModuleGraph/GraphConstructor.mdpp index f0e05a3e3c..e65ca334c3 100644 --- a/Documentation/Books/Users/ModuleGraph/GraphConstructor.mdpp +++ b/Documentation/Books/Users/ModuleGraph/GraphConstructor.mdpp @@ -1,6 +1,6 @@ !CHAPTER Graph Constructors and Methods -**Warning Deprecated** +**Warning: This Chapter is Deprecated** The graph module provides basic functions dealing with graph structures. The examples assume diff --git a/Documentation/Books/Users/ModuleGraph/README.mdpp b/Documentation/Books/Users/ModuleGraph/README.mdpp index bad6b305f6..7fcfa2ccf2 100644 --- a/Documentation/Books/Users/ModuleGraph/README.mdpp +++ b/Documentation/Books/Users/ModuleGraph/README.mdpp @@ -1,6 +1,6 @@ !CHAPTER Module "graph" -**Warning: Deprecated** +**Warning: This Chapter is Deprecated** !SUBSECTION First Steps with Graphs diff --git a/Documentation/Books/Users/ModuleGraph/VertexMethods.mdpp b/Documentation/Books/Users/ModuleGraph/VertexMethods.mdpp index 6985b000b8..fbeb93f56d 100644 --- a/Documentation/Books/Users/ModuleGraph/VertexMethods.mdpp +++ b/Documentation/Books/Users/ModuleGraph/VertexMethods.mdpp @@ -1,6 +1,6 @@ !CHAPTER Vertex Methods -**Warning Deprecated** +**Warning: This Chapter is Deprecated** `vertex.addInEdge( peer, id)` diff --git a/Documentation/Books/Users/NewFeatures/NewFeatures21.mdpp b/Documentation/Books/Users/NewFeatures/NewFeatures21.mdpp new file mode 100644 index 0000000000..90b06d2fda --- /dev/null +++ b/Documentation/Books/Users/NewFeatures/NewFeatures21.mdpp @@ -0,0 +1,299 @@ +!CHAPTER Features and Improvements + +The following list shows in detail which features have been added or improved in +ArangoDB 2.1. ArangoDB 2.1 also contains several bugfixes that are not listed +here. + +!SECTION New Edges Index + +The edges index (used to store connections between nodes in a graph) internally +uses a new data structure. This data structure improves the performance when +populating the edge index (i.e. when loading an edge collection). For large +graphs loading can be 20 times faster than with ArangoDB 2.0. + +Additionally, the new index fixes performance problems that occurred when many +duplicate `_from` or `_to` values were contained in the index. Furthermore, the +new index supports faster removal of edges. + +Finally, when loading an existing collection and building the edges index for +the collection, less memory re-allocations will be performed. + +Overall, this should considerably speed up loading edge collections. + +The new index type replaces the old edges index type automatically, without any +changes being required by the end user. + +The API of the new index is compatible with the API of the old index. Still it +is possible that the new index returns edges in a different order than the old +index. This is still considered to be compatible because the old index had never +guaranteed any result order either. + +!SECTION AQL Improvements + +AQL offers functionality to work with dates. Dates are no datatypes of their own +in AQL (neither they are in JSON, which is often used as a format to ship data +into and out of ArangoDB). Instead, dates in AQL are internally represented by +either numbers (timestamps) or strings. The date functions in AQL provide +mechanisms to convert from a numeric timestamp to a string representation and +vice versa. + +There are two date functions in AQL to create dates for further use: + +- `DATE_TIMESTAMP(date)` Creates a UTC timestamp value from `date` + +- `DATE_TIMESTAMP(year, month, day, hour, minute, second, millisecond)`: + Same as before, but allows specifying the individual date components separately. + All parameters after `day` are optional. + +- `DATE_ISO8601(date)`: Returns an ISO8601 datetime string from `date`. + The datetime string will always use UTC time, indicated by the `Z` at its end. + +- `DATE_ISO8601(year, month, day, hour, minute, second, millisecond)`: + same as before, but allows specifying the individual date components separately. + All parameters after `day` are optional. + +These two above date functions accept the following input values: + +- numeric timestamps, indicating the number of milliseconds elapsed since the UNIX + epoch (i.e. January 1st 1970 00:00:00 UTC). + An example timestamp value is `1399472349522`, which translates to + `2014-05-07T14:19:09.522Z`. + +- datetime strings in formats `YYYY-MM-DDTHH:MM:SS.MMM`, `YYYY-MM-DD HH:MM:SS.MMM`, or + `YYYY-MM-DD`. Milliseconds are always optional. + + A timezone difference may optionally be added at the end of the string, with the + hours and minutes that need to be added or subtracted to the datetime value. + For example, `2014-05-07T14:19:09+01:00` can be used to specify a one hour offset, + and `2014-05-07T14:19:09+07:30` can be specified for seven and half hours offset. + Negative offsets are also possible. Alternatively to an offset, a `Z` can be used + to indicate UTC / Zulu time. + + An example value is `2014-05-07T14:19:09.522Z` meaning May 7th 2014, 14:19:09 and + 522 milliseconds, UTC / Zulu time. Another example value without time component is + `2014-05-07Z`. + + Please note that if no timezone offset is specified in a datestring, ArangoDB will + assume UTC time automatically. This is done to ensure portability of queries across + servers with different timezone settings, and because timestamps will always be + UTC-based. + +- individual date components as separate function arguments, in the following order: + - year + - month + - day + - hour + - minute + - second + - millisecond + + All components following `day` are optional and can be omitted. Note that no + timezone offsets can be specified when using separate date components, and UTC / + Zulu time will be used. + +The following calls to `DATE_TIMESTAMP` are equivalent and will all return +`1399472349522`: + + DATE_TIMESTAMP("2014-05-07T14:19:09.522") + DATE_TIMESTAMP("2014-05-07T14:19:09.522Z") + DATE_TIMESTAMP("2014-05-07 14:19:09.522") + DATE_TIMESTAMP("2014-05-07 14:19:09.522Z") + DATE_TIMESTAMP(2014, 5, 7, 14, 19, 9, 522) + DATE_TIMESTAMP(1399472349522) + +The same is true for calls to `DATE_ISO8601` that also accepts variable input +formats: + + DATE_ISO8601("2014-05-07T14:19:09.522Z") + DATE_ISO8601("2014-05-07 14:19:09.522Z") + DATE_ISO8601(2014, 5, 7, 14, 19, 9, 522) + DATE_ISO8601(1399472349522) + +The above functions are all equivalent and will return `"2014-05-07T14:19:09.522Z"`. + +The following date functions can be used with dates created by `DATE_TIMESTAMP` and +`DATE_ISO8601`: + +- `DATE_DAYOFWEEK(date)`: Returns the weekday number of `date`. The return values have + the following meanings: + - 0: Sunday + - 1: Monday + - 2: Tuesday + - 3: Wednesday + - 4: Thursday + - 5: Friday + - 6: Saturday + +- `DATE_YEAR(date)`: Returns the year part of `date` as a number. + +- `DATE_MONTH(date)`: Returns the month part of `date` as a number. + +- `DATE_DAY(date)`: Returns the day part of `date` as a number. + +- `DATE_HOUR(date)`: Returns the hour part of `date` as a number. + +- `DATE_MINUTE(date)`: Returns the minute part of `date` as a number. + +- `DATE_SECOND(date)`: Returns the seconds part of `date` as a number. + +- `DATE_MILLISECOND(date)`: Returns the milliseconds part of `date` as a number. + +The following other date functions are also available: + +- `DATE_NOW()`: Returns the current time as a timestamp. + + Note that this function is evaluated on every invocation and may return different + values when invoked multiple times in the same query. + +The following other AQL functions have been added in ArangoDB 2.1: + +- `FLATTEN`: this function can turn a list of sub-lists into a single flat list. All + list elements in the original list will be expanded recursively up to a configurable + depth. The expanded values will be added to the single result list. + + Example: + + FLATTEN([ 1, 2, [ 3, 4 ], 5, [ 6, 7 ], [ 8, [ 9, 10 ] ]) + + will expand the sub-lists on the first level and produce: + + [ 1, 2, 3, 4, 5, 6, 7, 8, [ 9, 10 ] ] + + To fully flatten the list, the maximum depth can be specified (e.g. with a value of `2`): + + FLATTEN([ 1, 2, [ 3, 4 ], 5, [ 6, 7 ], [ 8, [ 9, 10 ] ], 2) + + This will fully expand the sub-lists and produce: + + [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ] + +- `CURRENT_DATABASE`: this function will return the name of the database the current + query is executed in. + +- `CURRENT_USER`: this function returns the name of the current user that is executing + the query. If authorization is turned off or the query is executed outside of a + request context, no user is present and the function will return `null`. + +!SECTION Cluster Dump and Restore + +The dump and restore tools, _arangodump_ and _arangorestore_, can now be used to +dump and restore collections in a cluster. Additionally, a collection dump from +a standalone ArangoDB server can be imported into a cluster, and vice versa. + +!SECTION Web Interface Improvements + +The web interface in version 2.1 has a more compact dashboard. It provides +charts with time-series for incoming requests, HTTP transfer volume and some +server resource usage figures. + +Additionally it provides trend indicators (e.g. 15 min averages) and +distribution charts (aka histogram) for some figures. + +!SECTION Foxx Improvements + +To easily access a file inside the directory of a Foxx application from within +Foxx, Foxx's `applicationContext` now provides the `foxxFilename()` function. It +can be used to assemble the full filename of a file inside the application's +directory. The `applicationContext` can be accessed as global variable from any +module within a Foxx application. + +The filename can be used inside Foxx actions or setup / teardown scripts, +e.g. to populate a Foxx application's collection with data. + +The `require` function now also prefers local modules when used from inside a +Foxx application. This allows putting modules inside the Foxx application +directory and requiring them easily. It also allows using application-specific +versions of libraries that are bundled with ArangoDB (such as underscore.js). + +!SECTION Windows Installer + +The Windows installer shipped with ArangoDB now supports installation of +ArangoDB for the current user or all users, with the required privileges. It +also supports the installation of ArangoDB as a service. + +!SECTION Fixes for 32 bit systems + +Several issues have been fixed that occured only when using ArangoDB on a 32 bits +operating system, specifically: + +- a crash in a third party component used to manage cluster data + +- a third party library that failed to initialize on 32 bit Windows, making arangod + and arangosh crash immediately. + +- overflows of values used for nanosecond-precision timeouts: these overflows + have led to invalid values being passed to socket operations, making them fail + and re-try too often + +!SECTION Updated drivers + +Several drivers for ArangoDB have been checked for compatibility with 2.1. The +current list of drivers with compatibility notes can be found online +[here](https://www.arangodb.org/driver). + +!SECTION C++11 usage + +We have moved several files from C to C++, allowing more code reuse and reducing +the need for shipping data between the two. We have also decided to require +C++11 support for ArangoDB, which allows us to use some of the simplifications, +features and guarantees that this standard has in stock. + +That also means a compiler with C++11 support is required to build ArangoDB from +source. For instance GNU CC of at least version 4.8. + +!SECTION Miscellaneous Improvements + +- Cancelable asynchronous jobs: several potentially long-running jobs can now be + cancelled via an explicit cancel operation. This allows stopping long-running + queries, traversals or scripts without shutting down the complete ArangoDB + process. Job cancellation is provided for asynchronously executed jobs as is + described in @ref HttpJobCancel. + +- Server-side periodic task management: an ArangoDB server now provides + functionality to register and unregister periodic tasks. Tasks are + user-defined JavaScript actions that can be run periodically and + automatically, independent of any HTTP requests. + + The following task management functions are provided: + + - require("org/arangodb/tasks").register(): registers a periodic task + - require("org/arangodb/tasks").unregister(): unregisters and removes a periodic task + - require("org/arangodb/tasks").get(): retrieves a specific tasks or all existing tasks + + An example task (to be executed every 15 seconds) can be registered like this: + + var tasks = require("org/arangodb/tasks"); + tasks.register({ + name: "this is an example task with parameters", + period: 15, + command: function (params) { + var greeting = params.greeting; + var data = JSON.stringify(params.data); + require('console').log('%s from parameter task: %s', greeting, data); + }, + params: { greeting: "hi", data: "how are you?" } + }); + + Please refer to the section @ref Tasks for more details. + +- The `figures` method of a collection now returns data about the collection's + index memory consumption. The returned value `indexes.size` will contain the + total amount of memory acquired by all indexes of the collection. This figure + can be used to assess the memory impact of indexes. + +- Capitalized HTTP response headers: from version 2.1, ArangoDB will return + capitalized HTTP headers by default, e.g. `Content-Length` instead of + `content-length`. Though the HTTP specification states that headers field + name are case-insensitive, several older client tools rely on a specific case + in HTTP response headers. This changes make ArangoDB a bit more compatible + with those. + +- Simplified usage of `db._createStatement()`: to easily run an AQL query, the + method `db._createStatement` now allows passing the AQL query as a string. + Previously it required the user to pass an object with a `query` attribute + (which then contained the query string). + + ArangoDB now supports both versions: + + db._createStatement(queryString); + db._createStatement({ query: queryString }); \ No newline at end of file diff --git a/Documentation/Books/Users/NewFeatures/NewFeatures23.mdpp b/Documentation/Books/Users/NewFeatures/NewFeatures23.mdpp index b68946f720..73df537856 100644 --- a/Documentation/Books/Users/NewFeatures/NewFeatures23.mdpp +++ b/Documentation/Books/Users/NewFeatures/NewFeatures23.mdpp @@ -40,7 +40,7 @@ in the future. !SUBSUBSECTION Alternative operator syntax -ArangoDB 2.3 allows to write the use the following alternative forms for the +ArangoDB 2.3 allows to use the following alternative forms for the logical operators: - `AND`: logical and - `OR`: logical or @@ -85,17 +85,19 @@ The following other AQL functions have been added: - `VALUES(document)`: returns the values of a document as a list (this is the counterpart to the already existing `ATTRIBUTES` function) -- `ASSEMBLE(attributes, values)`: returns a document constructed from attributes +- `ZIP(attributes, values)`: returns a document constructed from attributes and values passed in separate parameters +- `PERCENTILE(values, n, method)`: returns the nths percentile of the + values provided, using rank or interpolation method The already existing functions `CONCAT` and `CONCAT_SEPARATOR` now support list arguments, e.g.: - /* "foobarbaz" */ - CONCAT([ 'foo', 'bar', 'baz']) + /* "foobarbaz" */ + CONCAT([ 'foo', 'bar', 'baz']) - /* "foo,bar,baz" */ - CONCAT_SEPARATOR(", ", [ 'foo', 'bar', 'baz']) + /* "foo,bar,baz" */ + CONCAT_SEPARATOR(", ", [ 'foo', 'bar', 'baz']) !SUBSUBSECTION AQL queries throw less exceptions @@ -274,5 +276,28 @@ ArangoDB's built-in HTTP server now supports HTTP pipelining. The ArangoShell tutorial from the arangodb.com website is now integrated into the ArangoDB shell. +!SECTION Powerful Foxx Enhancements +With the new **job queue** feature you can run async jobs to communicate with external services, **Foxx queries** make writing complex AQL queries much easier and **Foxx sessions** will handle the authentication and session hassle for you. +!SUBSECTION Foxx Queries + +Writing long AQL queries in JavaScript can quickly become unwieldy. As of 2.3 ArangoDB bundles the [ArangoDB Query Builder](https://npmjs.org/package/aqb) module that provides a JavaScript API for writing complex AQL queries without string concatenation. All built-in functions that accept AQL strings now support query builder instances directly. Additionally Foxx provides a method `Foxx.createQuery` for creating parametrized queries that can return Foxx models or apply arbitrary transformations to the query results. + +!SUBSECTION Foxx Sessions + +The session functionality in Foxx has been completely rewritten. The old `activateAuthentication` API is still supported but may be deprecated in the future. The new `activateSessions` API supports cookies or configurable headers, provides optional JSON Web Token and cryptographic signing support and uses the new sessions Foxx app. + +ArangoDB 2.3 provides Foxx apps for user management and salted hash-based authentication which can be replaced with or supplemented by alternative implementations. For an example app using both the built-in authentication and OAuth2 see the [Foxx Sessions Example app](https://github.com/arangodb/foxx-sessions-example). + +!SUBSECTION Foxx Queues + +Foxx now provides async workers via the Foxx Queues API. Jobs enqueued in a job queue will be executed asynchronously outside of the request/response cycle of Foxx controllers and can be used to communicate with external services or perform tasks that take a long time to complete or may require multiple attempts. + +Jobs can be scheduled in advance or set to be executed immediately, the number of retry attempts, the retry delay as well as sucess and failure handlers can be defined for each job individually. Job types that integrate various external services for transactional e-mails, logging and user tracking can be found in the Foxx app registry. + +!SUBSECTION Misc + +The request and response objects in Foxx controllers now provide methods for reading and writing raw cookies and signed cookies. + +Mounted Foxx apps will now be loaded when arangod starts rather than at the first database request. This may result in slightly slower start up times (but a faster response for the first request). diff --git a/Documentation/Books/Users/SUMMARY.md b/Documentation/Books/Users/SUMMARY.md index a5a5d6375d..bc10d32421 100644 --- a/Documentation/Books/Users/SUMMARY.md +++ b/Documentation/Books/Users/SUMMARY.md @@ -12,6 +12,9 @@ * [Upgrading in general](Installing/Upgrading.md) * [Cluster setup](Installing/Cluster.md) +* [Whats New](NewFeatures/NewFeatures23.md) + * [Whats New in 2.2](NewFeatures/NewFeatures22.md) + * [Whats New in 2.1](NewFeatures/NewFeatures21.md) * [First Steps](FirstSteps/README.md) * [Getting Familiar](FirstSteps/GettingFamiliar.md) * [The ArangoDB Server](FirstSteps/Arangod.md) @@ -134,7 +137,6 @@ * [Example Setup](Replication/ExampleSetup.md) * [Replication Limitations](Replication/Limitations.md) * [Replication Overhead](Replication/Overhead.md) - * [Replication Events](Replication/Events.md) * [Sharding](Sharding/README.md) * [How to try it out](Sharding/HowTo.md) diff --git a/Documentation/Books/Users/Upgrading/UpgradingChanges23.mdpp b/Documentation/Books/Users/Upgrading/UpgradingChanges23.mdpp index 910a05cf64..21aa5f9dae 100644 --- a/Documentation/Books/Users/Upgrading/UpgradingChanges23.mdpp +++ b/Documentation/Books/Users/Upgrading/UpgradingChanges23.mdpp @@ -4,12 +4,19 @@ It is recommended to check the following list of incompatible changes **before** upgrading to ArangoDB 2.3, and adjust any client programs if necessary. -!SECTION Default configuration file changes +!SECTION Configuration file changes -With ArangoDB 2.3, the number of server threads can be configured independently of -the number of V8 contexts. The configuration option `--javascript.v8-contexts` was -added to arangod to provide better control over the number of V8 contexts created -in arangod. +!SUBSECTION Threads and contexts + +The number of server threads specified is now the minimum of threads +started. There are situation in which threads are waiting for results of +distributed database servers. In this case the number of threads is dynamically +increased. + +With ArangoDB 2.3, the number of server threads can be configured independently +of the number of V8 contexts. The configuration option +`--javascript.v8-contexts` was added to arangod to provide better control over +the number of V8 contexts created in arangod. Previously, the number of V8 contexts arangod created at startup was equal to the number of server threads (as specified by option `--server.threads`). @@ -19,21 +26,42 @@ and V8 contexts. This is because each V8 contexts created will consume memory and requires CPU resources for periodic garbage collection. Contrary, server threads do not have such high memory or CPU footprint. -If the option `--javascript.v8-contexts` is not specified, the number of V8 -contexts created at startup will remain equal to the number of server threads. -Thus no change in configuration is required to keep the same behavior as in +If the option `--javascript.v8-contexts` is not specified, the number of V8 +contexts created at startup will remain equal to the number of server threads. +Thus no change in configuration is required to keep the same behavior as in previous ArangoDB versions. -However, the default configuration files shipped with ArangoDB have been changed. -The number of server threads has been increased in the configuration files, and -the number of V8 contexts is now explicitly set in the configuration files (to -the same value as the number of server threads was set to in 2.2). - -If you are using the default config files or merge them with your local config files, -please review if the higher default number of server threads is okay in your +If you are using the default config files or merge them with your local config +files, please review if the default number of server threads is okay in your environment. Additionally you should verify that the number of V8 contexts created (as specified in option `--javascript.v8-contexts`) is okay. +!SUBSECTION Syslog + +The command-line option `--log.syslog` was used in previous versions of +ArangoDB to turn logging to syslog on or off: when setting to a non-empty +string, syslog logging was turned on, otherwise turned off. +When syslog logging was turned on, logging was done with the application +name specified in `--log.application`, which defaulted to `triagens`. +There was also a command-line option `--log.hostname` which could be set +but did not have any effect. + +This behavior turned out to be unintuitive and was changed in 2.3 as follows: + +* the command-line option `--log.syslog` is deprecated and does not have any + effect when starting ArangoDB. +* to turn on syslog logging in 2.3, the option `--log.facility` has to be set + to a non-empty string. The value for `facility` is OS-dependent (possible + values can be found in `/usr/include/syslog.h` or the like - `user` should + be available on many systems). +* the default value for `--log.application` has been changed from `triagens` to + `arangod`. +* the command-line option `--log.hostname` is deprecated and does not have any + effect when starting ArangoDB. Instead, the host name will be set by syslog + automatically. +* when logging to syslog, ArangoDB now omits the datetime prefix and the process + id, because they'll be added by syslog automatically. + !SECTION AQL @@ -77,7 +105,15 @@ Here is a summary of changes: receive invalid arguments will then return `null`. -!SUBSECTION Changed return values in ArangoQueryCursor.getExtra() +!SUBSECTION Nested FOR loop execution order + +The query optimizer in 2.3 may permute the order of nested `FOR` loops in AQL queries, +provided that exchanging the loops will not alter a query result. However, a change +in the order of returned values is allowed because no sort order is guaranteed by AQL +(and was never) unless an explicit `SORT` statement is used in a query. + + +!SUBSECTION Changed return values of ArangoQueryCursor.getExtra() The return value of `ArangoQueryCursor.getExtra()` has been changed in ArangoDB 2.3. It now contains a `stats` attribute with statistics about the query previously executed. @@ -222,6 +258,21 @@ updating variables in queries that run on different nodes in a cluster would lik non-deterministic behavior because queries are not executed linearly. +!SUBSECTION Changed return value of `TO_BOOL` + +The AQL function `TO_BOOL` now always returns *true* if its argument is a list or a document. +In previous versions of ArangoDB, the function returned *false* for empty lists or for +documents without attributes. + + +!SUBSECTION Changed return value of `TO_NUMBER` + +The AQL function `TO_NUMBER` now returns *null* if its argument is a document or a +list with more than one member. In previous version of ArangoDB, the return +value in these cases was 0. `TO_NUMBER` will return 0 for empty lists, and the numeric +equivalent of the list member's value for lists with a single member. + + !SUBSECTION New AQL keywords The following keywords have been added to AQL in ArangoDB 2.3: @@ -259,3 +310,17 @@ warnings will eventually disappear. The HTTP REST API method at `POST /_admin/modules/flush` has been removed. + +!SECTION Known issues + +In ArangoDB 2.3.0, AQL queries containing filter conditions with an IN expression +will not yet use an index: + + FOR doc IN collection FILTER doc.indexedAttribute IN [ ... ] RETURN doc + + FOR doc IN collection + FILTER doc.indexedAttribute IN [ ... ] + RETURN doc + +We’re currently working on getting the IN optimizations done, and will ship them in +a 2.3 maintenance release soon (e.g. 2.3.1 or 2.3.2). diff --git a/Documentation/Books/Users/localtheme/templates/book/includes/summary.html b/Documentation/Books/Users/localtheme/templates/book/includes/summary.html index eac01df05c..e1de4b8627 100644 --- a/Documentation/Books/Users/localtheme/templates/book/includes/summary.html +++ b/Documentation/Books/Users/localtheme/templates/book/includes/summary.html @@ -50,11 +50,8 @@ {% if options.links.gitbook !== false %}
shell> curl -X POST --header 'Content-Type: multipart/form-data; boundary=SomeBoundaryValue' --data-binary @- --dump - http://localhost:8529/_api/batch\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\n\nHTTP/1.1 200 OK\ncontent-type: multipart/form-data; boundary=SomeBoundaryValue\nx-arango-errors: 1\n\n\"--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\nContent-Id: myId1\\r\\n\\r\\nHTTP/1.1 200 OK\\r\\ncontent-type: application/json; charset=utf-8\\r\\ncontent-length: 43\\r\\n\\r\\n{\\\"server\\\":\\\"arango\\\",\\\"version\\\":\\\"2.3.0-devel\\\"}\\r\\n--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\nContent-Id: myId2\\r\\n\\r\\nHTTP/1.1 404 Not Found\\r\\ncontent-type: application/json; charset=utf-8\\r\\ncontent-length: 88\\r\\n\\r\\n{\\\"error\\\":true,\\\"code\\\":404,\\\"errorNum\\\":1203,\\\"errorMessage\\\":\\\"unknown collection 'products'\\\"}\\r\\n--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\nContent-Id: someId\\r\\n\\r\\nHTTP/1.1 200 OK\\r\\nlocation: /_db/_system/_api/collection/products\\r\\ncontent-type: application/json; charset=utf-8\\r\\ncontent-length: 138\\r\\n\\r\\n{\\\"id\\\":\\\"1364982952\\\",\\\"name\\\":\\\"products\\\",\\\"waitForSync\\\":false,\\\"isVolatile\\\":false,\\\"isSystem\\\":false,\\\"status\\\":3,\\\"type\\\":2,\\\"error\\\":false,\\\"code\\\":200}\\r\\n--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\nContent-Id: nextId\\r\\n\\r\\nHTTP/1.1 200 OK\\r\\nlocation: /_db/_system/_api/collection/products/figures\\r\\ncontent-type: application/json; charset=utf-8\\r\\ncontent-length: 618\\r\\n\\r\\n{\\\"id\\\":\\\"1364982952\\\",\\\"name\\\":\\\"products\\\",\\\"isSystem\\\":false,\\\"doCompact\\\":true,\\\"isVolatile\\\":false,\\\"journalSize\\\":1048576,\\\"keyOptions\\\":{\\\"type\\\":\\\"traditional\\\",\\\"allowUserKeys\\\":true},\\\"waitForSync\\\":false,\\\"count\\\":0,\\\"figures\\\":{\\\"alive\\\":{\\\"count\\\":0,\\\"size\\\":0},\\\"dead\\\":{\\\"count\\\":0,\\\"size\\\":0,\\\"deletion\\\":0},\\\"datafiles\\\":{\\\"count\\\":0,\\\"fileSize\\\":0},\\\"journals\\\":{\\\"count\\\":0,\\\"fileSize\\\":0},\\\"compactors\\\":{\\\"count\\\":0,\\\"fileSize\\\":0},\\\"shapefiles\\\":{\\\"count\\\":0,\\\"fileSize\\\":0},\\\"shapes\\\":{\\\"count\\\":0,\\\"size\\\":0},\\\"attributes\\\":{\\\"count\\\":0,\\\"size\\\":0},\\\"indexes\\\":{\\\"count\\\":1,\\\"size\\\":2008},\\\"lastTick\\\":\\\"0\\\",\\\"uncollectedLogfileEntries\\\":0},\\\"status\\\":3,\\\"type\\\":2,\\\"error\\\":false,\\\"code\\\":200}\\r\\n--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\nContent-Id: otherId\\r\\n\\r\\nHTTP/1.1 200 OK\\r\\ncontent-type: application/json; charset=utf-8\\r\\ncontent-length: 44\\r\\n\\r\\n{\\\"id\\\":\\\"1364982952\\\",\\\"error\\\":false,\\\"code\\\":200}\\r\\n--SomeBoundaryValue--\"\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/batch\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\n\nHTTP/1.1 200 OK\nx-arango-errors: 2\n\n\"--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\n\\r\\nHTTP/1.1 404 Not Found\\r\\ncontent-type: application/json; charset=utf-8\\r\\ncontent-length: 92\\r\\n\\r\\n{\\\"error\\\":true,\\\"code\\\":404,\\\"errorNum\\\":1203,\\\"errorMessage\\\":\\\"unknown collection 'notexisting1'\\\"}\\r\\n--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\n\\r\\nHTTP/1.1 404 Not Found\\r\\ncontent-type: application/json; charset=utf-8\\r\\ncontent-length: 92\\r\\n\\r\\n{\\\"error\\\":true,\\\"code\\\":404,\\\"errorNum\\\":1203,\\\"errorMessage\\\":\\\"unknown collection 'notexisting2'\\\"}\\r\\n--SomeBoundaryValue--\"\n
shell> curl -X POST --header 'Content-Type: multipart/form-data; boundary=SomeBoundaryValue' --data-binary @- --dump - http://localhost:8529/_api/batch\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\n\nHTTP/1.1 200 OK\ncontent-type: multipart/form-data; boundary=SomeBoundaryValue\nx-arango-errors: 1\n\n\"--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\nContent-Id: myId1\\r\\n\\r\\nHTTP/1.1 200 OK\\r\\nContent-Type: application/json; charset=utf-8\\r\\nContent-Length: 43\\r\\n\\r\\n{\\\"server\\\":\\\"arango\\\",\\\"version\\\":\\\"2.3.0-beta2\\\"}\\r\\n--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\nContent-Id: myId2\\r\\n\\r\\nHTTP/1.1 404 Not Found\\r\\nContent-Type: application/json; charset=utf-8\\r\\nContent-Length: 88\\r\\n\\r\\n{\\\"error\\\":true,\\\"code\\\":404,\\\"errorNum\\\":1203,\\\"errorMessage\\\":\\\"unknown collection 'products'\\\"}\\r\\n--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\nContent-Id: someId\\r\\n\\r\\nHTTP/1.1 200 OK\\r\\nLocation: /_db/_system/_api/collection/products\\r\\nContent-Type: application/json; charset=utf-8\\r\\nContent-Length: 138\\r\\n\\r\\n{\\\"id\\\":\\\"1426886089\\\",\\\"name\\\":\\\"products\\\",\\\"waitForSync\\\":false,\\\"isVolatile\\\":false,\\\"isSystem\\\":false,\\\"status\\\":3,\\\"type\\\":2,\\\"error\\\":false,\\\"code\\\":200}\\r\\n--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\nContent-Id: nextId\\r\\n\\r\\nHTTP/1.1 200 OK\\r\\nLocation: /_db/_system/_api/collection/products/figures\\r\\nContent-Type: application/json; charset=utf-8\\r\\nContent-Length: 618\\r\\n\\r\\n{\\\"id\\\":\\\"1426886089\\\",\\\"name\\\":\\\"products\\\",\\\"isSystem\\\":false,\\\"doCompact\\\":true,\\\"isVolatile\\\":false,\\\"journalSize\\\":1048576,\\\"keyOptions\\\":{\\\"type\\\":\\\"traditional\\\",\\\"allowUserKeys\\\":true},\\\"waitForSync\\\":false,\\\"count\\\":0,\\\"figures\\\":{\\\"alive\\\":{\\\"count\\\":0,\\\"size\\\":0},\\\"dead\\\":{\\\"count\\\":0,\\\"size\\\":0,\\\"deletion\\\":0},\\\"datafiles\\\":{\\\"count\\\":0,\\\"fileSize\\\":0},\\\"journals\\\":{\\\"count\\\":0,\\\"fileSize\\\":0},\\\"compactors\\\":{\\\"count\\\":0,\\\"fileSize\\\":0},\\\"shapefiles\\\":{\\\"count\\\":0,\\\"fileSize\\\":0},\\\"shapes\\\":{\\\"count\\\":0,\\\"size\\\":0},\\\"attributes\\\":{\\\"count\\\":0,\\\"size\\\":0},\\\"indexes\\\":{\\\"count\\\":1,\\\"size\\\":2008},\\\"lastTick\\\":\\\"0\\\",\\\"uncollectedLogfileEntries\\\":0},\\\"status\\\":3,\\\"type\\\":2,\\\"error\\\":false,\\\"code\\\":200}\\r\\n--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\nContent-Id: otherId\\r\\n\\r\\nHTTP/1.1 200 OK\\r\\nContent-Type: application/json; charset=utf-8\\r\\nContent-Length: 44\\r\\n\\r\\n{\\\"id\\\":\\\"1426886089\\\",\\\"error\\\":false,\\\"code\\\":200}\\r\\n--SomeBoundaryValue--\"\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/batch\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\n\nHTTP/1.1 200 OK\nx-arango-errors: 2\n\n\"--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\n\\r\\nHTTP/1.1 404 Not Found\\r\\nContent-Type: application/json; charset=utf-8\\r\\nContent-Length: 92\\r\\n\\r\\n{\\\"error\\\":true,\\\"code\\\":404,\\\"errorNum\\\":1203,\\\"errorMessage\\\":\\\"unknown collection 'notexisting1'\\\"}\\r\\n--SomeBoundaryValue\\r\\nContent-Type: application/x-arango-batchpart\\r\\n\\r\\nHTTP/1.1 404 Not Found\\r\\nContent-Type: application/json; charset=utf-8\\r\\nContent-Length: 92\\r\\n\\r\\n{\\\"error\\\":true,\\\"code\\\":404,\\\"errorNum\\\":1203,\\\"errorMessage\\\":\\\"unknown collection 'notexisting2'\\\"}\\r\\n--SomeBoundaryValue--\"\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/collection\n{\"name\":\"testCollectionBasics\"}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_db/_system/_api/collection/testCollectionBasics\n\n{ \n \"id\" : \"890305704\", \n \"name\" : \"testCollectionBasics\", \n \"waitForSync\" : false, \n \"isVolatile\" : false, \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2, \n \"error\" : false, \n \"code\" : 200 \n}\nshell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/collection\n{\"name\":\"testCollectionEdges\",\"type\":3}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_db/_system/_api/collection/testCollectionEdges\n\n{ \n \"id\" : \"890436776\", \n \"name\" : \"testCollectionEdges\", \n \"waitForSync\" : false, \n \"isVolatile\" : false, \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 3, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/collection\n{\"name\":\"testCollectionUsers\",\"keyOptions\":{\"type\":\"autoincrement\",\"increment\":5,\"allowUserKeys\":true}}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_db/_system/_api/collection/testCollectionUsers\n\n{ \n \"id\" : \"890698920\", \n \"name\" : \"testCollectionUsers\", \n \"waitForSync\" : false, \n \"isVolatile\" : false, \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/collection\n{\"name\":\"testCollectionBasics\"}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_db/_system/_api/collection/testCollectionBasics\n\n{ \n \"id\" : \"910593481\", \n \"name\" : \"testCollectionBasics\", \n \"waitForSync\" : false, \n \"isVolatile\" : false, \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2, \n \"error\" : false, \n \"code\" : 200 \n}\nshell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/collection\n{\"name\":\"testCollectionEdges\",\"type\":3}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_db/_system/_api/collection/testCollectionEdges\n\n{ \n \"id\" : \"910724553\", \n \"name\" : \"testCollectionEdges\", \n \"waitForSync\" : false, \n \"isVolatile\" : false, \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 3, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/collection\n{\"name\":\"testCollectionUsers\",\"keyOptions\":{\"type\":\"autoincrement\",\"increment\":5,\"allowUserKeys\":true}}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_db/_system/_api/collection/testCollectionUsers\n\n{ \n \"id\" : \"910986697\", \n \"name\" : \"testCollectionUsers\", \n \"waitForSync\" : false, \n \"isVolatile\" : false, \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/collection\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"collections\" : [ \n { \n \"id\" : \"883162280\", \n \"name\" : \"frenchHighway\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 3 \n }, \n { \n \"id\" : \"4848808\", \n \"name\" : \"_statisticsRaw\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"2620584\", \n \"name\" : \"_routing\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"798620840\", \n \"name\" : \"Company\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"5242024\", \n \"name\" : \"_statistics\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"859503784\", \n \"name\" : \"relation\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 3 \n }, \n { \n \"id\" : \"888405160\", \n \"name\" : \"animals\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"799014056\", \n \"name\" : \"has_bought\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 3 \n }, \n { \n \"id\" : \"5635240\", \n \"name\" : \"_statistics15\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"887487656\", \n \"name\" : \"demo\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"883031208\", \n \"name\" : \"frenchCity\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"4717736\", \n \"name\" : \"_aqlfunctions\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"2489512\", \n \"name\" : \"_modules\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"6487208\", \n \"name\" : \"_jobs\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"4258984\", \n \"name\" : \"_aal\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"699333800\", \n \"name\" : \"better-example\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"798489768\", \n \"name\" : \"friend_of\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 3 \n }, \n { \n \"id\" : \"195752\", \n \"name\" : \"_configuration\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"859372712\", \n \"name\" : \"male\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"798882984\", \n \"name\" : \"Electronics\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"882900136\", \n \"name\" : \"germanHighway\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 3 \n }, \n { \n \"id\" : \"2358440\", \n \"name\" : \"_graphs\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"6356136\", \n \"name\" : \"_queues\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"26803368\", \n \"name\" : \"_sessions\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"798358696\", \n \"name\" : \"Customer\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"883293352\", \n \"name\" : \"internationalHighway\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 3 \n }, \n { \n \"id\" : \"2751656\", \n \"name\" : \"_cluster_kickstarter_plans\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"859241640\", \n \"name\" : \"female\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"798751912\", \n \"name\" : \"Groceries\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"882769064\", \n \"name\" : \"germanCity\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"457896\", \n \"name\" : \"_users\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n } \n ], \n \"names\" : { \n \"frenchHighway\" : { \n \"id\" : \"883162280\", \n \"name\" : \"frenchHighway\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 3 \n }, \n \"_statisticsRaw\" : { \n \"id\" : \"4848808\", \n \"name\" : \"_statisticsRaw\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"_routing\" : { \n \"id\" : \"2620584\", \n \"name\" : \"_routing\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"Company\" : { \n \"id\" : \"798620840\", \n \"name\" : \"Company\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"_statistics\" : { \n \"id\" : \"5242024\", \n \"name\" : \"_statistics\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"relation\" : { \n \"id\" : \"859503784\", \n \"name\" : \"relation\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 3 \n }, \n \"animals\" : { \n \"id\" : \"888405160\", \n \"name\" : \"animals\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"has_bought\" : { \n \"id\" : \"799014056\", \n \"name\" : \"has_bought\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 3 \n }, \n \"_statistics15\" : { \n \"id\" : \"5635240\", \n \"name\" : \"_statistics15\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"demo\" : { \n \"id\" : \"887487656\", \n \"name\" : \"demo\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"frenchCity\" : { \n \"id\" : \"883031208\", \n \"name\" : \"frenchCity\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"_aqlfunctions\" : { \n \"id\" : \"4717736\", \n \"name\" : \"_aqlfunctions\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"_modules\" : { \n \"id\" : \"2489512\", \n \"name\" : \"_modules\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"_jobs\" : { \n \"id\" : \"6487208\", \n \"name\" : \"_jobs\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"_aal\" : { \n \"id\" : \"4258984\", \n \"name\" : \"_aal\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"better-example\" : { \n \"id\" : \"699333800\", \n \"name\" : \"better-example\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"friend_of\" : { \n \"id\" : \"798489768\", \n \"name\" : \"friend_of\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 3 \n }, \n \"_configuration\" : { \n \"id\" : \"195752\", \n \"name\" : \"_configuration\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"male\" : { \n \"id\" : \"859372712\", \n \"name\" : \"male\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"Electronics\" : { \n \"id\" : \"798882984\", \n \"name\" : \"Electronics\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"germanHighway\" : { \n \"id\" : \"882900136\", \n \"name\" : \"germanHighway\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 3 \n }, \n \"_graphs\" : { \n \"id\" : \"2358440\", \n \"name\" : \"_graphs\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"_queues\" : { \n \"id\" : \"6356136\", \n \"name\" : \"_queues\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"_sessions\" : { \n \"id\" : \"26803368\", \n \"name\" : \"_sessions\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"Customer\" : { \n \"id\" : \"798358696\", \n \"name\" : \"Customer\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"internationalHighway\" : { \n \"id\" : \"883293352\", \n \"name\" : \"internationalHighway\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 3 \n }, \n \"_cluster_kickstarter_plans\" : { \n \"id\" : \"2751656\", \n \"name\" : \"_cluster_kickstarter_plans\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"female\" : { \n \"id\" : \"859241640\", \n \"name\" : \"female\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"Groceries\" : { \n \"id\" : \"798751912\", \n \"name\" : \"Groceries\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"germanCity\" : { \n \"id\" : \"882769064\", \n \"name\" : \"germanCity\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"_users\" : { \n \"id\" : \"457896\", \n \"name\" : \"_users\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n } \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/collection\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"collections\" : [ \n { \n \"id\" : \"2723273\", \n \"name\" : \"_cluster_kickstarter_plans\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"817860041\", \n \"name\" : \"Groceries\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"879201737\", \n \"name\" : \"female\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"429513\", \n \"name\" : \"_users\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"903187913\", \n \"name\" : \"frenchCity\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"26185161\", \n \"name\" : \"_sessions\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"4820425\", \n \"name\" : \"_statisticsRaw\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"2592201\", \n \"name\" : \"_routing\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"817728969\", \n \"name\" : \"Company\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"5213641\", \n \"name\" : \"_statistics\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"818122185\", \n \"name\" : \"has_bought\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 3 \n }, \n { \n \"id\" : \"903056841\", \n \"name\" : \"germanHighway\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 3 \n }, \n { \n \"id\" : \"879463881\", \n \"name\" : \"relation\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 3 \n }, \n { \n \"id\" : \"5606857\", \n \"name\" : \"_statistics15\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"903450057\", \n \"name\" : \"internationalHighway\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 3 \n }, \n { \n \"id\" : \"4689353\", \n \"name\" : \"_aqlfunctions\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"2461129\", \n \"name\" : \"_modules\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"232905\", \n \"name\" : \"_configuration\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"4230601\", \n \"name\" : \"_aal\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"6458825\", \n \"name\" : \"_jobs\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"817597897\", \n \"name\" : \"friend_of\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 3 \n }, \n { \n \"id\" : \"719752649\", \n \"name\" : \"better-example\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"908758473\", \n \"name\" : \"animals\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"907840969\", \n \"name\" : \"demo\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"817991113\", \n \"name\" : \"Electronics\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"902925769\", \n \"name\" : \"germanCity\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"879332809\", \n \"name\" : \"male\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"903318985\", \n \"name\" : \"frenchHighway\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 3 \n }, \n { \n \"id\" : \"2330057\", \n \"name\" : \"_graphs\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"6327753\", \n \"name\" : \"_queues\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n { \n \"id\" : \"817466825\", \n \"name\" : \"Customer\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n } \n ], \n \"names\" : { \n \"_cluster_kickstarter_plans\" : { \n \"id\" : \"2723273\", \n \"name\" : \"_cluster_kickstarter_plans\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"Groceries\" : { \n \"id\" : \"817860041\", \n \"name\" : \"Groceries\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"female\" : { \n \"id\" : \"879201737\", \n \"name\" : \"female\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"_users\" : { \n \"id\" : \"429513\", \n \"name\" : \"_users\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"frenchCity\" : { \n \"id\" : \"903187913\", \n \"name\" : \"frenchCity\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"_sessions\" : { \n \"id\" : \"26185161\", \n \"name\" : \"_sessions\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"_statisticsRaw\" : { \n \"id\" : \"4820425\", \n \"name\" : \"_statisticsRaw\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"_routing\" : { \n \"id\" : \"2592201\", \n \"name\" : \"_routing\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"Company\" : { \n \"id\" : \"817728969\", \n \"name\" : \"Company\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"_statistics\" : { \n \"id\" : \"5213641\", \n \"name\" : \"_statistics\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"has_bought\" : { \n \"id\" : \"818122185\", \n \"name\" : \"has_bought\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 3 \n }, \n \"germanHighway\" : { \n \"id\" : \"903056841\", \n \"name\" : \"germanHighway\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 3 \n }, \n \"relation\" : { \n \"id\" : \"879463881\", \n \"name\" : \"relation\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 3 \n }, \n \"_statistics15\" : { \n \"id\" : \"5606857\", \n \"name\" : \"_statistics15\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"internationalHighway\" : { \n \"id\" : \"903450057\", \n \"name\" : \"internationalHighway\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 3 \n }, \n \"_aqlfunctions\" : { \n \"id\" : \"4689353\", \n \"name\" : \"_aqlfunctions\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"_modules\" : { \n \"id\" : \"2461129\", \n \"name\" : \"_modules\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"_configuration\" : { \n \"id\" : \"232905\", \n \"name\" : \"_configuration\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"_aal\" : { \n \"id\" : \"4230601\", \n \"name\" : \"_aal\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"_jobs\" : { \n \"id\" : \"6458825\", \n \"name\" : \"_jobs\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"friend_of\" : { \n \"id\" : \"817597897\", \n \"name\" : \"friend_of\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 3 \n }, \n \"better-example\" : { \n \"id\" : \"719752649\", \n \"name\" : \"better-example\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"animals\" : { \n \"id\" : \"908758473\", \n \"name\" : \"animals\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"demo\" : { \n \"id\" : \"907840969\", \n \"name\" : \"demo\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"Electronics\" : { \n \"id\" : \"817991113\", \n \"name\" : \"Electronics\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"germanCity\" : { \n \"id\" : \"902925769\", \n \"name\" : \"germanCity\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"male\" : { \n \"id\" : \"879332809\", \n \"name\" : \"male\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"frenchHighway\" : { \n \"id\" : \"903318985\", \n \"name\" : \"frenchHighway\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 3 \n }, \n \"_graphs\" : { \n \"id\" : \"2330057\", \n \"name\" : \"_graphs\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"_queues\" : { \n \"id\" : \"6327753\", \n \"name\" : \"_queues\", \n \"isSystem\" : true, \n \"status\" : 3, \n \"type\" : 2 \n }, \n \"Customer\" : { \n \"id\" : \"817466825\", \n \"name\" : \"Customer\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2 \n } \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/collection/890895528/properties\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_db/_system/_api/collection/products/properties\n\n{ \n \"id\" : \"890895528\", \n \"name\" : \"products\", \n \"isSystem\" : false, \n \"doCompact\" : true, \n \"isVolatile\" : false, \n \"journalSize\" : 1048576, \n \"keyOptions\" : { \n \"type\" : \"traditional\", \n \"allowUserKeys\" : true \n }, \n \"waitForSync\" : true, \n \"status\" : 3, \n \"type\" : 2, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/collection/products/properties\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_db/_system/_api/collection/products/properties\n\n{ \n \"id\" : \"891092136\", \n \"name\" : \"products\", \n \"isSystem\" : false, \n \"doCompact\" : true, \n \"isVolatile\" : false, \n \"journalSize\" : 1048576, \n \"keyOptions\" : { \n \"type\" : \"traditional\", \n \"allowUserKeys\" : true \n }, \n \"waitForSync\" : true, \n \"status\" : 3, \n \"type\" : 2, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/collection/911183305/properties\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_db/_system/_api/collection/products/properties\n\n{ \n \"id\" : \"911183305\", \n \"name\" : \"products\", \n \"isSystem\" : false, \n \"doCompact\" : true, \n \"isVolatile\" : false, \n \"journalSize\" : 1048576, \n \"keyOptions\" : { \n \"type\" : \"traditional\", \n \"allowUserKeys\" : true \n }, \n \"waitForSync\" : true, \n \"status\" : 3, \n \"type\" : 2, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/collection/products/properties\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_db/_system/_api/collection/products/properties\n\n{ \n \"id\" : \"911379913\", \n \"name\" : \"products\", \n \"isSystem\" : false, \n \"doCompact\" : true, \n \"isVolatile\" : false, \n \"journalSize\" : 1048576, \n \"keyOptions\" : { \n \"type\" : \"traditional\", \n \"allowUserKeys\" : true \n }, \n \"waitForSync\" : true, \n \"status\" : 3, \n \"type\" : 2, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/collection/products/count\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_db/_system/_api/collection/products/count\n\n{ \n \"id\" : \"891288744\", \n \"name\" : \"products\", \n \"isSystem\" : false, \n \"doCompact\" : true, \n \"isVolatile\" : false, \n \"journalSize\" : 1048576, \n \"keyOptions\" : { \n \"type\" : \"traditional\", \n \"allowUserKeys\" : true \n }, \n \"waitForSync\" : true, \n \"count\" : 100, \n \"status\" : 3, \n \"type\" : 2, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/collection/products/count\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_db/_system/_api/collection/products/count\n\n{ \n \"id\" : \"911576521\", \n \"name\" : \"products\", \n \"isSystem\" : false, \n \"doCompact\" : true, \n \"isVolatile\" : false, \n \"journalSize\" : 1048576, \n \"keyOptions\" : { \n \"type\" : \"traditional\", \n \"allowUserKeys\" : true \n }, \n \"waitForSync\" : true, \n \"count\" : 100, \n \"status\" : 3, \n \"type\" : 2, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/collection/products/figures\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_db/_system/_api/collection/products/figures\n\n{ \n \"id\" : \"911539368\", \n \"name\" : \"products\", \n \"isSystem\" : false, \n \"doCompact\" : true, \n \"isVolatile\" : false, \n \"journalSize\" : 1048576, \n \"keyOptions\" : { \n \"type\" : \"traditional\", \n \"allowUserKeys\" : true \n }, \n \"waitForSync\" : false, \n \"count\" : 1, \n \"figures\" : { \n \"alive\" : { \n \"count\" : 1, \n \"size\" : 88 \n }, \n \"dead\" : { \n \"count\" : 0, \n \"size\" : 0, \n \"deletion\" : 0 \n }, \n \"datafiles\" : { \n \"count\" : 0, \n \"fileSize\" : 0 \n }, \n \"journals\" : { \n \"count\" : 1, \n \"fileSize\" : 1048576 \n }, \n \"compactors\" : { \n \"count\" : 0, \n \"fileSize\" : 0 \n }, \n \"shapefiles\" : { \n \"count\" : 0, \n \"fileSize\" : 0 \n }, \n \"shapes\" : { \n \"count\" : 1, \n \"size\" : 104 \n }, \n \"attributes\" : { \n \"count\" : 1, \n \"size\" : 48 \n }, \n \"indexes\" : { \n \"count\" : 1, \n \"size\" : 2008 \n }, \n \"lastTick\" : \"911932584\", \n \"uncollectedLogfileEntries\" : 0 \n }, \n \"status\" : 3, \n \"type\" : 2, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/collection/products/figures\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\nlocation: /_db/_system/_api/collection/products/figures\n\n{ \n \"id\" : \"932220361\", \n \"name\" : \"products\", \n \"isSystem\" : false, \n \"doCompact\" : true, \n \"isVolatile\" : false, \n \"journalSize\" : 1048576, \n \"keyOptions\" : { \n \"type\" : \"traditional\", \n \"allowUserKeys\" : true \n }, \n \"waitForSync\" : false, \n \"count\" : 1, \n \"figures\" : { \n \"alive\" : { \n \"count\" : 1, \n \"size\" : 88 \n }, \n \"dead\" : { \n \"count\" : 0, \n \"size\" : 0, \n \"deletion\" : 0 \n }, \n \"datafiles\" : { \n \"count\" : 0, \n \"fileSize\" : 0 \n }, \n \"journals\" : { \n \"count\" : 1, \n \"fileSize\" : 1048576 \n }, \n \"compactors\" : { \n \"count\" : 0, \n \"fileSize\" : 0 \n }, \n \"shapefiles\" : { \n \"count\" : 0, \n \"fileSize\" : 0 \n }, \n \"shapes\" : { \n \"count\" : 1, \n \"size\" : 104 \n }, \n \"attributes\" : { \n \"count\" : 1, \n \"size\" : 48 \n }, \n \"indexes\" : { \n \"count\" : 1, \n \"size\" : 2008 \n }, \n \"lastTick\" : \"932613577\", \n \"uncollectedLogfileEntries\" : 0 \n }, \n \"status\" : 3, \n \"type\" : 2, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/collection/products/revision\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"id\" : \"912915624\", \n \"name\" : \"products\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2, \n \"revision\" : \"0\", \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/collection/products/revision\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"id\" : \"933531081\", \n \"name\" : \"products\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2, \n \"revision\" : \"0\", \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/collection/products/checksum\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"id\" : \"913177768\", \n \"name\" : \"products\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2, \n \"checksum\" : 912174629, \n \"revision\" : \"913505448\", \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/collection/products/checksum?withRevisions=false&withData=true\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"id\" : \"913767592\", \n \"name\" : \"products\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2, \n \"checksum\" : 375414976, \n \"revision\" : \"914095272\", \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/collection/products/checksum\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"id\" : \"933793225\", \n \"name\" : \"products\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2, \n \"checksum\" : 1968594040, \n \"revision\" : \"934120905\", \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/collection/products/checksum?withRevisions=false&withData=true\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"id\" : \"934383049\", \n \"name\" : \"products\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2, \n \"checksum\" : 2327871952, \n \"revision\" : \"934710729\", \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X PUT --dump - http://localhost:8529/_api/collection/products/load\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"id\" : \"914357416\", \n \"name\" : \"products\", \n \"isSystem\" : false, \n \"count\" : 0, \n \"status\" : 3, \n \"type\" : 2, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X PUT --dump - http://localhost:8529/_api/collection/products/load\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"id\" : \"934972873\", \n \"name\" : \"products\", \n \"isSystem\" : false, \n \"count\" : 0, \n \"status\" : 3, \n \"type\" : 2, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X PUT --dump - http://localhost:8529/_api/collection/products/unload\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"id\" : \"914619560\", \n \"name\" : \"products\", \n \"isSystem\" : false, \n \"status\" : 4, \n \"type\" : 2, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X PUT --dump - http://localhost:8529/_api/collection/products/unload\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"id\" : \"935235017\", \n \"name\" : \"products\", \n \"isSystem\" : false, \n \"status\" : 2, \n \"type\" : 2, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X PUT --dump - http://localhost:8529/_api/collection/products/truncate\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"id\" : \"914816168\", \n \"name\" : \"products\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X PUT --dump - http://localhost:8529/_api/collection/products/truncate\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"id\" : \"935431625\", \n \"name\" : \"products\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/collection/products/properties\n{ \n \"waitForSync\" : true \n}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"id\" : \"915209384\", \n \"name\" : \"products\", \n \"isSystem\" : false, \n \"doCompact\" : true, \n \"isVolatile\" : false, \n \"journalSize\" : 1048576, \n \"keyOptions\" : { \n \"type\" : \"traditional\", \n \"allowUserKeys\" : true \n }, \n \"waitForSync\" : true, \n \"status\" : 3, \n \"type\" : 2, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/collection/products/properties\n{ \n \"waitForSync\" : true \n}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"id\" : \"935824841\", \n \"name\" : \"products\", \n \"isSystem\" : false, \n \"doCompact\" : true, \n \"isVolatile\" : false, \n \"journalSize\" : 1048576, \n \"keyOptions\" : { \n \"type\" : \"traditional\", \n \"allowUserKeys\" : true \n }, \n \"waitForSync\" : true, \n \"status\" : 3, \n \"type\" : 2, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/collection/products1/rename\n{ \n \"name\" : \"newname\" \n}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"id\" : \"915471528\", \n \"name\" : \"newname\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/collection/products1/rename\n{ \n \"name\" : \"newname\" \n}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"id\" : \"936086985\", \n \"name\" : \"newname\", \n \"isSystem\" : false, \n \"status\" : 3, \n \"type\" : 2, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/collection/916847784\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"id\" : \"916847784\", \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/collection/products1\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"id\" : \"917044392\", \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/collection/937463241\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"id\" : \"937463241\", \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/collection/products1\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"id\" : \"937659849\", \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor\n{\"query\":\"FOR p IN products LIMIT 2 RETURN p\",\"count\":true,\"batchSize\":2}\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"products/917896360\", \n \"_key\" : \"917896360\", \n \"_rev\" : \"917896360\", \n \"hello2\" : \"world1\" \n }, \n { \n \"_id\" : \"products/917568680\", \n \"_key\" : \"917568680\", \n \"_rev\" : \"917568680\", \n \"hello1\" : \"world1\" \n } \n ], \n \"hasMore\" : false, \n \"count\" : 2, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor\n{\"query\":\"FOR p IN products LIMIT 5 RETURN p\",\"count\":true,\"batchSize\":2}\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"products/919796904\", \n \"_key\" : \"919796904\", \n \"_rev\" : \"919796904\", \n \"hello5\" : \"world1\" \n }, \n { \n \"_id\" : \"products/919141544\", \n \"_key\" : \"919141544\", \n \"_rev\" : \"919141544\", \n \"hello3\" : \"world1\" \n } \n ], \n \"hasMore\" : true, \n \"id\" : \"919993512\", \n \"count\" : 5, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor\n{\"query\":\"FOR i IN 1..1000 FILTER i > 500 LIMIT 10 RETURN i\",\"count\":true,\"options\":{\"fullCount\":true}}\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n 501, \n 502, \n 503, \n 504, \n 505, \n 506, \n 507, \n 508, \n 509, \n 510 \n ], \n \"hasMore\" : false, \n \"count\" : 10, \n \"extra\" : { \n \"fullCount\" : 500 \n }, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor\n{\"query\":\"FOR p IN products REMOVE p IN products\"}\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ ], \n \"hasMore\" : false, \n \"extra\" : { \n \"operations\" : { \n \"executed\" : 2, \n \"ignored\" : 0 \n } \n }, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor\n{\"query\":\"REMOVE 'bar' IN products OPTIONS { ignoreErrors: true }\"}\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ ], \n \"hasMore\" : false, \n \"extra\" : { \n \"operations\" : { \n \"executed\" : 0, \n \"ignored\" : 1 \n } \n }, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X POST --dump - http://localhost:8529/_api/cursor\n\nHTTP/1.1 400 Bad Request\ncontent-type: application/json; charset=utf-8\n\n{ \n \"error\" : true, \n \"code\" : 400, \n \"errorNum\" : 1502, \n \"errorMessage\" : \"query is empty\" \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor\n{\"query\":\"FOR u IN unknowncoll LIMIT 2 RETURN u\",\"count\":true,\"batchSize\":2}\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n \"error\" : true, \n \"code\" : 404, \n \"errorNum\" : 1203, \n \"errorMessage\" : \"cannot execute query: collection not found: 'unknowncoll'\" \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor\n{\"query\":\"REMOVE 'foo' IN products\"}\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n \"error\" : true, \n \"code\" : 404, \n \"errorNum\" : 1202, \n \"errorMessage\" : \"document not found\" \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor\n{\"query\":\"FOR p IN products LIMIT 2 RETURN p\",\"count\":true,\"batchSize\":2}\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"products/938184137\", \n \"_key\" : \"938184137\", \n \"_rev\" : \"938184137\", \n \"hello1\" : \"world1\" \n }, \n { \n \"_id\" : \"products/938511817\", \n \"_key\" : \"938511817\", \n \"_rev\" : \"938511817\", \n \"hello2\" : \"world1\" \n } \n ], \n \"hasMore\" : false, \n \"count\" : 2, \n \"extra\" : { \n \"stats\" : { \n \"writesExecuted\" : 0, \n \"writesIgnored\" : 0, \n \"scannedFull\" : 2, \n \"scannedIndex\" : 0 \n }, \n \"warnings\" : [ ] \n }, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor\n{\"query\":\"FOR p IN products LIMIT 5 RETURN p\",\"count\":true,\"batchSize\":2}\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"products/940084681\", \n \"_key\" : \"940084681\", \n \"_rev\" : \"940084681\", \n \"hello4\" : \"world1\" \n }, \n { \n \"_id\" : \"products/939429321\", \n \"_key\" : \"939429321\", \n \"_rev\" : \"939429321\", \n \"hello2\" : \"world1\" \n } \n ], \n \"hasMore\" : true, \n \"id\" : \"940608969\", \n \"count\" : 5, \n \"extra\" : { \n \"stats\" : { \n \"writesExecuted\" : 0, \n \"writesIgnored\" : 0, \n \"scannedFull\" : 5, \n \"scannedIndex\" : 0 \n } \n }, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor\n{\"query\":\"FOR i IN 1..1000 FILTER i > 500 LIMIT 10 RETURN i\",\"count\":true,\"options\":{\"fullCount\":true}}\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n 501, \n 502, \n 503, \n 504, \n 505, \n 506, \n 507, \n 508, \n 509, \n 510 \n ], \n \"hasMore\" : false, \n \"count\" : 10, \n \"extra\" : { \n \"stats\" : { \n \"writesExecuted\" : 0, \n \"writesIgnored\" : 0, \n \"scannedFull\" : 0, \n \"scannedIndex\" : 0, \n \"fullCount\" : 500 \n }, \n \"warnings\" : [ ] \n }, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor\n{\"query\":\"FOR i IN 1..10 LET a = 1 LET b = 2 FILTER a + b == 3 RETURN i\",\"count\":true,\"options\":{\"maxPlans\":1,\"optimizer\":{\"rules\":[\"-all\",\"+remove-unnecessary-filters\"]}}}\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n 1, \n 2, \n 3, \n 4, \n 5, \n 6, \n 7, \n 8, \n 9, \n 10 \n ], \n \"hasMore\" : false, \n \"count\" : 10, \n \"extra\" : { \n \"stats\" : { \n \"writesExecuted\" : 0, \n \"writesIgnored\" : 0, \n \"scannedFull\" : 0, \n \"scannedIndex\" : 0 \n }, \n \"warnings\" : [ ] \n }, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor\n{\"query\":\"FOR p IN products REMOVE p IN products\"}\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ ], \n \"hasMore\" : false, \n \"extra\" : { \n \"stats\" : { \n \"writesExecuted\" : 2, \n \"writesIgnored\" : 0, \n \"scannedFull\" : 2, \n \"scannedIndex\" : 0 \n }, \n \"warnings\" : [ ] \n }, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor\n{\"query\":\"REMOVE 'bar' IN products OPTIONS { ignoreErrors: true }\"}\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ ], \n \"hasMore\" : false, \n \"extra\" : { \n \"stats\" : { \n \"writesExecuted\" : 0, \n \"writesIgnored\" : 1, \n \"scannedFull\" : 0, \n \"scannedIndex\" : 0 \n }, \n \"warnings\" : [ ] \n }, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X POST --dump - http://localhost:8529/_api/cursor\n\nHTTP/1.1 400 Bad Request\ncontent-type: application/json; charset=utf-8\n\n{ \n \"error\" : true, \n \"code\" : 400, \n \"errorNum\" : 1502, \n \"errorMessage\" : \"query is empty\" \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor\n{\"query\":\"FOR u IN unknowncoll LIMIT 2 RETURN u\",\"count\":true,\"batchSize\":2}\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n \"error\" : true, \n \"code\" : 404, \n \"errorNum\" : 1203, \n \"errorMessage\" : \"collection not found (unknowncoll)\" \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor\n{\"query\":\"REMOVE 'foo' IN products\"}\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n \"error\" : true, \n \"code\" : 404, \n \"errorNum\" : 1202, \n \"errorMessage\" : \"document not found (while executing)\" \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor\n{\"query\":\"FOR p IN products LIMIT 5 RETURN p\",\"count\":true,\"batchSize\":2}\n\nshell> curl -X PUT --dump - http://localhost:8529/_api/cursor/924777640\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"products/923597992\", \n \"_key\" : \"923597992\", \n \"_rev\" : \"923597992\", \n \"hello2\" : \"world1\" \n }, \n { \n \"_id\" : \"products/924253352\", \n \"_key\" : \"924253352\", \n \"_rev\" : \"924253352\", \n \"hello4\" : \"world1\" \n } \n ], \n \"hasMore\" : true, \n \"id\" : \"924777640\", \n \"count\" : 5, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X PUT --dump - http://localhost:8529/_api/cursor\n\nHTTP/1.1 400 Bad Request\ncontent-type: application/json; charset=utf-8\n\n{ \n \"error\" : true, \n \"code\" : 400, \n \"errorNum\" : 400, \n \"errorMessage\" : \"bad parameter\" \n}\n
shell> curl -X PUT --dump - http://localhost:8529/_api/cursor/123123\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n \"error\" : true, \n \"code\" : 404, \n \"errorNum\" : 1600, \n \"errorMessage\" : \"cursor not found\" \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor\n{\"query\":\"FOR p IN products LIMIT 5 RETURN p\",\"count\":true,\"batchSize\":2}\n\nshell> curl -X PUT --dump - http://localhost:8529/_api/cursor/945458633\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"products/944278985\", \n \"_key\" : \"944278985\", \n \"_rev\" : \"944278985\", \n \"hello2\" : \"world1\" \n }, \n { \n \"_id\" : \"products/945262025\", \n \"_key\" : \"945262025\", \n \"_rev\" : \"945262025\", \n \"hello5\" : \"world1\" \n } \n ], \n \"hasMore\" : true, \n \"id\" : \"945458633\", \n \"count\" : 5, \n \"extra\" : { \n \"stats\" : { \n \"writesExecuted\" : 0, \n \"writesIgnored\" : 0, \n \"scannedFull\" : 5, \n \"scannedIndex\" : 0 \n } \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X PUT --dump - http://localhost:8529/_api/cursor\n\nHTTP/1.1 400 Bad Request\ncontent-type: application/json; charset=utf-8\n\n{ \n \"error\" : true, \n \"code\" : 400, \n \"errorNum\" : 400, \n \"errorMessage\" : \"bad parameter\" \n}\n
shell> curl -X PUT --dump - http://localhost:8529/_api/cursor/123123\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n \"error\" : true, \n \"code\" : 404, \n \"errorNum\" : 1600, \n \"errorMessage\" : \"cursor not found\" \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor\n{\"query\":\"FOR p IN products LIMIT 5 RETURN p\",\"count\":true,\"batchSize\":2}\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"products/925564072\", \n \"_key\" : \"925564072\", \n \"_rev\" : \"925564072\", \n \"hello2\" : \"world1\" \n }, \n { \n \"_id\" : \"products/926219432\", \n \"_key\" : \"926219432\", \n \"_rev\" : \"926219432\", \n \"hello4\" : \"world1\" \n } \n ], \n \"hasMore\" : true, \n \"id\" : \"926743720\", \n \"count\" : 5, \n \"error\" : false, \n \"code\" : 201 \n}\nshell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/cursor/926743720\n\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor\n{\"query\":\"FOR p IN products LIMIT 5 RETURN p\",\"count\":true,\"batchSize\":2}\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"products/947228105\", \n \"_key\" : \"947228105\", \n \"_rev\" : \"947228105\", \n \"hello5\" : \"world1\" \n }, \n { \n \"_id\" : \"products/946245065\", \n \"_key\" : \"946245065\", \n \"_rev\" : \"946245065\", \n \"hello2\" : \"world1\" \n } \n ], \n \"hasMore\" : true, \n \"id\" : \"947424713\", \n \"count\" : 5, \n \"extra\" : { \n \"stats\" : { \n \"writesExecuted\" : 0, \n \"writesIgnored\" : 0, \n \"scannedFull\" : 5, \n \"scannedIndex\" : 0 \n } \n }, \n \"error\" : false, \n \"code\" : 201 \n}\nshell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/cursor/947424713\n\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/database/current\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : { \n \"name\" : \"_system\", \n \"id\" : \"130216\", \n \"path\" : \"/tmp/vocdir.14793/databases/database-130216\", \n \"isSystem\" : true \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/database/current\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : { \n \"name\" : \"_system\", \n \"id\" : \"101833\", \n \"path\" : \"/tmp/vocdir.19920/databases/database-101833\", \n \"isSystem\" : true \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/document?collection=products\n{ \"Hello\": \"World\" }\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\netag: \"1365638312\"\nlocation: /_db/_system/_api/document/products/1365638312\n\n{ \n \"error\" : false, \n \"_id\" : \"products/1365638312\", \n \"_rev\" : \"1365638312\", \n \"_key\" : \"1365638312\" \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/document?collection=products\n{ \"Hello\": \"World\" }\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"1366162600\"\nlocation: /_db/_system/_api/document/products/1366162600\n\n{ \n \"error\" : false, \n \"_id\" : \"products/1366162600\", \n \"_rev\" : \"1366162600\", \n \"_key\" : \"1366162600\" \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/document?collection=products&waitForSync=true\n{ \"Hello\": \"World\" }\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\netag: \"1366686888\"\nlocation: /_db/_system/_api/document/products/1366686888\n\n{ \n \"error\" : false, \n \"_id\" : \"products/1366686888\", \n \"_rev\" : \"1366686888\", \n \"_key\" : \"1366686888\" \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/document?collection=products&createCollection=true\n{ \"Hello\": \"World\" }\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"1367211176\"\nlocation: /_db/_system/_api/document/products/1367211176\n\n{ \n \"error\" : false, \n \"_id\" : \"products/1367211176\", \n \"_rev\" : \"1367211176\", \n \"_key\" : \"1367211176\" \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/document?collection=products\n{ \"Hello\": \"World\" }\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n \"error\" : true, \n \"errorMessage\" : \"collection 'products' not found\", \n \"code\" : 404, \n \"errorNum\" : 1203 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/document?collection=products\n{ 1: \"World\" }\n\nHTTP/1.1 400 Bad Request\ncontent-type: application/json; charset=utf-8\n\n{ \n \"error\" : true, \n \"errorMessage\" : \"expecting attribute name\", \n \"code\" : 400, \n \"errorNum\" : 600 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/document?collection=products\n{ \"Hello\": \"World\" }\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\netag: \"1427541449\"\nlocation: /_db/_system/_api/document/products/1427541449\n\n{ \n \"error\" : false, \n \"_id\" : \"products/1427541449\", \n \"_rev\" : \"1427541449\", \n \"_key\" : \"1427541449\" \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/document?collection=products\n{ \"Hello\": \"World\" }\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"1428065737\"\nlocation: /_db/_system/_api/document/products/1428065737\n\n{ \n \"error\" : false, \n \"_id\" : \"products/1428065737\", \n \"_rev\" : \"1428065737\", \n \"_key\" : \"1428065737\" \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/document?collection=products&waitForSync=true\n{ \"Hello\": \"World\" }\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\netag: \"1428590025\"\nlocation: /_db/_system/_api/document/products/1428590025\n\n{ \n \"error\" : false, \n \"_id\" : \"products/1428590025\", \n \"_rev\" : \"1428590025\", \n \"_key\" : \"1428590025\" \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/document?collection=products&createCollection=true\n{ \"Hello\": \"World\" }\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"1429114313\"\nlocation: /_db/_system/_api/document/products/1429114313\n\n{ \n \"error\" : false, \n \"_id\" : \"products/1429114313\", \n \"_rev\" : \"1429114313\", \n \"_key\" : \"1429114313\" \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/document?collection=products\n{ \"Hello\": \"World\" }\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n \"error\" : true, \n \"errorMessage\" : \"collection 'products' not found\", \n \"code\" : 404, \n \"errorNum\" : 1203 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/document?collection=products\n{ 1: \"World\" }\n\nHTTP/1.1 400 Bad Request\ncontent-type: application/json; charset=utf-8\n\n{ \n \"error\" : true, \n \"errorMessage\" : \"expecting attribute name\", \n \"code\" : 400, \n \"errorNum\" : 600 \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/document/products/1367735464\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\netag: \"1367735464\"\n\n{ \n \"hello\" : \"world\", \n \"_id\" : \"products/1367735464\", \n \"_rev\" : \"1367735464\", \n \"_key\" : \"1367735464\" \n}\n
shell> curl --header 'If-None-Match: \"1368325288\"' --dump - http://localhost:8529/_api/document/products/1368325288\n\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/document/products/unknownhandle\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n \"error\" : true, \n \"errorMessage\" : \"document /_api/document/products/unknownhandle not found\", \n \"code\" : 404, \n \"errorNum\" : 1202 \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/document/products/1429638601\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\netag: \"1429638601\"\n\n{ \n \"hello\" : \"world\", \n \"_id\" : \"products/1429638601\", \n \"_rev\" : \"1429638601\", \n \"_key\" : \"1429638601\" \n}\n
shell> curl --header 'If-None-Match: \"1430228425\"' --dump - http://localhost:8529/_api/document/products/1430228425\n\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/document/products/unknownhandle\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n \"error\" : true, \n \"errorMessage\" : \"document /_api/document/products/unknownhandle not found\", \n \"code\" : 404, \n \"errorNum\" : 1202 \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/document/?collection=products\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"documents\" : [ \n \"/_api/document/products/1369636008\", \n \"/_api/document/products/1368980648\", \n \"/_api/document/products/1369308328\" \n ] \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/document/?collection=products&type=key\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"documents\" : [ \n \"1370225832\", \n \"1370881192\", \n \"1370553512\" \n ] \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/document/?collection=doesnotexist\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n \"error\" : true, \n \"errorMessage\" : \"collection 'doesnotexist' not found\", \n \"code\" : 404, \n \"errorNum\" : 1203 \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/document/?collection=products\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"documents\" : [ \n \"/_api/document/products/1431211465\", \n \"/_api/document/products/1430883785\", \n \"/_api/document/products/1431539145\" \n ] \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/document/?collection=products&type=key\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"documents\" : [ \n \"1432915401\", \n \"1432260041\", \n \"1432587721\" \n ] \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/document/?collection=doesnotexist\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n \"error\" : true, \n \"errorMessage\" : \"collection 'doesnotexist' not found\", \n \"code\" : 404, \n \"errorNum\" : 1203 \n}\n
shell> curl -X HEAD --data-binary @- --dump - http://localhost:8529/_api/document/products/1371471016\n\n
shell> curl -X HEAD --data-binary @- --dump - http://localhost:8529/_api/document/products/1433570761\n\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/document/products/1372060840\n{\"Hello\": \"you\"}\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"1372388520\"\nlocation: /_db/_system/_api/document/products/1372060840\n\n{ \n \"error\" : false, \n \"_id\" : \"products/1372060840\", \n \"_rev\" : \"1372388520\", \n \"_key\" : \"1372060840\" \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/document/products/1372912808\n{}\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n \"error\" : true, \n \"errorMessage\" : \"document /_api/document/products/1372912808 not found\", \n \"code\" : 404, \n \"errorNum\" : 1202 \n}\n
shell> curl -X PUT --header 'If-Match: \"1374157992\"' --data-binary @- --dump - http://localhost:8529/_api/document/products/1373830312\n{\"other\":\"content\"}\n\nHTTP/1.1 412 Precondition Failed\ncontent-type: application/json; charset=utf-8\netag: \"1373830312\"\n\n{ \n \"error\" : true, \n \"code\" : 412, \n \"errorNum\" : 1200, \n \"errorMessage\" : \"precondition failed\", \n \"_id\" : \"products/1373830312\", \n \"_rev\" : \"1373830312\", \n \"_key\" : \"1373830312\" \n}\n
shell> curl -X PUT --header 'If-Match: \"1375272104\"' --data-binary @- --dump - http://localhost:8529/_api/document/products/1374944424?policy=last\n{}\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"1375534248\"\nlocation: /_db/_system/_api/document/products/1374944424\n\n{ \n \"error\" : false, \n \"_id\" : \"products/1374944424\", \n \"_rev\" : \"1375534248\", \n \"_key\" : \"1374944424\" \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/document/products/1376058536?rev=1376386216\n{\"other\":\"content\"}\n\nHTTP/1.1 412 Precondition Failed\ncontent-type: application/json; charset=utf-8\netag: \"1376058536\"\n\n{ \n \"error\" : true, \n \"code\" : 412, \n \"errorNum\" : 1200, \n \"errorMessage\" : \"precondition failed\", \n \"_id\" : \"products/1376058536\", \n \"_rev\" : \"1376058536\", \n \"_key\" : \"1376058536\" \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/document/products/1434160585\n{\"Hello\": \"you\"}\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"1434488265\"\nlocation: /_db/_system/_api/document/products/1434160585\n\n{ \n \"error\" : false, \n \"_id\" : \"products/1434160585\", \n \"_rev\" : \"1434488265\", \n \"_key\" : \"1434160585\" \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/document/products/1435012553\n{}\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n \"error\" : true, \n \"errorMessage\" : \"document /_api/document/products/1435012553 not found\", \n \"code\" : 404, \n \"errorNum\" : 1202 \n}\n
shell> curl -X PUT --header 'If-Match: \"1436257737\"' --data-binary @- --dump - http://localhost:8529/_api/document/products/1435930057\n{\"other\":\"content\"}\n\nHTTP/1.1 412 Precondition Failed\ncontent-type: application/json; charset=utf-8\netag: \"1435930057\"\n\n{ \n \"error\" : true, \n \"code\" : 412, \n \"errorNum\" : 1200, \n \"errorMessage\" : \"precondition failed\", \n \"_id\" : \"products/1435930057\", \n \"_rev\" : \"1435930057\", \n \"_key\" : \"1435930057\" \n}\n
shell> curl -X PUT --header 'If-Match: \"1437371849\"' --data-binary @- --dump - http://localhost:8529/_api/document/products/1437044169?policy=last\n{}\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"1437633993\"\nlocation: /_db/_system/_api/document/products/1437044169\n\n{ \n \"error\" : false, \n \"_id\" : \"products/1437044169\", \n \"_rev\" : \"1437633993\", \n \"_key\" : \"1437044169\" \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/document/products/1438158281?rev=1438485961\n{\"other\":\"content\"}\n\nHTTP/1.1 412 Precondition Failed\ncontent-type: application/json; charset=utf-8\netag: \"1438158281\"\n\n{ \n \"error\" : true, \n \"code\" : 412, \n \"errorNum\" : 1200, \n \"errorMessage\" : \"precondition failed\", \n \"_id\" : \"products/1438158281\", \n \"_rev\" : \"1438158281\", \n \"_key\" : \"1438158281\" \n}\n
shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/1377172648\n{ \n \"hello\" : \"world\" \n}\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"1377500328\"\nlocation: /_db/_system/_api/document/products/1377172648\n\n{ \n \"error\" : false, \n \"_id\" : \"products/1377172648\", \n \"_rev\" : \"1377500328\", \n \"_key\" : \"1377172648\" \n}\nshell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/1377172648\n{ \n \"numbers\" : { \n \"one\" : 1, \n \"two\" : 2, \n \"three\" : 3, \n \"empty\" : null \n } \n}\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"1378090152\"\nlocation: /_db/_system/_api/document/products/1377172648\n\n{ \n \"error\" : false, \n \"_id\" : \"products/1377172648\", \n \"_rev\" : \"1378090152\", \n \"_key\" : \"1377172648\" \n}\nshell> curl --data-binary @- --dump - http://localhost:8529/_api/document/products/1377172648\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\netag: \"1378090152\"\n\n{ \n \"one\" : \"world\", \n \"hello\" : \"world\", \n \"numbers\" : { \n \"empty\" : null, \n \"one\" : 1, \n \"two\" : 2, \n \"three\" : 3 \n }, \n \"_id\" : \"products/1377172648\", \n \"_rev\" : \"1378090152\", \n \"_key\" : \"1377172648\" \n}\nshell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/1377172648?keepNull=false\n{ \n \"hello\" : null, \n \"numbers\" : { \n \"four\" : 4 \n } \n}\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"1378548904\"\nlocation: /_db/_system/_api/document/products/1377172648\n\n{ \n \"error\" : false, \n \"_id\" : \"products/1377172648\", \n \"_rev\" : \"1378548904\", \n \"_key\" : \"1377172648\" \n}\nshell> curl --data-binary @- --dump - http://localhost:8529/_api/document/products/1377172648\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\netag: \"1378548904\"\n\n{ \n \"one\" : \"world\", \n \"numbers\" : { \n \"empty\" : null, \n \"one\" : 1, \n \"two\" : 2, \n \"three\" : 3, \n \"four\" : 4 \n }, \n \"_id\" : \"products/1377172648\", \n \"_rev\" : \"1378548904\", \n \"_key\" : \"1377172648\" \n}\n
shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/1439272393\n{ \n \"hello\" : \"world\" \n}\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"1439600073\"\nlocation: /_db/_system/_api/document/products/1439272393\n\n{ \n \"error\" : false, \n \"_id\" : \"products/1439272393\", \n \"_rev\" : \"1439600073\", \n \"_key\" : \"1439272393\" \n}\nshell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/1439272393\n{ \n \"numbers\" : { \n \"one\" : 1, \n \"two\" : 2, \n \"three\" : 3, \n \"empty\" : null \n } \n}\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"1440189897\"\nlocation: /_db/_system/_api/document/products/1439272393\n\n{ \n \"error\" : false, \n \"_id\" : \"products/1439272393\", \n \"_rev\" : \"1440189897\", \n \"_key\" : \"1439272393\" \n}\nshell> curl --data-binary @- --dump - http://localhost:8529/_api/document/products/1439272393\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\netag: \"1440189897\"\n\n{ \n \"one\" : \"world\", \n \"hello\" : \"world\", \n \"numbers\" : { \n \"empty\" : null, \n \"one\" : 1, \n \"two\" : 2, \n \"three\" : 3 \n }, \n \"_id\" : \"products/1439272393\", \n \"_rev\" : \"1440189897\", \n \"_key\" : \"1439272393\" \n}\nshell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/1439272393?keepNull=false\n{ \n \"hello\" : null, \n \"numbers\" : { \n \"four\" : 4 \n } \n}\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"1440648649\"\nlocation: /_db/_system/_api/document/products/1439272393\n\n{ \n \"error\" : false, \n \"_id\" : \"products/1439272393\", \n \"_rev\" : \"1440648649\", \n \"_key\" : \"1439272393\" \n}\nshell> curl --data-binary @- --dump - http://localhost:8529/_api/document/products/1439272393\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\netag: \"1440648649\"\n\n{ \n \"one\" : \"world\", \n \"numbers\" : { \n \"empty\" : null, \n \"one\" : 1, \n \"two\" : 2, \n \"three\" : 3, \n \"four\" : 4 \n }, \n \"_id\" : \"products/1439272393\", \n \"_rev\" : \"1440648649\", \n \"_key\" : \"1439272393\" \n}\n
shell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/document/products/1379138728\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"error\" : false, \n \"_id\" : \"products/1379138728\", \n \"_rev\" : \"1379138728\", \n \"_key\" : \"1379138728\" \n}\n
shell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/document/products/1380252840\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n \"error\" : true, \n \"errorMessage\" : \"document /_api/document/products/1380252840 not found\", \n \"code\" : 404, \n \"errorNum\" : 1202 \n}\n
shell> curl -X DELETE --header 'If-Match: \"1381694632\"' --dump - http://localhost:8529/_api/document/products/1381366952\n\nHTTP/1.1 412 Precondition Failed\ncontent-type: application/json; charset=utf-8\netag: \"1381366952\"\n\n{ \n \"error\" : true, \n \"code\" : 412, \n \"errorNum\" : 1200, \n \"errorMessage\" : \"precondition failed\", \n \"_id\" : \"products/1381366952\", \n \"_rev\" : \"1381366952\", \n \"_key\" : \"1381366952\" \n}\n
shell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/document/products/1441238473\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"error\" : false, \n \"_id\" : \"products/1441238473\", \n \"_rev\" : \"1441238473\", \n \"_key\" : \"1441238473\" \n}\n
shell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/document/products/1441959369\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n \"error\" : true, \n \"errorMessage\" : \"document /_api/document/products/1441959369 not found\", \n \"code\" : 404, \n \"errorNum\" : 1202 \n}\n
shell> curl -X DELETE --header 'If-Match: \"1443139017\"' --dump - http://localhost:8529/_api/document/products/1442811337\n\nHTTP/1.1 412 Precondition Failed\ncontent-type: application/json; charset=utf-8\netag: \"1442811337\"\n\n{ \n \"error\" : true, \n \"code\" : 412, \n \"errorNum\" : 1200, \n \"errorMessage\" : \"precondition failed\", \n \"_id\" : \"products/1442811337\", \n \"_rev\" : \"1442811337\", \n \"_key\" : \"1442811337\" \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/edge/?collection=edges&from=vertices/1&to=vertices/2\n{ \n \"name\" : \"Emil\" \n}\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"1383988392\"\nlocation: /_db/_system/_api/document/edges/1383988392\n\n{ \n \"error\" : false, \n \"_id\" : \"edges/1383988392\", \n \"_rev\" : \"1383988392\", \n \"_key\" : \"1383988392\" \n}\nshell> curl --data-binary @- --dump - http://localhost:8529/_api/edge/edges/1383988392\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\netag: \"1383988392\"\n\n{ \n \"name\" : \"Emil\", \n \"_id\" : \"edges/1383988392\", \n \"_rev\" : \"1383988392\", \n \"_key\" : \"1383988392\", \n \"_from\" : \"vertices/1\", \n \"_to\" : \"vertices/2\" \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/edge/?collection=edges&from=vertices/1&to=vertices/2\n{ \n \"name\" : \"Emil\" \n}\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: \"1445432777\"\nlocation: /_db/_system/_api/document/edges/1445432777\n\n{ \n \"error\" : false, \n \"_id\" : \"edges/1445432777\", \n \"_rev\" : \"1445432777\", \n \"_key\" : \"1445432777\" \n}\nshell> curl --data-binary @- --dump - http://localhost:8529/_api/edge/edges/1445432777\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\netag: \"1445432777\"\n\n{ \n \"name\" : \"Emil\", \n \"_id\" : \"edges/1445432777\", \n \"_rev\" : \"1445432777\", \n \"_key\" : \"1445432777\", \n \"_from\" : \"vertices/1\", \n \"_to\" : \"vertices/2\" \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/edges/edges?vertex=vertices/1\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"edges\" : [ \n { \n \"_id\" : \"edges/6\", \n \"_key\" : \"6\", \n \"_rev\" : \"1046281384\", \n \"_from\" : \"vertices/2\", \n \"_to\" : \"vertices/1\", \n \"$label\" : \"v2 -> v1\" \n }, \n { \n \"_id\" : \"edges/7\", \n \"_key\" : \"7\", \n \"_rev\" : \"1046805672\", \n \"_from\" : \"vertices/4\", \n \"_to\" : \"vertices/1\", \n \"$label\" : \"v4 -> v1\" \n }, \n { \n \"_id\" : \"edges/5\", \n \"_key\" : \"5\", \n \"_rev\" : \"1045757096\", \n \"_from\" : \"vertices/1\", \n \"_to\" : \"vertices/3\", \n \"$label\" : \"v1 -> v3\" \n } \n ], \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/edges/edges?vertex=vertices/1&direction=in\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"edges\" : [ \n { \n \"_id\" : \"edges/6\", \n \"_key\" : \"6\", \n \"_rev\" : \"1050999976\", \n \"_from\" : \"vertices/2\", \n \"_to\" : \"vertices/1\", \n \"$label\" : \"v2 -> v1\" \n }, \n { \n \"_id\" : \"edges/7\", \n \"_key\" : \"7\", \n \"_rev\" : \"1051524264\", \n \"_from\" : \"vertices/4\", \n \"_to\" : \"vertices/1\", \n \"$label\" : \"v4 -> v1\" \n } \n ], \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/edges/edges?vertex=vertices/1&direction=out\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"edges\" : [ \n { \n \"_id\" : \"edges/5\", \n \"_key\" : \"5\", \n \"_rev\" : \"1055194280\", \n \"_from\" : \"vertices/1\", \n \"_to\" : \"vertices/3\", \n \"$label\" : \"v1 -> v3\" \n } \n ], \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/edges/edges?vertex=vertices/1\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"edges\" : [ \n { \n \"_id\" : \"edges/6\", \n \"_key\" : \"6\", \n \"_rev\" : \"1094487497\", \n \"_from\" : \"vertices/2\", \n \"_to\" : \"vertices/1\", \n \"$label\" : \"v2 -> v1\" \n }, \n { \n \"_id\" : \"edges/7\", \n \"_key\" : \"7\", \n \"_rev\" : \"1095011785\", \n \"_from\" : \"vertices/4\", \n \"_to\" : \"vertices/1\", \n \"$label\" : \"v4 -> v1\" \n }, \n { \n \"_id\" : \"edges/5\", \n \"_key\" : \"5\", \n \"_rev\" : \"1093963209\", \n \"_from\" : \"vertices/1\", \n \"_to\" : \"vertices/3\", \n \"$label\" : \"v1 -> v3\" \n } \n ], \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/edges/edges?vertex=vertices/1&direction=in\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"edges\" : [ \n { \n \"_id\" : \"edges/6\", \n \"_key\" : \"6\", \n \"_rev\" : \"1099206089\", \n \"_from\" : \"vertices/2\", \n \"_to\" : \"vertices/1\", \n \"$label\" : \"v2 -> v1\" \n }, \n { \n \"_id\" : \"edges/7\", \n \"_key\" : \"7\", \n \"_rev\" : \"1099730377\", \n \"_from\" : \"vertices/4\", \n \"_to\" : \"vertices/1\", \n \"$label\" : \"v4 -> v1\" \n } \n ], \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/edges/edges?vertex=vertices/1&direction=out\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"edges\" : [ \n { \n \"_id\" : \"edges/5\", \n \"_key\" : \"5\", \n \"_rev\" : \"1103597001\", \n \"_from\" : \"vertices/1\", \n \"_to\" : \"vertices/3\", \n \"$label\" : \"v1 -> v3\" \n } \n ], \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/endpoint\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n[ \n { \n \"endpoint\" : \"tcp://127.0.0.1:34793\", \n \"databases\" : [ ] \n }, \n { \n \"endpoint\" : \"tcp://127.0.0.1:8532\", \n \"databases\" : [ \n \"mydb1\", \n \"mydb2\" \n ] \n } \n]\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/endpoint\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n[ \n { \n \"endpoint\" : \"tcp://127.0.0.1:39920\", \n \"databases\" : [ ] \n }, \n { \n \"endpoint\" : \"tcp://127.0.0.1:8532\", \n \"databases\" : [ \n \"mydb1\", \n \"mydb2\" \n ] \n } \n]\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/explain\n{ \"query\" : \"FOR p IN products FILTER p.id == @id LIMIT 2 RETURN p.name\", \"bindVars\": { \"id\" : 3 } }\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"plan\" : { \n \"plan\" : { \n \"nodes\" : [ \n { \n \"type\" : \"SingletonNode\", \n \"dependencies\" : [ ], \n \"id\" : 1, \n \"estimatedCost\" : 1, \n \"depth\" : 0, \n \"varInfoList\" : [ ], \n \"nrRegs\" : [ ], \n \"regsToClear\" : [ ] \n }, \n { \n \"type\" : \"EnumerateCollectionNode\", \n \"dependencies\" : [ \n 1 \n ], \n \"id\" : 2, \n \"estimatedCost\" : 0, \n \"depth\" : 0, \n \"varInfoList\" : [ ], \n \"nrRegs\" : [ ], \n \"regsToClear\" : [ ], \n \"database\" : \"_system\", \n \"collection\" : \"products\", \n \"outVariable\" : { \n \"id\" : 0, \n \"name\" : \"p\" \n } \n }, \n { \n \"type\" : \"CalculationNode\", \n \"dependencies\" : [ \n 2 \n ], \n \"id\" : 3, \n \"estimatedCost\" : 0, \n \"depth\" : 0, \n \"varInfoList\" : [ ], \n \"nrRegs\" : [ ], \n \"regsToClear\" : [ ], \n \"expression\" : { \n \"type\" : \"compare ==\", \n \"subNodes\" : [ \n { \n \"type\" : \"attribute access\", \n \"name\" : \"id\", \n \"subNodes\" : [ \n { \n \"type\" : \"reference\", \n \"name\" : \"p\", \n \"id\" : 0 \n } \n ] \n }, \n { \n \"type\" : \"value\", \n \"value\" : 3 \n } \n ] \n }, \n \"outVariable\" : { \n \"id\" : 1, \n \"name\" : \"1\" \n }, \n \"canThrow\" : false \n }, \n { \n \"type\" : \"FilterNode\", \n \"dependencies\" : [ \n 3 \n ], \n \"id\" : 4, \n \"estimatedCost\" : 0, \n \"depth\" : 0, \n \"varInfoList\" : [ ], \n \"nrRegs\" : [ ], \n \"regsToClear\" : [ ], \n \"inVariable\" : { \n \"id\" : 1, \n \"name\" : \"1\" \n } \n }, \n { \n \"type\" : \"CalculationNode\", \n \"dependencies\" : [ \n 4 \n ], \n \"id\" : 6, \n \"estimatedCost\" : 0, \n \"depth\" : 0, \n \"varInfoList\" : [ ], \n \"nrRegs\" : [ ], \n \"regsToClear\" : [ ], \n \"expression\" : { \n \"type\" : \"attribute access\", \n \"name\" : \"name\", \n \"subNodes\" : [ \n { \n \"type\" : \"reference\", \n \"name\" : \"p\", \n \"id\" : 0 \n } \n ] \n }, \n \"outVariable\" : { \n \"id\" : 2, \n \"name\" : \"2\" \n }, \n \"canThrow\" : false \n }, \n { \n \"type\" : \"LimitNode\", \n \"dependencies\" : [ \n 6 \n ], \n \"id\" : 5, \n \"estimatedCost\" : 0, \n \"depth\" : 0, \n \"varInfoList\" : [ ], \n \"nrRegs\" : [ ], \n \"regsToClear\" : [ ], \n \"offset\" : 0, \n \"limit\" : 2 \n }, \n { \n \"type\" : \"ReturnNode\", \n \"dependencies\" : [ \n 5 \n ], \n \"id\" : 7, \n \"estimatedCost\" : 0, \n \"depth\" : 0, \n \"varInfoList\" : [ ], \n \"nrRegs\" : [ ], \n \"regsToClear\" : [ ], \n \"inVariable\" : { \n \"id\" : 2, \n \"name\" : \"2\" \n } \n } \n ], \n \"rules\" : [ \n \"move-calculations-up\", \n \"move-filters-up\", \n \"move-calculations-up-2\", \n \"move-filters-up-2\" \n ], \n \"collections\" : [ \n { \n \"name\" : \"products\", \n \"type\" : \"read\" \n } \n ], \n \"estimatedCost\" : 0 \n } \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/explain\n{ \"query\" : \"FOR p IN products FILTER p.id == @id LIMIT 2 RETURN p.n\" }\n\nHTTP/1.1 400 Bad Request\ncontent-type: application/json; charset=utf-8\n\n{ \n \"error\" : true, \n \"code\" : 400, \n \"errorNum\" : 1551, \n \"errorMessage\" : \"in state parsing: no value specified for declared bind parameter 'id'\" \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/explain\n{ \"query\" : \"FOR i IN [ 1, 2, 3 ] FILTER 1 == 2 RETURN i\" }\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"plan\" : { \n \"plan\" : { \n \"nodes\" : [ \n { \n \"type\" : \"SingletonNode\", \n \"dependencies\" : [ ], \n \"id\" : 1, \n \"estimatedCost\" : 0, \n \"depth\" : 0, \n \"varInfoList\" : [ ], \n \"nrRegs\" : [ ], \n \"regsToClear\" : [ ] \n }, \n { \n \"type\" : \"CalculationNode\", \n \"dependencies\" : [ \n 1 \n ], \n \"id\" : 2, \n \"estimatedCost\" : 0, \n \"depth\" : 0, \n \"varInfoList\" : [ ], \n \"nrRegs\" : [ ], \n \"regsToClear\" : [ ], \n \"expression\" : { \n \"type\" : \"list\", \n \"subNodes\" : [ \n { \n \"type\" : \"value\", \n \"value\" : 1 \n }, \n { \n \"type\" : \"value\", \n \"value\" : 2 \n }, \n { \n \"type\" : \"value\", \n \"value\" : 3 \n } \n ] \n }, \n \"outVariable\" : { \n \"id\" : 1, \n \"name\" : \"1\" \n }, \n \"canThrow\" : false \n }, \n { \n \"type\" : \"NoResultsNode\", \n \"dependencies\" : [ \n 2 \n ], \n \"id\" : 7, \n \"estimatedCost\" : 0, \n \"depth\" : 0, \n \"varInfoList\" : [ ], \n \"nrRegs\" : [ ], \n \"regsToClear\" : [ ] \n }, \n { \n \"type\" : \"EnumerateListNode\", \n \"dependencies\" : [ \n 7 \n ], \n \"id\" : 3, \n \"estimatedCost\" : 0, \n \"depth\" : 0, \n \"varInfoList\" : [ ], \n \"nrRegs\" : [ ], \n \"regsToClear\" : [ ], \n \"inVariable\" : { \n \"id\" : 1, \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, \n \"depth\" : 0, \n \"varInfoList\" : [ ], \n \"nrRegs\" : [ ], \n \"regsToClear\" : [ ], \n \"inVariable\" : { \n \"id\" : 0, \n \"name\" : \"i\" \n } \n } \n ], \n \"rules\" : [ \n \"move-calculations-up\", \n \"move-filters-up\", \n \"remove-unnecessary-filters\", \n \"remove-unnecessary-calculations\" \n ], \n \"collections\" : [ ], \n \"estimatedCost\" : 0 \n } \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/explain\n{\"query\":\"FOR p IN products RETURN p\"}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"plan\" : { \n \"nodes\" : [ \n { \n \"type\" : \"SingletonNode\", \n \"dependencies\" : [ ], \n \"id\" : 1, \n \"estimatedCost\" : 1 \n }, \n { \n \"type\" : \"EnumerateCollectionNode\", \n \"dependencies\" : [ \n 1 \n ], \n \"id\" : 2, \n \"estimatedCost\" : 10, \n \"database\" : \"_system\", \n \"collection\" : \"products\", \n \"outVariable\" : { \n \"id\" : 0, \n \"name\" : \"p\" \n } \n }, \n { \n \"type\" : \"ReturnNode\", \n \"dependencies\" : [ \n 2 \n ], \n \"id\" : 3, \n \"estimatedCost\" : 10, \n \"inVariable\" : { \n \"id\" : 0, \n \"name\" : \"p\" \n } \n } \n ], \n \"rules\" : [ ], \n \"collections\" : [ \n { \n \"name\" : \"products\", \n \"type\" : \"read\" \n } \n ], \n \"variables\" : [ \n { \n \"id\" : 0, \n \"name\" : \"p\" \n } \n ], \n \"estimatedCost\" : 10 \n }, \n \"warnings\" : [ ], \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/explain\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\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"plan\" : { \n \"nodes\" : [ \n { \n \"type\" : \"SingletonNode\", \n \"dependencies\" : [ ], \n \"id\" : 1, \n \"estimatedCost\" : 1 \n }, \n { \n \"type\" : \"IndexRangeNode\", \n \"dependencies\" : [ \n 1 \n ], \n \"id\" : 11, \n \"estimatedCost\" : 10, \n \"database\" : \"_system\", \n \"collection\" : \"products\", \n \"outVariable\" : { \n \"id\" : 0, \n \"name\" : \"p\" \n }, \n \"ranges\" : [ \n [ ] \n ], \n \"index\" : { \n \"type\" : \"skiplist\", \n \"id\" : \"1108118985\", \n \"unique\" : false, \n \"fields\" : [ \n \"id\" \n ] \n }, \n \"reverse\" : false \n }, \n { \n \"type\" : \"CalculationNode\", \n \"dependencies\" : [ \n 11 \n ], \n \"id\" : 3, \n \"estimatedCost\" : 20, \n \"expression\" : { \n \"type\" : \"attribute access\", \n \"name\" : \"id\", \n \"subNodes\" : [ \n { \n \"type\" : \"reference\", \n \"name\" : \"p\", \n \"id\" : 0 \n } \n ] \n }, \n \"outVariable\" : { \n \"id\" : 1, \n \"name\" : \"a\" \n }, \n \"canThrow\" : false \n }, \n { \n \"type\" : \"CalculationNode\", \n \"dependencies\" : [ \n 3 \n ], \n \"id\" : 6, \n \"estimatedCost\" : 40, \n \"expression\" : { \n \"type\" : \"attribute access\", \n \"name\" : \"name\", \n \"subNodes\" : [ \n { \n \"type\" : \"reference\", \n \"name\" : \"p\", \n \"id\" : 0 \n } \n ] \n }, \n \"outVariable\" : { \n \"id\" : 2, \n \"name\" : \"name\" \n }, \n \"canThrow\" : false \n }, \n { \n \"type\" : \"CalculationNode\", \n \"dependencies\" : [ \n 6 \n ], \n \"id\" : 4, \n \"estimatedCost\" : 80, \n \"expression\" : { \n \"type\" : \"compare ==\", \n \"subNodes\" : [ \n { \n \"type\" : \"reference\", \n \"name\" : \"a\", \n \"id\" : 1 \n }, \n { \n \"type\" : \"value\", \n \"value\" : 4 \n } \n ] \n }, \n \"outVariable\" : { \n \"id\" : 3, \n \"name\" : \"3\" \n }, \n \"canThrow\" : false \n }, \n { \n \"type\" : \"FilterNode\", \n \"dependencies\" : [ \n 4 \n ], \n \"id\" : 5, \n \"estimatedCost\" : 88.4, \n \"inVariable\" : { \n \"id\" : 3, \n \"name\" : \"3\" \n } \n }, \n { \n \"type\" : \"LimitNode\", \n \"dependencies\" : [ \n 5 \n ], \n \"id\" : 9, \n \"estimatedCost\" : 89.405, \n \"offset\" : 0, \n \"limit\" : 1, \n \"fullCount\" : false \n }, \n { \n \"type\" : \"ReturnNode\", \n \"dependencies\" : [ \n 9 \n ], \n \"id\" : 10, \n \"estimatedCost\" : 89.405, \n \"inVariable\" : { \n \"id\" : 2, \n \"name\" : \"name\" \n } \n } \n ], \n \"rules\" : [ \n \"move-calculations-up\", \n \"remove-redundant-calculations\", \n \"move-calculations-up-2\", \n \"use-index-for-sort\", \n \"remove-unnecessary-calculations-2\" \n ], \n \"collections\" : [ \n { \n \"name\" : \"products\", \n \"type\" : \"read\" \n } \n ], \n \"variables\" : [ \n { \n \"id\" : 4, \n \"name\" : \"4\" \n }, \n { \n \"id\" : 3, \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\" : 89.405 \n }, \n \"warnings\" : [ ], \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/explain\n{\"query\":\"FOR p IN products LET a = p.id FILTER a == 4 LET name = p.name SORT p.id LIMIT 1 RETURN name\",\"options\":{\"maxPlans\":2,\"allPlans\":true,\"optimizer\":{\"rules\":[\"-all\",\"+use-index-for-sort\",\"+use-index-range\"]}}}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"plans\" : [ \n { \n \"nodes\" : [ \n { \n \"type\" : \"SingletonNode\", \n \"dependencies\" : [ ], \n \"id\" : 1, \n \"estimatedCost\" : 1 \n }, \n { \n \"type\" : \"IndexRangeNode\", \n \"dependencies\" : [ \n 1 \n ], \n \"id\" : 11, \n \"estimatedCost\" : 10, \n \"database\" : \"_system\", \n \"collection\" : \"products\", \n \"outVariable\" : { \n \"id\" : 0, \n \"name\" : \"p\" \n }, \n \"ranges\" : [ \n [ ] \n ], \n \"index\" : { \n \"type\" : \"skiplist\", \n \"id\" : \"1110674889\", \n \"unique\" : false, \n \"fields\" : [ \n \"id\" \n ] \n }, \n \"reverse\" : false \n }, \n { \n \"type\" : \"CalculationNode\", \n \"dependencies\" : [ \n 11 \n ], \n \"id\" : 3, \n \"estimatedCost\" : 20, \n \"expression\" : { \n \"type\" : \"attribute access\", \n \"name\" : \"id\", \n \"subNodes\" : [ \n { \n \"type\" : \"reference\", \n \"name\" : \"p\", \n \"id\" : 0 \n } \n ] \n }, \n \"outVariable\" : { \n \"id\" : 1, \n \"name\" : \"a\" \n }, \n \"canThrow\" : false \n }, \n { \n \"type\" : \"CalculationNode\", \n \"dependencies\" : [ \n 3 \n ], \n \"id\" : 4, \n \"estimatedCost\" : 40, \n \"expression\" : { \n \"type\" : \"compare ==\", \n \"subNodes\" : [ \n { \n \"type\" : \"reference\", \n \"name\" : \"a\", \n \"id\" : 1 \n }, \n { \n \"type\" : \"value\", \n \"value\" : 4 \n } \n ] \n }, \n \"outVariable\" : { \n \"id\" : 3, \n \"name\" : \"3\" \n }, \n \"canThrow\" : false \n }, \n { \n \"type\" : \"FilterNode\", \n \"dependencies\" : [ \n 4 \n ], \n \"id\" : 5, \n \"estimatedCost\" : 44.2, \n \"inVariable\" : { \n \"id\" : 3, \n \"name\" : \"3\" \n } \n }, \n { \n \"type\" : \"CalculationNode\", \n \"dependencies\" : [ \n 5 \n ], \n \"id\" : 6, \n \"estimatedCost\" : 88.4, \n \"expression\" : { \n \"type\" : \"attribute access\", \n \"name\" : \"name\", \n \"subNodes\" : [ \n { \n \"type\" : \"reference\", \n \"name\" : \"p\", \n \"id\" : 0 \n } \n ] \n }, \n \"outVariable\" : { \n \"id\" : 2, \n \"name\" : \"name\" \n }, \n \"canThrow\" : false \n }, \n { \n \"type\" : \"CalculationNode\", \n \"dependencies\" : [ \n 6 \n ], \n \"id\" : 7, \n \"estimatedCost\" : 176.8, \n \"expression\" : { \n \"type\" : \"attribute access\", \n \"name\" : \"id\", \n \"subNodes\" : [ \n { \n \"type\" : \"reference\", \n \"name\" : \"p\", \n \"id\" : 0 \n } \n ] \n }, \n \"outVariable\" : { \n \"id\" : 4, \n \"name\" : \"4\" \n }, \n \"canThrow\" : false \n }, \n { \n \"type\" : \"LimitNode\", \n \"dependencies\" : [ \n 7 \n ], \n \"id\" : 9, \n \"estimatedCost\" : 177.805, \n \"offset\" : 0, \n \"limit\" : 1, \n \"fullCount\" : false \n }, \n { \n \"type\" : \"ReturnNode\", \n \"dependencies\" : [ \n 9 \n ], \n \"id\" : 10, \n \"estimatedCost\" : 177.805, \n \"inVariable\" : { \n \"id\" : 2, \n \"name\" : \"name\" \n } \n } \n ], \n \"rules\" : [ \n \"use-index-for-sort\" \n ], \n \"collections\" : [ \n { \n \"name\" : \"products\", \n \"type\" : \"read\" \n } \n ], \n \"variables\" : [ \n { \n \"id\" : 4, \n \"name\" : \"4\" \n }, \n { \n \"id\" : 3, \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\" : 177.805 \n }, \n { \n \"nodes\" : [ \n { \n \"type\" : \"SingletonNode\", \n \"dependencies\" : [ ], \n \"id\" : 1, \n \"estimatedCost\" : 1 \n }, \n { \n \"type\" : \"EnumerateCollectionNode\", \n \"dependencies\" : [ \n 1 \n ], \n \"id\" : 2, \n \"estimatedCost\" : 10, \n \"database\" : \"_system\", \n \"collection\" : \"products\", \n \"outVariable\" : { \n \"id\" : 0, \n \"name\" : \"p\" \n } \n }, \n { \n \"type\" : \"CalculationNode\", \n \"dependencies\" : [ \n 2 \n ], \n \"id\" : 3, \n \"estimatedCost\" : 20, \n \"expression\" : { \n \"type\" : \"attribute access\", \n \"name\" : \"id\", \n \"subNodes\" : [ \n { \n \"type\" : \"reference\", \n \"name\" : \"p\", \n \"id\" : 0 \n } \n ] \n }, \n \"outVariable\" : { \n \"id\" : 1, \n \"name\" : \"a\" \n }, \n \"canThrow\" : false \n }, \n { \n \"type\" : \"CalculationNode\", \n \"dependencies\" : [ \n 3 \n ], \n \"id\" : 4, \n \"estimatedCost\" : 40, \n \"expression\" : { \n \"type\" : \"compare ==\", \n \"subNodes\" : [ \n { \n \"type\" : \"reference\", \n \"name\" : \"a\", \n \"id\" : 1 \n }, \n { \n \"type\" : \"value\", \n \"value\" : 4 \n } \n ] \n }, \n \"outVariable\" : { \n \"id\" : 3, \n \"name\" : \"3\" \n }, \n \"canThrow\" : false \n }, \n { \n \"type\" : \"FilterNode\", \n \"dependencies\" : [ \n 4 \n ], \n \"id\" : 5, \n \"estimatedCost\" : 44.2, \n \"inVariable\" : { \n \"id\" : 3, \n \"name\" : \"3\" \n } \n }, \n { \n \"type\" : \"CalculationNode\", \n \"dependencies\" : [ \n 5 \n ], \n \"id\" : 6, \n \"estimatedCost\" : 88.4, \n \"expression\" : { \n \"type\" : \"attribute access\", \n \"name\" : \"name\", \n \"subNodes\" : [ \n { \n \"type\" : \"reference\", \n \"name\" : \"p\", \n \"id\" : 0 \n } \n ] \n }, \n \"outVariable\" : { \n \"id\" : 2, \n \"name\" : \"name\" \n }, \n \"canThrow\" : false \n }, \n { \n \"type\" : \"CalculationNode\", \n \"dependencies\" : [ \n 6 \n ], \n \"id\" : 7, \n \"estimatedCost\" : 176.8, \n \"expression\" : { \n \"type\" : \"attribute access\", \n \"name\" : \"id\", \n \"subNodes\" : [ \n { \n \"type\" : \"reference\", \n \"name\" : \"p\", \n \"id\" : 0 \n } \n ] \n }, \n \"outVariable\" : { \n \"id\" : 4, \n \"name\" : \"4\" \n }, \n \"canThrow\" : false \n }, \n { \n \"type\" : \"SortNode\", \n \"dependencies\" : [ \n 7 \n ], \n \"id\" : 8, \n \"estimatedCost\" : 914.9433857559865, \n \"elements\" : [ \n { \n \"inVariable\" : { \n \"id\" : 4, \n \"name\" : \"4\" \n }, \n \"ascending\" : true \n } \n ], \n \"stable\" : false \n }, \n { \n \"type\" : \"LimitNode\", \n \"dependencies\" : [ \n 8 \n ], \n \"id\" : 9, \n \"estimatedCost\" : 915.9483857559865, \n \"offset\" : 0, \n \"limit\" : 1, \n \"fullCount\" : false \n }, \n { \n \"type\" : \"ReturnNode\", \n \"dependencies\" : [ \n 9 \n ], \n \"id\" : 10, \n \"estimatedCost\" : 915.9483857559865, \n \"inVariable\" : { \n \"id\" : 2, \n \"name\" : \"name\" \n } \n } \n ], \n \"rules\" : [ ], \n \"collections\" : [ \n { \n \"name\" : \"products\", \n \"type\" : \"read\" \n } \n ], \n \"variables\" : [ \n { \n \"id\" : 4, \n \"name\" : \"4\" \n }, \n { \n \"id\" : 3, \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\" : 915.9483857559865 \n } \n ], \n \"warnings\" : [ ], \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/explain\n{\"query\":\"FOR p IN products FILTER p.id == 25 RETURN p\",\"options\":{\"allPlans\":true}}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"plans\" : [ \n { \n \"nodes\" : [ \n { \n \"type\" : \"SingletonNode\", \n \"dependencies\" : [ ], \n \"id\" : 1, \n \"estimatedCost\" : 1 \n }, \n { \n \"type\" : \"IndexRangeNode\", \n \"dependencies\" : [ \n 1 \n ], \n \"id\" : 6, \n \"estimatedCost\" : 0, \n \"database\" : \"_system\", \n \"collection\" : \"products\", \n \"outVariable\" : { \n \"id\" : 0, \n \"name\" : \"p\" \n }, \n \"ranges\" : [ \n [ \n { \n \"variable\" : \"p\", \n \"attr\" : \"id\", \n \"lowConst\" : { \n \"bound\" : 25, \n \"include\" : true, \n \"isConstant\" : true \n }, \n \"highConst\" : { \n \"bound\" : 25, \n \"include\" : true, \n \"isConstant\" : true \n }, \n \"lows\" : [ ], \n \"highs\" : [ ], \n \"valid\" : true, \n \"equality\" : true \n } \n ] \n ], \n \"index\" : { \n \"type\" : \"hash\", \n \"id\" : \"1113230793\", \n \"unique\" : false, \n \"fields\" : [ \n \"id\" \n ] \n }, \n \"reverse\" : false \n }, \n { \n \"type\" : \"CalculationNode\", \n \"dependencies\" : [ \n 6 \n ], \n \"id\" : 3, \n \"estimatedCost\" : 0, \n \"expression\" : { \n \"type\" : \"compare ==\", \n \"subNodes\" : [ \n { \n \"type\" : \"attribute access\", \n \"name\" : \"id\", \n \"subNodes\" : [ \n { \n \"type\" : \"reference\", \n \"name\" : \"p\", \n \"id\" : 0 \n } \n ] \n }, \n { \n \"type\" : \"value\", \n \"value\" : 25 \n } \n ] \n }, \n \"outVariable\" : { \n \"id\" : 1, \n \"name\" : \"1\" \n }, \n \"canThrow\" : false \n }, \n { \n \"type\" : \"FilterNode\", \n \"dependencies\" : [ \n 3 \n ], \n \"id\" : 4, \n \"estimatedCost\" : 0, \n \"inVariable\" : { \n \"id\" : 1, \n \"name\" : \"1\" \n } \n }, \n { \n \"type\" : \"ReturnNode\", \n \"dependencies\" : [ \n 4 \n ], \n \"id\" : 5, \n \"estimatedCost\" : 0, \n \"inVariable\" : { \n \"id\" : 0, \n \"name\" : \"p\" \n } \n } \n ], \n \"rules\" : [ \n \"use-index-range\" \n ], \n \"collections\" : [ \n { \n \"name\" : \"products\", \n \"type\" : \"read\" \n } \n ], \n \"variables\" : [ \n { \n \"id\" : 1, \n \"name\" : \"1\" \n }, \n { \n \"id\" : 0, \n \"name\" : \"p\" \n } \n ], \n \"estimatedCost\" : 0 \n }, \n { \n \"nodes\" : [ \n { \n \"type\" : \"SingletonNode\", \n \"dependencies\" : [ ], \n \"id\" : 1, \n \"estimatedCost\" : 1 \n }, \n { \n \"type\" : \"EnumerateCollectionNode\", \n \"dependencies\" : [ \n 1 \n ], \n \"id\" : 2, \n \"estimatedCost\" : 0, \n \"database\" : \"_system\", \n \"collection\" : \"products\", \n \"outVariable\" : { \n \"id\" : 0, \n \"name\" : \"p\" \n } \n }, \n { \n \"type\" : \"CalculationNode\", \n \"dependencies\" : [ \n 2 \n ], \n \"id\" : 3, \n \"estimatedCost\" : 0, \n \"expression\" : { \n \"type\" : \"compare ==\", \n \"subNodes\" : [ \n { \n \"type\" : \"attribute access\", \n \"name\" : \"id\", \n \"subNodes\" : [ \n { \n \"type\" : \"reference\", \n \"name\" : \"p\", \n \"id\" : 0 \n } \n ] \n }, \n { \n \"type\" : \"value\", \n \"value\" : 25 \n } \n ] \n }, \n \"outVariable\" : { \n \"id\" : 1, \n \"name\" : \"1\" \n }, \n \"canThrow\" : false \n }, \n { \n \"type\" : \"FilterNode\", \n \"dependencies\" : [ \n 3 \n ], \n \"id\" : 4, \n \"estimatedCost\" : 0, \n \"inVariable\" : { \n \"id\" : 1, \n \"name\" : \"1\" \n } \n }, \n { \n \"type\" : \"ReturnNode\", \n \"dependencies\" : [ \n 4 \n ], \n \"id\" : 5, \n \"estimatedCost\" : 0, \n \"inVariable\" : { \n \"id\" : 0, \n \"name\" : \"p\" \n } \n } \n ], \n \"rules\" : [ ], \n \"collections\" : [ \n { \n \"name\" : \"products\", \n \"type\" : \"read\" \n } \n ], \n \"variables\" : [ \n { \n \"id\" : 1, \n \"name\" : \"1\" \n }, \n { \n \"id\" : 0, \n \"name\" : \"p\" \n } \n ], \n \"estimatedCost\" : 0 \n } \n ], \n \"warnings\" : [ ], \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/explain\n{\"query\":\"FOR i IN 1..10 RETURN 1 / 0\"}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"plan\" : { \n \"nodes\" : [ \n { \n \"type\" : \"SingletonNode\", \n \"dependencies\" : [ ], \n \"id\" : 1, \n \"estimatedCost\" : 1 \n }, \n { \n \"type\" : \"CalculationNode\", \n \"dependencies\" : [ \n 1 \n ], \n \"id\" : 2, \n \"estimatedCost\" : 2, \n \"expression\" : { \n \"type\" : \"range\", \n \"subNodes\" : [ \n { \n \"type\" : \"value\", \n \"value\" : 1 \n }, \n { \n \"type\" : \"value\", \n \"value\" : 10 \n } \n ] \n }, \n \"outVariable\" : { \n \"id\" : 1, \n \"name\" : \"1\" \n }, \n \"canThrow\" : false \n }, \n { \n \"type\" : \"CalculationNode\", \n \"dependencies\" : [ \n 2 \n ], \n \"id\" : 4, \n \"estimatedCost\" : 4, \n \"expression\" : { \n \"type\" : \"value\", \n \"value\" : null \n }, \n \"outVariable\" : { \n \"id\" : 2, \n \"name\" : \"2\" \n }, \n \"canThrow\" : false \n }, \n { \n \"type\" : \"EnumerateListNode\", \n \"dependencies\" : [ \n 4 \n ], \n \"id\" : 3, \n \"estimatedCost\" : 4000, \n \"inVariable\" : { \n \"id\" : 1, \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\" : 4000, \n \"inVariable\" : { \n \"id\" : 2, \n \"name\" : \"2\" \n } \n } \n ], \n \"rules\" : [ \n \"move-calculations-up\", \n \"move-calculations-up-2\" \n ], \n \"collections\" : [ ], \n \"variables\" : [ \n { \n \"id\" : 2, \n \"name\" : \"2\" \n }, \n { \n \"id\" : 1, \n \"name\" : \"1\" \n }, \n { \n \"id\" : 0, \n \"name\" : \"i\" \n } \n ], \n \"estimatedCost\" : 4000 \n }, \n \"warnings\" : [ \n { \n \"code\" : 1562, \n \"message\" : \"division by zero\" \n } \n ], \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/explain\n{ \n \"query\" : \"FOR p IN products FILTER p.id == @id LIMIT 2 RETURN p.n\" \n}\n\nHTTP/1.1 400 Bad Request\ncontent-type: application/json; charset=utf-8\n\n{ \n \"error\" : true, \n \"code\" : 400, \n \"errorNum\" : 1551, \n \"errorMessage\" : \"no value specified for declared bind parameter 'id' (while parsing)\" \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/explain\n{ \"query\" : \"FOR i IN [ 1, 2, 3 ] FILTER 1 == 2 RETURN i\" }\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"plan\" : { \n \"nodes\" : [ \n { \n \"type\" : \"SingletonNode\", \n \"dependencies\" : [ ], \n \"id\" : 1, \n \"estimatedCost\" : 1 \n }, \n { \n \"type\" : \"CalculationNode\", \n \"dependencies\" : [ \n 1 \n ], \n \"id\" : 2, \n \"estimatedCost\" : 2, \n \"expression\" : { \n \"type\" : \"list\", \n \"subNodes\" : [ \n { \n \"type\" : \"value\", \n \"value\" : 1 \n }, \n { \n \"type\" : \"value\", \n \"value\" : 2 \n }, \n { \n \"type\" : \"value\", \n \"value\" : 3 \n } \n ] \n }, \n \"outVariable\" : { \n \"id\" : 1, \n \"name\" : \"1\" \n }, \n \"canThrow\" : false \n }, \n { \n \"type\" : \"NoResultsNode\", \n \"dependencies\" : [ \n 2 \n ], \n \"id\" : 7, \n \"estimatedCost\" : 0 \n }, \n { \n \"type\" : \"EnumerateListNode\", \n \"dependencies\" : [ \n 7 \n ], \n \"id\" : 3, \n \"estimatedCost\" : 0, \n \"inVariable\" : { \n \"id\" : 1, \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, \n \"inVariable\" : { \n \"id\" : 0, \n \"name\" : \"i\" \n } \n } \n ], \n \"rules\" : [ \n \"move-calculations-up\", \n \"move-filters-up\", \n \"remove-unnecessary-filters\", \n \"remove-unnecessary-calculations\" \n ], \n \"collections\" : [ ], \n \"variables\" : [ \n { \n \"id\" : 2, \n \"name\" : \"2\" \n }, \n { \n \"id\" : 1, \n \"name\" : \"1\" \n }, \n { \n \"id\" : 0, \n \"name\" : \"i\" \n } \n ], \n \"estimatedCost\" : 0 \n }, \n \"warnings\" : [ ], \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/graph/\n{ \n \"_key\" : \"graph\", \n \"vertices\" : \"vertices\", \n \"edges\" : \"edges\" \n}\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\netag: 1058340008\n\n{ \n \"graph\" : { \n \"_id\" : \"_graphs/graph\", \n \"_key\" : \"graph\", \n \"_rev\" : \"1058340008\", \n \"edgeDefinitions\" : [ \n { \n \"collection\" : \"edges\", \n \"from\" : [ \n \"vertices\" \n ], \n \"to\" : [ \n \"vertices\" \n ] \n } \n ] \n }, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/graph/\n{ \n \"_key\" : \"graph\", \n \"vertices\" : \"vertices\", \n \"edges\" : \"edges\" \n}\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\netag: 1114738121\n\n{ \n \"graph\" : { \n \"_id\" : \"_graphs/graph\", \n \"_key\" : \"graph\", \n \"_rev\" : \"1114738121\", \n \"edgeDefinitions\" : [ \n { \n \"collection\" : \"edges\", \n \"from\" : [ \n \"vertices\" \n ], \n \"to\" : [ \n \"vertices\" \n ] \n } \n ] \n }, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/graph/graph\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\netag: 1059650728\n\n{ \n \"graph\" : { \n \"_id\" : \"_graphs/graph\", \n \"_key\" : \"graph\", \n \"_rev\" : \"1059650728\", \n \"edgeDefinitions\" : [ \n { \n \"collection\" : \"edges\", \n \"from\" : [ \n \"vertices\" \n ], \n \"to\" : [ \n \"vertices\" \n ] \n } \n ] \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/graph\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"graphs\" : [ \n { \n \"_id\" : \"_graphs/graph2\", \n \"_key\" : \"graph2\", \n \"_rev\" : \"1062337704\", \n \"edgeDefinitions\" : [ \n { \n \"collection\" : \"edges2\", \n \"from\" : [ \n \"vertices2\" \n ], \n \"to\" : [ \n \"vertices2\" \n ] \n } \n ] \n }, \n { \n \"_id\" : \"_graphs/graph1\", \n \"_key\" : \"graph1\", \n \"_rev\" : \"1061354664\", \n \"edgeDefinitions\" : [ \n { \n \"collection\" : \"edges1\", \n \"from\" : [ \n \"vertices1\" \n ], \n \"to\" : [ \n \"vertices1\" \n ] \n } \n ] \n } \n ], \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/graph/graph\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\netag: 1116048841\n\n{ \n \"graph\" : { \n \"_id\" : \"_graphs/graph\", \n \"_key\" : \"graph\", \n \"_rev\" : \"1116048841\", \n \"edgeDefinitions\" : [ \n { \n \"collection\" : \"edges\", \n \"from\" : [ \n \"vertices\" \n ], \n \"to\" : [ \n \"vertices\" \n ] \n } \n ] \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/graph\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"graphs\" : [ \n { \n \"_id\" : \"_graphs/graph2\", \n \"_key\" : \"graph2\", \n \"_rev\" : \"1118735817\", \n \"edgeDefinitions\" : [ \n { \n \"collection\" : \"edges2\", \n \"from\" : [ \n \"vertices2\" \n ], \n \"to\" : [ \n \"vertices2\" \n ] \n } \n ] \n }, \n { \n \"_id\" : \"_graphs/graph1\", \n \"_key\" : \"graph1\", \n \"_rev\" : \"1117752777\", \n \"edgeDefinitions\" : [ \n { \n \"collection\" : \"edges1\", \n \"from\" : [ \n \"vertices1\" \n ], \n \"to\" : [ \n \"vertices1\" \n ] \n } \n ] \n } \n ], \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/graph/graph/vertex\n{ \n \"_key\" : \"v1\", \n \"optional1\" : \"val1\" \n}\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: 1066728616\n\n{ \n \"vertex\" : { \n \"_id\" : \"vertices/v1\", \n \"_key\" : \"v1\", \n \"_rev\" : \"1066728616\", \n \"optional1\" : \"val1\" \n }, \n \"error\" : false, \n \"code\" : 202 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/graph/graph/vertex\n{ \n \"_key\" : \"v1\", \n \"optional1\" : \"val1\" \n}\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: 1123323337\n\n{ \n \"vertex\" : { \n \"_id\" : \"vertices/v1\", \n \"_key\" : \"v1\", \n \"_rev\" : \"1123323337\", \n \"optional1\" : \"val1\" \n }, \n \"error\" : false, \n \"code\" : 202 \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/graph/graph/vertex/v1\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\netag: 1068563624\n\n{ \n \"vertex\" : { \n \"_id\" : \"vertices/v1\", \n \"_key\" : \"v1\", \n \"_rev\" : \"1068563624\", \n \"optional1\" : \"val1\" \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/graph/graph/vertex/v1\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\netag: 1125158345\n\n{ \n \"vertex\" : { \n \"_id\" : \"vertices/v1\", \n \"_key\" : \"v1\", \n \"_rev\" : \"1125158345\", \n \"optional1\" : \"val1\" \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/graph/graph/vertex/v1\n{ \n \"optional1\" : \"val2\" \n}\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: 1073347752\n\n{ \n \"vertex\" : { \n \"_id\" : \"vertices/v1\", \n \"_key\" : \"v1\", \n \"_rev\" : \"1073347752\", \n \"optional1\" : \"val2\" \n }, \n \"error\" : false, \n \"code\" : 202 \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/graph/graph/vertex/v1\n{ \n \"optional1\" : \"val2\" \n}\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: 1129942473\n\n{ \n \"vertex\" : { \n \"_id\" : \"vertices/v1\", \n \"_key\" : \"v1\", \n \"_rev\" : \"1129942473\", \n \"optional1\" : \"val2\" \n }, \n \"error\" : false, \n \"code\" : 202 \n}\n
shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/graph/graph/vertex/v1\n{ \n \"optional1\" : \"vertexPatch\" \n}\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: 1075707048\n\n{ \n \"vertex\" : { \n \"_id\" : \"vertices/v1\", \n \"_key\" : \"v1\", \n \"_rev\" : \"1075707048\", \n \"optional1\" : \"vertexPatch\" \n }, \n \"error\" : false, \n \"code\" : 202 \n}\nshell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/graph/graph/vertex/v1\n{ \n \"optional1\" : null \n}\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: 1076231336\n\n{ \n \"vertex\" : { \n \"_id\" : \"vertices/v1\", \n \"_key\" : \"v1\", \n \"_rev\" : \"1076231336\", \n \"optional1\" : null \n }, \n \"error\" : false, \n \"code\" : 202 \n}\n
shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/graph/graph/vertex/v1\n{ \n \"optional1\" : \"vertexPatch\" \n}\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: 1132301769\n\n{ \n \"vertex\" : { \n \"_id\" : \"vertices/v1\", \n \"_key\" : \"v1\", \n \"_rev\" : \"1132301769\", \n \"optional1\" : \"vertexPatch\" \n }, \n \"error\" : false, \n \"code\" : 202 \n}\nshell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/graph/graph/vertex/v1\n{ \n \"optional1\" : null \n}\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: 1132826057\n\n{ \n \"vertex\" : { \n \"_id\" : \"vertices/v1\", \n \"_key\" : \"v1\", \n \"_rev\" : \"1132826057\", \n \"optional1\" : null \n }, \n \"error\" : false, \n \"code\" : 202 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/graph/graph/vertices\n{ \n \"batchSize\" : 100 \n}\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"vertices/v3\", \n \"_key\" : \"v3\", \n \"_rev\" : \"1078852776\", \n \"optional1\" : \"val1\" \n }, \n { \n \"_id\" : \"vertices/v2\", \n \"_key\" : \"v2\", \n \"_rev\" : \"1078459560\", \n \"optional1\" : \"val1\" \n }, \n { \n \"_id\" : \"vertices/v5\", \n \"_key\" : \"v5\", \n \"_rev\" : \"1079639208\", \n \"optional1\" : \"val1\" \n }, \n { \n \"_id\" : \"vertices/v4\", \n \"_key\" : \"v4\", \n \"_rev\" : \"1079245992\", \n \"optional1\" : \"val1\" \n }, \n { \n \"_id\" : \"vertices/v1\", \n \"_key\" : \"v1\", \n \"_rev\" : \"1078066344\", \n \"optional1\" : \"val1\" \n } \n ], \n \"hasMore\" : false, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/graph/graph/vertices\n{ \n \"batchSize\" : 100 \n}\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"vertices/v3\", \n \"_key\" : \"v3\", \n \"_rev\" : \"1135447497\", \n \"optional1\" : \"val1\" \n }, \n { \n \"_id\" : \"vertices/v2\", \n \"_key\" : \"v2\", \n \"_rev\" : \"1135054281\", \n \"optional1\" : \"val1\" \n }, \n { \n \"_id\" : \"vertices/v5\", \n \"_key\" : \"v5\", \n \"_rev\" : \"1136233929\", \n \"optional1\" : \"val1\" \n }, \n { \n \"_id\" : \"vertices/v4\", \n \"_key\" : \"v4\", \n \"_rev\" : \"1135840713\", \n \"optional1\" : \"val1\" \n }, \n { \n \"_id\" : \"vertices/v1\", \n \"_key\" : \"v1\", \n \"_rev\" : \"1134661065\", \n \"optional1\" : \"val1\" \n } \n ], \n \"hasMore\" : false, \n \"extra\" : { \n \"stats\" : { \n \"writesExecuted\" : 0, \n \"writesIgnored\" : 0, \n \"scannedFull\" : 5, \n \"scannedIndex\" : 0 \n }, \n \"warnings\" : [ ] \n }, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/graph/graph/vertices/v2\n{\"batchSize\" : 100, \"filter\" : {\"direction\" : \"any\", \"properties\":[] }}\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"vertices/v1\", \n \"_key\" : \"v1\", \n \"_rev\" : \"1099037864\", \n \"optional1\" : \"val1\" \n }, \n { \n \"_id\" : \"vertices/v4\", \n \"_key\" : \"v4\", \n \"_rev\" : \"1100217512\", \n \"optional1\" : \"val1\" \n } \n ], \n \"hasMore\" : false, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/graph/graph/vertices/v2\n{\"batchSize\" : 100, \"filter\" : {\"direction\" : \"out\", \"properties\":[ { \"key\": \"optional1\", \"value\": \"val2\", \"compare\" : \"==\" }, ] }}\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"vertices/v4\", \n \"_key\" : \"v4\", \n \"_rev\" : \"1106115752\", \n \"optional1\" : \"val2\" \n }, \n { \n \"_id\" : \"vertices/v1\", \n \"_key\" : \"v1\", \n \"_rev\" : \"1104936104\", \n \"optional1\" : \"val1\" \n } \n ], \n \"hasMore\" : false, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/graph/graph/vertices/v2\n{\"batchSize\" : 100, \"filter\" : {\"direction\" : \"any\", \"properties\":[] }}\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"vertices/v1\", \n \"_key\" : \"v1\", \n \"_rev\" : \"1147506121\", \n \"optional1\" : \"val1\" \n }, \n { \n \"_id\" : \"vertices/v4\", \n \"_key\" : \"v4\", \n \"_rev\" : \"1148685769\", \n \"optional1\" : \"val1\" \n } \n ], \n \"hasMore\" : false, \n \"extra\" : { \n \"stats\" : { \n \"writesExecuted\" : 0, \n \"writesIgnored\" : 0, \n \"scannedFull\" : 0, \n \"scannedIndex\" : 0 \n }, \n \"warnings\" : [ ] \n }, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/graph/graph/vertices/v2\n{\"batchSize\" : 100, \"filter\" : {\"direction\" : \"out\", \"properties\":[ { \"key\": \"optional1\", \"value\": \"val2\", \"compare\" : \"==\" }, ] }}\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"vertices/v4\", \n \"_key\" : \"v4\", \n \"_rev\" : \"1154584009\", \n \"optional1\" : \"val2\" \n }, \n { \n \"_id\" : \"vertices/v1\", \n \"_key\" : \"v1\", \n \"_rev\" : \"1153404361\", \n \"optional1\" : \"val1\" \n } \n ], \n \"hasMore\" : false, \n \"extra\" : { \n \"stats\" : { \n \"writesExecuted\" : 0, \n \"writesIgnored\" : 0, \n \"scannedFull\" : 0, \n \"scannedIndex\" : 0 \n }, \n \"warnings\" : [ ] \n }, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/graph/graph/edge\n{ \n \"_key\" : \"edge1\", \n \"_from\" : \"vert2\", \n \"_to\" : \"vert1\", \n \"optional1\" : \"val1\" \n}\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: 1111882920\n\n{ \n \"edge\" : { \n \"_id\" : \"edges/edge1\", \n \"_key\" : \"edge1\", \n \"_rev\" : \"1111882920\", \n \"_from\" : \"vertices/vert2\", \n \"_to\" : \"vertices/vert1\", \n \"$label\" : null, \n \"optional1\" : \"val1\" \n }, \n \"error\" : false, \n \"code\" : 202 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/graph/graph/edge\n{ \n \"_key\" : \"edge1\", \n \"_from\" : \"vert2\", \n \"_to\" : \"vert1\", \n \"optional1\" : \"val1\" \n}\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: 1160351177\n\n{ \n \"edge\" : { \n \"_id\" : \"edges/edge1\", \n \"_key\" : \"edge1\", \n \"_rev\" : \"1160351177\", \n \"_from\" : \"vertices/vert2\", \n \"_to\" : \"vertices/vert1\", \n \"$label\" : null, \n \"optional1\" : \"val1\" \n }, \n \"error\" : false, \n \"code\" : 202 \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/graph/graph/edge/edge1\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\netag: 1114766504\n\n{ \n \"edge\" : { \n \"_id\" : \"edges/edge1\", \n \"_key\" : \"edge1\", \n \"_rev\" : \"1114766504\", \n \"_from\" : \"vertices/vert1\", \n \"_to\" : \"vertices/vert2\", \n \"$label\" : null, \n \"optional1\" : \"val1\" \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/graph/graph/edge/edge1\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\netag: 1163234761\n\n{ \n \"edge\" : { \n \"_id\" : \"edges/edge1\", \n \"_key\" : \"edge1\", \n \"_rev\" : \"1163234761\", \n \"_from\" : \"vertices/vert1\", \n \"_to\" : \"vertices/vert2\", \n \"$label\" : null, \n \"optional1\" : \"val1\" \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/graph/graph/edge/edge1\n{ \n \"optional1\" : \"val2\" \n}\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: 1121778856\n\n{ \n \"edge\" : { \n \"_id\" : \"edges/edge1\", \n \"_key\" : \"edge1\", \n \"_rev\" : \"1121778856\", \n \"_from\" : \"vertices/vert1\", \n \"_to\" : \"vertices/vert2\", \n \"$label\" : null, \n \"optional1\" : \"val2\" \n }, \n \"error\" : false, \n \"code\" : 202 \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/graph/graph/edge/edge1\n{ \n \"optional1\" : \"val2\" \n}\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: 1170247113\n\n{ \n \"edge\" : { \n \"_id\" : \"edges/edge1\", \n \"_key\" : \"edge1\", \n \"_rev\" : \"1170247113\", \n \"_from\" : \"vertices/vert1\", \n \"_to\" : \"vertices/vert2\", \n \"$label\" : null, \n \"optional1\" : \"val2\" \n }, \n \"error\" : false, \n \"code\" : 202 \n}\n
shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/graph/graph/edge/edge1\n{ \n \"optional3\" : \"val3\" \n}\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: 1125317800\n\n{ \n \"edge\" : { \n \"_id\" : \"edges/edge1\", \n \"_key\" : \"edge1\", \n \"_rev\" : \"1125317800\", \n \"_from\" : \"vertices/vert1\", \n \"_to\" : \"vertices/vert2\", \n \"$label\" : null, \n \"optional1\" : \"val1\", \n \"optional3\" : \"val3\" \n }, \n \"error\" : false, \n \"code\" : 202 \n}\n
shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/graph/graph/edge/edge1\n{ \n \"optional3\" : \"val3\" \n}\n\nHTTP/1.1 202 Accepted\ncontent-type: application/json; charset=utf-8\netag: 1173982665\n\n{ \n \"edge\" : { \n \"_id\" : \"edges/edge1\", \n \"_key\" : \"edge1\", \n \"_rev\" : \"1173982665\", \n \"_from\" : \"vertices/vert1\", \n \"_to\" : \"vertices/vert2\", \n \"$label\" : null, \n \"optional1\" : \"val1\", \n \"optional3\" : \"val3\" \n }, \n \"error\" : false, \n \"code\" : 202 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/graph/graph/edges\n{ \n \"batchSize\" : 100 \n}\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"edges/edge2\", \n \"_key\" : \"edge2\", \n \"_rev\" : \"1129970856\", \n \"_from\" : \"vertices/v1\", \n \"_to\" : \"vertices/v3\", \n \"$label\" : null, \n \"optional1\" : \"val1\" \n }, \n { \n \"_id\" : \"edges/edge3\", \n \"_key\" : \"edge3\", \n \"_rev\" : \"1130495144\", \n \"_from\" : \"vertices/v2\", \n \"_to\" : \"vertices/v4\", \n \"$label\" : null, \n \"optional1\" : \"val1\" \n }, \n { \n \"_id\" : \"edges/edge1\", \n \"_key\" : \"edge1\", \n \"_rev\" : \"1129446568\", \n \"_from\" : \"vertices/v1\", \n \"_to\" : \"vertices/v2\", \n \"$label\" : null, \n \"optional1\" : \"val1\" \n }, \n { \n \"_id\" : \"edges/edge4\", \n \"_key\" : \"edge4\", \n \"_rev\" : \"1131019432\", \n \"_from\" : \"vertices/v1\", \n \"_to\" : \"vertices/v5\", \n \"$label\" : null, \n \"optional1\" : \"val1\" \n } \n ], \n \"hasMore\" : false, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/graph/graph/edges\n{ \n \"batchSize\" : 100 \n}\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"edges/edge2\", \n \"_key\" : \"edge2\", \n \"_rev\" : \"1178635721\", \n \"_from\" : \"vertices/v1\", \n \"_to\" : \"vertices/v3\", \n \"$label\" : null, \n \"optional1\" : \"val1\" \n }, \n { \n \"_id\" : \"edges/edge3\", \n \"_key\" : \"edge3\", \n \"_rev\" : \"1179160009\", \n \"_from\" : \"vertices/v2\", \n \"_to\" : \"vertices/v4\", \n \"$label\" : null, \n \"optional1\" : \"val1\" \n }, \n { \n \"_id\" : \"edges/edge1\", \n \"_key\" : \"edge1\", \n \"_rev\" : \"1178111433\", \n \"_from\" : \"vertices/v1\", \n \"_to\" : \"vertices/v2\", \n \"$label\" : null, \n \"optional1\" : \"val1\" \n }, \n { \n \"_id\" : \"edges/edge4\", \n \"_key\" : \"edge4\", \n \"_rev\" : \"1179684297\", \n \"_from\" : \"vertices/v1\", \n \"_to\" : \"vertices/v5\", \n \"$label\" : null, \n \"optional1\" : \"val1\" \n } \n ], \n \"hasMore\" : false, \n \"extra\" : { \n \"stats\" : { \n \"writesExecuted\" : 0, \n \"writesIgnored\" : 0, \n \"scannedFull\" : 4, \n \"scannedIndex\" : 0 \n }, \n \"warnings\" : [ ] \n }, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/graph/graph/edges/v2\n{\"batchSize\" : 100, \"filter\" : { \"direction\" : \"any\" }}\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"edges/edge1\", \n \"_key\" : \"edge1\", \n \"_rev\" : \"1135344808\", \n \"_from\" : \"vertices/v1\", \n \"_to\" : \"vertices/v2\", \n \"$label\" : null, \n \"optional1\" : \"val1\" \n }, \n { \n \"_id\" : \"edges/edge3\", \n \"_key\" : \"edge3\", \n \"_rev\" : \"1136393384\", \n \"_from\" : \"vertices/v2\", \n \"_to\" : \"vertices/v4\", \n \"$label\" : null, \n \"optional1\" : \"val1\" \n } \n ], \n \"hasMore\" : false, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/graph/graph/edges/v2\n{\"batchSize\" : 100, \"filter\" : { \"direction\" : \"any\" }}\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"edges/edge1\", \n \"_key\" : \"edge1\", \n \"_rev\" : \"1184009673\", \n \"_from\" : \"vertices/v1\", \n \"_to\" : \"vertices/v2\", \n \"$label\" : null, \n \"optional1\" : \"val1\" \n }, \n { \n \"_id\" : \"edges/edge3\", \n \"_key\" : \"edge3\", \n \"_rev\" : \"1185058249\", \n \"_from\" : \"vertices/v2\", \n \"_to\" : \"vertices/v4\", \n \"$label\" : null, \n \"optional1\" : \"val1\" \n } \n ], \n \"hasMore\" : false, \n \"extra\" : { \n \"stats\" : { \n \"writesExecuted\" : 0, \n \"writesIgnored\" : 0, \n \"scannedFull\" : 0, \n \"scannedIndex\" : 0 \n }, \n \"warnings\" : [ ] \n }, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/index?collection=products\n{\"type\":\"cap\",\"size\":10}\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"id\" : \"products/1138490536\", \n \"type\" : \"cap\", \n \"unique\" : false, \n \"size\" : 10, \n \"byteSize\" : 0, \n \"isNewlyCreated\" : true, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/index?collection=products\n{\"type\":\"cap\",\"size\":10}\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"id\" : \"products/1187155401\", \n \"type\" : \"cap\", \n \"unique\" : false, \n \"size\" : 10, \n \"byteSize\" : 0, \n \"isNewlyCreated\" : true, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/index?collection=products\n{ \"type\": \"geo\", \"fields\" : [ \"b\" ] }\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"id\" : \"products/1139014824\", \n \"type\" : \"geo1\", \n \"unique\" : false, \n \"geoJson\" : false, \n \"constraint\" : false, \n \"ignoreNull\" : false, \n \"fields\" : [ \n \"b\" \n ], \n \"isNewlyCreated\" : true, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/index?collection=products\n{ \"type\": \"geo\", \"fields\" : [ \"e\", \"f\" ] }\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"id\" : \"products/1139539112\", \n \"type\" : \"geo2\", \n \"unique\" : false, \n \"constraint\" : false, \n \"ignoreNull\" : false, \n \"fields\" : [ \n \"e\", \n \"f\" \n ], \n \"isNewlyCreated\" : true, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/index?collection=products\n{ \"type\": \"geo\", \"fields\" : [ \"b\" ] }\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"id\" : \"products/1187679689\", \n \"type\" : \"geo1\", \n \"unique\" : false, \n \"geoJson\" : false, \n \"constraint\" : false, \n \"ignoreNull\" : false, \n \"fields\" : [ \n \"b\" \n ], \n \"isNewlyCreated\" : true, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/index?collection=products\n{ \"type\": \"geo\", \"fields\" : [ \"e\", \"f\" ] }\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"id\" : \"products/1188203977\", \n \"type\" : \"geo2\", \n \"unique\" : false, \n \"constraint\" : false, \n \"ignoreNull\" : false, \n \"fields\" : [ \n \"e\", \n \"f\" \n ], \n \"isNewlyCreated\" : true, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/index?collection=products\n{ \"type\": \"hash\", \"unique\" : true, \"fields\" : [ \"a\", \"b\" ] }\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"id\" : \"products/1140063400\", \n \"type\" : \"hash\", \n \"unique\" : true, \n \"fields\" : [ \n \"a\", \n \"b\" \n ], \n \"isNewlyCreated\" : true, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/index?collection=products\n{ \"type\": \"hash\", \"unique\" : false, \"fields\" : [ \"a\", \"b\" ] }\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"id\" : \"products/1140587688\", \n \"type\" : \"hash\", \n \"unique\" : false, \n \"fields\" : [ \n \"a\", \n \"b\" \n ], \n \"isNewlyCreated\" : true, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/index?collection=products\n{ \"type\": \"hash\", \"unique\" : true, \"fields\" : [ \"a\", \"b\" ] }\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"id\" : \"products/1188728265\", \n \"type\" : \"hash\", \n \"unique\" : true, \n \"fields\" : [ \n \"a\", \n \"b\" \n ], \n \"isNewlyCreated\" : true, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/index?collection=products\n{ \"type\": \"hash\", \"unique\" : false, \"fields\" : [ \"a\", \"b\" ] }\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"id\" : \"products/1189252553\", \n \"type\" : \"hash\", \n \"unique\" : false, \n \"fields\" : [ \n \"a\", \n \"b\" \n ], \n \"isNewlyCreated\" : true, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/index?collection=products\n{ \"type\": \"skiplist\", \"unique\" : false, \"fields\" : [ \"a\", \"b\" ] }\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"id\" : \"products/1141111976\", \n \"type\" : \"skiplist\", \n \"unique\" : false, \n \"fields\" : [ \n \"a\", \n \"b\" \n ], \n \"isNewlyCreated\" : true, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/index?collection=products\n{ \"type\": \"skiplist\", \"unique\" : false, \"fields\" : [ \"a\", \"b\" ] }\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"id\" : \"products/1189776841\", \n \"type\" : \"skiplist\", \n \"unique\" : false, \n \"fields\" : [ \n \"a\", \n \"b\" \n ], \n \"isNewlyCreated\" : true, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/index?collection=products\n{ \"type\" : \"fulltext\", \"fields\" : [ \"text\" ] }\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"id\" : \"products/1141570728\", \n \"type\" : \"fulltext\", \n \"unique\" : false, \n \"minLength\" : 2, \n \"fields\" : [ \n \"text\" \n ], \n \"isNewlyCreated\" : true, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/index?collection=products\n{ \"type\" : \"fulltext\", \"fields\" : [ \"text\" ] }\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"id\" : \"products/1190235593\", \n \"type\" : \"fulltext\", \n \"unique\" : false, \n \"minLength\" : 2, \n \"fields\" : [ \n \"text\" \n ], \n \"isNewlyCreated\" : true, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/index/products/1142095016\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"id\" : \"products/1142095016\", \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/index/products/1190759881\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"id\" : \"products/1190759881\", \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/query\n{ \"query\" : \"FOR p IN products FILTER p.name == @name LIMIT 2 RETURN p.n\" }\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"bindVars\" : [ \n \"name\" \n ], \n \"collections\" : [ \n \"products\" \n ], \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/query\n{ \"query\" : \"FOR p IN products FILTER p.name = @name LIMIT 2 RETURN p.n\" }\n\nHTTP/1.1 400 Bad Request\ncontent-type: application/json; charset=utf-8\n\n{ \n \"error\" : true, \n \"code\" : 400, \n \"errorNum\" : 1501, \n \"errorMessage\" : \"syntax error, unexpected assignment near '= @name LIMIT 2 RETURN p.n' at position 1:33\\nFOR p IN products FILTER p.name = @name LIMIT 2 RETURN p.n\\n ^^^\\n\" \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/query\n{ \"query\" : \"FOR p IN products FILTER p.name == @name LIMIT 2 RETURN p.n\" }\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"bindVars\" : [ \n \"name\" \n ], \n \"collections\" : [ \n \"products\" \n ], \n \"ast\" : [ \n { \n \"type\" : \"root\", \n \"subNodes\" : [ \n { \n \"type\" : \"for\", \n \"subNodes\" : [ \n { \n \"type\" : \"variable\", \n \"name\" : \"p\", \n \"id\" : 0 \n }, \n { \n \"type\" : \"collection\", \n \"name\" : \"products\" \n } \n ] \n }, \n { \n \"type\" : \"filter\", \n \"subNodes\" : [ \n { \n \"type\" : \"compare ==\", \n \"subNodes\" : [ \n { \n \"type\" : \"attribute access\", \n \"name\" : \"name\", \n \"subNodes\" : [ \n { \n \"type\" : \"reference\", \n \"name\" : \"p\", \n \"id\" : 0 \n } \n ] \n }, \n { \n \"type\" : \"parameter\", \n \"name\" : \"name\" \n } \n ] \n } \n ] \n }, \n { \n \"type\" : \"limit\", \n \"subNodes\" : [ \n { \n \"type\" : \"value\", \n \"value\" : 0 \n }, \n { \n \"type\" : \"value\", \n \"value\" : 2 \n } \n ] \n }, \n { \n \"type\" : \"return\", \n \"subNodes\" : [ \n { \n \"type\" : \"attribute access\", \n \"name\" : \"n\", \n \"subNodes\" : [ \n { \n \"type\" : \"reference\", \n \"name\" : \"p\", \n \"id\" : 0 \n } \n ] \n } \n ] \n } \n ] \n } \n ], \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/query\n{ \"query\" : \"FOR p IN products FILTER p.name = @name LIMIT 2 RETURN p.n\" }\n\nHTTP/1.1 400 Bad Request\ncontent-type: application/json; charset=utf-8\n\n{ \n \"error\" : true, \n \"code\" : 400, \n \"errorNum\" : 1501, \n \"errorMessage\" : \"syntax error, unexpected assignment near '= @name LIMIT 2 RETURN p.n' at position 1:33\" \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/replication/logger-state\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"state\" : { \n \"running\" : true, \n \"lastLogTick\" : \"1398799528\", \n \"totalEvents\" : 7993, \n \"time\" : \"2014-10-22T08:57:41Z\" \n }, \n \"server\" : { \n \"version\" : \"2.3.0-devel\", \n \"serverId\" : \"216720906318572\" \n }, \n \"clients\" : [ ] \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/replication/logger-state\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"state\" : { \n \"running\" : true, \n \"lastLogTick\" : \"1459523017\", \n \"totalEvents\" : 8285, \n \"time\" : \"2014-11-07T18:37:46Z\" \n }, \n \"server\" : { \n \"version\" : \"2.3.0-beta2\", \n \"serverId\" : \"186671298607643\" \n }, \n \"clients\" : [ ] \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/replication/logger-follow?from=1398799528\n\nHTTP/1.1 204 No Content\ncontent-type: application/x-arango-dump; charset=utf-8\nx-arango-replication-active: true\nx-arango-replication-checkmore: false\nx-arango-replication-lastincluded: 0\nx-arango-replication-lasttick: 1398799528\n\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/replication/logger-follow?from=1398799528\n\nHTTP/1.1 200 OK\ncontent-type: application/x-arango-dump; charset=utf-8\nx-arango-replication-active: true\nx-arango-replication-checkmore: false\nx-arango-replication-lastincluded: 1400241320\nx-arango-replication-lasttick: 1400241320\n\n\"{\\\"tick\\\":\\\"1398930600\\\",\\\"type\\\":2000,\\\"database\\\":\\\"130216\\\",\\\"cid\\\":\\\"1398865064\\\",\\\"collection\\\":{\\\"version\\\":5,\\\"type\\\":2,\\\"cid\\\":\\\"1398865064\\\",\\\"deleted\\\":false,\\\"doCompact\\\":true,\\\"maximalSize\\\":1048576,\\\"name\\\":\\\"products\\\",\\\"isVolatile\\\":false,\\\"waitForSync\\\":false}}\\n{\\\"tick\\\":\\\"1399258280\\\",\\\"type\\\":2300,\\\"database\\\":\\\"130216\\\",\\\"cid\\\":\\\"1398865064\\\",\\\"tid\\\":\\\"0\\\",\\\"key\\\":\\\"p1\\\",\\\"rev\\\":\\\"1399192744\\\",\\\"data\\\":{\\\"_key\\\":\\\"p1\\\",\\\"_rev\\\":\\\"1399192744\\\",\\\"name\\\":\\\"flux compensator\\\"}}\\n{\\\"tick\\\":\\\"1399585960\\\",\\\"type\\\":2300,\\\"database\\\":\\\"130216\\\",\\\"cid\\\":\\\"1398865064\\\",\\\"tid\\\":\\\"0\\\",\\\"key\\\":\\\"p2\\\",\\\"rev\\\":\\\"1399520424\\\",\\\"data\\\":{\\\"_key\\\":\\\"p2\\\",\\\"_rev\\\":\\\"1399520424\\\",\\\"hp\\\":5100,\\\"name\\\":\\\"hybrid hovercraft\\\"}}\\n{\\\"tick\\\":\\\"1399782568\\\",\\\"type\\\":2302,\\\"database\\\":\\\"130216\\\",\\\"cid\\\":\\\"1398865064\\\",\\\"tid\\\":\\\"0\\\",\\\"key\\\":\\\"p1\\\",\\\"rev\\\":\\\"1399717032\\\"}\\n{\\\"tick\\\":\\\"1399979176\\\",\\\"type\\\":2300,\\\"database\\\":\\\"130216\\\",\\\"cid\\\":\\\"1398865064\\\",\\\"tid\\\":\\\"0\\\",\\\"key\\\":\\\"p2\\\",\\\"rev\\\":\\\"1399913640\\\",\\\"data\\\":{\\\"_key\\\":\\\"p2\\\",\\\"_rev\\\":\\\"1399913640\\\"}}\\n{\\\"tick\\\":\\\"1400044712\\\",\\\"type\\\":2001,\\\"database\\\":\\\"130216\\\",\\\"cid\\\":\\\"1398865064\\\"}\\n{\\\"tick\\\":\\\"1400175784\\\",\\\"type\\\":2200,\\\"database\\\":\\\"130216\\\",\\\"tid\\\":\\\"1400110248\\\"}\\n{\\\"tick\\\":\\\"1400241320\\\",\\\"type\\\":2201,\\\"database\\\":\\\"130216\\\",\\\"tid\\\":\\\"1400110248\\\"}\\n\"\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/replication/logger-follow?from=1400241320&chunkSize=400\n\nHTTP/1.1 200 OK\ncontent-type: application/x-arango-dump; charset=utf-8\nx-arango-replication-active: true\nx-arango-replication-checkmore: true\nx-arango-replication-lastincluded: 1400700072\nx-arango-replication-lasttick: 1401683112\n\n\"{\\\"tick\\\":\\\"1400372392\\\",\\\"type\\\":2000,\\\"database\\\":\\\"130216\\\",\\\"cid\\\":\\\"1400306856\\\",\\\"collection\\\":{\\\"version\\\":5,\\\"type\\\":2,\\\"cid\\\":\\\"1400306856\\\",\\\"deleted\\\":false,\\\"doCompact\\\":true,\\\"maximalSize\\\":1048576,\\\"name\\\":\\\"products\\\",\\\"isVolatile\\\":false,\\\"waitForSync\\\":false}}\\n{\\\"tick\\\":\\\"1400700072\\\",\\\"type\\\":2300,\\\"database\\\":\\\"130216\\\",\\\"cid\\\":\\\"1400306856\\\",\\\"tid\\\":\\\"0\\\",\\\"key\\\":\\\"p1\\\",\\\"rev\\\":\\\"1400634536\\\",\\\"data\\\":{\\\"_key\\\":\\\"p1\\\",\\\"_rev\\\":\\\"1400634536\\\",\\\"name\\\":\\\"flux compensator\\\"}}\\n\"\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/replication/logger-follow?from=1459523017\n\nHTTP/1.1 204 No Content\ncontent-type: application/x-arango-dump; charset=utf-8\nx-arango-replication-active: true\nx-arango-replication-checkmore: false\nx-arango-replication-lastincluded: 0\nx-arango-replication-lasttick: 1459523017\n\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/replication/logger-follow?from=1459523017\n\nHTTP/1.1 200 OK\ncontent-type: application/x-arango-dump; charset=utf-8\nx-arango-replication-active: true\nx-arango-replication-checkmore: false\nx-arango-replication-lastincluded: 1461882313\nx-arango-replication-lasttick: 1461882313\n\n\"{\\\"tick\\\":\\\"1459654089\\\",\\\"type\\\":2200,\\\"database\\\":\\\"101833\\\",\\\"tid\\\":\\\"1459588553\\\"}\\n{\\\"tick\\\":\\\"1459981769\\\",\\\"type\\\":2300,\\\"database\\\":\\\"101833\\\",\\\"cid\\\":\\\"1459457481\\\",\\\"tid\\\":\\\"1459588553\\\",\\\"key\\\":\\\"abc\\\",\\\"rev\\\":\\\"1459916233\\\",\\\"data\\\":{\\\"_key\\\":\\\"abc\\\",\\\"_rev\\\":\\\"1459916233\\\",\\\"value1\\\":25,\\\"value2\\\":\\\"test\\\"}}\\n{\\\"tick\\\":\\\"1460178377\\\",\\\"type\\\":2202,\\\"database\\\":\\\"101833\\\",\\\"tid\\\":\\\"1459588553\\\"}\\n{\\\"tick\\\":\\\"1460243913\\\",\\\"type\\\":2001,\\\"database\\\":\\\"101833\\\",\\\"cid\\\":\\\"1459457481\\\"}\\n{\\\"tick\\\":\\\"1460374985\\\",\\\"type\\\":2000,\\\"database\\\":\\\"101833\\\",\\\"cid\\\":\\\"1460309449\\\",\\\"collection\\\":{\\\"version\\\":5,\\\"type\\\":2,\\\"cid\\\":\\\"1460309449\\\",\\\"deleted\\\":false,\\\"doCompact\\\":true,\\\"maximalSize\\\":1048576,\\\"name\\\":\\\"products\\\",\\\"isVolatile\\\":false,\\\"waitForSync\\\":false}}\\n{\\\"tick\\\":\\\"1460440521\\\",\\\"type\\\":2001,\\\"database\\\":\\\"101833\\\",\\\"cid\\\":\\\"1460309449\\\"}\\n{\\\"tick\\\":\\\"1460571593\\\",\\\"type\\\":2000,\\\"database\\\":\\\"101833\\\",\\\"cid\\\":\\\"1460506057\\\",\\\"collection\\\":{\\\"version\\\":5,\\\"type\\\":2,\\\"cid\\\":\\\"1460506057\\\",\\\"deleted\\\":false,\\\"doCompact\\\":true,\\\"maximalSize\\\":1048576,\\\"name\\\":\\\"products\\\",\\\"isVolatile\\\":false,\\\"waitForSync\\\":false}}\\n{\\\"tick\\\":\\\"1460899273\\\",\\\"type\\\":2300,\\\"database\\\":\\\"101833\\\",\\\"cid\\\":\\\"1460506057\\\",\\\"tid\\\":\\\"0\\\",\\\"key\\\":\\\"p1\\\",\\\"rev\\\":\\\"1460833737\\\",\\\"data\\\":{\\\"_key\\\":\\\"p1\\\",\\\"_rev\\\":\\\"1460833737\\\",\\\"name\\\":\\\"flux compensator\\\"}}\\n{\\\"tick\\\":\\\"1461226953\\\",\\\"type\\\":2300,\\\"database\\\":\\\"101833\\\",\\\"cid\\\":\\\"1460506057\\\",\\\"tid\\\":\\\"0\\\",\\\"key\\\":\\\"p2\\\",\\\"rev\\\":\\\"1461161417\\\",\\\"data\\\":{\\\"_key\\\":\\\"p2\\\",\\\"_rev\\\":\\\"1461161417\\\",\\\"hp\\\":5100,\\\"name\\\":\\\"hybrid hovercraft\\\"}}\\n{\\\"tick\\\":\\\"1461423561\\\",\\\"type\\\":2302,\\\"database\\\":\\\"101833\\\",\\\"cid\\\":\\\"1460506057\\\",\\\"tid\\\":\\\"0\\\",\\\"key\\\":\\\"p1\\\",\\\"rev\\\":\\\"1461358025\\\"}\\n{\\\"tick\\\":\\\"1461620169\\\",\\\"type\\\":2300,\\\"database\\\":\\\"101833\\\",\\\"cid\\\":\\\"1460506057\\\",\\\"tid\\\":\\\"0\\\",\\\"key\\\":\\\"p2\\\",\\\"rev\\\":\\\"1461554633\\\",\\\"data\\\":{\\\"_key\\\":\\\"p2\\\",\\\"_rev\\\":\\\"1461554633\\\"}}\\n{\\\"tick\\\":\\\"1461685705\\\",\\\"type\\\":2001,\\\"database\\\":\\\"101833\\\",\\\"cid\\\":\\\"1460506057\\\"}\\n{\\\"tick\\\":\\\"1461816777\\\",\\\"type\\\":2200,\\\"database\\\":\\\"101833\\\",\\\"tid\\\":\\\"1461751241\\\"}\\n{\\\"tick\\\":\\\"1461882313\\\",\\\"type\\\":2201,\\\"database\\\":\\\"101833\\\",\\\"tid\\\":\\\"1461751241\\\"}\\n\"\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/replication/logger-follow?from=1461882313&chunkSize=400\n\nHTTP/1.1 200 OK\ncontent-type: application/x-arango-dump; charset=utf-8\nx-arango-replication-active: true\nx-arango-replication-checkmore: true\nx-arango-replication-lastincluded: 1462341065\nx-arango-replication-lasttick: 1463324105\n\n\"{\\\"tick\\\":\\\"1462013385\\\",\\\"type\\\":2000,\\\"database\\\":\\\"101833\\\",\\\"cid\\\":\\\"1461947849\\\",\\\"collection\\\":{\\\"version\\\":5,\\\"type\\\":2,\\\"cid\\\":\\\"1461947849\\\",\\\"deleted\\\":false,\\\"doCompact\\\":true,\\\"maximalSize\\\":1048576,\\\"name\\\":\\\"products\\\",\\\"isVolatile\\\":false,\\\"waitForSync\\\":false}}\\n{\\\"tick\\\":\\\"1462341065\\\",\\\"type\\\":2300,\\\"database\\\":\\\"101833\\\",\\\"cid\\\":\\\"1461947849\\\",\\\"tid\\\":\\\"0\\\",\\\"key\\\":\\\"p1\\\",\\\"rev\\\":\\\"1462275529\\\",\\\"data\\\":{\\\"_key\\\":\\\"p1\\\",\\\"_rev\\\":\\\"1462275529\\\",\\\"name\\\":\\\"flux compensator\\\"}}\\n\"\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/replication/inventory\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"collections\" : [ \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"888405160\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"animals\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"699333800\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"better-example\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"798620840\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"Company\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"798358696\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"Customer\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"887487656\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"demo\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"798882984\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"Electronics\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"1361509544\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"female\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"1272446120\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"frenchCity\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"1272183976\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"germanCity\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"798751912\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"Groceries\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"1361640616\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"male\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"1297415336\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"otherVertices\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"1060764840\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"vertices1\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 3, \n \"cid\" : \"1062141096\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"edges2\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 3, \n \"cid\" : \"1272577192\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"frenchHighway\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 3, \n \"cid\" : \"798489768\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"friend_of\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 3, \n \"cid\" : \"1272315048\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"germanHighway\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 3, \n \"cid\" : \"799014056\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"has_bought\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 3, \n \"cid\" : \"1272708264\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"internationalHighway\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 3, \n \"cid\" : \"1361771688\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"relation\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n } \n ], \n \"state\" : { \n \"running\" : true, \n \"lastLogTick\" : \"1401683112\", \n \"totalEvents\" : 8017, \n \"time\" : \"2014-10-22T08:57:43Z\" \n }, \n \"tick\" : \"1401683112\" \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/replication/inventory\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"collections\" : [ \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"888405160\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"animals\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"699333800\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"better-example\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"798620840\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"Company\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"798358696\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"Customer\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"887487656\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"demo\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"798882984\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"Electronics\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"1361509544\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"female\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"1272446120\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"frenchCity\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"1272183976\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"germanCity\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"798751912\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"Groceries\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"1401748648\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"IndexedCollection1\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ \n { \n \"id\" : \"1402010792\", \n \"type\" : \"hash\", \n \"unique\" : false, \n \"fields\" : [ \n \"name\" \n ] \n }, \n { \n \"id\" : \"1402338472\", \n \"type\" : \"skiplist\", \n \"unique\" : true, \n \"fields\" : [ \n \"a\", \n \"b\" \n ] \n }, \n { \n \"id\" : \"1402535080\", \n \"type\" : \"cap\", \n \"unique\" : false, \n \"size\" : 500, \n \"byteSize\" : 0 \n } \n ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"1402731688\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"IndexedCollection2\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ \n { \n \"id\" : \"1402993832\", \n \"type\" : \"fulltext\", \n \"unique\" : false, \n \"minLength\" : 10, \n \"fields\" : [ \n \"text\" \n ] \n }, \n { \n \"id\" : \"1403255976\", \n \"type\" : \"skiplist\", \n \"unique\" : false, \n \"fields\" : [ \n \"a\" \n ] \n }, \n { \n \"id\" : \"1403452584\", \n \"type\" : \"cap\", \n \"unique\" : false, \n \"size\" : 0, \n \"byteSize\" : 1048576 \n } \n ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"1361640616\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"male\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"1297415336\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"otherVertices\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"1060764840\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"vertices1\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 3, \n \"cid\" : \"1062141096\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"edges2\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 3, \n \"cid\" : \"1272577192\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"frenchHighway\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 3, \n \"cid\" : \"798489768\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"friend_of\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 3, \n \"cid\" : \"1272315048\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"germanHighway\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 3, \n \"cid\" : \"799014056\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"has_bought\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 3, \n \"cid\" : \"1272708264\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"internationalHighway\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 3, \n \"cid\" : \"1361771688\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"relation\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n } \n ], \n \"state\" : { \n \"running\" : true, \n \"lastLogTick\" : \"1402797224\", \n \"totalEvents\" : 8030, \n \"time\" : \"2014-10-22T08:57:43Z\" \n }, \n \"tick\" : \"1403583656\" \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/replication/inventory\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"collections\" : [ \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"908758473\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"animals\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"719752649\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"better-example\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"817728969\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"Company\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"817466825\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"Customer\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"907840969\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"demo\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"817991113\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"Electronics\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"1423412681\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"female\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"1332907465\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"frenchCity\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"1332645321\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"germanCity\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"817860041\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"Groceries\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"1423543753\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"male\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"1358073289\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"otherVertices\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"1117162953\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"vertices1\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 3, \n \"cid\" : \"1118539209\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"edges2\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 3, \n \"cid\" : \"1333038537\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"frenchHighway\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 3, \n \"cid\" : \"817597897\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"friend_of\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 3, \n \"cid\" : \"1332776393\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"germanHighway\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 3, \n \"cid\" : \"818122185\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"has_bought\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 3, \n \"cid\" : \"1333169609\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"internationalHighway\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 3, \n \"cid\" : \"1423674825\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"relation\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n } \n ], \n \"state\" : { \n \"running\" : true, \n \"lastLogTick\" : \"1463324105\", \n \"totalEvents\" : 8309, \n \"time\" : \"2014-11-07T18:37:48Z\" \n }, \n \"tick\" : \"1463324105\" \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/replication/inventory\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"collections\" : [ \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"908758473\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"animals\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"719752649\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"better-example\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"817728969\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"Company\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"817466825\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"Customer\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"907840969\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"demo\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"817991113\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"Electronics\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"1423412681\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"female\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"1332907465\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"frenchCity\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"1332645321\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"germanCity\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"817860041\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"Groceries\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"1463586249\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"IndexedCollection1\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ \n { \n \"id\" : \"1463848393\", \n \"type\" : \"hash\", \n \"unique\" : false, \n \"fields\" : [ \n \"name\" \n ] \n }, \n { \n \"id\" : \"1464176073\", \n \"type\" : \"skiplist\", \n \"unique\" : true, \n \"fields\" : [ \n \"a\", \n \"b\" \n ] \n }, \n { \n \"id\" : \"1464372681\", \n \"type\" : \"cap\", \n \"unique\" : false, \n \"size\" : 500, \n \"byteSize\" : 0 \n } \n ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"1464569289\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"IndexedCollection2\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ \n { \n \"id\" : \"1464831433\", \n \"type\" : \"fulltext\", \n \"unique\" : false, \n \"minLength\" : 10, \n \"fields\" : [ \n \"text\" \n ] \n }, \n { \n \"id\" : \"1465093577\", \n \"type\" : \"skiplist\", \n \"unique\" : false, \n \"fields\" : [ \n \"a\" \n ] \n }, \n { \n \"id\" : \"1465290185\", \n \"type\" : \"cap\", \n \"unique\" : false, \n \"size\" : 0, \n \"byteSize\" : 1048576 \n } \n ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"1423543753\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"male\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"1358073289\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"otherVertices\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 2, \n \"cid\" : \"1117162953\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"vertices1\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 3, \n \"cid\" : \"1118539209\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"edges2\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 3, \n \"cid\" : \"1333038537\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"frenchHighway\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 3, \n \"cid\" : \"817597897\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"friend_of\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 3, \n \"cid\" : \"1332776393\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"germanHighway\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 3, \n \"cid\" : \"818122185\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"has_bought\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 3, \n \"cid\" : \"1333169609\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"internationalHighway\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 5, \n \"type\" : 3, \n \"cid\" : \"1423674825\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"relation\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n } \n ], \n \"state\" : { \n \"running\" : true, \n \"lastLogTick\" : \"1463324105\", \n \"totalEvents\" : 8324, \n \"time\" : \"2014-11-07T18:37:49Z\" \n }, \n \"tick\" : \"1465421257\" \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/replication/dump?collection=testCollection\n\nHTTP/1.1 204 No Content\ncontent-type: application/x-arango-dump; charset=utf-8\nx-arango-replication-checkmore: false\nx-arango-replication-lastincluded: 0\n\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/replication/dump?collection=testCollection\n\nHTTP/1.1 200 OK\ncontent-type: application/x-arango-dump; charset=utf-8\nx-arango-replication-checkmore: false\nx-arango-replication-lastincluded: 1406205096\n\n\"{\\\"tick\\\":\\\"1405549736\\\",\\\"type\\\":2300,\\\"key\\\":\\\"123456\\\",\\\"rev\\\":\\\"1405484200\\\",\\\"data\\\":{\\\"_key\\\":\\\"123456\\\",\\\"_rev\\\":\\\"1405484200\\\",\\\"c\\\":false,\\\"b\\\":1,\\\"d\\\":\\\"additional value\\\"}}\\n{\\\"tick\\\":\\\"1406008488\\\",\\\"type\\\":2302,\\\"key\\\":\\\"foobar\\\",\\\"rev\\\":\\\"1405942952\\\"}\\n{\\\"tick\\\":\\\"1406205096\\\",\\\"type\\\":2302,\\\"key\\\":\\\"abcdef\\\",\\\"rev\\\":\\\"1406139560\\\"}\\n\"\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/replication/dump?collection=testCollection\n\nHTTP/1.1 204 No Content\ncontent-type: application/x-arango-dump; charset=utf-8\nx-arango-replication-checkmore: false\nx-arango-replication-lastincluded: 0\n\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/replication/dump?collection=testCollection\n\nHTTP/1.1 200 OK\ncontent-type: application/x-arango-dump; charset=utf-8\nx-arango-replication-checkmore: false\nx-arango-replication-lastincluded: 1468894665\n\n\"{\\\"tick\\\":\\\"1468239305\\\",\\\"type\\\":2300,\\\"key\\\":\\\"123456\\\",\\\"rev\\\":\\\"1468173769\\\",\\\"data\\\":{\\\"_key\\\":\\\"123456\\\",\\\"_rev\\\":\\\"1468173769\\\",\\\"c\\\":false,\\\"b\\\":1,\\\"d\\\":\\\"additional value\\\"}}\\n{\\\"tick\\\":\\\"1468698057\\\",\\\"type\\\":2302,\\\"key\\\":\\\"foobar\\\",\\\"rev\\\":\\\"1468632521\\\"}\\n{\\\"tick\\\":\\\"1468894665\\\",\\\"type\\\":2302,\\\"key\\\":\\\"abcdef\\\",\\\"rev\\\":\\\"1468829129\\\"}\\n\"\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/replication/server-id\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"serverId\" : \"216720906318572\" \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/replication/server-id\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"serverId\" : \"186671298607643\" \n}\n
shell> curl -X PUT --dump - http://localhost:8529/_api/replication/applier-start\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"state\" : { \n \"running\" : true, \n \"lastAppliedContinuousTick\" : null, \n \"lastProcessedContinuousTick\" : null, \n \"lastAvailableContinuousTick\" : null, \n \"progress\" : { \n \"time\" : \"2014-10-22T08:57:16Z\", \n \"message\" : \"applier created\", \n \"failedConnects\" : 0 \n }, \n \"totalRequests\" : 0, \n \"totalFailedConnects\" : 0, \n \"totalEvents\" : 0, \n \"lastError\" : { \n \"errorNum\" : 0 \n }, \n \"time\" : \"2014-10-22T08:57:45Z\" \n }, \n \"server\" : { \n \"version\" : \"2.3.0-devel\", \n \"serverId\" : \"216720906318572\" \n }, \n \"endpoint\" : \"tcp://127.0.0.1:8529\", \n \"database\" : \"_system\" \n}\n
shell> curl -X PUT --dump - http://localhost:8529/_api/replication/applier-start\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"state\" : { \n \"running\" : true, \n \"lastAppliedContinuousTick\" : null, \n \"lastProcessedContinuousTick\" : null, \n \"lastAvailableContinuousTick\" : null, \n \"progress\" : { \n \"time\" : \"2014-11-07T18:35:09Z\", \n \"message\" : \"applier created\", \n \"failedConnects\" : 0 \n }, \n \"totalRequests\" : 0, \n \"totalFailedConnects\" : 0, \n \"totalEvents\" : 0, \n \"lastError\" : { \n \"errorNum\" : 0 \n }, \n \"time\" : \"2014-11-07T18:37:54Z\" \n }, \n \"server\" : { \n \"version\" : \"2.3.0-beta2\", \n \"serverId\" : \"186671298607643\" \n }, \n \"endpoint\" : \"tcp://127.0.0.1:8529\", \n \"database\" : \"_system\" \n}\n
shell> curl -X PUT --dump - http://localhost:8529/_api/replication/applier-stop\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"state\" : { \n \"running\" : false, \n \"lastAppliedContinuousTick\" : null, \n \"lastProcessedContinuousTick\" : null, \n \"lastAvailableContinuousTick\" : null, \n \"progress\" : { \n \"time\" : \"2014-10-22T08:57:45Z\", \n \"message\" : \"applier shut down\", \n \"failedConnects\" : 1 \n }, \n \"totalRequests\" : 2, \n \"totalFailedConnects\" : 2, \n \"totalEvents\" : 0, \n \"lastError\" : { \n \"time\" : \"2014-10-22T08:57:45Z\", \n \"errorMessage\" : \"could not connect to master at tcp://127.0.0.1:8529: Could not connect\", \n \"errorNum\" : 1412 \n }, \n \"time\" : \"2014-10-22T08:57:45Z\" \n }, \n \"server\" : { \n \"version\" : \"2.3.0-devel\", \n \"serverId\" : \"216720906318572\" \n }, \n \"endpoint\" : \"tcp://127.0.0.1:8529\", \n \"database\" : \"_system\" \n}\n
shell> curl -X PUT --dump - http://localhost:8529/_api/replication/applier-stop\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"state\" : { \n \"running\" : false, \n \"lastAppliedContinuousTick\" : null, \n \"lastProcessedContinuousTick\" : null, \n \"lastAvailableContinuousTick\" : null, \n \"progress\" : { \n \"time\" : \"2014-11-07T18:37:54Z\", \n \"message\" : \"fetching master state information\", \n \"failedConnects\" : 1 \n }, \n \"totalRequests\" : 2, \n \"totalFailedConnects\" : 2, \n \"totalEvents\" : 0, \n \"lastError\" : { \n \"time\" : \"2014-11-07T18:37:54Z\", \n \"errorMessage\" : \"could not connect to master at tcp://127.0.0.1:8529: Could not connect\", \n \"errorNum\" : 1412 \n }, \n \"time\" : \"2014-11-07T18:37:54Z\" \n }, \n \"server\" : { \n \"version\" : \"2.3.0-beta2\", \n \"serverId\" : \"186671298607643\" \n }, \n \"endpoint\" : \"tcp://127.0.0.1:8529\", \n \"database\" : \"_system\" \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/replication/applier-state\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"state\" : { \n \"running\" : false, \n \"lastAppliedContinuousTick\" : null, \n \"lastProcessedContinuousTick\" : null, \n \"lastAvailableContinuousTick\" : null, \n \"progress\" : { \n \"time\" : \"2014-10-22T08:57:45Z\", \n \"message\" : \"applier shut down\", \n \"failedConnects\" : 1 \n }, \n \"totalRequests\" : 2, \n \"totalFailedConnects\" : 2, \n \"totalEvents\" : 0, \n \"lastError\" : { \n \"time\" : \"2014-10-22T08:57:45Z\", \n \"errorMessage\" : \"could not connect to master at tcp://127.0.0.1:8529: Could not connect\", \n \"errorNum\" : 1412 \n }, \n \"time\" : \"2014-10-22T08:57:45Z\" \n }, \n \"server\" : { \n \"version\" : \"2.3.0-devel\", \n \"serverId\" : \"216720906318572\" \n }, \n \"endpoint\" : \"tcp://127.0.0.1:8529\", \n \"database\" : \"_system\" \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/replication/applier-state\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"state\" : { \n \"running\" : true, \n \"lastAppliedContinuousTick\" : null, \n \"lastProcessedContinuousTick\" : null, \n \"lastAvailableContinuousTick\" : null, \n \"progress\" : { \n \"time\" : \"2014-10-22T08:57:45Z\", \n \"message\" : \"fetching master state information\", \n \"failedConnects\" : 1 \n }, \n \"totalRequests\" : 3, \n \"totalFailedConnects\" : 3, \n \"totalEvents\" : 0, \n \"lastError\" : { \n \"errorNum\" : 0 \n }, \n \"time\" : \"2014-10-22T08:57:45Z\" \n }, \n \"server\" : { \n \"version\" : \"2.3.0-devel\", \n \"serverId\" : \"216720906318572\" \n }, \n \"endpoint\" : \"tcp://127.0.0.1:8529\", \n \"database\" : \"_system\" \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/replication/applier-state\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"state\" : { \n \"running\" : false, \n \"lastAppliedContinuousTick\" : null, \n \"lastProcessedContinuousTick\" : null, \n \"lastAvailableContinuousTick\" : null, \n \"progress\" : { \n \"time\" : \"2014-11-07T18:37:54Z\", \n \"message\" : \"fetching master state information\", \n \"failedConnects\" : 1 \n }, \n \"totalRequests\" : 2, \n \"totalFailedConnects\" : 2, \n \"totalEvents\" : 0, \n \"lastError\" : { \n \"time\" : \"2014-11-07T18:37:54Z\", \n \"errorMessage\" : \"could not connect to master at tcp://127.0.0.1:8529: Could not connect\", \n \"errorNum\" : 1412 \n }, \n \"time\" : \"2014-11-07T18:37:54Z\" \n }, \n \"server\" : { \n \"version\" : \"2.3.0-beta2\", \n \"serverId\" : \"186671298607643\" \n }, \n \"endpoint\" : \"tcp://127.0.0.1:8529\", \n \"database\" : \"_system\" \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/replication/applier-state\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"state\" : { \n \"running\" : true, \n \"lastAppliedContinuousTick\" : null, \n \"lastProcessedContinuousTick\" : null, \n \"lastAvailableContinuousTick\" : null, \n \"progress\" : { \n \"time\" : \"2014-11-07T18:37:54Z\", \n \"message\" : \"fetching master state information\", \n \"failedConnects\" : 1 \n }, \n \"totalRequests\" : 2, \n \"totalFailedConnects\" : 2, \n \"totalEvents\" : 0, \n \"lastError\" : { \n \"errorNum\" : 0 \n }, \n \"time\" : \"2014-11-07T18:37:54Z\" \n }, \n \"server\" : { \n \"version\" : \"2.3.0-beta2\", \n \"serverId\" : \"186671298607643\" \n }, \n \"endpoint\" : \"tcp://127.0.0.1:8529\", \n \"database\" : \"_system\" \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/all\n{ \"collection\": \"products\", \"skip\": 2, \"limit\" : 2 }\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"products/1144061096\", \n \"_key\" : \"1144061096\", \n \"_rev\" : \"1144061096\", \n \"Hello5\" : \"World5\" \n }, \n { \n \"_id\" : \"products/1143733416\", \n \"_key\" : \"1143733416\", \n \"_rev\" : \"1143733416\", \n \"Hello4\" : \"World4\" \n } \n ], \n \"hasMore\" : false, \n \"count\" : 2, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/all\n{ \"collection\": \"products\", \"batchSize\" : 3 }\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"products/1146027176\", \n \"_key\" : \"1146027176\", \n \"_rev\" : \"1146027176\", \n \"Hello5\" : \"World5\" \n }, \n { \n \"_id\" : \"products/1145044136\", \n \"_key\" : \"1145044136\", \n \"_rev\" : \"1145044136\", \n \"Hello2\" : \"World2\" \n }, \n { \n \"_id\" : \"products/1145371816\", \n \"_key\" : \"1145371816\", \n \"_rev\" : \"1145371816\", \n \"Hello3\" : \"World3\" \n } \n ], \n \"hasMore\" : true, \n \"id\" : \"1146223784\", \n \"count\" : 5, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/all\n{ \"collection\": \"products\", \"skip\": 2, \"limit\" : 2 }\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"products/1192267209\", \n \"_key\" : \"1192267209\", \n \"_rev\" : \"1192267209\", \n \"Hello3\" : \"World3\" \n }, \n { \n \"_id\" : \"products/1192922569\", \n \"_key\" : \"1192922569\", \n \"_rev\" : \"1192922569\", \n \"Hello5\" : \"World5\" \n } \n ], \n \"hasMore\" : false, \n \"count\" : 2, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/all\n{ \"collection\": \"products\", \"batchSize\" : 3 }\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"products/1193577929\", \n \"_key\" : \"1193577929\", \n \"_rev\" : \"1193577929\", \n \"Hello1\" : \"World1\" \n }, \n { \n \"_id\" : \"products/1194560969\", \n \"_key\" : \"1194560969\", \n \"_rev\" : \"1194560969\", \n \"Hello4\" : \"World4\" \n }, \n { \n \"_id\" : \"products/1193905609\", \n \"_key\" : \"1193905609\", \n \"_rev\" : \"1193905609\", \n \"Hello2\" : \"World2\" \n } \n ], \n \"hasMore\" : true, \n \"id\" : \"1195085257\", \n \"count\" : 5, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/any\n{ \"collection\": \"products\" }\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"document\" : { \n \"_id\" : \"products/1147665576\", \n \"_key\" : \"1147665576\", \n \"_rev\" : \"1147665576\", \n \"Hello4\" : \"World4\" \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/any\n{ \"collection\": \"products\" }\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"document\" : { \n \"_id\" : \"products/1195871689\", \n \"_key\" : \"1195871689\", \n \"_rev\" : \"1195871689\", \n \"Hello2\" : \"World2\" \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/near\n{ \"collection\": \"products\", \"latitude\" : 0, \"longitude\" : 0, \"skip\" : 1, \"limit\" : 2 }\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"products/1150090408\", \n \"_key\" : \"1150090408\", \n \"_rev\" : \"1150090408\", \n \"name\" : \"Name/0.002/\", \n \"loc\" : [ \n 0.002, \n 0 \n ] \n }, \n { \n \"_id\" : \"products/1149697192\", \n \"_key\" : \"1149697192\", \n \"_rev\" : \"1149697192\", \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
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/near\n{ \"collection\": \"products\", \"latitude\" : 0, \"longitude\" : 0, \"skip\" : 1, \"limit\" : 3, \"distance\" : \"distance\" }\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"products/1152711848\", \n \"_key\" : \"1152711848\", \n \"_rev\" : \"1152711848\", \n \"name\" : \"Name/-0.002/\", \n \"loc\" : [ \n -0.002, \n 0 \n ], \n \"distance\" : 222.38985328911744 \n }, \n { \n \"_id\" : \"products/1153105064\", \n \"_key\" : \"1153105064\", \n \"_rev\" : \"1153105064\", \n \"name\" : \"Name/0.002/\", \n \"loc\" : [ \n 0.002, \n 0 \n ], \n \"distance\" : 222.38985328911744 \n }, \n { \n \"_id\" : \"products/1152515240\", \n \"_key\" : \"1152515240\", \n \"_rev\" : \"1152515240\", \n \"name\" : \"Name/-0.004/\", \n \"loc\" : [ \n -0.004, \n 0 \n ], \n \"distance\" : 444.779706578235 \n } \n ], \n \"hasMore\" : false, \n \"count\" : 3, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/near\n{ \"collection\": \"products\", \"latitude\" : 0, \"longitude\" : 0, \"skip\" : 1, \"limit\" : 2 }\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"products/1198951881\", \n \"_key\" : \"1198951881\", \n \"_rev\" : \"1198951881\", \n \"name\" : \"Name/0.002/\", \n \"loc\" : [ \n 0.002, \n 0 \n ] \n }, \n { \n \"_id\" : \"products/1198558665\", \n \"_key\" : \"1198558665\", \n \"_rev\" : \"1198558665\", \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
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/near\n{ \"collection\": \"products\", \"latitude\" : 0, \"longitude\" : 0, \"skip\" : 1, \"limit\" : 3, \"distance\" : \"distance\" }\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"products/1201769929\", \n \"_key\" : \"1201769929\", \n \"_rev\" : \"1201769929\", \n \"name\" : \"Name/-0.002/\", \n \"loc\" : [ \n -0.002, \n 0 \n ], \n \"distance\" : 222.38985328911744 \n }, \n { \n \"_id\" : \"products/1202163145\", \n \"_key\" : \"1202163145\", \n \"_rev\" : \"1202163145\", \n \"name\" : \"Name/0.002/\", \n \"loc\" : [ \n 0.002, \n 0 \n ], \n \"distance\" : 222.38985328911744 \n }, \n { \n \"_id\" : \"products/1201573321\", \n \"_key\" : \"1201573321\", \n \"_rev\" : \"1201573321\", \n \"name\" : \"Name/-0.004/\", \n \"loc\" : [ \n -0.004, \n 0 \n ], \n \"distance\" : 444.779706578235 \n } \n ], \n \"hasMore\" : false, \n \"count\" : 3, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/near\n{ \"collection\": \"products\", \"latitude\" : 0, \"longitude\" : 0, \"skip\" : 1, \"limit\" : 2, \"radius\" : 500 }\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"products/1156119720\", \n \"_key\" : \"1156119720\", \n \"_rev\" : \"1156119720\", \n \"name\" : \"Name/0.002/\", \n \"loc\" : [ \n 0.002, \n 0 \n ] \n }, \n { \n \"_id\" : \"products/1155726504\", \n \"_key\" : \"1155726504\", \n \"_rev\" : \"1155726504\", \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
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/near\n{ \"collection\": \"products\", \"latitude\" : 0, \"longitude\" : 0, \"skip\" : 1, \"limit\" : 3, \"distance\" : \"distance\", \"radius\" : 300 }\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"products/1158741160\", \n \"_key\" : \"1158741160\", \n \"_rev\" : \"1158741160\", \n \"name\" : \"Name/-0.002/\", \n \"loc\" : [ \n -0.002, \n 0 \n ], \n \"distance\" : 222.38985328911744 \n }, \n { \n \"_id\" : \"products/1159134376\", \n \"_key\" : \"1159134376\", \n \"_rev\" : \"1159134376\", \n \"name\" : \"Name/0.002/\", \n \"loc\" : [ \n 0.002, \n 0 \n ], \n \"distance\" : 222.38985328911744 \n }, \n { \n \"_id\" : \"products/1158544552\", \n \"_key\" : \"1158544552\", \n \"_rev\" : \"1158544552\", \n \"name\" : \"Name/-0.004/\", \n \"loc\" : [ \n -0.004, \n 0 \n ], \n \"distance\" : 444.779706578235 \n } \n ], \n \"hasMore\" : false, \n \"count\" : 3, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/near\n{ \"collection\": \"products\", \"latitude\" : 0, \"longitude\" : 0, \"skip\" : 1, \"limit\" : 2, \"radius\" : 500 }\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"products/1205177801\", \n \"_key\" : \"1205177801\", \n \"_rev\" : \"1205177801\", \n \"name\" : \"Name/0.002/\", \n \"loc\" : [ \n 0.002, \n 0 \n ] \n }, \n { \n \"_id\" : \"products/1204784585\", \n \"_key\" : \"1204784585\", \n \"_rev\" : \"1204784585\", \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
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/near\n{ \"collection\": \"products\", \"latitude\" : 0, \"longitude\" : 0, \"skip\" : 1, \"limit\" : 3, \"distance\" : \"distance\", \"radius\" : 300 }\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"products/1207995849\", \n \"_key\" : \"1207995849\", \n \"_rev\" : \"1207995849\", \n \"name\" : \"Name/-0.002/\", \n \"loc\" : [ \n -0.002, \n 0 \n ], \n \"distance\" : 222.38985328911744 \n }, \n { \n \"_id\" : \"products/1208389065\", \n \"_key\" : \"1208389065\", \n \"_rev\" : \"1208389065\", \n \"name\" : \"Name/0.002/\", \n \"loc\" : [ \n 0.002, \n 0 \n ], \n \"distance\" : 222.38985328911744 \n }, \n { \n \"_id\" : \"products/1207799241\", \n \"_key\" : \"1207799241\", \n \"_rev\" : \"1207799241\", \n \"name\" : \"Name/-0.004/\", \n \"loc\" : [ \n -0.004, \n 0 \n ], \n \"distance\" : 444.779706578235 \n } \n ], \n \"hasMore\" : false, \n \"count\" : 3, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/fulltext\n{ \"collection\": \"products\", \"attribute\" : \"text\", \"query\" : \"word\" }\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"products/1160838312\", \n \"_key\" : \"1160838312\", \n \"_rev\" : \"1160838312\", \n \"text\" : \"this text contains word\" \n }, \n { \n \"_id\" : \"products/1161034920\", \n \"_key\" : \"1161034920\", \n \"_rev\" : \"1161034920\", \n \"text\" : \"this text also has a word\" \n } \n ], \n \"hasMore\" : false, \n \"count\" : 2, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/fulltext\n{ \"collection\": \"products\", \"attribute\" : \"text\", \"query\" : \"word\" }\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"products/1210093001\", \n \"_key\" : \"1210093001\", \n \"_rev\" : \"1210093001\", \n \"text\" : \"this text also has a word\" \n }, \n { \n \"_id\" : \"products/1209896393\", \n \"_key\" : \"1209896393\", \n \"_rev\" : \"1209896393\", \n \"text\" : \"this text contains word\" \n } \n ], \n \"hasMore\" : false, \n \"count\" : 2, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/by-example\n{ \"collection\": \"products\", \"example\" : { \"i\" : 1 } }\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"products/1163001000\", \n \"_key\" : \"1163001000\", \n \"_rev\" : \"1163001000\", \n \"i\" : 1 \n }, \n { \n \"_id\" : \"products/1162411176\", \n \"_key\" : \"1162411176\", \n \"_rev\" : \"1162411176\", \n \"i\" : 1, \n \"a\" : { \n \"k\" : 1, \n \"j\" : 1 \n } \n }, \n { \n \"_id\" : \"products/1162738856\", \n \"_key\" : \"1162738856\", \n \"_rev\" : \"1162738856\", \n \"i\" : 1, \n \"a\" : { \n \"j\" : 1 \n } \n }, \n { \n \"_id\" : \"products/1163197608\", \n \"_key\" : \"1163197608\", \n \"_rev\" : \"1163197608\", \n \"i\" : 1, \n \"a\" : { \n \"k\" : 2, \n \"j\" : 2 \n } \n } \n ], \n \"hasMore\" : false, \n \"count\" : 4, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/by-example\n{ \"collection\": \"products\", \"example\" : { \"a.j\" : 1 } }\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"products/1164377256\", \n \"_key\" : \"1164377256\", \n \"_rev\" : \"1164377256\", \n \"i\" : 1, \n \"a\" : { \n \"k\" : 1, \n \"j\" : 1 \n } \n }, \n { \n \"_id\" : \"products/1164704936\", \n \"_key\" : \"1164704936\", \n \"_rev\" : \"1164704936\", \n \"i\" : 1, \n \"a\" : { \n \"j\" : 1 \n } \n } \n ], \n \"hasMore\" : false, \n \"count\" : 2, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/by-example\n{ \"collection\": \"products\", \"example\" : { \"a\" : { \"j\" : 1 } } }\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"products/1166671016\", \n \"_key\" : \"1166671016\", \n \"_rev\" : \"1166671016\", \n \"i\" : 1, \n \"a\" : { \n \"j\" : 1 \n } \n } \n ], \n \"hasMore\" : false, \n \"count\" : 1, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/by-example\n{ \"collection\": \"products\", \"example\" : { \"i\" : 1 } }\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"products/1211796937\", \n \"_key\" : \"1211796937\", \n \"_rev\" : \"1211796937\", \n \"i\" : 1, \n \"a\" : { \n \"j\" : 1 \n } \n }, \n { \n \"_id\" : \"products/1212255689\", \n \"_key\" : \"1212255689\", \n \"_rev\" : \"1212255689\", \n \"i\" : 1, \n \"a\" : { \n \"k\" : 2, \n \"j\" : 2 \n } \n }, \n { \n \"_id\" : \"products/1212059081\", \n \"_key\" : \"1212059081\", \n \"_rev\" : \"1212059081\", \n \"i\" : 1 \n }, \n { \n \"_id\" : \"products/1211469257\", \n \"_key\" : \"1211469257\", \n \"_rev\" : \"1211469257\", \n \"i\" : 1, \n \"a\" : { \n \"k\" : 1, \n \"j\" : 1 \n } \n } \n ], \n \"hasMore\" : false, \n \"count\" : 4, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/by-example\n{ \"collection\": \"products\", \"example\" : { \"a.j\" : 1 } }\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"products/1213763017\", \n \"_key\" : \"1213763017\", \n \"_rev\" : \"1213763017\", \n \"i\" : 1, \n \"a\" : { \n \"j\" : 1 \n } \n }, \n { \n \"_id\" : \"products/1213435337\", \n \"_key\" : \"1213435337\", \n \"_rev\" : \"1213435337\", \n \"i\" : 1, \n \"a\" : { \n \"k\" : 1, \n \"j\" : 1 \n } \n } \n ], \n \"hasMore\" : false, \n \"count\" : 2, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/by-example\n{ \"collection\": \"products\", \"example\" : { \"a\" : { \"j\" : 1 } } }\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"products/1215729097\", \n \"_key\" : \"1215729097\", \n \"_rev\" : \"1215729097\", \n \"i\" : 1, \n \"a\" : { \n \"j\" : 1 \n } \n } \n ], \n \"hasMore\" : false, \n \"count\" : 1, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/first-example\n{ \"collection\": \"products\", \"example\" : { \"i\" : 1 } }\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"document\" : { \n \"_id\" : \"products/1168899240\", \n \"_key\" : \"1168899240\", \n \"_rev\" : \"1168899240\", \n \"i\" : 1 \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/first-example\n{ \"collection\": \"products\", \"example\" : { \"l\" : 1 } }\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n \"error\" : true, \n \"code\" : 404, \n \"errorNum\" : 404, \n \"errorMessage\" : \"no match\" \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/first-example\n{ \"collection\": \"products\", \"example\" : { \"i\" : 1 } }\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"document\" : { \n \"_id\" : \"products/1218350537\", \n \"_key\" : \"1218350537\", \n \"_rev\" : \"1218350537\", \n \"i\" : 1, \n \"a\" : { \n \"k\" : 2, \n \"j\" : 2 \n } \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/first-example\n{ \"collection\": \"products\", \"example\" : { \"l\" : 1 } }\n\nHTTP/1.1 404 Not Found\ncontent-type: application/json; charset=utf-8\n\n{ \n \"error\" : true, \n \"code\" : 404, \n \"errorNum\" : 404, \n \"errorMessage\" : \"no match\" \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/first\n{ \"collection\": \"products\", \"count\" : 2 }\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"products/1172110504\", \n \"_key\" : \"1172110504\", \n \"_rev\" : \"1172110504\", \n \"i\" : 1, \n \"a\" : { \n \"k\" : 1, \n \"j\" : 1 \n } \n }, \n { \n \"_id\" : \"products/1172438184\", \n \"_key\" : \"1172438184\", \n \"_rev\" : \"1172438184\", \n \"i\" : 1, \n \"a\" : { \n \"j\" : 1 \n } \n } \n ], \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/first\n{ \"collection\": \"products\" }\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : { \n \"_id\" : \"products/1173748904\", \n \"_key\" : \"1173748904\", \n \"_rev\" : \"1173748904\", \n \"i\" : 1, \n \"a\" : { \n \"k\" : 1, \n \"j\" : 1 \n } \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/first\n{ \"collection\": \"products\", \"count\" : 2 }\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"products/1221561801\", \n \"_key\" : \"1221561801\", \n \"_rev\" : \"1221561801\", \n \"i\" : 1, \n \"a\" : { \n \"k\" : 1, \n \"j\" : 1 \n } \n }, \n { \n \"_id\" : \"products/1221889481\", \n \"_key\" : \"1221889481\", \n \"_rev\" : \"1221889481\", \n \"i\" : 1, \n \"a\" : { \n \"j\" : 1 \n } \n } \n ], \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/first\n{ \"collection\": \"products\" }\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : { \n \"_id\" : \"products/1223200201\", \n \"_key\" : \"1223200201\", \n \"_rev\" : \"1223200201\", \n \"i\" : 1, \n \"a\" : { \n \"k\" : 1, \n \"j\" : 1 \n } \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/last\n{ \"collection\": \"products\", \"count\" : 2 }\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"products/1176173736\", \n \"_key\" : \"1176173736\", \n \"_rev\" : \"1176173736\", \n \"i\" : 1, \n \"a\" : { \n \"k\" : 2, \n \"j\" : 2 \n } \n }, \n { \n \"_id\" : \"products/1175977128\", \n \"_key\" : \"1175977128\", \n \"_rev\" : \"1175977128\", \n \"i\" : 1 \n } \n ], \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/last\n{ \"collection\": \"products\" }\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : { \n \"_id\" : \"products/1177812136\", \n \"_key\" : \"1177812136\", \n \"_rev\" : \"1177812136\", \n \"i\" : 1, \n \"a\" : { \n \"k\" : 2, \n \"j\" : 2 \n } \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/last\n{ \"collection\": \"products\", \"count\" : 2 }\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"products/1225625033\", \n \"_key\" : \"1225625033\", \n \"_rev\" : \"1225625033\", \n \"i\" : 1, \n \"a\" : { \n \"k\" : 2, \n \"j\" : 2 \n } \n }, \n { \n \"_id\" : \"products/1225428425\", \n \"_key\" : \"1225428425\", \n \"_rev\" : \"1225428425\", \n \"i\" : 1 \n } \n ], \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/last\n{ \"collection\": \"products\" }\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : { \n \"_id\" : \"products/1227263433\", \n \"_key\" : \"1227263433\", \n \"_rev\" : \"1227263433\", \n \"i\" : 1, \n \"a\" : { \n \"k\" : 2, \n \"j\" : 2 \n } \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/range\n{ \"collection\": \"products\", \"attribute\" : \"i\", \"left\" : 2, \"right\" : 4 }\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"products/1178795176\", \n \"_key\" : \"1178795176\", \n \"_rev\" : \"1178795176\", \n \"i\" : 2 \n }, \n { \n \"_id\" : \"products/1178991784\", \n \"_key\" : \"1178991784\", \n \"_rev\" : \"1178991784\", \n \"i\" : 3 \n } \n ], \n \"hasMore\" : false, \n \"count\" : 2, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/range\n{ \"collection\": \"products\", \"attribute\" : \"i\", \"left\" : 2, \"right\" : 4 }\n\nHTTP/1.1 201 Created\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : [ \n { \n \"_id\" : \"products/1228443081\", \n \"_key\" : \"1228443081\", \n \"_rev\" : \"1228443081\", \n \"i\" : 2 \n }, \n { \n \"_id\" : \"products/1228639689\", \n \"_key\" : \"1228639689\", \n \"_rev\" : \"1228639689\", \n \"i\" : 3 \n } \n ], \n \"hasMore\" : false, \n \"count\" : 2, \n \"error\" : false, \n \"code\" : 201 \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_admin/statistics\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"time\" : 1413968258.626262, \n \"system\" : { \n \"minorPageFaults\" : 145185, \n \"majorPageFaults\" : 2179, \n \"userTime\" : 6.69533, \n \"systemTime\" : 4.061218, \n \"numberOfThreads\" : 19, \n \"residentSize\" : 187953152, \n \"residentSizePercent\" : 0.021880626678466797, \n \"virtualSize\" : 5231443968 \n }, \n \"client\" : { \n \"httpConnections\" : 1, \n \"connectionTime\" : { \n \"sum\" : 0.0009860992431640625, \n \"count\" : 1, \n \"counts\" : [ \n 1, \n 0, \n 0, \n 0 \n ] \n }, \n \"totalTime\" : { \n \"sum\" : 13.294313192367554, \n \"count\" : 8784, \n \"counts\" : [ \n 8676, \n 96, \n 4, \n 4, \n 1, \n 3, \n 0 \n ] \n }, \n \"requestTime\" : { \n \"sum\" : 12.3034508228302, \n \"count\" : 8784, \n \"counts\" : [ \n 8680, \n 92, \n 4, \n 4, \n 1, \n 3, \n 0 \n ] \n }, \n \"queueTime\" : { \n \"sum\" : 0.16509556770324707, \n \"count\" : 8784, \n \"counts\" : [ \n 8784, \n 0, \n 0, \n 0, \n 0, \n 0, \n 0 \n ] \n }, \n \"ioTime\" : { \n \"sum\" : 0.8257668018341064, \n \"count\" : 8784, \n \"counts\" : [ \n 8784, \n 0, \n 0, \n 0, \n 0, \n 0, \n 0 \n ] \n }, \n \"bytesSent\" : { \n \"sum\" : 3264611, \n \"count\" : 8784, \n \"counts\" : [ \n 2666, \n 5978, \n 10, \n 8, \n 122, \n 0 \n ] \n }, \n \"bytesReceived\" : { \n \"sum\" : 2079017, \n \"count\" : 8784, \n \"counts\" : [ \n 6564, \n 2220, \n 0, \n 0, \n 0, \n 0 \n ] \n } \n }, \n \"http\" : { \n \"requestsTotal\" : 8784, \n \"requestsAsync\" : 0, \n \"requestsGet\" : 3650, \n \"requestsHead\" : 295, \n \"requestsPost\" : 3165, \n \"requestsPut\" : 685, \n \"requestsPatch\" : 31, \n \"requestsDelete\" : 958, \n \"requestsOptions\" : 0, \n \"requestsOther\" : 0 \n }, \n \"server\" : { \n \"uptime\" : 22.03459119796753, \n \"physicalMemory\" : 8589934592 \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_admin/statistics\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"time\" : 1415385452.993082, \n \"system\" : { \n \"minorPageFaults\" : 292830, \n \"majorPageFaults\" : 2296, \n \"userTime\" : 12.196963, \n \"systemTime\" : 6.109562, \n \"numberOfThreads\" : 19, \n \"residentSize\" : 95592448, \n \"residentSizePercent\" : 0.022256851196289062, \n \"virtualSize\" : 5232513024 \n }, \n \"client\" : { \n \"httpConnections\" : 1, \n \"connectionTime\" : { \n \"sum\" : 0.03389310836791992, \n \"count\" : 1, \n \"counts\" : [ \n 1, \n 0, \n 0, \n 0 \n ] \n }, \n \"totalTime\" : { \n \"sum\" : 114.02063083648682, \n \"count\" : 8842, \n \"counts\" : [ \n 7864, \n 547, \n 142, \n 141, \n 130, \n 12, \n 6 \n ] \n }, \n \"requestTime\" : { \n \"sum\" : 112.08691906929016, \n \"count\" : 8842, \n \"counts\" : [ \n 7874, \n 539, \n 141, \n 141, \n 130, \n 11, \n 6 \n ] \n }, \n \"queueTime\" : { \n \"sum\" : 0.20596933364868164, \n \"count\" : 8842, \n \"counts\" : [ \n 8842, \n 0, \n 0, \n 0, \n 0, \n 0, \n 0 \n ] \n }, \n \"ioTime\" : { \n \"sum\" : 1.7277424335479736, \n \"count\" : 8842, \n \"counts\" : [ \n 8840, \n 0, \n 1, \n 0, \n 0, \n 1, \n 0 \n ] \n }, \n \"bytesSent\" : { \n \"sum\" : 3327712, \n \"count\" : 8842, \n \"counts\" : [ \n 2652, \n 6041, \n 12, \n 10, \n 127, \n 0 \n ] \n }, \n \"bytesReceived\" : { \n \"sum\" : 1889636, \n \"count\" : 8842, \n \"counts\" : [ \n 7062, \n 1780, \n 0, \n 0, \n 0, \n 0 \n ] \n } \n }, \n \"http\" : { \n \"requestsTotal\" : 8843, \n \"requestsAsync\" : 0, \n \"requestsGet\" : 3657, \n \"requestsHead\" : 295, \n \"requestsPost\" : 3211, \n \"requestsPut\" : 686, \n \"requestsPatch\" : 31, \n \"requestsDelete\" : 963, \n \"requestsOptions\" : 0, \n \"requestsOther\" : 0 \n }, \n \"server\" : { \n \"uptime\" : 152.82532405853271, \n \"physicalMemory\" : 4294967296 \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal\n{ \"startVertex\": \"persons/alice\", \"graphName\" : \"knows_graph\", \"direction\" : \"outbound\"}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : { \n \"visited\" : { \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1197866152\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1198062760\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1198324904\", \n \"name\" : \"Charlie\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1198521512\", \n \"name\" : \"Dave\" \n } \n ], \n \"paths\" : [ \n { \n \"edges\" : [ ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1197866152\", \n \"name\" : \"Alice\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1198980264\", \n \"_key\" : \"1198980264\", \n \"_rev\" : \"1198980264\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1197866152\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1198062760\", \n \"name\" : \"Bob\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1198980264\", \n \"_key\" : \"1198980264\", \n \"_rev\" : \"1198980264\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1199176872\", \n \"_key\" : \"1199176872\", \n \"_rev\" : \"1199176872\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/charlie\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1197866152\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1198062760\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1198324904\", \n \"name\" : \"Charlie\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1198980264\", \n \"_key\" : \"1198980264\", \n \"_rev\" : \"1198980264\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1199373480\", \n \"_key\" : \"1199373480\", \n \"_rev\" : \"1199373480\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/dave\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1197866152\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1198062760\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1198521512\", \n \"name\" : \"Dave\" \n } \n ] \n } \n ] \n } \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal\n{ \"startVertex\": \"persons/alice\", \"graphName\" : \"knows_graph\", \"direction\" : \"inbound\"}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : { \n \"visited\" : { \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1202322600\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1203174568\", \n \"name\" : \"Eve\" \n } \n ], \n \"paths\" : [ \n { \n \"edges\" : [ ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1202322600\", \n \"name\" : \"Alice\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1204026536\", \n \"_key\" : \"1204026536\", \n \"_rev\" : \"1204026536\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1202322600\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1203174568\", \n \"name\" : \"Eve\" \n } \n ] \n } \n ] \n } \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal\n{\"startVertex\":\"persons/alice\",\"graphName\":\"knows_graph\",\"direction\":\"any\",\"uniqueness\":{\"vertices\":\"none\",\"edges\":\"global\"}}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : { \n \"visited\" : { \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1206516904\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1207368872\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1206713512\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1206516904\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1206975656\", \n \"name\" : \"Charlie\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1207172264\", \n \"name\" : \"Dave\" \n } \n ], \n \"paths\" : [ \n { \n \"edges\" : [ ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1206516904\", \n \"name\" : \"Alice\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1208220840\", \n \"_key\" : \"1208220840\", \n \"_rev\" : \"1208220840\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1206516904\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1207368872\", \n \"name\" : \"Eve\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1208220840\", \n \"_key\" : \"1208220840\", \n \"_rev\" : \"1208220840\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1208417448\", \n \"_key\" : \"1208417448\", \n \"_rev\" : \"1208417448\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1206516904\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1207368872\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1206713512\", \n \"name\" : \"Bob\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1208220840\", \n \"_key\" : \"1208220840\", \n \"_rev\" : \"1208220840\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1208417448\", \n \"_key\" : \"1208417448\", \n \"_rev\" : \"1208417448\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1207631016\", \n \"_key\" : \"1207631016\", \n \"_rev\" : \"1207631016\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1206516904\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1207368872\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1206713512\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1206516904\", \n \"name\" : \"Alice\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1208220840\", \n \"_key\" : \"1208220840\", \n \"_rev\" : \"1208220840\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1208417448\", \n \"_key\" : \"1208417448\", \n \"_rev\" : \"1208417448\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1207827624\", \n \"_key\" : \"1207827624\", \n \"_rev\" : \"1207827624\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/charlie\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1206516904\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1207368872\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1206713512\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1206975656\", \n \"name\" : \"Charlie\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1208220840\", \n \"_key\" : \"1208220840\", \n \"_rev\" : \"1208220840\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1208417448\", \n \"_key\" : \"1208417448\", \n \"_rev\" : \"1208417448\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1208024232\", \n \"_key\" : \"1208024232\", \n \"_rev\" : \"1208024232\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/dave\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1206516904\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1207368872\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1206713512\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1207172264\", \n \"name\" : \"Dave\" \n } \n ] \n } \n ] \n } \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal\n{ \"startVertex\": \"persons/alice\", \"graphName\" : \"knows_graph\", \"direction\" : \"outbound\", \"filter\" : \"if (vertex.name === \\\"Bob\\\" || vertex.name === \\\"Charlie\\\") {return \\\"exclude\\\";}return;\"}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : { \n \"visited\" : { \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1211694248\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1212349608\", \n \"name\" : \"Dave\" \n } \n ], \n \"paths\" : [ \n { \n \"edges\" : [ ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1211694248\", \n \"name\" : \"Alice\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1212808360\", \n \"_key\" : \"1212808360\", \n \"_rev\" : \"1212808360\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1213201576\", \n \"_key\" : \"1213201576\", \n \"_rev\" : \"1213201576\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/dave\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1211694248\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1211890856\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1212349608\", \n \"name\" : \"Dave\" \n } \n ] \n } \n ] \n } \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal\n{ \"startVertex\": \"persons/alice\", \"graphName\" : \"knows_graph\", \"direction\" : \"outbound\", \"filter\" : \"if (vertex.name === \\\"Bob\\\") {return \\\"prune\\\";}return;\"}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : { \n \"visited\" : { \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1216150696\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1216347304\", \n \"name\" : \"Bob\" \n } \n ], \n \"paths\" : [ \n { \n \"edges\" : [ ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1216150696\", \n \"name\" : \"Alice\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1217264808\", \n \"_key\" : \"1217264808\", \n \"_rev\" : \"1217264808\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1216150696\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1216347304\", \n \"name\" : \"Bob\" \n } \n ] \n } \n ] \n } \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal\n{ \"startVertex\": \"persons/alice\", \"graphName\" : \"knows_graph\", \"direction\" : \"outbound\", \"minDepth\" : 2}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : { \n \"visited\" : { \n \"vertices\" : [ \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1220934824\", \n \"name\" : \"Charlie\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1221131432\", \n \"name\" : \"Dave\" \n } \n ], \n \"paths\" : [ \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1221590184\", \n \"_key\" : \"1221590184\", \n \"_rev\" : \"1221590184\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1221786792\", \n \"_key\" : \"1221786792\", \n \"_rev\" : \"1221786792\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/charlie\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1220476072\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1220672680\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1220934824\", \n \"name\" : \"Charlie\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1221590184\", \n \"_key\" : \"1221590184\", \n \"_rev\" : \"1221590184\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1221983400\", \n \"_key\" : \"1221983400\", \n \"_rev\" : \"1221983400\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/dave\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1220476072\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1220672680\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1221131432\", \n \"name\" : \"Dave\" \n } \n ] \n } \n ] \n } \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal\n{ \"startVertex\": \"persons/alice\", \"graphName\" : \"knows_graph\", \"direction\" : \"outbound\", \"maxDepth\" : 1}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : { \n \"visited\" : { \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1224932520\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1225129128\", \n \"name\" : \"Bob\" \n } \n ], \n \"paths\" : [ \n { \n \"edges\" : [ ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1224932520\", \n \"name\" : \"Alice\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1226046632\", \n \"_key\" : \"1226046632\", \n \"_rev\" : \"1226046632\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1224932520\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1225129128\", \n \"name\" : \"Bob\" \n } \n ] \n } \n ] \n } \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal\n{ \"startVertex\": \"persons/alice\", \"graphName\" : \"knows_graph\", \"direction\" : \"outbound\", \"init\" : \"result.visited = 0; result.myVertices = [ ];\", \"visitor\" : \"result.visited++; result.myVertices.push(vertex);\"}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : { \n \"visited\" : 4, \n \"myVertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1229061288\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1229257896\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1229520040\", \n \"name\" : \"Charlie\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1229716648\", \n \"name\" : \"Dave\" \n } \n ] \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal\n{\"startVertex\":\"persons/alice\",\"graphName\":\"knows_graph\",\"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\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : { \n \"visited\" : { \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1233517736\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1234369704\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1233714344\", \n \"name\" : \"Bob\" \n } \n ], \n \"paths\" : [ \n { \n \"edges\" : [ ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1233517736\", \n \"name\" : \"Alice\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1235221672\", \n \"_key\" : \"1235221672\", \n \"_rev\" : \"1235221672\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1233517736\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1234369704\", \n \"name\" : \"Eve\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1235221672\", \n \"_key\" : \"1235221672\", \n \"_rev\" : \"1235221672\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1235418280\", \n \"_key\" : \"1235418280\", \n \"_rev\" : \"1235418280\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1233517736\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1234369704\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1233714344\", \n \"name\" : \"Bob\" \n } \n ] \n } \n ] \n } \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal\n{\"startVertex\":\"persons/alice\",\"graphName\":\"knows_graph\",\"direction\":\"any\",\"strategy\":\"depthfirst\"}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : { \n \"visited\" : { \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1237843112\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1238695080\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1238039720\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1237843112\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1238301864\", \n \"name\" : \"Charlie\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1238498472\", \n \"name\" : \"Dave\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1238039720\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1238695080\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1237843112\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1238301864\", \n \"name\" : \"Charlie\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1238498472\", \n \"name\" : \"Dave\" \n } \n ], \n \"paths\" : [ \n { \n \"edges\" : [ ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1237843112\", \n \"name\" : \"Alice\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1239547048\", \n \"_key\" : \"1239547048\", \n \"_rev\" : \"1239547048\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1237843112\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1238695080\", \n \"name\" : \"Eve\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1239547048\", \n \"_key\" : \"1239547048\", \n \"_rev\" : \"1239547048\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1239743656\", \n \"_key\" : \"1239743656\", \n \"_rev\" : \"1239743656\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1237843112\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1238695080\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1238039720\", \n \"name\" : \"Bob\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1239547048\", \n \"_key\" : \"1239547048\", \n \"_rev\" : \"1239547048\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1239743656\", \n \"_key\" : \"1239743656\", \n \"_rev\" : \"1239743656\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1238957224\", \n \"_key\" : \"1238957224\", \n \"_rev\" : \"1238957224\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1237843112\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1238695080\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1238039720\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1237843112\", \n \"name\" : \"Alice\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1239547048\", \n \"_key\" : \"1239547048\", \n \"_rev\" : \"1239547048\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1239743656\", \n \"_key\" : \"1239743656\", \n \"_rev\" : \"1239743656\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1239153832\", \n \"_key\" : \"1239153832\", \n \"_rev\" : \"1239153832\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/charlie\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1237843112\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1238695080\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1238039720\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1238301864\", \n \"name\" : \"Charlie\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1239547048\", \n \"_key\" : \"1239547048\", \n \"_rev\" : \"1239547048\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1239743656\", \n \"_key\" : \"1239743656\", \n \"_rev\" : \"1239743656\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1239350440\", \n \"_key\" : \"1239350440\", \n \"_rev\" : \"1239350440\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/dave\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1237843112\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1238695080\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1238039720\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1238498472\", \n \"name\" : \"Dave\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1238957224\", \n \"_key\" : \"1238957224\", \n \"_rev\" : \"1238957224\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1237843112\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1238039720\", \n \"name\" : \"Bob\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1238957224\", \n \"_key\" : \"1238957224\", \n \"_rev\" : \"1238957224\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1239743656\", \n \"_key\" : \"1239743656\", \n \"_rev\" : \"1239743656\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1237843112\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1238039720\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1238695080\", \n \"name\" : \"Eve\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1238957224\", \n \"_key\" : \"1238957224\", \n \"_rev\" : \"1238957224\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1239743656\", \n \"_key\" : \"1239743656\", \n \"_rev\" : \"1239743656\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1239547048\", \n \"_key\" : \"1239547048\", \n \"_rev\" : \"1239547048\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1237843112\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1238039720\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1238695080\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1237843112\", \n \"name\" : \"Alice\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1238957224\", \n \"_key\" : \"1238957224\", \n \"_rev\" : \"1238957224\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1239153832\", \n \"_key\" : \"1239153832\", \n \"_rev\" : \"1239153832\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/charlie\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1237843112\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1238039720\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1238301864\", \n \"name\" : \"Charlie\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1238957224\", \n \"_key\" : \"1238957224\", \n \"_rev\" : \"1238957224\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1239350440\", \n \"_key\" : \"1239350440\", \n \"_rev\" : \"1239350440\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/dave\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1237843112\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1238039720\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1238498472\", \n \"name\" : \"Dave\" \n } \n ] \n } \n ] \n } \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal\n{\"startVertex\":\"persons/alice\",\"graphName\":\"knows_graph\",\"direction\":\"any\",\"order\":\"postorder\"}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : { \n \"visited\" : { \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1244003496\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1244462248\", \n \"name\" : \"Charlie\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1244658856\", \n \"name\" : \"Dave\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1244200104\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1244855464\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1244003496\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1244855464\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1244462248\", \n \"name\" : \"Charlie\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1244658856\", \n \"name\" : \"Dave\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1244200104\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1244003496\", \n \"name\" : \"Alice\" \n } \n ], \n \"paths\" : [ \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1245707432\", \n \"_key\" : \"1245707432\", \n \"_rev\" : \"1245707432\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1245904040\", \n \"_key\" : \"1245904040\", \n \"_rev\" : \"1245904040\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1245117608\", \n \"_key\" : \"1245117608\", \n \"_rev\" : \"1245117608\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1244003496\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1244855464\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1244200104\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1244003496\", \n \"name\" : \"Alice\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1245707432\", \n \"_key\" : \"1245707432\", \n \"_rev\" : \"1245707432\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1245904040\", \n \"_key\" : \"1245904040\", \n \"_rev\" : \"1245904040\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1245314216\", \n \"_key\" : \"1245314216\", \n \"_rev\" : \"1245314216\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/charlie\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1244003496\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1244855464\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1244200104\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1244462248\", \n \"name\" : \"Charlie\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1245707432\", \n \"_key\" : \"1245707432\", \n \"_rev\" : \"1245707432\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1245904040\", \n \"_key\" : \"1245904040\", \n \"_rev\" : \"1245904040\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1245510824\", \n \"_key\" : \"1245510824\", \n \"_rev\" : \"1245510824\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/dave\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1244003496\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1244855464\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1244200104\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1244658856\", \n \"name\" : \"Dave\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1245707432\", \n \"_key\" : \"1245707432\", \n \"_rev\" : \"1245707432\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1245904040\", \n \"_key\" : \"1245904040\", \n \"_rev\" : \"1245904040\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1244003496\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1244855464\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1244200104\", \n \"name\" : \"Bob\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1245707432\", \n \"_key\" : \"1245707432\", \n \"_rev\" : \"1245707432\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1244003496\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1244855464\", \n \"name\" : \"Eve\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1245117608\", \n \"_key\" : \"1245117608\", \n \"_rev\" : \"1245117608\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1245904040\", \n \"_key\" : \"1245904040\", \n \"_rev\" : \"1245904040\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1245707432\", \n \"_key\" : \"1245707432\", \n \"_rev\" : \"1245707432\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1244003496\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1244200104\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1244855464\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1244003496\", \n \"name\" : \"Alice\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1245117608\", \n \"_key\" : \"1245117608\", \n \"_rev\" : \"1245117608\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1245904040\", \n \"_key\" : \"1245904040\", \n \"_rev\" : \"1245904040\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1244003496\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1244200104\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1244855464\", \n \"name\" : \"Eve\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1245117608\", \n \"_key\" : \"1245117608\", \n \"_rev\" : \"1245117608\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1245314216\", \n \"_key\" : \"1245314216\", \n \"_rev\" : \"1245314216\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/charlie\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1244003496\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1244200104\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1244462248\", \n \"name\" : \"Charlie\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1245117608\", \n \"_key\" : \"1245117608\", \n \"_rev\" : \"1245117608\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1245510824\", \n \"_key\" : \"1245510824\", \n \"_rev\" : \"1245510824\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/dave\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1244003496\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1244200104\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1244658856\", \n \"name\" : \"Dave\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1245117608\", \n \"_key\" : \"1245117608\", \n \"_rev\" : \"1245117608\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1244003496\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1244200104\", \n \"name\" : \"Bob\" \n } \n ] \n }, \n { \n \"edges\" : [ ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1244003496\", \n \"name\" : \"Alice\" \n } \n ] \n } \n ] \n } \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal\n{\"startVertex\":\"persons/alice\",\"graphName\":\"knows_graph\",\"direction\":\"any\",\"itemOrder\":\"backward\"}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : { \n \"visited\" : { \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1250163880\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1250360488\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1250819240\", \n \"name\" : \"Dave\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1250622632\", \n \"name\" : \"Charlie\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1251015848\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1250163880\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1251015848\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1250360488\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1250819240\", \n \"name\" : \"Dave\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1250622632\", \n \"name\" : \"Charlie\" \n }, \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1250163880\", \n \"name\" : \"Alice\" \n } \n ], \n \"paths\" : [ \n { \n \"edges\" : [ ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1250163880\", \n \"name\" : \"Alice\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1251277992\", \n \"_key\" : \"1251277992\", \n \"_rev\" : \"1251277992\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1250163880\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1250360488\", \n \"name\" : \"Bob\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1251277992\", \n \"_key\" : \"1251277992\", \n \"_rev\" : \"1251277992\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1251671208\", \n \"_key\" : \"1251671208\", \n \"_rev\" : \"1251671208\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/dave\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1250163880\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1250360488\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1250819240\", \n \"name\" : \"Dave\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1251277992\", \n \"_key\" : \"1251277992\", \n \"_rev\" : \"1251277992\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1251474600\", \n \"_key\" : \"1251474600\", \n \"_rev\" : \"1251474600\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/charlie\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1250163880\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1250360488\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1250622632\", \n \"name\" : \"Charlie\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1251277992\", \n \"_key\" : \"1251277992\", \n \"_rev\" : \"1251277992\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1252064424\", \n \"_key\" : \"1252064424\", \n \"_rev\" : \"1252064424\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1250163880\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1250360488\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1251015848\", \n \"name\" : \"Eve\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1251277992\", \n \"_key\" : \"1251277992\", \n \"_rev\" : \"1251277992\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1252064424\", \n \"_key\" : \"1252064424\", \n \"_rev\" : \"1252064424\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1251867816\", \n \"_key\" : \"1251867816\", \n \"_rev\" : \"1251867816\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1250163880\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1250360488\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1251015848\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1250163880\", \n \"name\" : \"Alice\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1251867816\", \n \"_key\" : \"1251867816\", \n \"_rev\" : \"1251867816\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1250163880\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1251015848\", \n \"name\" : \"Eve\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1251867816\", \n \"_key\" : \"1251867816\", \n \"_rev\" : \"1251867816\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1252064424\", \n \"_key\" : \"1252064424\", \n \"_rev\" : \"1252064424\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1250163880\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1251015848\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1250360488\", \n \"name\" : \"Bob\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1251867816\", \n \"_key\" : \"1251867816\", \n \"_rev\" : \"1251867816\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1252064424\", \n \"_key\" : \"1252064424\", \n \"_rev\" : \"1252064424\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1251671208\", \n \"_key\" : \"1251671208\", \n \"_rev\" : \"1251671208\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/dave\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1250163880\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1251015848\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1250360488\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1250819240\", \n \"name\" : \"Dave\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1251867816\", \n \"_key\" : \"1251867816\", \n \"_rev\" : \"1251867816\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1252064424\", \n \"_key\" : \"1252064424\", \n \"_rev\" : \"1252064424\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1251474600\", \n \"_key\" : \"1251474600\", \n \"_rev\" : \"1251474600\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/charlie\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1250163880\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1251015848\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1250360488\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1250622632\", \n \"name\" : \"Charlie\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1251867816\", \n \"_key\" : \"1251867816\", \n \"_rev\" : \"1251867816\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1252064424\", \n \"_key\" : \"1252064424\", \n \"_rev\" : \"1252064424\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1251277992\", \n \"_key\" : \"1251277992\", \n \"_rev\" : \"1251277992\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1250163880\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1251015848\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1250360488\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1250163880\", \n \"name\" : \"Alice\" \n } \n ] \n } \n ] \n } \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal\n{\"startVertex\":\"persons/alice\",\"graphName\":\"knows_graph\",\"direction\":\"any\",\"uniqueness\":{\"vertices\":\"none\",\"edges\":\"global\"}}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : { \n \"visited\" : { \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1256324264\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1257176232\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1256520872\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1256324264\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1256783016\", \n \"name\" : \"Charlie\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1256979624\", \n \"name\" : \"Dave\" \n } \n ], \n \"paths\" : [ \n { \n \"edges\" : [ ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1256324264\", \n \"name\" : \"Alice\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1258028200\", \n \"_key\" : \"1258028200\", \n \"_rev\" : \"1258028200\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1256324264\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1257176232\", \n \"name\" : \"Eve\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1258028200\", \n \"_key\" : \"1258028200\", \n \"_rev\" : \"1258028200\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1258224808\", \n \"_key\" : \"1258224808\", \n \"_rev\" : \"1258224808\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1256324264\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1257176232\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1256520872\", \n \"name\" : \"Bob\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1258028200\", \n \"_key\" : \"1258028200\", \n \"_rev\" : \"1258028200\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1258224808\", \n \"_key\" : \"1258224808\", \n \"_rev\" : \"1258224808\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1257438376\", \n \"_key\" : \"1257438376\", \n \"_rev\" : \"1257438376\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1256324264\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1257176232\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1256520872\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1256324264\", \n \"name\" : \"Alice\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1258028200\", \n \"_key\" : \"1258028200\", \n \"_rev\" : \"1258028200\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1258224808\", \n \"_key\" : \"1258224808\", \n \"_rev\" : \"1258224808\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1257634984\", \n \"_key\" : \"1257634984\", \n \"_rev\" : \"1257634984\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/charlie\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1256324264\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1257176232\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1256520872\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1256783016\", \n \"name\" : \"Charlie\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1258028200\", \n \"_key\" : \"1258028200\", \n \"_rev\" : \"1258028200\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1258224808\", \n \"_key\" : \"1258224808\", \n \"_rev\" : \"1258224808\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1257831592\", \n \"_key\" : \"1257831592\", \n \"_rev\" : \"1257831592\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/dave\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1256324264\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1257176232\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1256520872\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1256979624\", \n \"name\" : \"Dave\" \n } \n ] \n } \n ] \n } \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal\n{\"startVertex\":\"persons/alice\",\"graphName\":\"knows_graph\",\"direction\":\"any\",\"uniqueness\":{\"vertices\":\"none\",\"edges\":\"none\"},\"maxIterations\":5}\n\nHTTP/1.1 500 Internal Error\ncontent-type: application/json; charset=utf-8\n\n{ \n \"error\" : true, \n \"code\" : 500, \n \"errorNum\" : 1909, \n \"errorMessage\" : \"too many iterations\" \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal\n{ \"startVertex\": \"persons/alice\", \"graphName\" : \"knows_graph\", \"direction\" : \"outbound\"}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : { \n \"visited\" : { \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1257541065\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1257737673\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1257999817\", \n \"name\" : \"Charlie\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1258196425\", \n \"name\" : \"Dave\" \n } \n ], \n \"paths\" : [ \n { \n \"edges\" : [ ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1257541065\", \n \"name\" : \"Alice\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1258655177\", \n \"_key\" : \"1258655177\", \n \"_rev\" : \"1258655177\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1257541065\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1257737673\", \n \"name\" : \"Bob\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1258655177\", \n \"_key\" : \"1258655177\", \n \"_rev\" : \"1258655177\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1258851785\", \n \"_key\" : \"1258851785\", \n \"_rev\" : \"1258851785\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/charlie\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1257541065\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1257737673\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1257999817\", \n \"name\" : \"Charlie\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1258655177\", \n \"_key\" : \"1258655177\", \n \"_rev\" : \"1258655177\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1259048393\", \n \"_key\" : \"1259048393\", \n \"_rev\" : \"1259048393\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/dave\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1257541065\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1257737673\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1258196425\", \n \"name\" : \"Dave\" \n } \n ] \n } \n ] \n } \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal\n{ \"startVertex\": \"persons/alice\", \"graphName\" : \"knows_graph\", \"direction\" : \"inbound\"}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : { \n \"visited\" : { \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1261997513\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1262849481\", \n \"name\" : \"Eve\" \n } \n ], \n \"paths\" : [ \n { \n \"edges\" : [ ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1261997513\", \n \"name\" : \"Alice\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1263701449\", \n \"_key\" : \"1263701449\", \n \"_rev\" : \"1263701449\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1261997513\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1262849481\", \n \"name\" : \"Eve\" \n } \n ] \n } \n ] \n } \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal\n{\"startVertex\":\"persons/alice\",\"graphName\":\"knows_graph\",\"direction\":\"any\",\"uniqueness\":{\"vertices\":\"none\",\"edges\":\"global\"}}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : { \n \"visited\" : { \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1266388425\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1267240393\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1266585033\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1266388425\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1266847177\", \n \"name\" : \"Charlie\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1267043785\", \n \"name\" : \"Dave\" \n } \n ], \n \"paths\" : [ \n { \n \"edges\" : [ ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1266388425\", \n \"name\" : \"Alice\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1268092361\", \n \"_key\" : \"1268092361\", \n \"_rev\" : \"1268092361\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1266388425\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1267240393\", \n \"name\" : \"Eve\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1268092361\", \n \"_key\" : \"1268092361\", \n \"_rev\" : \"1268092361\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1268288969\", \n \"_key\" : \"1268288969\", \n \"_rev\" : \"1268288969\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1266388425\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1267240393\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1266585033\", \n \"name\" : \"Bob\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1268092361\", \n \"_key\" : \"1268092361\", \n \"_rev\" : \"1268092361\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1268288969\", \n \"_key\" : \"1268288969\", \n \"_rev\" : \"1268288969\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1267502537\", \n \"_key\" : \"1267502537\", \n \"_rev\" : \"1267502537\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1266388425\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1267240393\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1266585033\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1266388425\", \n \"name\" : \"Alice\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1268092361\", \n \"_key\" : \"1268092361\", \n \"_rev\" : \"1268092361\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1268288969\", \n \"_key\" : \"1268288969\", \n \"_rev\" : \"1268288969\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1267699145\", \n \"_key\" : \"1267699145\", \n \"_rev\" : \"1267699145\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/charlie\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1266388425\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1267240393\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1266585033\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1266847177\", \n \"name\" : \"Charlie\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1268092361\", \n \"_key\" : \"1268092361\", \n \"_rev\" : \"1268092361\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1268288969\", \n \"_key\" : \"1268288969\", \n \"_rev\" : \"1268288969\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1267895753\", \n \"_key\" : \"1267895753\", \n \"_rev\" : \"1267895753\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/dave\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1266388425\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1267240393\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1266585033\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1267043785\", \n \"name\" : \"Dave\" \n } \n ] \n } \n ] \n } \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal\n{ \"startVertex\": \"persons/alice\", \"graphName\" : \"knows_graph\", \"direction\" : \"outbound\", \"filter\" : \"if (vertex.name === \\\"Bob\\\" || vertex.name === \\\"Charlie\\\") {return \\\"exclude\\\";}return;\"}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : { \n \"visited\" : { \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1271565769\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1272221129\", \n \"name\" : \"Dave\" \n } \n ], \n \"paths\" : [ \n { \n \"edges\" : [ ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1271565769\", \n \"name\" : \"Alice\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1272679881\", \n \"_key\" : \"1272679881\", \n \"_rev\" : \"1272679881\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1273073097\", \n \"_key\" : \"1273073097\", \n \"_rev\" : \"1273073097\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/dave\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1271565769\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1271762377\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1272221129\", \n \"name\" : \"Dave\" \n } \n ] \n } \n ] \n } \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal\n{ \"startVertex\": \"persons/alice\", \"graphName\" : \"knows_graph\", \"direction\" : \"outbound\", \"filter\" : \"if (vertex.name === \\\"Bob\\\") {return \\\"prune\\\";}return;\"}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : { \n \"visited\" : { \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1276022217\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1276218825\", \n \"name\" : \"Bob\" \n } \n ], \n \"paths\" : [ \n { \n \"edges\" : [ ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1276022217\", \n \"name\" : \"Alice\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1277136329\", \n \"_key\" : \"1277136329\", \n \"_rev\" : \"1277136329\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1276022217\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1276218825\", \n \"name\" : \"Bob\" \n } \n ] \n } \n ] \n } \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal\n{ \"startVertex\": \"persons/alice\", \"graphName\" : \"knows_graph\", \"direction\" : \"outbound\", \"minDepth\" : 2}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : { \n \"visited\" : { \n \"vertices\" : [ \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1280806345\", \n \"name\" : \"Charlie\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1281002953\", \n \"name\" : \"Dave\" \n } \n ], \n \"paths\" : [ \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1281461705\", \n \"_key\" : \"1281461705\", \n \"_rev\" : \"1281461705\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1281658313\", \n \"_key\" : \"1281658313\", \n \"_rev\" : \"1281658313\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/charlie\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1280347593\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1280544201\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1280806345\", \n \"name\" : \"Charlie\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1281461705\", \n \"_key\" : \"1281461705\", \n \"_rev\" : \"1281461705\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1281854921\", \n \"_key\" : \"1281854921\", \n \"_rev\" : \"1281854921\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/dave\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1280347593\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1280544201\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1281002953\", \n \"name\" : \"Dave\" \n } \n ] \n } \n ] \n } \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal\n{ \"startVertex\": \"persons/alice\", \"graphName\" : \"knows_graph\", \"direction\" : \"outbound\", \"maxDepth\" : 1}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : { \n \"visited\" : { \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1284804041\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1285000649\", \n \"name\" : \"Bob\" \n } \n ], \n \"paths\" : [ \n { \n \"edges\" : [ ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1284804041\", \n \"name\" : \"Alice\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1285918153\", \n \"_key\" : \"1285918153\", \n \"_rev\" : \"1285918153\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1284804041\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1285000649\", \n \"name\" : \"Bob\" \n } \n ] \n } \n ] \n } \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal\n{ \"startVertex\": \"persons/alice\", \"graphName\" : \"knows_graph\", \"direction\" : \"outbound\", \"init\" : \"result.visited = 0; result.myVertices = [ ];\", \"visitor\" : \"result.visited++; result.myVertices.push(vertex);\"}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : { \n \"visited\" : 4, \n \"myVertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1288932809\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1289129417\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1289391561\", \n \"name\" : \"Charlie\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1289588169\", \n \"name\" : \"Dave\" \n } \n ] \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal\n{\"startVertex\":\"persons/alice\",\"graphName\":\"knows_graph\",\"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\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : { \n \"visited\" : { \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1293389257\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1294241225\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1293585865\", \n \"name\" : \"Bob\" \n } \n ], \n \"paths\" : [ \n { \n \"edges\" : [ ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1293389257\", \n \"name\" : \"Alice\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1295093193\", \n \"_key\" : \"1295093193\", \n \"_rev\" : \"1295093193\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1293389257\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1294241225\", \n \"name\" : \"Eve\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1295093193\", \n \"_key\" : \"1295093193\", \n \"_rev\" : \"1295093193\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1295289801\", \n \"_key\" : \"1295289801\", \n \"_rev\" : \"1295289801\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1293389257\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1294241225\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1293585865\", \n \"name\" : \"Bob\" \n } \n ] \n } \n ] \n } \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal\n{\"startVertex\":\"persons/alice\",\"graphName\":\"knows_graph\",\"direction\":\"any\",\"strategy\":\"depthfirst\"}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : { \n \"visited\" : { \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1297714633\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1298566601\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1297911241\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1297714633\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1298173385\", \n \"name\" : \"Charlie\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1298369993\", \n \"name\" : \"Dave\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1297911241\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1298566601\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1297714633\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1298173385\", \n \"name\" : \"Charlie\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1298369993\", \n \"name\" : \"Dave\" \n } \n ], \n \"paths\" : [ \n { \n \"edges\" : [ ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1297714633\", \n \"name\" : \"Alice\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1299418569\", \n \"_key\" : \"1299418569\", \n \"_rev\" : \"1299418569\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1297714633\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1298566601\", \n \"name\" : \"Eve\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1299418569\", \n \"_key\" : \"1299418569\", \n \"_rev\" : \"1299418569\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1299615177\", \n \"_key\" : \"1299615177\", \n \"_rev\" : \"1299615177\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1297714633\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1298566601\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1297911241\", \n \"name\" : \"Bob\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1299418569\", \n \"_key\" : \"1299418569\", \n \"_rev\" : \"1299418569\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1299615177\", \n \"_key\" : \"1299615177\", \n \"_rev\" : \"1299615177\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1298828745\", \n \"_key\" : \"1298828745\", \n \"_rev\" : \"1298828745\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1297714633\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1298566601\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1297911241\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1297714633\", \n \"name\" : \"Alice\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1299418569\", \n \"_key\" : \"1299418569\", \n \"_rev\" : \"1299418569\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1299615177\", \n \"_key\" : \"1299615177\", \n \"_rev\" : \"1299615177\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1299025353\", \n \"_key\" : \"1299025353\", \n \"_rev\" : \"1299025353\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/charlie\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1297714633\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1298566601\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1297911241\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1298173385\", \n \"name\" : \"Charlie\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1299418569\", \n \"_key\" : \"1299418569\", \n \"_rev\" : \"1299418569\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1299615177\", \n \"_key\" : \"1299615177\", \n \"_rev\" : \"1299615177\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1299221961\", \n \"_key\" : \"1299221961\", \n \"_rev\" : \"1299221961\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/dave\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1297714633\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1298566601\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1297911241\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1298369993\", \n \"name\" : \"Dave\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1298828745\", \n \"_key\" : \"1298828745\", \n \"_rev\" : \"1298828745\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1297714633\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1297911241\", \n \"name\" : \"Bob\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1298828745\", \n \"_key\" : \"1298828745\", \n \"_rev\" : \"1298828745\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1299615177\", \n \"_key\" : \"1299615177\", \n \"_rev\" : \"1299615177\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1297714633\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1297911241\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1298566601\", \n \"name\" : \"Eve\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1298828745\", \n \"_key\" : \"1298828745\", \n \"_rev\" : \"1298828745\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1299615177\", \n \"_key\" : \"1299615177\", \n \"_rev\" : \"1299615177\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1299418569\", \n \"_key\" : \"1299418569\", \n \"_rev\" : \"1299418569\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1297714633\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1297911241\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1298566601\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1297714633\", \n \"name\" : \"Alice\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1298828745\", \n \"_key\" : \"1298828745\", \n \"_rev\" : \"1298828745\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1299025353\", \n \"_key\" : \"1299025353\", \n \"_rev\" : \"1299025353\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/charlie\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1297714633\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1297911241\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1298173385\", \n \"name\" : \"Charlie\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1298828745\", \n \"_key\" : \"1298828745\", \n \"_rev\" : \"1298828745\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1299221961\", \n \"_key\" : \"1299221961\", \n \"_rev\" : \"1299221961\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/dave\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1297714633\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1297911241\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1298369993\", \n \"name\" : \"Dave\" \n } \n ] \n } \n ] \n } \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal\n{\"startVertex\":\"persons/alice\",\"graphName\":\"knows_graph\",\"direction\":\"any\",\"order\":\"postorder\"}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : { \n \"visited\" : { \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1304071625\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1304530377\", \n \"name\" : \"Charlie\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1304726985\", \n \"name\" : \"Dave\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1304268233\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1304923593\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1304071625\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1304923593\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1304530377\", \n \"name\" : \"Charlie\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1304726985\", \n \"name\" : \"Dave\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1304268233\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1304071625\", \n \"name\" : \"Alice\" \n } \n ], \n \"paths\" : [ \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1305775561\", \n \"_key\" : \"1305775561\", \n \"_rev\" : \"1305775561\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1305972169\", \n \"_key\" : \"1305972169\", \n \"_rev\" : \"1305972169\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1305185737\", \n \"_key\" : \"1305185737\", \n \"_rev\" : \"1305185737\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1304071625\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1304923593\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1304268233\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1304071625\", \n \"name\" : \"Alice\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1305775561\", \n \"_key\" : \"1305775561\", \n \"_rev\" : \"1305775561\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1305972169\", \n \"_key\" : \"1305972169\", \n \"_rev\" : \"1305972169\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1305382345\", \n \"_key\" : \"1305382345\", \n \"_rev\" : \"1305382345\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/charlie\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1304071625\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1304923593\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1304268233\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1304530377\", \n \"name\" : \"Charlie\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1305775561\", \n \"_key\" : \"1305775561\", \n \"_rev\" : \"1305775561\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1305972169\", \n \"_key\" : \"1305972169\", \n \"_rev\" : \"1305972169\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1305578953\", \n \"_key\" : \"1305578953\", \n \"_rev\" : \"1305578953\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/dave\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1304071625\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1304923593\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1304268233\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1304726985\", \n \"name\" : \"Dave\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1305775561\", \n \"_key\" : \"1305775561\", \n \"_rev\" : \"1305775561\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1305972169\", \n \"_key\" : \"1305972169\", \n \"_rev\" : \"1305972169\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1304071625\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1304923593\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1304268233\", \n \"name\" : \"Bob\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1305775561\", \n \"_key\" : \"1305775561\", \n \"_rev\" : \"1305775561\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1304071625\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1304923593\", \n \"name\" : \"Eve\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1305185737\", \n \"_key\" : \"1305185737\", \n \"_rev\" : \"1305185737\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1305972169\", \n \"_key\" : \"1305972169\", \n \"_rev\" : \"1305972169\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1305775561\", \n \"_key\" : \"1305775561\", \n \"_rev\" : \"1305775561\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1304071625\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1304268233\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1304923593\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1304071625\", \n \"name\" : \"Alice\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1305185737\", \n \"_key\" : \"1305185737\", \n \"_rev\" : \"1305185737\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1305972169\", \n \"_key\" : \"1305972169\", \n \"_rev\" : \"1305972169\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1304071625\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1304268233\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1304923593\", \n \"name\" : \"Eve\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1305185737\", \n \"_key\" : \"1305185737\", \n \"_rev\" : \"1305185737\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1305382345\", \n \"_key\" : \"1305382345\", \n \"_rev\" : \"1305382345\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/charlie\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1304071625\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1304268233\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1304530377\", \n \"name\" : \"Charlie\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1305185737\", \n \"_key\" : \"1305185737\", \n \"_rev\" : \"1305185737\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1305578953\", \n \"_key\" : \"1305578953\", \n \"_rev\" : \"1305578953\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/dave\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1304071625\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1304268233\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1304726985\", \n \"name\" : \"Dave\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1305185737\", \n \"_key\" : \"1305185737\", \n \"_rev\" : \"1305185737\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1304071625\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1304268233\", \n \"name\" : \"Bob\" \n } \n ] \n }, \n { \n \"edges\" : [ ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1304071625\", \n \"name\" : \"Alice\" \n } \n ] \n } \n ] \n } \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal\n{\"startVertex\":\"persons/alice\",\"graphName\":\"knows_graph\",\"direction\":\"any\",\"itemOrder\":\"backward\"}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : { \n \"visited\" : { \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1310232009\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1310428617\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1310887369\", \n \"name\" : \"Dave\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1310690761\", \n \"name\" : \"Charlie\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1311083977\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1310232009\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1311083977\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1310428617\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1310887369\", \n \"name\" : \"Dave\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1310690761\", \n \"name\" : \"Charlie\" \n }, \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1310232009\", \n \"name\" : \"Alice\" \n } \n ], \n \"paths\" : [ \n { \n \"edges\" : [ ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1310232009\", \n \"name\" : \"Alice\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1311346121\", \n \"_key\" : \"1311346121\", \n \"_rev\" : \"1311346121\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1310232009\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1310428617\", \n \"name\" : \"Bob\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1311346121\", \n \"_key\" : \"1311346121\", \n \"_rev\" : \"1311346121\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1311739337\", \n \"_key\" : \"1311739337\", \n \"_rev\" : \"1311739337\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/dave\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1310232009\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1310428617\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1310887369\", \n \"name\" : \"Dave\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1311346121\", \n \"_key\" : \"1311346121\", \n \"_rev\" : \"1311346121\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1311542729\", \n \"_key\" : \"1311542729\", \n \"_rev\" : \"1311542729\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/charlie\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1310232009\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1310428617\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1310690761\", \n \"name\" : \"Charlie\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1311346121\", \n \"_key\" : \"1311346121\", \n \"_rev\" : \"1311346121\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1312132553\", \n \"_key\" : \"1312132553\", \n \"_rev\" : \"1312132553\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1310232009\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1310428617\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1311083977\", \n \"name\" : \"Eve\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1311346121\", \n \"_key\" : \"1311346121\", \n \"_rev\" : \"1311346121\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1312132553\", \n \"_key\" : \"1312132553\", \n \"_rev\" : \"1312132553\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1311935945\", \n \"_key\" : \"1311935945\", \n \"_rev\" : \"1311935945\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1310232009\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1310428617\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1311083977\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1310232009\", \n \"name\" : \"Alice\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1311935945\", \n \"_key\" : \"1311935945\", \n \"_rev\" : \"1311935945\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1310232009\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1311083977\", \n \"name\" : \"Eve\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1311935945\", \n \"_key\" : \"1311935945\", \n \"_rev\" : \"1311935945\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1312132553\", \n \"_key\" : \"1312132553\", \n \"_rev\" : \"1312132553\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1310232009\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1311083977\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1310428617\", \n \"name\" : \"Bob\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1311935945\", \n \"_key\" : \"1311935945\", \n \"_rev\" : \"1311935945\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1312132553\", \n \"_key\" : \"1312132553\", \n \"_rev\" : \"1312132553\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1311739337\", \n \"_key\" : \"1311739337\", \n \"_rev\" : \"1311739337\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/dave\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1310232009\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1311083977\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1310428617\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1310887369\", \n \"name\" : \"Dave\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1311935945\", \n \"_key\" : \"1311935945\", \n \"_rev\" : \"1311935945\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1312132553\", \n \"_key\" : \"1312132553\", \n \"_rev\" : \"1312132553\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1311542729\", \n \"_key\" : \"1311542729\", \n \"_rev\" : \"1311542729\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/charlie\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1310232009\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1311083977\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1310428617\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1310690761\", \n \"name\" : \"Charlie\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1311935945\", \n \"_key\" : \"1311935945\", \n \"_rev\" : \"1311935945\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1312132553\", \n \"_key\" : \"1312132553\", \n \"_rev\" : \"1312132553\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1311346121\", \n \"_key\" : \"1311346121\", \n \"_rev\" : \"1311346121\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1310232009\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1311083977\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1310428617\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1310232009\", \n \"name\" : \"Alice\" \n } \n ] \n } \n ] \n } \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal\n{\"startVertex\":\"persons/alice\",\"graphName\":\"knows_graph\",\"direction\":\"any\",\"uniqueness\":{\"vertices\":\"none\",\"edges\":\"global\"}}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"result\" : { \n \"visited\" : { \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1316589001\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1317440969\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1316785609\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1316589001\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1317047753\", \n \"name\" : \"Charlie\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1317244361\", \n \"name\" : \"Dave\" \n } \n ], \n \"paths\" : [ \n { \n \"edges\" : [ ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1316589001\", \n \"name\" : \"Alice\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1318292937\", \n \"_key\" : \"1318292937\", \n \"_rev\" : \"1318292937\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1316589001\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1317440969\", \n \"name\" : \"Eve\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1318292937\", \n \"_key\" : \"1318292937\", \n \"_rev\" : \"1318292937\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1318489545\", \n \"_key\" : \"1318489545\", \n \"_rev\" : \"1318489545\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1316589001\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1317440969\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1316785609\", \n \"name\" : \"Bob\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1318292937\", \n \"_key\" : \"1318292937\", \n \"_rev\" : \"1318292937\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1318489545\", \n \"_key\" : \"1318489545\", \n \"_rev\" : \"1318489545\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1317703113\", \n \"_key\" : \"1317703113\", \n \"_rev\" : \"1317703113\", \n \"_from\" : \"persons/alice\", \n \"_to\" : \"persons/bob\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1316589001\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1317440969\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1316785609\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1316589001\", \n \"name\" : \"Alice\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1318292937\", \n \"_key\" : \"1318292937\", \n \"_rev\" : \"1318292937\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1318489545\", \n \"_key\" : \"1318489545\", \n \"_rev\" : \"1318489545\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1317899721\", \n \"_key\" : \"1317899721\", \n \"_rev\" : \"1317899721\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/charlie\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1316589001\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1317440969\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1316785609\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/charlie\", \n \"_key\" : \"charlie\", \n \"_rev\" : \"1317047753\", \n \"name\" : \"Charlie\" \n } \n ] \n }, \n { \n \"edges\" : [ \n { \n \"_id\" : \"knows/1318292937\", \n \"_key\" : \"1318292937\", \n \"_rev\" : \"1318292937\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/alice\" \n }, \n { \n \"_id\" : \"knows/1318489545\", \n \"_key\" : \"1318489545\", \n \"_rev\" : \"1318489545\", \n \"_from\" : \"persons/eve\", \n \"_to\" : \"persons/bob\" \n }, \n { \n \"_id\" : \"knows/1318096329\", \n \"_key\" : \"1318096329\", \n \"_rev\" : \"1318096329\", \n \"_from\" : \"persons/bob\", \n \"_to\" : \"persons/dave\" \n } \n ], \n \"vertices\" : [ \n { \n \"_id\" : \"persons/alice\", \n \"_key\" : \"alice\", \n \"_rev\" : \"1316589001\", \n \"name\" : \"Alice\" \n }, \n { \n \"_id\" : \"persons/eve\", \n \"_key\" : \"eve\", \n \"_rev\" : \"1317440969\", \n \"name\" : \"Eve\" \n }, \n { \n \"_id\" : \"persons/bob\", \n \"_key\" : \"bob\", \n \"_rev\" : \"1316785609\", \n \"name\" : \"Bob\" \n }, \n { \n \"_id\" : \"persons/dave\", \n \"_key\" : \"dave\", \n \"_rev\" : \"1317244361\", \n \"name\" : \"Dave\" \n } \n ] \n } \n ] \n } \n }, \n \"error\" : false, \n \"code\" : 200 \n}\n
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/traversal\n{\"startVertex\":\"persons/alice\",\"graphName\":\"knows_graph\",\"direction\":\"any\",\"uniqueness\":{\"vertices\":\"none\",\"edges\":\"none\"},\"maxIterations\":5}\n\nHTTP/1.1 500 Internal Error\ncontent-type: application/json; charset=utf-8\n\n{ \n \"error\" : true, \n \"code\" : 500, \n \"errorNum\" : 1909, \n \"errorMessage\" : \"too many iterations\" \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/version\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"server\" : \"arango\", \n \"version\" : \"2.3.0-devel\" \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/version?details=true\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"server\" : \"arango\", \n \"version\" : \"2.3.0-devel\", \n \"details\" : { \n \"build-date\" : \"2014-10-02 15:22:34\", \n \"configure\" : \"'./configure' '--enable-all-in-one-icu' '--enable-maintainer-mode' '--enable-relative'\", \n \"icu-version\" : \"49.1.2\", \n \"libev-version\" : \"4.11\", \n \"openssl-version\" : \"OpenSSL 0.9.8za 5 Jun 2014\", \n \"repository-version\" : \"heads/devel-0-g5e7bbf3470e18b0391f8f3da42c7afa5fac91e20-dirty\", \n \"server-version\" : \"2.3.0-devel\", \n \"sizeof int\" : \"4\", \n \"sizeof void*\" : \"8\", \n \"v8-version\" : \"3.16.14\" \n } \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/version\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"server\" : \"arango\", \n \"version\" : \"2.3.0-beta2\" \n}\n
shell> curl --data-binary @- --dump - http://localhost:8529/_api/version?details=true\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"server\" : \"arango\", \n \"version\" : \"2.3.0-beta2\", \n \"details\" : { \n \"architecture\" : \"64bit\", \n \"build-date\" : \"2014-11-07 19:20:48\", \n \"configure\" : \"'./configure' '--enable-all-in-one-v8' '--enable-all-in-one-libev' '--enable-all-in-one-icu' '--enable-maintainer-mode' '--disable-mruby'\", \n \"icu-version\" : \"52.1\", \n \"libev-version\" : \"4.11\", \n \"maintainer-mode\" : \"true\", \n \"openssl-version\" : \"OpenSSL 0.9.8za 5 Jun 2014\", \n \"repository-version\" : \"heads/2.3-0-g39cc250436a6279e0aa28079b33fed95994cf9ff-dirty\", \n \"server-version\" : \"2.3.0-beta2\", \n \"sizeof int\" : \"4\", \n \"sizeof void*\" : \"8\", \n \"v8-version\" : \"3.16.14\" \n } \n}\n