type alias DynamoDateEncoding
Since 0.1.0

The storage encoding a date-bearing attribute is declared to use.

DynamoDB has no date type (M80 plan §1A F7 — a JS Date sent raw is a ValidationException), so a stored timestamp is a string or a number and the adapter cannot know which without a declaration.

Definition

"iso" | "epochMs"

Usage

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