title: Unable to update multi level nested document using mongoose
body: <p>I need to update the the verified field of a specific number in the phone array inside address array of a user document.
  I used aggregate <a href="https://mongoosejs.com/docs/api/aggregate.html#aggregate_Aggregate" rel="nofollow noreferrer">https://mongoosejs.com/docs/api/aggregate.html#aggregate_Aggregate</a> function when I want to fetch verified phone number data based on based on address.
  Now I when I am trying to update, I am not sure how to get it done.</p>
  
  <p>I am new to mongodb and mongoose. Can anyone suggest me how do I get over my problem? </p>
  
  <p>My mongo Schema looks like:</p>
  
  <pre><code>User:{
      name:String,
      age:Number,
      address:[
          {
              address_line_one:String,
              city:String,
              phone:[
                  {
                      number:String,
                      verified:Boolean
                  }
              ]
          }
      ]
  }
  </code></pre>