io.scalajs.npm.mongoose
Everything in Mongoose starts with a Schema. Each schema maps to a MongoDB collection and defines the shape of the documents within that collection.
http://mongoosejs.com/docs/api.html
Defines a middleware function.
the defined method
the given method value callback
schema.pre('set', function (next, path, val, typel) { ... })
Everything in Mongoose starts with a Schema. Each schema maps to a MongoDB collection and defines the shape of the documents within that collection.
http://mongoosejs.com/docs/api.html