mongoose-autopopulate-extend

2.1.0 • Public • Published

Mongoose Autopopulate Global Option

Installation

Install using npm

npm i mongoose-autopopulate-extend mongoose-autopopulate --save

yarn add mongoose-autopopulate-extend mongoose-autopopulate

Plugin Options

const mongoose = require("mongoose");
var mongoose_autopopulate_extend = require("mongoose-autopopulate-extend");
 
mongoose.plugin(mongoose_autopopulate_extend, globalOptions);
  • Local Option will override global options for a field

Example:

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.1.0
    13
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.1.0
    13
  • 1.1.9
    0
  • 1.1.8
    0

Package Sidebar

Install

npm i mongoose-autopopulate-extend

Weekly Downloads

13

Version

2.1.0

License

MIT

Unpacked Size

33.4 kB

Total Files

8

Last publish

Collaborators

  • akash-gupta