var RoleMapping = app.models.RoleMapping;
RoleMapping.destroyAll( { where: { principalId: userId } }, function(err, obj)
{
...
} );
--
You received this message because you are subscribed to the Google Groups "LoopbackJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to loopbackjs+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
destroyAll takes the where value directly
To view this discussion on the web visit https://groups.google.com/d/msgid/loopbackjs/62020389-53bf-4296-9f01-4d13875f5e88%40googlegroups.com.--
You received this message because you are subscribed to a topic in the Google Groups "LoopbackJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/loopbackjs/31UMZfmCvmE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to loopbackjs+...@googlegroups.com.