Skip to content

Enumeration

CompositeRelationParentKey

A helper type used by CompositeChildrenProperty and CompositeOptionalChildProperty to generically track the keypath of the property of the child model that defines the parent-child relationship.
enum CompositeRelationParentKey<From, To> where From : Model, To : Model, From.IDValue : Fields

Overview

Unfortunately, the additional generic constraint requiring From.IDValue to conform to Fields for the purposes of CompositeChildrenProperty etc. makes it impractical to combine this and RelationParentKey in a single helper type.

Note

This type is public partly to allow FluentKit users to introspect model metadata, but mostly it’s to maintain parity with RelationParentKey, which was public in its original definition.

Topics

Enumeration Cases

Default Implementations

Relationships

Conforms To

  • Swift.Copyable
  • Swift.CustomStringConvertible
  • Swift.Escapable
  • Swift.Sendable
  • Swift.SendableMetatype