MATCH (n:User), (m:UserTime) WHERE ID(n) - 2 AND ID(m) = 11680 MERGE n-[r:ACCEPT_TIME]->m RETURN r
G: neubauer.peter S: peter.neubauer P: +46 704 106975 L: http://www.linkedin.com/in/neubauer T: @peterneubauer Neo4j 2.0.0 - (graphs)-[:FOR]->(everyone) Kids LAN creative party in Malmö - Kidscraft ICE On Thu, Jan 16, 2014 at 1:12 PM, Sukaant Chaudhary <[email protected]> wrote: > Hi, > I want to add relation between two nodes for that following query is working > fine. > > START n=node(2), m=node(11680) > CREATE n-[r:ACCEPT_TIME]->m > RETURN r > > But I want to try following query, it is not working, please help me with > the required changes on the following query > > MATCH (n:User{node:2}), (m:UserTime{node:11680}) > MERGE n-[r:ACCEPT_TIME]->m > RETURN r > > > -Sukaant Chaudhary > > -- > 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.
