insert One
Inserts the provided document. If the document is missing an identifier, the driver should generate one.
Note: Supports retryable writes on MongoDB server versions 3.6 or higher when the retryWrites setting is enabled.
Parameters
the document to insert
Throws
Inserts the provided document. If the document is missing an identifier, the driver should generate one.
Note: Supports retryable writes on MongoDB server versions 3.6 or higher when the retryWrites setting is enabled.
Since
3.2
Parameters
the document to insert
the options to apply to the operation
Throws
Inserts the provided document. If the document is missing an identifier, the driver should generate one.
Note: Supports retryable writes on MongoDB server versions 3.6 or higher when the retryWrites setting is enabled.
Since
3.6
Parameters
the client session with which to associate this operation
the document to insert
Throws
Inserts the provided document. If the document is missing an identifier, the driver should generate one.
Note: Supports retryable writes on MongoDB server versions 3.6 or higher when the retryWrites setting is enabled.
Since
3.6
Parameters
the client session with which to associate this operation
the document to insert
the options to apply to the operation