ToManyProperty

public struct ToManyProperty<R>

Different from regular Propertys, backlinks and standalone relations don’t actually exist in the database, so to allow referencing them when creating a relation query using link(_ property:), they use their own class.

You usually do not create instances of this struct. The code generator creates them for you and you just use them in property queries to refer to individual properties.

  • Type of ToMany you are describing, plus requisite schema ID so it can be found in the model. Used by the code generator to set up a ToManyProperty with the right type and information.

    See more

    Declaration

    Swift

    public enum ToManyId