🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

mongoose-autopopulate-extend

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongoose-autopopulate-extend

Mongoose Autopopulate global configuration

2.1.0
latest
npm
Version published
Weekly downloads
6
-25%
Maintainers
1
Weekly downloads
 
Created
Source

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
});

Keywords

mongoose

FAQs

Package last updated on 10 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts