ModelRelationshipField<T, RM, K, Auth>: Omit<ModelRelationshipFieldFunctions<T, RM, K>, K> & {
    [___auth]?: Auth;
} & Brand<typeof brandName>

Model relationship field definition interface

Type Parameters

  • T extends ModelRelationshipFieldParamShape

    The shape of the model relationship field

  • RM extends string | symbol

    Adds structural separation with ModelField; easier to identify it when mapping to ClientTypes

  • K extends keyof ModelRelationshipField<T, RM> = never

    The keys already defined

  • Auth = undefined

Type declaration

  • Optional [___auth]?: Auth