nodejs的MongoDB连接包,MongooseJS 4.2.7 发布,

jopen 8年前

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

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

MongooseJS 4.2.7 发布,此版本主要是 bug 修复和文档更新,更新内容如下:

  • fixed; readPreference connection string option #3600

  • fixed; pulling from manually populated arrays #3598 #3579

  • docs; FAQ about OverwriteModelError #3597 stcruy

  • fixed; setting single embedded schemas to null #3596

  • fixed; indexes for single embedded schemas #3594

  • docs; clarify projection for findOne() #3593 gunar

  • fixed; .ownerDocument() method on single embedded schemas #3589

  • fixed; properly throw casterror for query on single embedded schema #3580

  • upgraded; mongodb driver -> 2.0.49 for reconnect issue fix #3481

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