ApsaraDB for MongoDB supports the following MongoDB versions: 7.0, 6.0, 5.0, 4.4, 4.2, 4.0, and 3.4 (discontinued). We recommend that you use a driver running the same database version as your ApsaraDB for MongoDB instance to access the instance. You can download drivers in different languages from Start Developing with MongoDB.
Note
For more information about the differences among MongoDB versions, see MongoDB versions and storage engines.
How do I view the database version of my ApsaraDB for MongoDB instance?
Connect to a replica set instance by using the mongo shell. For more information, see Connect to a replica set instance by using the mongo shell.
Run the following command to view the database version:
db.version()