mongoose-gridfs-extra

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

Parameters

Parameter Type Description
bucket mongo.GridFSBucket a mongodb gridFS bucket

Returns:

string

bucket name