HI Richely,
Thanks i finally got it. There was another error. Here below is the
working code.
//link bus stop to another bus stop give the properties as time and distance
router.post('/busstop/busstop/add', function (req, res) {
var bus_stopname1 = req.body.busstop_name1;
var bus_stopname = req.body.busstop_name;
var cost = req.body.cost;
session
.run('MERGE (a:Bstop {bus_stopname1:{bus_stopname1Param}}) MERGE (b:Bstop
{bus_stopname:{bus_stopnameParam}}) MERGE(b)-[r:FEES
{cost:{costParam}}]-(a) RETURN a,b ', { costParam:cost,bus_stopname1Param:
bus_stopname1, 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 [email protected].
For more options, visit https://groups.google.com/d/optout.