Type alias PartitionKeyAttribute<T>

PartitionKeyAttribute<T>: {
    [K in keyof T]: T[K] extends PartitionKey
        ? K
        : never
}[keyof T]

Represents the type of the partition key attribute for a given entity. It identifies the specific property of the entity that is marked as the partition key, which uniquely identifies each instance of the entity in the database.

Type Parameters

  • T

    The type of the entity being examined.

Returns

The name of the partition key attribute as a string if one exists; otherwise, the result is never.

Generated using TypeDoc