GridFSBucketOptions | mongodb (original) (raw)

Interface GridFSBucketOptions

Hierarchy (view full)

Index

Properties

OptionalbucketName

bucketName?: string

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

OptionalchunkSizeBytes

chunkSizeBytes?: number

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

OptionalreadPreference

Read preference to be passed to read operations

Optional ExperimentaltimeoutMS

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.

OptionalwriteConcern

Write Concern as an object