#1553·loopback

upsert doesn't catch errors

Author: ghostCreated Jul 30, 2015Updated Jul 21, 2021
Labelsstale

The upsert() method doesn't catch errors (duplicate key, foreign key, ...). The callback doesn't get error object, and gets the "updated" model instance. This happens in both cases (update or insert). I'm using MySQL.