Skip to main content

General availability: Unique partial indexes in Azure Cosmos DB API for MongoDB

Published date: April 27, 2022

The unique partial indexes feature allows you more flexibility to specify exactly which fields in which documents you’d like to index, all while enforcing uniqueness of that field’s value. This feature is used by specifying a partialFilterExpression when creating the index along with a 'unique' constraint in your Azure Cosmos DB API for MongoDB index. This results in the unique constraint being applied only to the documents that meet the specified filter expression. 

Learn more

  • Azure Cosmos DB
  • Features

Related Products