Add Model.decrement
What are you doing?
Sequelize has Model.increment, Model.prototype.increment (AKA instance.increment), and Model.decrement. However, it does not implement Model.prototype.decrement.
Model.increment('foo'); // works
Model.build().increment('foo'); // works
Model.build().decrement('foo'); // works
Model.decrement('foo'); // nope
What do you expect to happen?
Model.decrement should be supported for symmetry with increment.
What is actually happening?
TypeError: decrement is not a function
Dialect: any Dialect version: any Database version: any Sequelize version: master Tested with master branch: Yes
I ran into the same issue. Is decrement missing by design?
it's troubled me too.
Its not working yet?
i cant use .decrement?
:tada: This issue has been resolved in version 4.36.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket: