Open
Description
the mixin does not currently handle the new loopback 3 methods patchAttributes
and replaceById
, this could easily be updated by adding the following code:
// loopback 3
Model.beforeRemote('prototype.patchAttributes', function(ctx, modelInstance, next) {
Model.stripReadOnlyProperties(ctx, modelInstance, next);
});
Model.beforeRemote('replaceById', function(ctx, modelInstance, next) {
Model.stripReadOnlyProperties(ctx, modelInstance, next);
});
"loopback": "3.0.0"
Metadata
Metadata
Assignees
Labels
No labels