decorators: Automatic Primary Key Prop #5
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
question
Further information is requested
For the basic scenario of a single partition key, it should be possible to automatically add the
PrimaryKeyProp
type within the decorator itself. This would simplify the model definition and reduce boilerplate code.Current Example:
Proposed Change:
Automatically include the
PrimaryKeyProp
based on thepartitionKey
annotation:Goal:
The goal is to validate if this approach is feasible and, if so, implement it. By using the
partitionKey
annotation within the column decorator, we should be able to automatically define the primary key property. This enhancement aims to streamline the model definition process and improve developer experience.The text was updated successfully, but these errors were encountered: