发布于 2017-05-19 00:31:26 | 70 次阅读 | 评论: 0 | 来源: 网友投递
MongooseJs mongodb 连接包
Mongoose 是基于nodejs,使用javascript编程,连接mongodb数据库的软件包,使mongodb的文档数据模型变的优雅起来,方便对mongodb文档型数据库的连接和增删改查等常规数据操作。
MongooseJS 4.9.10 和 4.10.0 发布了,
4.9.10 更新如下:
fix(connection): ensure callback arg to openSet() is handled properly #5249
docs: remove dead plugins repo and add content links #5247
fix(model): skip index build if connecting after model init and autoIndex false #5176
下载地址
4.10.0 更新如下:
fix(schema): update clone method to include indexes #5268 clozanosanchez
feat(schema): support aliases #5184 rocketspacer
feat(aggregate): add mongoose-specific aggregation cursor option #5145
refactor(model): make sharding into a plugin instead of core #5105
fix(document): make nested doc mongoose internals not enumerable again #5078
feat(model): pass params to pre hooks #5064
feat(timestamps): support already defined timestamp paths in schema #4868
feat(query): add runSettersOnQuery option #4569
fix(query): add strictQuery option that throws when not querying on field not in schema #4136
fix(update): more complete handling for overwrite option with update validators #3556
feat: support unique: true
in arrays via the mongoose-unique-array plugin #3347
feat(validation): include failed paths in error message and inspect output #3064 #2135
fix(model): return saved docs when create() fails #2190
下载地址