Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

knex insert multiple rows

let dataList = bookshelf.Collection.extend({
	model: ModelName,
});

let multipleSaved = dataList.forge([...Your_listOfData]);

multipleSaved
.invokeThen("save")
.then(() => {...})
.catch(err=>{...})
 
PREVIOUS NEXT
Tagged: #knex #insert #multiple #rows
ADD COMMENT
Topic
Name
1+2 =