sg-paranoid-plugin

0.0.2 • Public • Published

sg-paranoid-plugin

슬로그업 ddd 의 infra layer 에서 도큐먼트 삭제시 플래그 값으로 도큐먼트 삭제 여부를 판단할 수 있도록 도와주는 모듈입니다.

Installation

npm install --save sg-paranoid-plugin

Example

const mongoose = require('mongoose');
 
const schema = new mongoose.Schema({
  firstName: { type: String },
  lastName: { type: String }
}, {
  paranoid: true,
});

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i sg-paranoid-plugin

      Weekly Downloads

      2

      Version

      0.0.2

      License

      ISC

      Unpacked Size

      2.91 kB

      Total Files

      3

      Last publish

      Collaborators

      • hwaranglee
      • sngsng
      • piorio0919
      • kspark