title: MongoDB - How to update a document with multi-level nesting
body: <p>This is my document：</p>
  <pre><code>{
    &quot;_id&quot;: NumberLong(861),
    &quot;Name&quot;: &quot;李四&quot;,
    &quot;Number&quot;: &quot;030404&quot;,
    &quot;Answers&quot;: {
      &quot;ModuleItems&quot;: [
        {
          &quot;ModuleType&quot;: NumberInt(1),
          &quot;AnswerListItems&quot;: [
            {
              &quot;ModuleItemId&quot;: &quot;111&quot;,
              &quot;SRUrl&quot;: &quot;https://file-public-ashermed.oss-cn-shanghai.aliyuncs.com/XXX.mp3&quot;,
              &quot;ModuleItemState&quot;: NumberInt(0),
              &quot;TestType&quot;: NumberInt(2),
              &quot;AnswerItems&quot;: [
                {
                  &quot;_id&quot;: &quot;222&quot;,
                  &quot;Answer&quot;: &quot;some questions1&quot;,
                  &quot;AnswerState&quot;: NumberInt(0)
                },     
              ]
            },
            {
              &quot;ModuleItemId&quot;: &quot;444&quot;,
              &quot;SRUrl&quot;: &quot;https://file-public-ashermed.oss-cn-shanghai.aliyuncs.com/XXXX.mp3&quot;,
              &quot;ModuleItemState&quot;: NumberInt(0),
              &quot;TestType&quot;: NumberInt(2),
              &quot;AnswerItems&quot;: [
                {
                  &quot;_id&quot;: &quot;666&quot;,
                  &quot;Answer&quot;: &quot;&quot;,
                  &quot;AnswerState&quot;: NumberInt(1)
                },            
              ]
            },     
          ],
          &quot;LastModuleItemId&quot;: &quot;666&quot;
        },
        {
          &quot;ModuleType&quot;: NumberInt(2),
          &quot;AnswerListItems&quot;: [],
          &quot;LastModuleItemId&quot;: &quot;2555&quot;
        },      
      ],
      &quot;TotalScore&quot;: &quot;79分&quot;
    },
    &quot;VisitRecordState&quot;: NumberInt(2),    
  }
  </code></pre>
  <p>My filters:</p>
  <blockquote>
  <p>&quot;_id&quot; : NumberLong(861),Answers.ModuleItems.ModuleType = NumberInt(1), ModuleItemId= 444</p>
  </blockquote>
  <p>I want to modify the SRUrl field of this document's elements which ModuleItemId equals 444.</p>