mongoose-gridfs-extra

Home > mongoose-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: mongo.GridFSBucket): mongo.GridFSBucketOptions;

Parameters

Parameter Type Description
bucket mongo.GridFSBucket a mongodb gridFS bucket

Returns:

mongo.GridFSBucketOptions

a bucket options