Playground
Explore how effect-dynamodb composes DynamoDB keys and generates query parameters. Select a scenario, adjust the schema config and entity attributes, and see the generated keys and API parameters update in real-time.
Schema Config
Entity Attributes
Generated Keys
schema prefixentity/collectionattribute values
pk$taskapp#v1#task#task-001sk$taskapp#v1#taskgsi1pk$taskapp#v1#task#proj-42gsi1sk$taskapp#v1#task#activeHow It Works
Section titled “How It Works”The playground demonstrates the key composition engine at the heart of effect-dynamodb:
- Schema prefix — Every key starts with
$<schema>#v<version>to namespace ORM-managed keys - Entity type — Identifies the entity within the single-table design
- Composite attributes — Your domain values appended to the key in declaration order
Keys are composed from the indexes config on your Entity declaration. The playground runs the same pure functions as the library — DynamoSchema.composeKey, KeyComposer.composePk, KeyComposer.composeSk — directly in your browser.