Home > mongoose-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: mongo.GridFSBucket): string;
| Parameter | Type | Description |
|---|---|---|
| bucket | mongo.GridFSBucket | a mongodb gridFS bucket |
Returns:
string
bucket name