The options for an insertOne command on a Collection.
insertOne
const result = await collection.insertOne({ name: 'John', age: 30,}, { timeout: 10000,}); Copy
const result = await collection.insertOne({ name: 'John', age: 30,}, { timeout: 10000,});
See Collection's documentation for information on the available datatypes for collections.
Overview
The options for an
insertOne
command on a Collection.