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

Strongly consistent reads option for query and scan requests #230

Closed
hoonoh opened this issue Aug 9, 2019 · 2 comments · Fixed by #236
Closed

Strongly consistent reads option for query and scan requests #230

hoonoh opened this issue Aug 9, 2019 · 2 comments · Fixed by #236

Comments

@hoonoh
Copy link

hoonoh commented Aug 9, 2019

It would be great to have strongly consistent read options for query and scan operations like like how it is supported by get operation get().onsistentRead().

@simonmumenthaler
Copy link
Contributor

hi @hoonoh
Thanks for opening the issue. We'll cover this in the near future.

In the meantime you can use consistent read by extending the params.

Every request instance contains the public params property where all params for the request are written to.

const queryRequest =  new DynamoStore(YourModel).query()
  .wherePartitionKey('2018-01')
  .whereSortKey().beginsWith('a')

queryRequest.params.ConsistentRead=true

queryRequest.execSingle().then(v => {})

@michaelwittwer
Copy link
Member

🎉 This issue has been resolved in version 5.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants