I want to accumulate node attributes only if it exists.
I am running the following query -
node = select p from some_node:p - (ANY:rel) - :other
ACCUM @@result += (“Level” -> other.level);
But it might be possible that the some of the other nodes(neighbor nodes) might not have level as an attribute, in that case, the above query skips it whereas i want to store it as None.
So, is there any way to check the existence of an attribute? So that I will accumulate the node value only when the attribute exists otherwise value “None” will be accumulated.