You're seeing just the macro field, go back to Cqrs.Command module for more information.
Link to this macro

field(name, type, opts \\ [])

View Source (macro)


field(name :: atom(), type :: atom(), keyword()) :: any()

Defines a command field.

  • :name - any atom

  • :type - any valid Ecto Schema type

  • :opts - any valid Ecto Schema field options. Plus:

    • :required - true | false. Defaults to the require_all_fields option.
    • :internal - true | false. If true, this field is meant to be used internally. If true, the required option will be set to false and the field will be hidden from documentation.
    • :description - Documentation for the field.