Home > gridfs-extra > getGridFSBucketDb
getGridFSBucketDb returns mongodb Db instance which is used to create this bucket.
this not a wrapper of mongodb public native api, so use this method carefully
Signature:
declare function getGridFSBucketDb(bucket: mongodb.GridFSBucket): mongodb.Db;
Parameter | Type | Description |
---|---|---|
bucket | mongodb.GridFSBucket | a mongodb gridFS bucket |
Returns:
mongodb.Db
mongodb Db instance