title: Indexing on nested field in Azure Cosmos DB
body: <p>I want to create an index on a nested field in a document in Azure Cosmos DB. E.g. if I have the following schema:</p>
  
  <pre><code>{ 
      'id': 1, 
      'nested': 
          { 
              'mode': 'mode1',
              'text': 'nice text' 
          } 
  }
  </code></pre>
  
  <p>I want to create an index on the field <code>nested.mode</code>. How can this be done?</p>