Skip to content

PreparedBatchWrite

type PreparedBatchWrite<Schema> = object;

Represents a BatchWrite command bound to a specific entity, ready to be included in a table-level TableBatchWrite command.

Schema extends ZodObject

The Zod schema type associated with the DynamoEntity.

entity: DynamoEntity<Schema>;

buildRequests(skipValidation, abortSignal?): Promise<(
| {
PutRequest: {
Item: Record<string, unknown>;
};
}
| {
DeleteRequest: {
Key: DynamoKey;
};
})[]>;

boolean

AbortSignal

Promise<( | { PutRequest: { Item: Record<string, unknown>; }; } | { DeleteRequest: { Key: DynamoKey; }; })[]>


matchUnprocessedDelete(key):
| Partial<EntitySchema<Schema>>
| undefined;

DynamoKey

| Partial<EntitySchema<Schema>> | undefined


matchUnprocessedPut(item):
| EntitySchema<Schema>
| undefined;

Record<string, unknown>

| EntitySchema<Schema> | undefined