JSPM

mongoose-soft-delete-ex

1.0.3
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 4
    • Score
      100M100P100Q36575F
    • License MIT

    Mongoose soft delete adding timestamp, overwriting the methods 'count, find, findOne, indOneAndUpdate, update' and adding the method 'restore'

    Package Exports

    • mongoose-soft-delete-ex

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mongoose-soft-delete-ex) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Mongoose plugin for soft delete

    Installation

    > npm install mongoose-soft-delete-ex

    Usage

        var mongoose = require('mongoose');
        
        mongoose.plugin( require('mongoose-soft-delete-ex') );

    Methods overwriting for exclude deleted documents

    • count
    • find
    • findOne
    • findOneAndUpdate
    • update

    Methods added for soft delete

    • delete
    • findByIdAndDelete
    • findOneAndDelete

    Methods added for restore

    • restore