Type Alias EntityKeyConditions<T>

EntityKeyConditions: {
    [K in keyof T as T[K] extends PartitionKey ? K : never]-?: string
} & {
    [K in keyof T as T[K] extends SortKey ? K : never]?: TypedSortKeyCondition<
        T,
    >
}

Defines key conditions for querying entities based on their keys.

PartitionKey is required, SortKey is optional. The SortKey value is typed to only accept valid entity names from the partition (or entity name prefixes), matching dyna-record's single-table sort key format.

Type Parameters

  • T extends default = default

    The type of the entity being queried, extending DynaRecord.