title: How to update an array within a object in mongodb
body: <p>im trying to update an array inside an object but i didnt find the right way to do this.
  my document looks like this:</p>
  <p>{
  &quot;_id&quot; : ObjectId(&quot;62792b4a0c9c5a00b6a8e17b&quot;),
  &quot;username&quot; : &quot;user_1&quot;,
  &quot;words&quot; : [
  {
  &quot;word&quot; : &quot;RATIONAL&quot;,
  &quot;subwords&quot; : [
  &quot;RAT&quot;,
  &quot;TAN&quot;
  ]
  },
  {
  &quot;word&quot; : &quot;YOUNGER&quot;,
  &quot;subwords&quot; : [
  &quot;YOU&quot;,
  &quot;YOUR&quot;
  ]
  }
  ]
  }</p>
  <p>i want to push to subwords array with a specific word for example i want to push &quot;AT&quot; to the subwords of &quot;RATIONAL&quot;
  thanks for the help :)</p>