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