问题
I am using neo4j javascript driver .need update query using post req when. Post req contains updated JSON data. Which I need to update to existing data using an update query
app.use('/api/companyDetails/edit', function (req, res, next) {
if (req.method === 'POST') {
console.log(req.body);
session
// query here
.then(function (result) {
console.log(result);
res.status(200).send({success: true, message: 'Data Updated Successfully'});
});
res.set('content-type', 'application/x-www-form-urlencoded');
res.status(200).send(JSON.stringify({success: true, message: 'Data Updated Successfully'}));
}
来源:https://stackoverflow.com/questions/54586299/neo4j-update-query-using-post-method