const result = await collection.insertMany([
  { name: 'John', age: 30 },
  { name: 'Jane', age: 25 },
], {
  ordered: true,
  timeout: 60000,
});
const result = await collection.insertMany([
  { name: 'John', age: 30 },
  { name: 'Jane', age: 25 },
], {
  concurrency: 16, // ordered implicitly `false` if unset
});
See Collection's documentation for information on the available datatypes for collections.
Overview
The options for an
insertManycommand on a collection.