Interface GridFSBucketOptions

interface GridFSBucketOptions {
    bucketName?: string;
    chunkSizeBytes?: number;
    readPreference?: ReadPreference;
    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

Write Concern as an object