(...writes: BatchWritable[])
| 17 | constructor(private client: DynamoDBDocumentClient) { } |
| 18 | |
| 19 | push(...writes: BatchWritable[]): BatchWrite { this.batchWriteItems.push(...writes); return this; } |
| 20 | async run(): Promise<BatchWriteCommandOutput> { return await this.client.send(new BatchWriteCommand(this.build())); } |
| 21 | |
| 22 | put(tableName: string, item: any) { |