mongoose-notekeeper-plugin
v1.0.0
Published
Keep track of changes in your documents
Downloads
5
Maintainers
Readme
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"] });