Mongo.GridFs.Download.open_download_stream
You're seeing just the function
open_download_stream
, go back to Mongo.GridFs.Download module for more information.
Specs
open_download_stream( Mongo.GridFs.Bucket.t(), String.t() | BSON.ObjectId.t() | map() ) :: result()
Opens a Stream from which the application can read the contents of the stored file
specified by fileId. The fileId can be a string, an ObjectId or just a map with the
keys length
and _id
. In case of the map the function tries to stream the chunks
described by the length
and the _id
values.
Returns a Stream.