Advertisement
Guest User

Untitled

a guest
Sep 16th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. // ...
  2. const getModule = (config) => {
  3. const documentClient = new AWS.DynamoDB.DocumentClient(config)
  4. // ...
  5. const scan = paginationAware('scan')
  6. return ({
  7. // ...
  8. getAll: (TableName, params) =>
  9. scan({ TableName, ...projectionExpression(params) })
  10. .promise()
  11. .then(({ Items }) => Items),
  12. })
  13. }
  14. // ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement