neo4j update query using post method

回眸只為那壹抹淺笑 提交于 2020-01-06 06:57:31

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!