title: Mongoose, findByIdAndUpdate, Update all except one?
body: <p>I could not understand, but when a User is created, date means the date of account creation. But when a User updates their information, the 'Date' is updating too. What am I doing wrong?  </p>
  
  <p>My model:</p>
  
  <pre><code>var userinfoSchema = new mongoose.Schema({
      type_        : String,
      firstname    : String,
      surname      : String,
      organization : String,
      name         : String,
      person_role  : String,
      members_num  : Number,
      address      : String,
      postal_code  : String,
      city         : String,
      country      : String, 
      tel          : String,
      date: { type: Date, default: Date.now }
  });
  
  var UserSchema = new mongoose.Schema({
      username: String,
      password: String,
      userinfo: [userinfoSchema]
  });
  </code></pre>
  
  <p>And my app function:</p>
  
  <pre><code>app.put("/Edit/:id", function(req,res) {
      User.findByIdAndUpdate(req.params.id, {$set: { userinfo: req.body.userinfo}}, 
      function(err, updated) {
          if(err) {
              res.redirect('/Edit');
          } else {
              console.log(updated);
              res.redirect('/Profil');
          }
      });
  });  
  </code></pre>