Optional
bucketOptional
chunkNumber of bytes stored in each chunk. Defaults to 255KB
Optional
readRead preference to be passed to read operations
Optional
Experimental
timeoutMSSpecifies 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.
Optional
writeWrite Concern as an object
The 'files' and 'chunks' collections will be prefixed with the bucket name followed by a dot.