Mongo.GridFs.Bucket.new

You're seeing just the function new, go back to Mongo.GridFs.Bucket module for more information.
Link to this function

new(topology_pid, options \\ [])

View Source

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.