Mongo.GridFs.Bucket.new
You're seeing just the function
new
, go back to Mongo.GridFs.Bucket module for more information.
Specs
new(GenServer.server(), Keyword.t()) :: t()
Creates a new Bucket with a existing connection using the default values. It just contains the name of the collections (fs) and the chunk size (255KB).
The bucket checks the index for both collections as well. In case of multiple upload or downloads just create only one bucket and reuse it.