I have a node containing these property names: "name"
, "A"
, "B"
, "C"
, ..., "ZA"
, "ZB"
, "ZC"
,...
(That is, using the query match (x) where x.name="a" return keys(x)
will return the result ["name", "A", "B", "C", ..., "ZA", "ZB", "ZC", ...]
).
I want to return all properties whose names start with "Z"
match (x) where x.name="a" return x.ZA, x.ZB, x.ZC, ...
But since each node has a different number of Z*
properties, I need a way to not specify the properties when returning.
Is there a way to do so? I read the manual for WHERE
, RETURN
and Filtering Query Results but there is nothing useful.
(This question is also asked on Stack Overflow)