knex.js insert two rows

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

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

multipleSaved
.invokeThen("save")
.then(() => {...})
.catch(err=>{...})  .insert([
    { name: 'Starsky' },
    { name: 'Hutch' }
  ])

Source

Also in JavaScript: