$ npm install --save mongo-tenant
Register the plugin on the relevant mongoose schema.
const
mongoose = require('mongoose'),
mongoTenant = require('mongo-tenant');
let MySchema = new mongoose.Schema({});
MySchema.plugin(mongoTenant);
The files in this archive are released under MIT license. You can find a copy of this license in LICENSE.