T - the type of document to insert. This can be of any type for which a Codec is registeredpublic final class InsertOneModel<T> extends WriteModel<T>
| Constructor | Description |
|---|---|
InsertOneModel(T document) |
Construct a new instance.
|
public InsertOneModel(T document)
document - the document to insert, which may not be null.