- 英文原版
- 关于中文文档
- 快速上手
- 模式(Schemas)
- 模式类型(SchemaTypes)
- 连接(Connections)
- 模型(Models)
- 文档 (Documents)
- 子文档(Subdocuments)
- 查询 (queries)
- 验证 (validation)
- 中间件 (middleware)
- 填充 (Populate)
- 鉴别器 (Discriminators)
- 插件
- AWS Lambda
- API 文档
- Schema
- Connection
- Document
- Model
- Query
- Aggregate
- SchemaType
- VirtualType
- Error
- Version Compatibility
- FAQ
MongoDB Server Version Compatibility
Mongoose relies on the MongoDB Node.js Driver to talk to MongoDB. You can refer to this table for up-to-date information as to which version of the MongoDB driver supports which version of MongoDB.
Below are the semver ranges representing which versions of mongoose are compatible with the listed versions of MongoDB server.
- MongoDB Server 2.4.x: mongoose
~3.8
or4.x
- MongoDB Server 2.6.x: mongoose
~3.8.8
or4.x
- MongoDB Server 3.0.x: mongoose
~3.8.22
,4.x
or5.x
- MongoDB Server 3.2.x: mongoose
>=4.3.0
or5.x
- MongoDB Server 3.4.x: mongoose
>=4.7.3
or5.x
- MongoDB Server 3.6.x: mongoose
5.x
, or>=4.11.0
withuseMongoClient
andusePushEach