Hi Team,
I am learner and i am trying for query which will get only those nodes who don't have any relationship at all ,
Can anyone please help me in that.
Thanks
Mayur
Hi Team,
I am learner and i am trying for query which will get only those nodes who don't have any relationship at all ,
Can anyone please help me in that.
Thanks
Mayur
Try this:
Match(n)
where not exists ( (n)—() )
return n
Thanks @glilienfield after putting that query in Neo4j it was throwing syntax error after looking closely observed that big hypen is nothing but two hypens (--)
Match(n:Lineage)
where not exists ( (n)--() ) return n
Sorry, I did it on my iPhone, which must have converted it to a long dash. Glad you figured it out.
Yup thanks for the help @glilienfield