Type alias GenericInsertOneOptions

GenericInsertOneOptions: CommandOptions<{
    timeout: "generalMethodTimeoutMs";
}>
Overview

The options for a generic insertOne command performed on the Data API.

Type declaration

  • timeout: "generalMethodTimeoutMs"

Example

const result = await collection.insertOne({
name: 'John',
age: 30,
}, {
timeout: 10000,
});

See

  • CollectionInsertOneOptions
  • TableInsertOneOptions