• Synchronous write operation that groups up to 25 action requests by delegating to TransactWriteCommand.

    You can use the transactItem helper to create the request items.

    Example

    import { transactItem as tr } from 'dynamo-facade-v3';

    df.transactWrite([
    tr.put('movies', { actor: 'Tom Hanks', movie: 'Toy Story' }
    ])

    Returns

    The same response returned by send()ing this command

    Parameters

    • transactItems: (Omit<TransactWriteItem, "ConditionCheck" | "Put" | "Delete" | "Update"> & { ConditionCheck?: Omit<ConditionCheck, "Key" | "ExpressionAttributeValues"> & { ExpressionAttributeValues?: Record<string, any>; Key: undefined | Record<string, any> }; Delete?: Omit<Delete, "Key" | "ExpressionAttributeValues"> & { ExpressionAttributeValues?: Record<string, any>; Key: undefined | Record<string, any> }; Put?: Omit<Put, "Item" | "ExpressionAttributeValues"> & { ExpressionAttributeValues?: Record<string, any>; Item: undefined | Record<string, any> }; Update?: Omit<Update, "Key" | "ExpressionAttributeValues"> & { ExpressionAttributeValues?: Record<string, any>; Key: undefined | Record<string, any> } })[]

      The items to write in the format [ { Put: { ... } }, ...]

    • Optional options: Partial<TransactWriteCommandInput>

      The options accepted by the original TransactWriteCommand class

    Returns Promise<TransactWriteCommandOutput>

Generated using TypeDoc