0.1.3 • Published 10 years ago

mongoose-ownable v0.1.3

Weekly downloads
1
License
-
Repository
github
Last release
10 years ago

mongoose-ownable

a mongoose plugin adding owner_id to model instance and findByIdAndOwnerId static methods

Install

Install the module with:

npm install mongoose-ownable

Usage

var ownable = require('mongoose-ownable');

var TestSchema = new Schema({});

TestSchema.plugin(ownable);

TestModel = mongoose.model("Test", TestSchema);

License

Copyright (c) 2014 yi Licensed under the MIT license.