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