Mongoose 5.2.5 发布,MongoDB 异步对象模型工具

h4cd
 h4cd
发布于 2018年07月24日
收藏 0

Mongoose 5.2.5 发布了,Mongoose 是在 Node.js 异步环境下对 MongoDB 进行便捷操作的对象模型工具。

更新内容如下:

  • fix(boolean): expose convertToTrue and convertToFalse for custom boolean casting #6758

  • docs(schematypes): add note about what values are converted to booleans #6758

  • fix(document): fix(document): report castError when setting single nested doc to array #6753

  • docs: prefix mongoose.Schema call with new operator #6751 sajadtorkamani

  • docs(query): add examples and links to schema writeConcern option for writeConcern helpers #6748

  • docs(middleware): clarify that init middleware is sync #6747

  • perf(model): create error rather than modifying stack for source map perf #6735

  • fix(model): throw helpful error when passing object to aggregate() #6732

  • fix(model): pass Model instance as context to applyGetters when calling getters for virtual populate #6726 lineus

  • fix(documentarray): remove isNew and save listeners on CastError because otherwise they never get removed #6723

  • docs(model+query): clarify when to use countDocuments() vs estimatedDocumentCount() #6713

  • fix(populate): correctly set virtual nestedSchemaPath when calling populate() multiple times #6644

  • docs(connections): add note about the family option for IPv4 vs IPv6 and add port to example URIs #6566

更新日志

下载地址:

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处,尊重他人劳动共创开源社区。
转载请注明:文章转载自 开源中国社区 [http://www.oschina.net]
本文标题:Mongoose 5.2.5 发布,MongoDB 异步对象模型工具
加载中
返回顶部
顶部