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