Skip to content

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

Notifications You must be signed in to change notification settings

goodybag/dirac-ensure-targets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published