Ich möchte diejenigen Knoten, deren Namen nicht in der Sammlung von a_row + b_row
sind. Zum Beispiel: a_row
ist mit b,c
und nach b_row
mit a_row
jetzt b_row
Kombinieren mit b,c,e
und entity.name
ist mit a,b,c,d
. Also ich will die Ausgabe a,d
in Form von Knoten nicht in der Listenform.Get Nodes, die nicht sammeln
match (a)-[r:relations]->(b) with collect(distinct a.FirstName) as a_row
match (a)-[r:relations]->(b) with a_row + collect(distinct b.LastName) as b_row
match (n:entity) with b_row where n.name <> b_row return n
Vielen Dank im Voraus, lassen Sie mich wissen, wenn weitere Informationen benötigt werden.
Nein, das wird nicht funktionieren. Vielen Dank! – Tg0206