基于nodejs的MongonDB 连接包,MongooseJS 4.1.0 发布

jopen 9年前

Mongoose 是基于nodejs,使用javascript编程,连接mongodb数据库的软件包,使mongodb的文档数据模型变的优雅起来,方便对mongodb文档型数据库的连接和增删改查等常规数据操作。

mongoose是当前使用mean(mongodb express angularjs nodejs)全栈开发必用的连接数据库软件包。

MongooseJS 4.1.0 发布,此版本更新内容如下:

  • added; schema.queue() now public #3193

  • added; raw result as third parameter to findOneAndX callback #3173

  • added; ability to run validateSync() on only certain fields #3153

  • added; subPopulate #3103 timbur

  • added; $isDefault function on documents #3077

  • added; additional properties for built-in validator messages #3063 KLicheR

  • added; getQuery() and getUpdate() functions for Query #3013

  • added; export DocumentProvider #2996

  • added; ability to remove path from schema #2993 JohnnyEstilles

  • added; .explain() helper for aggregate #2714

  • added; ability to specify which ES6-compatible promises library mongoose uses #2688

  • added; export Aggregate #1910

下载:https://github.com/Automattic/mongoose/archive/4.1.0.zip