We're happy to announce that you can now do more within MongoDB queries and types inAzure Cosmos DB. With the latest service deployment, we have made the following improvements in MongoDB API in Azure Cosmos DB.
MongoDB aggregation pipeline support (preview)
Unique index support
MongoDB wire protocol version 5 support, used in MongoDB 3.4 (preview)