title: Insertion into array in mongo not happening?
body: <p>I am new to MongoDb, and I have a question about the insertion of data. My mongoose schema for 'user' collection:</p>
  
  <pre><code>var user = new mongoose.Schema({
  
    username : {type: String},
    email    : {type: String,index: {unique: true}},
    password : {type: String},
    feed     : [{
                  title       : {type: String},
                  description : {type: String},
                  latitude    : {type:Number},
                  longitude   : {type:Number},
                  feedImages  : [{
                                  imageUrl: {type: String}
                                }]
               }]
  });
  </code></pre>
  
  <p>I want to insert data to the feedimages and my service for that is:</p>
  
  <pre><code>app.post('/uploadFeedImage',function(req,res) {
      var _id         = req.body._id;
      var imageUrl    = req.body.imageUrl;
      db.user.update(
          {"feed._id":_id },
          {$push : {
              feedImages:{
                  imageUrl:imageUrl
              }
          }
          },function (err,result) {
              if (err) {
                  res.json({"success": '0', "message": "Error adding data"});
              }
              else {
                  res.json({"success": '1', "message": "Data added"});
              }
          });
  });
  </code></pre>
  
  <p>But the data is not inserted into table and no error is shown, I don't know what is the problem.</p>
  
  <p>My user table is shown below:</p>
  
  <p><a href="https://i.stack.imgur.com/Z0S3T.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Z0S3T.png" alt="TABLE"></a></p>