Cosmos DB mongo api unique keys

Assaf L 261 Reputation points
2022-12-01T12:05:38.287+00:00

Following up on this old thread
When creating a new mongo db cosmos collection there is no option for using unique keys as opposed to NoSql containers

Back than the feature was removed temporarily but hasn't returned since

Is it totally removed and replaced using unique indexes feature which is available using scripting only?

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,437 questions
0 comments No comments
{count} votes

Accepted answer
  1. GeethaThatipatri-MSFT 27,012 Reputation points Microsoft Employee
    2022-12-01T22:21:38.723+00:00

    Hi, @Assaf L Thanks for posting your question in the Microsoft Q&A forum.
    If I understand correctly you want to know when unique keys will be available for mongo db API
    We are very close to introducing a feature that removes the limitation requiring unique indexes to be created on empty collections. however, we do not have any ETA to share currently.
    Programmatically It's available now where you can refer Here

    Hope this will help. Please let us know if any further queries.
    Regards
    Geetha

    Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer.


0 additional answers

Sort by: Most helpful