Mongo.Collection.collection
You're seeing just the macro
collection
, go back to Mongo.Collection module for more information.
Defines a struct as a collection with id generator and a collection.
Inside a collection block, each attribute is defined through the attribute/3
macro.