ModelSchema

public struct ModelSchema

Warning

Although this has public access, it is intended for internal & codegen use and should not be used directly by host applications. The behavior of this may change without warning.

ModelAttribute + Index

  • Returns the list of fields that make up the primary key for the model. In case of a custom primary key, the model has a @key directive without a name and at least 1 field

    Declaration

    Swift

    var primaryKeyIndexFields: [ModelFieldName]? { get }