cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Help with query

fred
Node Link

Hi - I would like to return a node property (key and value) after I search for a term across all properties, I don’t know in which property I will find the term and I would like to do something with it after.

Here’s where I got so far:

match (n:demographic) 
with  n, keys(n) as k
with  k, n, [x in keys(n) WHERE n[ ] =~ 'NSSF .*'] as doesMatch
where size(doesMatch) > 0
return apoc.map.fromValues([doesMatch, <return values of the matched keys ONLY>])

thank you

1 REPLY 1

fred
Node Link

I go there myself:

unwind doesMatch as m
return m, n[m]