npm.io
1.0.0 • Published 7 years ago

mongoose-notekeeper-plugin

Licence
LGPL-3.0
Version
1.0.0
Deps
3
Size
11 kB
Vulns
0
Weekly
0
Stars
2

mongoose-notekeeper-plugin

Installation

yarn add mongoose-notekeeper-plugin

How To Use

// ...
const notekeeperPlugin = require("mongoose-notekeeper-plugin");

const ProductSchema = new Schema({
  name: String,
  type: String,
  price: Number,
  quantity: Number,
  description: String,
  status: String
});

notekeeperPlugin(ProductSchema, { fields: ["quantity", "status"] });

Keywords