|
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:
· Direct array index assignment with casting support doc.array.set(index, value)
Fixed:
· QueryStream#resume within same tick as pause()
· Default value validatation
· Array splice() not casting
· Default array construction edge case
0 comments:
Post a Comment