Type alias IncludedKeys<T, Opts>

IncludedKeys<T, Opts>: Opts extends Required<FindByIdOptions<T>>
    ? [...NonNullable<Opts>["include"]][number]["association"]
    : never

Derives the keys of included associations from FindByIdOptions, representing the names of relationships specified to be included in the query result.

Type Parameters

  • T extends default

    The type of the entity being queried, extending DynaRecord.

  • Opts extends FindByIdOptions<T>

    The options for the FindById operation.

Generated using TypeDoc