Re: [Neo4j] Re: Please help me to modify the query

2014-09-16 Thread Sukaant Chaudhary
Thanks Michael, it was very helpful. -Sukaant Chaudhary On Wed, Sep 17, 2014 at 12:46 AM, Michael Hunger < michael.hun...@neotechnology.com> wrote: > for get-or-create operations best use merge both for nodes and rels. > > MATCH (activity

Re: [Neo4j] Re: Please help me to modify the query

2014-09-16 Thread Michael Hunger
for get-or-create operations best use merge both for nodes and rels. MATCH (activity:Activity {activity:"Walking"}), (gender:Gender {gender:"female}) MERGE (activity)<-[rel:HAS_ACTIVITY]-(gender) ON CREATE SET rel.count = 0 ON MATCH SET rel.count = rel.count + 1 or MATCH (activity:Activity {activ

[Neo4j] Re: Please help me to modify the query

2014-09-16 Thread Sukaant Chaudhary
Please help me -Sukaant Chaudhary On Tue, Sep 16, 2014 at 3:58 PM, Sukaant Chaudhary < sukaant.chaudh...@gmail.com> wrote: > Someone please help me > > -Sukaant Chaudhary > > > On

[Neo4j] Re: Please help me to modify the query

2014-09-16 Thread Sukaant Chaudhary
Someone please help me -Sukaant Chaudhary On Tue, Sep 16, 2014 at 1:31 PM, Sukaant Chaudhary < sukaant.chaudh...@gmail.com> wrote: > Hi, > I've two types of nodes *Gender* and *Activity* > Gender will be male or female > > Activity node w