InsertOneModel (driver-core 5.5.0 API) (original) (raw)

Type Parameters:

T - the type of document to insert. This can be of any type for which a Codec is registered


public final class InsertOneModel extends WriteModel

A model describing an insert of a single document.

Since:

3.0

MongoDB documentation

Insert

Constructors
[InsertOneModel](#%3Cinit%3E%28T%29)([T](InsertOneModel.html "type parameter in InsertOneModel") document)
Construct a new instance.

Gets the document to insert.
[toString](#toString%28%29)()