Mongo.Collection.document

You're seeing just the macro document, go back to Mongo.Collection module for more information.
Link to this macro

document(list)

View Source (macro)

Defines a struct as a document without id generator and a collection. These documents are used to be embedded within collection structs.

Inside a document block, each attribute is defined through the attribute/3 macro.