Mongo DB $Set not updating req.body
<pre><code>app.put('/accountlist/:id', function (req, res) {
    var id = req.params.id;

    console.log(req.body));
    db.accounts.findAndModify({
      query: {_id: mongojs.ObjectId(id)},
      update: {$set:req.body}},
      new: true}, function (err, doc) {
        res.json(doc);
      }
    );
  });
</code></pre>

<p>Any ideas why this is giving me a problem? Probably something simple.</p>