Home > gridfs-extra > getGridFSBucketName
getGridFSBucketName returns the bucket’s name
this not a wrapper of mongodb public native api, so use this method carefully
Signature:
declare function getGridFSBucketName(bucket: mongodb.GridFSBucket): string;
Parameter | Type | Description |
---|---|---|
bucket | mongodb.GridFSBucket | a mongodb gridFS bucket |
Returns:
string
bucket name