# MongoDB版本兼容性

Mongoose依赖[MongoDB Node.js驱动](http://mongodb.github.io/node-mongodb-native/)和MongoDB的交流。你可以参考这个表的最新信息以MongoDB驱动程序支持哪个版本的MongoDB版本。

下面是[semver](http://semver.org/)范围代表哪个版本的mongoose与MongoDB服务器版本兼容。

* MongoDB Server 2.4.x: mongoose \~3.8, 4.x
* MongoDB Server 2.6.x: mongoose \~3.8.8, 4.x
* MongoDB Server 3.0.x: mongoose \~3.8.22, 4.x
* MongoDB Server 3.2.x: mongoose >=4.3.0


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mongoose.shujuwajue.com/guide/mongodb_version_compatibility.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
