@@ -85,28 +85,28 @@ The query only has read clauses, so the state of the graph remains unchanged and
8585MATCH (john:Person {name: 'John'})
8686----
8787|
88- [options="header",cols="1 "]
88+ [options="header",cols="1m "]
8989!===
9090! john
91- ! ({name: 'John'})
91+ ! (:Person {name: 'John'})
9292!===
9393
9494| ----
9595MATCH (john)-[:FRIEND]->(friend)
9696----
9797|
98- [options="header",cols="1, 1 "]
98+ [options="header",cols="1m, 1m "]
9999!===
100100! john ! friend
101- ! ({name: 'John'}) ! ({name: 'Sara'})
102- ! ({name: 'John'}) ! ({name: 'Joe'})
101+ ! (:Person {name: 'John'}) ! (:Person {name: 'Sara'})
102+ ! (:Person {name: 'John'}) ! (:Person {name: 'Joe'})
103103!===
104104
105105| ----
106106RETURN friend.name AS friendName
107107----
108108|
109- [options="header",cols="1 "]
109+ [options="header",cols="1m "]
110110!===
111111! friendName
112112! 'Sara'
@@ -157,11 +157,11 @@ and for each such node it creates another node with the `name` property set to
157157MATCH (j:Person) WHERE j.name STARTS WITH "J"
158158----
159159|
160- [options="header",cols="1 "]
160+ [options="header",cols="1m "]
161161!===
162162! j
163- ! ({name: 'John'})
164- ! ({name: 'Joe'})
163+ ! (:Person {name: 'John'})
164+ ! (:Person {name: 'Joe'})
165165!===
166166|
167167[graphviz]
@@ -215,11 +215,11 @@ label = "{Person\|name = \'Maria\'\l}"
215215CREATE (j)-[:FRIEND]->(jj:Person {name: "Jay-jay"})
216216----
217217|
218- [options="header",cols="1, 1 "]
218+ [options="header",cols="1m, 1m "]
219219!===
220220! j ! jj
221- ! ({name: 'John'}) ! ({name: 'Jay-jay'})
222- ! ({name: 'Joe'}) ! ({name: 'Jay-jay'})
221+ ! (:Person {name: 'John'}) ! (:Person {name: 'Jay-jay'})
222+ ! (:Person {name: 'Joe'}) ! (:Person {name: 'Jay-jay'})
223223!===
224224|
225225
@@ -327,10 +327,10 @@ RETURN count(*) AS count
327327CREATE (jj:Person {name: "Jay-jay"})
328328----
329329|
330- [options="header",cols="1 "]
330+ [options="header",cols="1m "]
331331!===
332332! jj
333- ! ({name: 'Jay-jay'})
333+ ! (:Person {name: 'Jay-jay'})
334334!===
335335|
336336
@@ -383,7 +383,7 @@ label = "{Person\|name = \'Jay-jay\'\l}"
383383RETURN count(*) AS count
384384----
385385|
386- [options="header",cols="1 "]
386+ [options="header",cols="1m "]
387387!===
388388! count
389389! 1
@@ -437,12 +437,12 @@ label = "{Person\|name = \'Jay-jay\'\l}"
437437MATCH (j:Person) WHERE j.name STARTS WITH "J"
438438----
439439|
440- [options="header",cols="1 "]
440+ [options="header",cols="1m "]
441441!===
442442! j
443- ! ({name: 'John'})
444- ! ({name: 'Joe'})
445- ! ({name: 'Jay-jay'})
443+ ! (:Person {name: 'John'})
444+ ! (:Person {name: 'Joe'})
445+ ! (:Person {name: 'Jay-jay'})
446446!===
447447|
448448[graphviz]
@@ -498,7 +498,7 @@ label = "{Person\|name = \'Jay-jay\'\l}"
498498RETURN count(*) AS count
499499----
500500|
501- [options="header",cols="1 "]
501+ [options="header",cols="1m "]
502502!===
503503! count
504504! 3
@@ -566,11 +566,11 @@ The different invocations of the subquery are executed in turn, in the order of
566566
567567Later invocations of the subquery can observe writes made by earlier invocations of the subquery.
568568
569- .Table of intermediate results and state of the graph in a query qith `CALL {}`
569+ .Table of intermediate results and state of the graph in a query with `CALL {}`
570570======
571571Using the same example graph as above, this example shows the table of intermediate results and the state of the graph after each clause for the following query:
572572
573- [source,cypher, indent=0 ]
573+ [source,cypher]
574574----
575575MATCH (john:Person {name: 'John'})
576576SET john.friends = []
@@ -595,10 +595,10 @@ CALL {
595595MATCH (john:Person {name: 'John'})
596596----
597597|
598- [options="header",cols="1, 1 "]
598+ [options="header",cols="1m "]
599599!===
600600! john
601- ! ({name: 'John'})
601+ ! (:Person {name: 'John'})
602602!===
603603|
604604[graphviz]
@@ -654,10 +654,10 @@ label = "{Person\|name = \'Maria\'\l}"
654654SET john.friends = []
655655----
656656|
657- [options="header",cols="1, 1 "]
657+ [options="header",cols="1m "]
658658!===
659659! john
660- ! ({name: 'John', friends: []})
660+ ! (:Person {name: 'John', friends: []})
661661!===
662662|
663663[graphviz]
@@ -702,11 +702,11 @@ label = "{Person\|name = \'Maria\'\l}"
702702MATCH (john)-[:FRIEND]->(friend)
703703----
704704|
705- [options="header",cols="1, 1 "]
705+ [options="header",cols="1m, 1m "]
706706!===
707707! john ! friend
708- ! ({name: 'John', friends: []}) ! ({name: 'Sara'})
709- ! ({name: 'John', friends: []}) ! ({name: 'Joe'})
708+ ! (:Person {name: 'John', friends: []}) ! (:Person {name: 'Sara'})
709+ ! (:Person {name: 'John', friends: []}) ! (:Person {name: 'Joe'})
710710!===
711711|
712712[graphviz]
@@ -757,10 +757,10 @@ label = "{Person\|name = \'Maria\'\l}"
757757WITH *, john.friends AS friends
758758----
759759|
760- [options="header",cols="2, 1, 1 "]
760+ [options="header",cols="2m, 1m, 1m "]
761761!===
762762! john ! friend ! friends
763- ! ({name: 'John', friends: []}) ! ({name: 'Sara'}) ! []
763+ ! (:Person {name: 'John', friends: []}) ! (:Person {name: 'Sara'}) ! []
764764!===
765765|
766766[graphviz]
@@ -803,10 +803,10 @@ label = "{Person\|name = \'Maria\'\l}"
803803SET john.friends = friends + friend.name
804804----
805805
806- |[options="header",cols="2, 1, 1 "]
806+ |[options="header",cols="2m, 1m, 1m "]
807807!===
808808! john ! friend ! friends
809- ! ({name: 'John', friends: ['Sara']}) ! ({name: 'Sara'}) ! []
809+ ! (:Person {name: 'John', friends: ['Sara']}) ! (:Person {name: 'Sara'}) ! []
810810!===
811811|
812812[graphviz]
@@ -851,10 +851,10 @@ label = "{Person\|name = \'Maria\'\l}"
851851WITH *, john.friends AS friends
852852----
853853|
854- [options="header",cols="2, 1, 1 "]
854+ [options="header",cols="2m, 1m, 1m "]
855855!===
856856! john ! friend ! friends
857- ! ({name: 'John', friends: ['Sara']}) ! ({name: 'Joe'}) ! ['Sara']
857+ ! (:Person {name: 'John', friends: ['Sara']}) ! (:Person {name: 'Joe'}) ! ['Sara']
858858!===
859859|
860860[graphviz]
@@ -897,10 +897,10 @@ label = "{Person\|name = \'Maria\'\l}"
897897SET john.friends = friends + friend.name
898898----
899899
900- |[options="header",cols="2, 1, 1 "]
900+ |[options="header",cols="2m, 1m, 1m "]
901901!===
902902! john ! friend ! friends
903- ! ({name: 'John', friends: ['Sara', 'Joe']}) ! ({name: 'Joe'}) ! ['Sara']
903+ ! (:Person {name: 'John', friends: ['Sara', 'Joe']}) ! (:Person {name: 'Joe'}) ! ['Sara']
904904!===
905905|
906906[graphviz]
@@ -958,4 +958,4 @@ This is called xref::execution-plans/index.adoc#eagerness-laziness[lazy evaluati
958958It only materializes intermediate results when needed.
959959In many read-write queries it is unproblematic to execute clauses interleaved, but when it is not,
960960Cypher must ensure that the table of intermediate results gets materialized at the right time(s).
961- This is done by inserting an xref::execution-plans/operators.adoc#query-plan-eager[`Eager`] operator into the execution plan.
961+ This is done by inserting an xref::execution-plans/operators.adoc#query-plan-eager[`Eager`] operator into the execution plan.
0 commit comments