Fork me on GitHub

Elegant MongoDB object modeling for Node.js

Let's face it, writing MongoDB validation, casting and business logic boilerplate is a drag. That's why we wrote Mongoose.

var mongoose = require('mongoose');

var Cat = mongoose.model('Cat', { name: String });

var kitty = new Cat({ name: 'Zildjian' }); (err) {
  if (err) // ...

Mongoose provides a straight-forward, schema-based solution to modeling your application data and includes built-in type casting, validation, query building, business logic hooks and more, out of the box.

Getting Started



Production View More

  • LinkedIn
  • Trello
  • Storify
  • GeekList
  • BookaLokal
  • Eleven James
  • Bozuko
  • McDonalds