Type alias CollectionInsertOneOptions

CollectionInsertOneOptions: GenericInsertOneOptions
Overview

The options for an insertOne command on a Collection.

Example

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

Datatypes

See Collection's documentation for information on the available datatypes for collections.

See

  • Collection.insertOne
  • CollectionInsertOneResult