title: MongoDB findAndModify element in array
body: <p>I have the data like below:</p>
  
  <pre><code>{
  info:{
      id:0000,
      name:"Iot name",
      vendor:"some vendor",
  },
  location:[
      {
          lat:0,
          lng:0,
          status:3,
          locID:"uniqueID0"
      },{
          lat:1,
          lng:1,
          status:0,
          locID:"uniqueID1"
      },{
          lat:2,
          lng:2,
          status:1,
          locID:"uniqueID2"
      }
  ]}
  </code></pre>
  
  <p>Need example like <strong>findAndModify</strong> or something else similar, to find
  in the iots collection, location with a unique ID and change his status.</p>
  
  <p>e.g Find in collection <strong>iot</strong>, element with <strong>id</strong>=<strong>0000</strong> and location with <strong>locID</strong>="<strong>uniqueID1</strong>" and set status for that location into 2 </p>
  
  <p>Thanks in advance</p>