Return node with properties and exclude some of them via Cypher

match (n:A) 
with keys(n) as k1, n 
unwind k1 as k2
with n,  k2 where k2 <> "prop4"
return k2 as Prop,  n[k2] as value

This will give you the desired result.
3 Likes