Created
January 4, 2019 21:30
-
-
Save daffl/dff1b15d6e1f2fa8f4a0aaf0f8a165cb to your computer and use it in GitHub Desktop.
Database adapters: Multi updates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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