akash-gupt / mongoose-autopopulate-extend

Mongoose autopopulate with global options

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mongoose Autopopulate Global Option

Installation

Install using npm

npm i mongoose-autopopulate-extend

Plugin Options

var mongoose_autopopulate_extend = require("mongoose-autopopulate-extend");

mongoose.plugin(autopopulateExtend, {
  match: { status: "ENABLED", deleted: false },
  maxDepth: 1
});

About

Mongoose autopopulate with global options

License:MIT License


Languages

Language:JavaScript 100.0%