Type alias EntityKeysWithIncludedAssociations<T, P>

EntityKeysWithIncludedAssociations<T, P>: {
    [K in P]: T[K] extends default
        ? EntityAttributes<T>
        : T[K] extends default[]
            ? EntityAttributes<T[K][number]>[]
            : T[K]
}

Describes the entity attributes, extending them with any specified included associations for comprehensive query results.

Type Parameters

  • T extends default

    The type of the entity being queried, extending DynaRecord.

  • P extends keyof T

    The properties of the entity T.

Generated using TypeDoc