This package has been deprecated

Author message:

WARNING: This project has been renamed to mongoose-disable-remove. Install using mongoose-disable-remove instead.

mongoose-plugin-disable-remove

0.1.1 • Public • Published

mongoose-plugin-disable-remove

A plugin that will disable remove functions for mongoose models.

If a schema enabled this schema, any call to Model.remove & Document.remove will return a reject promise or callback(err) if a callback provided.

travis Coverage Status

Install

npm install mongoose-plugin-disable-remove

Example

var mongoose = require('mongoose')
var disableRemovePlugin = require('mongoose-plugin-disable-remove')

var YourSchema = new Schema({
  content: String
})
YourSchema.plugin(disableRemovePlugin)

Test

npm test

Package Sidebar

Install

npm i mongoose-plugin-disable-remove

Weekly Downloads

0

Version

0.1.1

License

MIT

Last publish

Collaborators

  • isayme