Interface GridFSBucketOptions

interface GridFSBucketOptions {
    bucketName?: string;
    chunkSizeBytes?: number;
    readPreference?: ReadPreference;
    timeoutMS?: number;
    writeConcern?: WriteConcern | WriteConcernSettings;
}

Hierarchy (view full)

Properties

bucketName?: string

The 'files' and 'chunks' collections will be prefixed with the bucket name followed by a dot.

chunkSizeBytes?: number

Number of bytes stored in each chunk. Defaults to 255KB

readPreference?: ReadPreference

Read preference to be passed to read operations

timeoutMS?: number

Specifies the lifetime duration of a gridFS stream. If any async operations are in progress when this timeout expires, the stream will throw a timeout error.

Write Concern as an object