neo4j使用发布方法更新查询

时间:2019-02-08 05:09:39

标签: neo4j

我正在使用neo4j javascript驱动程序。需要时使用post req更新查询。发布要求包含更新的JSON数据。我需要使用更新查询将其更新为现有数据

   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'}));

     }

0 个答案:

没有答案
相关问题