Skip to content

Instantly share code, notes, and snippets.

@daffl
Created January 4, 2019 21:30
Show Gist options
  • Save daffl/dff1b15d6e1f2fa8f4a0aaf0f8a165cb to your computer and use it in GitHub Desktop.
Save daffl/dff1b15d6e1f2fa8f4a0aaf0f8a165cb to your computer and use it in GitHub Desktop.
Database adapters: Multi updates
const service = require('feathers-<database>');
// Allow multi create, patch and remove
service({
multi: true
});
// Only allow create with an array
service({
multi: [ 'create' ]
});
// Only allow multi patch and remove (with `id` set to `null`)
service({
multi: [ 'patch', 'remove' ]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment