Sorry Michael that was typing mistake, it is not working as desired, my requirement is *(p)-[r:MODIFY_TIME]->(m) *may not be there.
-Sukaant Chaudhary On Mon, Jan 13, 2014 at 12:53 PM, Michael Hunger < [email protected]> wrote: > the dash in here is wrong as the error message says > > Error: Invalid input '-': expected an identifier character, whitespace, > '?', relationship types, a length specification, a property map or ']' ( > line 4, column 14) "CREATE (n)-[s-:MODIFY_TIME]->(m) " > > [s-:MODIFY_TIME] should be [s:MODIFY_TIME] > > > > Am 13.01.2014 um 08:11 schrieb Sukaant Chaudhary < > [email protected]>: > > Please tell me about the following query whether it is correct to *delete > relation* and *create relation with updating fields*: > These are working fine seperately > > START n=node(9443), m=node(9440), p=node(1) > MATCH q=(p)-[r:MODIFY_TIME]->(m) > DELETE r > CREATE (n)-[s-:MODIFY_TIME]->(m) > SET m.changedDate = "13/01/14", m.changedTime = "10:00" > RETURN s; > > -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. > -- 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.
