Skip to content

Fields

Field types for declaring attributes on domain elements (aggregates, entities, value objects, commands, events, and projections).

See the hand-written Fields Reference for usage examples, definition styles, and field arguments table.

  • Simple Fields


    Scalar field factories: String, Integer, Float, Boolean, Date, DateTime, and more.

    Simple Fields

  • Container Fields


    List and Dict fields for collection-typed attributes.

    Container Fields

  • Association Fields


    HasOne, HasMany, and Reference for relationships between domain elements.

    Association Fields

  • ValueObject Field


    Field descriptor for embedding value objects within aggregates or entities.

    ValueObject Field

  • FieldSpec


    The internal field declaration carrier that all field factories produce.

    FieldSpec