dirac-ensure-targets
v1.0.1
Published
Ensure insert/update documents only contain keys specified in dal schema
Downloads
3
Maintainers
Readme
Dirac Ensure Targets
Ensure insert/update documents only contain keys specified in dal schema
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']
}