Interface GridFSBucketWriteStreamOptions

interface GridFSBucketWriteStreamOptions {
    chunkSizeBytes?: number;
    id?: ObjectId;
    metadata?: Document;
    timeoutMS?: number;
    writeConcern?: WriteConcern | WriteConcernSettings;
}

Hierarchy (view full)

Properties

chunkSizeBytes?: number

Overwrite this bucket's chunkSizeBytes for this file

Custom file id for the GridFS file.

metadata?: Document

Object to store in the file document's metadata field

timeoutMS?: number

Specifies the time an operation will run until it throws a timeout error

Write Concern as an object