|
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:
· Schema#get (to retrieve schema options)
· VersionError
· npmignore hidekiy
Updated:
· Driver to 1.2.3
Fixed:
· stackoverflow in setter
· utils.isObject()
· Do not clobber user specified driver writeConern
· Always pass current document to post hooks
· Throw error when user attempts to overwrite a model
Via: Mongoose 3.5.2 / 3.5.3-pre
0 Comment:
Post a Comment