relationSchema property

Map<String, RelationDescriptor> get relationSchema
inherited

An instance-free description of this entity's relations (#21).

Registered globally via DatumRelationSchema the first time the engine sees an instance, so adapters can traverse relation chains by type alone.

Implementation

Map<String, RelationDescriptor> get relationSchema => {
      for (final e in relations.entries) e.key: e.value.describe(e.key),
    };