Handle for chunks collection
Handle for files collection
The read preference to use
The filter to use to find the file document
Fired when the stream is exhausted and the underlying cursor is killed
Emitted when a chunk of data is available to be consumed.
Fired when the stream is exhausted (no more data events).
An error occurred
Fires when the stream loaded the file document corresponding to the provided id.
Sets or gets the default captureRejection value for all emitters.
This symbol shall be used to install a listener for only monitoring 'error'
events. Listeners installed using this symbol are called before the regular
'error'
listeners are called.
Installing a listener using this symbol does not change the behavior once an
'error'
event is emitted, therefore the process will still crash if no
regular 'error'
listener is installed.
Reads from the cursor and pushes to the stream. Private Impl, do not call directly
Marks this stream as aborted (will never push another data
event)
and kills the underlying cursor. Will emit the 'end' event, and then
the 'close' event once the cursor is successfully killed.
called when the cursor is successfully closed or an error occurred.
Event emitter The defined events on documents including:
Sets the 0-based offset in bytes to start streaming from. Throws
an error if this stream has entered flowing mode
(e.g. if you've already called on('data')
)
Offset in bytes to stop reading at
Sets the 0-based offset in bytes to start streaming from. Throws
an error if this stream has entered flowing mode
(e.g. if you've already called on('data')
)
0-based offset in bytes to start streaming from
A utility method for creating Readable Streams out of iterators.
Returns a list listener for a specific emitter event name.
Generated using TypeDoc
A readable stream that enables you to read buffers from GridFS.
Do not instantiate this class directly. Use
openDownloadStream()
instead.