Cater for collect() clause of nodes in cypher