MongooseJS 4.8.7 发布了,使用 JavaScript 编程,连接 MongoDB 数据库的软件包,使 MongoDB 的文档数据模型变的优雅起来,方便对 MongoDB 文档型数据库的连接和增删改查等常规数据操作。
更新如下:
fix(model): 如果 spread 中的最后一个参数是假的,则将其视为回调
fix(document): 使用 $hook 而不是 hook 来启用 “hook” 作为路径名
fix(populate): 如果选择了父字段,不选择外部字段
fix(populate): 句柄不向 query.populate 传递参数
fix(update): 使用正确的方法转换嵌套数组
fix(discriminator): 当转换 $push 时,处理数组鉴别器
软件详情:https://github.com/Automattic/mongoose/blob/master/History.md
下载地址:https://github.com/Automattic/mongoose/archive/4.8.7.zip
来自:开源中国社区

