1
0
Fork 0

Doc - clarify WITH for cluster traversal (#5542)

This commit is contained in:
maxkernbach 2018-06-18 10:54:44 +02:00 committed by sleto-it
parent 7538277fb6
commit 0cc6fa40d9
1 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ There are two slightly different syntaxes for traversals in AQL, one for
### Working with named graphs ### Working with named graphs
``` ```
[WITH collection1[, collection2[, ...collectionN]]] [WITH vertexCollection1[, vertexCollection2[, ...vertexCollectionN]]]
FOR vertex[, edge[, path]] FOR vertex[, edge[, path]]
IN [min[..max]] IN [min[..max]]
OUTBOUND|INBOUND|ANY startVertex OUTBOUND|INBOUND|ANY startVertex
@ -21,7 +21,7 @@ FOR vertex[, edge[, path]]
``` ```
- `WITH`: optional for single server instances, but required for - `WITH`: optional for single server instances, but required for
[graph traversals in a cluster](#graph-traversals-in-a-cluster). [graph traversals in a cluster](#graph-traversals-in-a-cluster).
- **collections** (collection, *repeatable*): list of collections that will - **collections** (collection, *repeatable*): list of vertex collections that will
be involved in the traversal be involved in the traversal
- `FOR`: emits up to three variables: - `FOR`: emits up to three variables:
- **vertex** (object): the current vertex in a traversal - **vertex** (object): the current vertex in a traversal
@ -74,7 +74,7 @@ FOR vertex[, edge[, path]]
### Working with collection sets ### Working with collection sets
``` ```
[WITH collection1[, collection2[, ...collectionN]]] [WITH vertexCollection1[, vertexCollection2[, ...vertexCollectionN]]]
FOR vertex[, edge[, path]] FOR vertex[, edge[, path]]
IN [min[..max]] IN [min[..max]]
OUTBOUND|INBOUND|ANY startVertex OUTBOUND|INBOUND|ANY startVertex