Update model with Mongoose, Express, NodeJS

后端 未结 5 2168
一向
一向 2020-12-23 22:15

I\'m trying to update an instantiated model (\'Place\' - I know it works from other routes) in a MongoDB and have spent a while trying to properly do so. I\'m also trying t

5条回答
  •  感动是毒
    2020-12-23 22:38

    I think your problem is that you are using node 0.4.0 - try moving to 0.2.6 with an it should work. There is an issue logged on github with the bodyDecoder not populating the req.body.variable field in node >= 0.3.0.

提交回复
热议问题