Mongoose Wrappers
Wrappers around the Mongoose library that aims to simplify the way Schemas and Models are defined.
Schemas
Schemas can be defined with a single object literal.
var Schema = Schema; var AnimalSchema = paths: name: type: 'String' type: type: 'String' virtuals: title: { return thisname + ': ' + thistype; } methods: { return this; } statics: { this; } indexes: name: 1 type: -1 ;