Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment.
? Stack Overflow
? Bug Reports
? Mongoose Slack Channel
? Help Forum
? MongoDB Support
Check out the plugins search site to see hundreds of related modules from the community. Next, learn how to write your own plugin from the docs or this blog post.
View all 300+ contributors. Stand up and be counted as a contributor too!
First install node.js and mongodb. Then:
$ npm install mongoose
The current stable branch is master. The 3.8.x branch contains legacy support for the 3.x release series, which is no longer under active development as of September 2015. The 3.8.x docs are still available.
Connecting to MongoDB
First, we need to define a connection. If your app uses only…