Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 466 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 466 Bytes

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']
}