title: set dynamic keys on update mongodb
body: <p>I have mongoDB <code>companies</code> collection</p>
  
  <pre><code>c00:
      {
          _id: c00,
          name: 'acme',
          results: [
              0: { _id: 'a10', name: 'foo', visible: true },
              1: { _id: 'a11', name: 'bar', visible: false }
          ],
      },
  c01:
      {
          _id: c01,
          name: 'apra'
          results: [
              0: { _id: 'b10', name: 'foo', visible: false },
              1: { _id: 'b11', name: 'bar', visible: true },
              2: { _id: 'b12', name: 'qux', visible: true },
          ]
      }
  }
  </code></pre>
  
  <p>I need query that modify</p>
  
  <p><code>company.c01.results</code> with resultId === 'b11'`</p>
  
  <p>to</p>
  
  <p><code>{ _id: 'b11', name: 'bar', visible: false }</code></p>
  
  <p>I have tried</p>
  
  <pre><code>  CompanyModel
      .update(
        { [`${companyId}.results`]: resultsId },
        {
          $set: { ['results.$.visible']: false },
        }
      )
  </code></pre>
  
  <p>but this didn't work.<br>
  Any help will be appreciated</p>