A db handle.
Optional settings.
Deletes a file with the given id.
The id of the file doc
Removes this bucket's files collection, followed by its chunks collection.
Convenience wrapper around find on the files collection
Returns a readable stream (GridFSBucketReadStream) for streaming file.
The id of the file doc.
Returns a readable stream (GridFSBucketReadStream) for streaming file
The id of the file doc
Returns a writable stream (GridFSBucketWriteStream) for writing buffers to GridFS. The stream's 'id' property contains the resulting file's id.
The value of the 'filename' key in the files doc.
Returns a writable stream (GridFSBucketWriteStream) for writing buffers to GridFS for a custom file id. The stream's 'id' property contains the resulting file's id.
A custom id used to identify the file.
The value of the 'filename' key in the files doc.
Renames the file with the given _id to the given string.
the id of the file to rename.
new name for the file.
Generated using TypeDoc
GridFSBucket.
http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html