I'm still working on a test case, but I'm having issues with the update action. Not sure if it's in this module or another, but here are the details:
- Using custom
id field (id, not _id)
PUT /resources/123 with body {"id": "123", "title": "#123"} strips out the id field upon save.
This doesn't help, as it's not honored either; the id field is added to hook.data, but stripped again sometime before saving:
service
.before({
update (hook) {
// Copy ID from request into object.
hook.data.id = hook.id
}
})
I'm still working on a test case, but I'm having issues with the update action. Not sure if it's in this module or another, but here are the details:
idfield (id, not_id)PUT /resources/123with body{"id": "123", "title": "#123"}strips out the id field upon save.This doesn't help, as it's not honored either; the
idfield is added tohook.data, but stripped again sometime before saving: