this should also work, please compare the performance and report back: > match (n) WHERE NOT (n)--() return n;
Am 17.12.2013 um 09:05 schrieb Chris Vest <[email protected]>: > I don’t know if there’s a better way, but this works: > > match (n) optional match (n)--(m) with n, m where m is null return n; > > -- > Chris Vest > [ skype: mr.chrisvest, twitter: chvest ] > > > On 17 Dec 2013, at 05:50, mesteruh mesteruh <[email protected]> wrote: > >> I have two nodes. Country and City. >> match (a)-[r]->(b) return b show all nodes with relations. I want make match >> (a)-[r]!->(b) define nodes:City without relations. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Neo4j" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/groups/opt_out. > > > -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
