 <p>Ever heard of loopback Operation hooks?</p> <p><a href="https://loopback.io/doc/en/lb2/Operation-hooks.html" rel="nofollow noreferrer">https://loopback.io/doc/en/lb2/Operation-hooks.html</a></p> <p>use the <code>before save</code> hook or <code>after save</code> hook on a model to do what ever you want.</p> <p>they have an example, you can try it out</p>