Your cypher is not a valid Cypher statement. You have to have a mode at both ends of the relationship. You also aren’t closing the square brackets inside the relationship. I recommend you work out the correct syntax in the cypher browser then put it back into the program
Sent from my iPhone > On Aug 25, 2018, at 14:26, Micheal Nayebare <micheal.nayeb...@gmail.com> > wrote: > > //link bus stop to another bus stop give the properties as time and distance > router.post('/busstop/busstop/add', function (req, res) { > var bus_stopname = req.body.busstop_name; > var bus_stopname1 = req.body.busstop_name1; > var cost = req.body.cost; > > session > .run('MATCH(a:Bstop {bus_stopname1:{bus_stopname1Param}}), (b:Bstop > {bus_stopname:{bus_stopnameParam}}) MERGE(b)-[r:COST{cost:{costParam}}) > RETURN a,b ', {costParam: cost bus_stopnameParam: bus_stopname, > bus_stopnameParam: bus_stopname }) > .then(function (result) { > res.redirect('/') > session.close() > }) > > .catch(function (err) { > console.log(err) > }); > }) > -- > 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 neo4j+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- 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 neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.