Skip to content

Remote Hook - beforeRemote - upsert not getting triggered #1955

@pktippa

Description

@pktippa

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions