Answer the question
In order to leave comments, you need to log in
How to write a string to the database in sequalize (nodejs) if it is not there?
I have an array of objects
Example.
const arr = [
{...},
{...},
{...}
]
a
, which is designated as a unique column in the database. Transaction.bulkCreate(arr)
Answer the question
In order to leave comments, you need to log in
https://sequelize.org/master/class/lib/model.js~Mo...
3rd parameter
ignoreDuplicates, updateOnDuplicate
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question