MongoDB 服务器版本兼容

优质
小牛编辑
127浏览
2023-12-01

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.

Mongoose 依靠 Node.js 和 MongoDB 通话。有关哪个版本的 MongoDB 驱动程序支持哪个版本的 MongoDB 的最新信息,请参阅此表。

Below are the semver ranges representing which versions of mongoose are compatible with the listed versions of MongoDB server.

下面是 semver 范围,表示哪些版本的 mongoose 与列出的 MongoDB 服务器版本兼容。

  • MongoDB Server 2.4.x: mongoose ~3.8 or 4.x
  • MongoDB Server 2.6.x: mongoose ~3.8.8 or 4.x
  • MongoDB Server 3.0.x: mongoose ~3.8.22, 4.x or 5.x
  • MongoDB Server 3.2.x: mongoose >=4.3.0 or 5.x
  • MongoDB Server 3.4.x: mongoose >=4.7.3 or 5.x
  • MongoDB Server 3.6.x: mongoose 5.x, or >=4.11.0 with useMongoClient and usePushEach