title: MongoDB document update array element using findOneAndUpdate method in Java
body: <p>Can someone look at this issue as we are not able to insert the array in the field 'd' as shown in the image below:</p>
  <p>[![JSON Structure in MongoDB][1]][1]</p>
  <pre><code>{
    &quot;id&quot;: 12,
    &quot;articles&quot;: &quot;art&quot;,
    &quot;author&quot;: &quot;author&quot;
  }
  </code></pre>