Skip to content

Instantly share code, notes, and snippets.

@daffl
Created January 4, 2019 21:31
Show Gist options
  • Save daffl/261305996185aca667fe3d0831cf390d to your computer and use it in GitHub Desktop.
Save daffl/261305996185aca667fe3d0831cf390d to your computer and use it in GitHub Desktop.
Database adapters: Whitelisting
const service = require('feathers-<database>');
// Allow multi create, patch and remove
service({
whitelist: [ '$regex' ]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment