As per Remote Hooks and PersistedModel REST API documentation, we can use 'upsert' Remote hook.
I have a mixin
module.exports = function(Model, options){
Model.beforeRemote('upsert',function(ctx,next){
console.log('upsert called');
next();
});
};
but this is not getting triggered when I add a new model instance. Please help.