@@ -349,7 +349,7 @@ Proposed syntax changes
349
349
350
350
== Examples
351
351
352
- Example 1
352
+ === A template for a multiple graph pipeline
353
353
[source, cypher]
354
354
----
355
355
// Query input signature: Records with fields 'a', 'b' and two graphs 'g1', 'g2'
@@ -367,15 +367,17 @@ INTO NEW GRAPH result AT 'graph://...'
367
367
RETURN a, b GRAPHS result, g1, g2
368
368
----
369
369
370
- Example 2
370
+ === A template for pipelining and interleaving queries
371
+
371
372
[source, cypher]
372
373
----
373
374
WITH a, b GRAPHS g1, g2 ... // First query
374
375
WITH GRAPHS g3, g4 ... // Second query over first query
375
376
RETURN c, d GRAPHS g5 // Third query over second query over first query
376
377
----
377
378
378
- Example 3
379
+ === Creating and returning a new graph and columns: a simple example
380
+
379
381
[source, cypher]
380
382
----
381
383
FROM GRAPH persons AT 'graph://...'
@@ -389,7 +391,8 @@ FROM -
389
391
RETURN c.name AS city, count(r) AS num_friends GRAPHS berlin, santiago
390
392
----
391
393
392
- Example 4
394
+ === Creating a new graph, switching contexts and returning a graph
395
+
393
396
[source, cypher]
394
397
----
395
398
// Set scope to whole social network ...
@@ -413,7 +416,8 @@ RETURN a.name, b.name, count(e) AS cnt
413
416
GRAPHS recommendations
414
417
----
415
418
416
- Example 5
419
+ === Using a pipeline of temporary graphs to process and return a subgraph
420
+
417
421
[source, cypher]
418
422
----
419
423
// Set scope to the whole social network ...
@@ -442,7 +446,8 @@ INTO NEW GRAPH rollup {
442
446
RETURN GRAPHS rollup
443
447
----
444
448
445
- Example 5
449
+ === A more complex pipeline: using and materializing multiple graphs
450
+
446
451
[source, cypher]
447
452
----
448
453
// Set scope to the whole social network ...
0 commit comments