You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Various queries in the Cypher Quick Reference are formatted differently.
I wasn't sure which way is preferable, so i did not change anything, but
it's something to keep in mind during a review
---------
Co-authored-by: Jens Pryce-Åklundh <[email protected]>
Copy file name to clipboardExpand all lines: modules/ROOT/pages/functions/graph.adoc
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,10 +34,12 @@ CREATE ALIAS composite.third FOR DATABASE dbc;
34
34
----
35
35
36
36
.Query
37
+
// tag::functions_graph_names[]
37
38
[source, cypher, indent=0]
38
39
----
39
40
RETURN graph.names() AS name
40
41
----
42
+
// end::functions_graph_names[]
41
43
42
44
The names of all graphs on the current composite database are returned.
43
45
@@ -91,11 +93,13 @@ CREATE ALIAS composite.third FOR DATABASE dbc
91
93
----
92
94
93
95
.Query
96
+
// tag::functions_graph_properties_by_name[]
94
97
[source, cypher, indent=0]
95
98
----
96
99
UNWIND graph.names() AS name
97
100
RETURN name, graph.propertiesByName(name) AS props
98
101
----
102
+
// end::functions_graph_properties_by_name[]
99
103
100
104
Properties for all graphs on the current composite database are returned.
101
105
@@ -150,7 +154,8 @@ For more information, see xref:subqueries/call-subquery.adoc#import-variables[CA
150
154
======
151
155
152
156
.Query
153
-
[source, cypher, indent=0]
157
+
// tag::functions_graph_by_name[]
158
+
[source, cypher, role=noplay]
154
159
----
155
160
UNWIND graph.names() AS graphName
156
161
CALL () {
@@ -160,6 +165,7 @@ CALL () {
160
165
}
161
166
RETURN n
162
167
----
168
+
// end::functions_graph_by_name[]
163
169
164
170
Returns all nodes from all graphs on the current composite database.
165
171
@@ -189,10 +195,12 @@ Returns all nodes from all graphs on the current composite database.
189
195
In this example, it is assumed that the DBMS contains a composite database constituent, which contains the element id `4:c0a65d96-4993-4b0c-b036-e7ebd9174905:0`.
190
196
191
197
.Query
198
+
// tag::functions_graph_by_element_id[]
192
199
[source, cypher, role=test-skip]
193
200
----
194
201
USE graph.byElementId("4:c0a65d96-4993-4b0c-b036-e7ebd9174905:0")
0 commit comments