Type Alias EntityKeysWithIncludedAssociations<T, P>

EntityKeysWithIncludedAssociations: {
    [K in P]: T[K] extends default
        ? EntityAttributesOnly<T>
        : T[K] extends default[] ? EntityAttributesOnly<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.