6

I'm trying to figure out what version of MongoDB is used by CosmosDB?

Tried checking out azure cosmosdb portal for more information but there is no specific version mentioned on it.

Stennie
  • 63,885
  • 14
  • 149
  • 175
Dev3100
  • 83
  • 1
  • 9
  • 4
    CosmoDB is not MongoDB. So your question doesn't make sense. –  Mar 26 '19 at 17:58
  • 2
    @Rthomas529 I understand that now. Also, there is no harm in asking a question. If I knew it before hand I wouldn't have posted a question at first place. Thanks for your help though! – Dev3100 Apr 24 '19 at 17:07
  • To know which version of the MongoDB wire protocol is supported by the cosmos DB, you can connect to the cosmos DB from robo mongo 3T client or mongo shell and execute [`db.version()`](https://docs.mongodb.com/manual/reference/method/db.version/) – girip11 May 10 '20 at 03:21

2 Answers2

7

From this link:

The Azure Cosmos DB's API for MongoDB is compatible with MongoDB server version 3.2 by default. The supported operators and any limitations or exceptions are listed below. Features or query operators added in MongoDB version 3.4 are currently available as a preview feature. Any client driver that understands these protocols should be able to connect to Azure Cosmos DB's API for MongoDB.

Gaurav Mantri
  • 128,066
  • 12
  • 206
  • 241
  • 7
    Cosmos DB isn't actually MongoDB. So there is no "version 3.2" of MongoDB. Compatibility is at an API-level. Important distinction that I don't think is explicitly conveyed by this answer (and the OPs question sounds like they are assuming MongoDB is the engine running behind Cosmos DB). – David Makogon Mar 28 '19 at 02:42
  • It has been updated to support v4.0 [Link](https://learn.microsoft.com/en-us/azure/cosmos-db/mongodb-feature-support-40) – Shmili Breuer Jun 02 '21 at 21:40
1

In modern Azure Portal UI they display the version of your Cosmos DB in the Overview section: Cosmos DB Overview section

vbg
  • 613
  • 6
  • 10