Taylor Hurt

Results 12 comments of Taylor Hurt

inside catch, you can also check if your err is an instance of a ForeignKeyConstraintError ```javascript .catch(err => { if (err instanceof Sequelize.ForeignKeyConstraintError) { // do something } else {...

@overflowz good point. So in cases where there are multiple foreign key constraints, guess I'd still need to confirm which foreign key constraint was violated by checking some string value...