property DynamoEntityMapping.partitionKey

The table's partition-key attribute.

Required — unlike the scalar 'id' default the other adapters assume — because DynamoDB has no implicit key to guess: a table's key schema is a physical fact, and the attribute_exists / attribute_not_exists write guards and every key builder read this attribute by name. The 'id' default applies only to an entity with no mapping entry at all.

Type

string

Usage

import { type DynamoEntityMapping } from "database-plugin/src/index.ts";