Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ...
- const getModule = (config) => {
- const documentClient = new AWS.DynamoDB.DocumentClient(config)
- // ...
- const scan = paginationAware('scan')
- return ({
- // ...
- getAll: (TableName, params) =>
- scan({ TableName, ...projectionExpression(params) })
- .promise()
- .then(({ Items }) => Items),
- })
- }
- // ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement