Socket
Socket
Sign inDemoInstall

mongoose-autopopulate-extend

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mongoose-autopopulate-extend

Mongoose Autopopulate global configuration


Version published
Weekly downloads
14
increased by7.69%
Maintainers
1
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 10 Mar 2020

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc