Skip to content

Commit 48916bd

Browse files
authored
Add graph.propertiesByName query example that selects subset of graphs (#555)
#543
1 parent 0e35ec0 commit 48916bd

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

modules/ROOT/pages/functions/graph.adoc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,22 @@ Properties for all graphs on the current composite database are returned.
8989
9090
|===
9191
92+
.Query
93+
[source, cypher, indent=0]
94+
----
95+
UNWIND graph.names() AS name
96+
WITH name, graph.propertiesByName(name) AS props
97+
WHERE "A" IN props.tags
98+
CALL {
99+
USE graph.byName(name)
100+
MATCH (n)
101+
RETURN n
102+
}
103+
RETURN n
104+
----
105+
106+
Returns all nodes from a subset of graphs that have a `tags` property containing `"A"`.
107+
92108
======
93109

94110
[[functions-graph-byname]]

0 commit comments

Comments
 (0)