Looking for help with Model.bulkCreate() returning option #16910
Unanswered
code-with-von
asked this question in
Help & Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello there.
I am having issues in getting the returning options for postgres to return only the specified columns on bulkCreate.
This is my sequelize logging
This my output on postman:
This is the output I was expecting:
This my output on postman:
I am failing to understand what i'm doing wrong here.
Sequelize database configuration:
The create method:
Just to add to this note, the same code while using sequelize v6 used to work as intented returning only the columns listed on the array given on the variable attributes (line 9 of the code above), but now after upgrading to sequelize v7, it does not.
I would be glad if anyone could help me in finding what's wrong here.
According to the documentation that should work - UNLESS there is something wrong on my code, which, as mentioned, works well on v6, but not on v7.
I would be really glad if someone could help me on this.
Best regards.
Beta Was this translation helpful? Give feedback.
All reactions