Class InsertRequest


  • Deprecated.

    @Deprecated
    public final class InsertRequest
    extends WriteRequest
    A representation of a document to insert.
    Since:
    3.0
    • Constructor Detail

      • InsertRequest

        public InsertRequest​(BsonDocument document)
        Deprecated. 
        Construct an instance with the given document.
        Parameters:
        document - the document, which may not be null
    • Method Detail

      • getDocument

        public BsonDocument getDocument​()
        Deprecated. 
        Gets the document to insert.
        Returns:
        the document