Puts or deletes multiple items in one or more tables by delegating to BatchWriteCommand.
BatchWriteCommand
You can use the batchItem helper to create the request items.
import { batchItem as bi } from 'dynamo-facade-v3';df.batchWrite([ bi.put('movies', [ { actor: 'Tom Hanks', movie: 'Toy Story' }, { actor: 'Tom Hanks', movie: 'Forrest Gump' }, ])])
The same response returned by send()ing this command
send()
The items to write in the format { tableName: [ { ...request }, ...] }
{ tableName: [ { ...request }, ...] }
Optional
The options accepted by the original BatchWriteCommand class
Generated using TypeDoc
Puts or deletes multiple items in one or more tables by delegating to
BatchWriteCommand
.You can use the batchItem helper to create the request items.
Example
Returns
The same response returned by
send()
ing this command