![]() |
|
Because MongoDB is not a relational database, classic ORM principles don't apply.
The adaptation of these principles result in something like an ODM, useful as an ORM, for automating database transactions with ease.
Here are some key features of "Mongoose":
· Models/Schemas
· Schema Types
· Schema Options
· Middleware
· Find Docs
· Update Docs
· Queries
· Query Streams
· Methods & Statics
· Defaults
· Indexes
· Validation
· Virtuals
· Getters / Setters
· Embedded Docs
· Populate (DBRef-like)
· Plugins
· Errors
Requirements:
· MongoDB 1.0.2 or higher
· Node.js 0.4 or higher
What's New in This Release: [ read full changelog ]
Added:
· Support for generic toJSON/toObject transforms.
· doc.set() merge support.
· query#add support.
Changed:
· Adding invalid nested paths to non-objects throws.
· Stop invalid function cloning (internal fix).
Fixed:
· query $and casting support.
· Overwriting of query arguments.
Docs:
· Fixed expires examples.

Via: Mongoose 3.4.0
0 Comment:
Post a Comment