typesafe-dynamodb
typesafe-dynamodb copied to clipboard
TypeSafe type definitions for the AWS DynamoDB API
Support modeling single-table design with Union Types and Template String Literals for composite keys.
Need to add the same functionality for BatchGetItem, BatchWriteItem, TransactWriteItems, TransactReadItems
Upgrades project dependencies. See details in [workflow run]. [Workflow Run]: https://github.com/functionless/typesafe-dynamodb/actions/runs/3087012341 ------ *Automatically created by projen via the "upgrade-main" workflow*
To repro: ``` const table = new Table( new aws_dynamodb.Table(stack, "table", { partitionKey: { name: "id", type: aws_dynamodb.AttributeType.NUMBER, }, }) ); const item = table.getItem({ id: "123" }); // item...
When I use `TypeSafeQueryDocumentCommand` (`QueryCmd` in the picture), it wrongly omits `ExpressionAttributeValues` from the base type's keys. Type error: ``` Type '{ TableName: string; IndexName: string; KeyConditionExpression: string; ExpressionAttributeValues: {...
The type of Item appears to be undefined. I expected it to be `IAccount` Here is the code ```ts import { DynamoDBClient } from '@aws-sdk/client-dynamodb'; const client1 = new DynamoDBClient({});...
From: https://github.com/functionless/functionless/issues/226
Sub-task of #4 Similarly to #5 , we want to narrow the type of `Items` in a `query` operation based on the `KeyConditionExpression`.
Nit