Answer the question
In order to leave comments, you need to log in
How to add multiple rows to database using squelize?
Good day to all!
I connected to the database, defined the table model and I can add rows there, but only one row of data, I can’t find in the manuals how to add several rows, I tried with an array, an object, but it’s not that!
db.sync({force: false}).then(()=>{
User.create({
link: 'test1',
views: '1',
likes: '1'
},{
link: 'test2',
views: '2',
likes: '2'
})
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question