const result = await collection.insertMany([
{ name: 'John', age: 30 },
{ name: 'Jane', age: 25 },
], {
ordered: true,
timeout: 60000,
});
const result = await table.insertMany([
{ id: uuid.v4(), name: 'John' },
{ id: uuid.v7(), name: 'Jane' },
], {
concurrency: 16, // ordered implicitly `false` if unset
});
Overview
The options for a generic
insertMany
command performed on the Data API.