Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for begin param on bulk get #91

Open
lwcooper opened this issue Aug 28, 2021 · 1 comment
Open

support for begin param on bulk get #91

lwcooper opened this issue Aug 28, 2021 · 1 comment
Assignees

Comments

@lwcooper
Copy link

lwcooper commented Aug 28, 2021

Is there a way to support the begin param on a bulk get call?

This works for a single get (as per the integration tests):

let sept = await data.get({ table: 'hockey', begin: '2019-09' })

However, for a bulk get, a key is required. The following fails with the error Invalid params: all items must have table and key:

let sept = await data.get([
  { table: 'hockey', begin: '2019-09' },
  { table: 'curling', begin: '2019-09' }
])
@lwcooper lwcooper changed the title begin param on bulk get docs begin param on bulk get Aug 28, 2021
@lwcooper lwcooper changed the title begin param on bulk get support for begin param on bulk get Aug 28, 2021
@brianleroux
Copy link
Member

interesting idea, thanks for asking, under the hood passing an array to get will call batchGet in the aws-sdk for DynamoDB which does not support query condition expressions (like begins_with) but I think it could be possible; going to try a few approaches and get back to you!

@brianleroux brianleroux self-assigned this Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants