Creating unique index for CosmosDB with MongoDB API fails
I'm using Azure CosmosDB with the MongoDB API. I'm trying to execute the following: db.createCollection('test') db.test.createIndex({key: 1}, {name: 'key_1', unique: true}) However, doing so fails with the following error: The unique index cannot be modified. To change the unique index,…