Help with query

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

I go there myself:

unwind doesMatch as m
return m, n[m]

:slight_smile: