gridfs-extra

Home > gridfs-extra > getGridFSBucketOptions

getGridFSBucketOptions() function

getGridFSBucketDb returns mongodb gridFS bucket options which is used to create this bucket.

this not a wrapper of mongodb public native api, so use this method carefully

Signature:

declare function getGridFSBucketOptions(bucket: mongodb.GridFSBucket): mongodb.GridFSBucketOptions;

Parameters

Parameter Type Description
bucket mongodb.GridFSBucket a mongodb gridFS bucket

Returns:

mongodb.GridFSBucketOptions

a bucket options