title: How to update a specific record by id in express js
body: <p>I would like to update a record by id .</p>
  
  <pre><code>functions.updateClassified = function (req, res) {
  
          loadSchema.findById(req.params.classified_id, function(err, bear) {
  
          if (err)
              res.send(err);
          else
             loadSchema.category = req.body.category;  
             loadSchema.save(function(err) {
              if (err)
                  res.send(err);
  
              res.json({ message: 'Classified updated!' });
          });
  
      });
  
  };
  </code></pre>