gridfs-extra

Home > gridfs-extra > getGridFSBucketName

getGridFSBucketName() function

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;

Parameters

Parameter Type Description
bucket mongodb.GridFSBucket a mongodb gridFS bucket

Returns:

string

bucket name