dirac-ensure-targets

1.0.1 • Public • Published

Dirac Ensure Targets

Ensure insert/update documents only contain keys specified in dal schema

Dirac Middleware

install

npm i -S dirac-ensure-targets

usage

dirac.use( require('dirac-ensure-targets')() );

api

The api exports a single function whose options are:

{
  // Which operations does this middleware apply to
  // Default values:
  operations: ['insert', 'update']
}

Package Sidebar

Install

npm i dirac-ensure-targets

Weekly Downloads

2

Version

1.0.1

License

ISC

Last publish

Collaborators

  • johndotawesome