Mongoose 是设计用于异步环境的 MongoDB 对象模型工具,支持 promises 和 callbacks。
Mongoose 6.1.0 正式发布,本次更新内容如下:
feat(populate: 支持子文档的引用
feat(document: 添加 ownerDocument( 方法到顶层文档,与子文档保持一致
fix: mongodb 驱动升级到 4.2.1
feat(schema: MongoDB 5 时间序列集合支持 timeseries 选项
feat(mongoose: 加入全局 strictPopulate 选项
feat(mongoose+connection: 加入全局 mongoose.syncIndexes( 和 Connection.prototype.syncIndexes(
feat(query: 支持从推测(projections)中移除字段
feat(aggregate: 为聚合添加 unionWith 方法
fix(index.d.ts: 修复聚合管道阶段的类型