create record with transaction doesn't return the properties directly. #14218
Unanswered
ricklang
asked this question in
Help & Questions
Replies: 2 comments 2 replies
-
Looks like if I move the variable declaration outside of transaction block, it is working as expected. Why?
|
Beta Was this translation helpful? Give feedback.
1 reply
-
I was suspicious it was related to _clsRun stuff it basically creates new context inside continuous local storage which will respond to only return dataValues instead of the return value of the create method. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Sequelize 6.17.0, tedious 14.3.0.
When creating a new record without transaction:
But if I add transaction,
Why I can't read the column property directly when using transaction?
Beta Was this translation helpful? Give feedback.
All reactions