You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Inconsistency field and attribute with option underscored #11037
When you used Express with Sequelize and modified the underscored parameter to true, the field of the relationship is created with snake case (relation_id) but when I use express js, I must specify it as camel case (RelationId).
Solution
Have consistency between the field of the database and the request (If I declare relation_id, it must also be relation_id in the request and not RelationId)
Why should this be in Sequelize
Because it allows to have consistency in the attributes.
Usage example
Define sequelize on model.util and load all models.
Activity
papb commentedon Jul 25, 2019
Closing in favor of #11225.
When #11225 gets closed, if anyone thinks this particular issue is still an issue, please ping me.