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

Updating an item without getting it first #473

Open
kappa90 opened this issue Mar 28, 2018 · 4 comments
Open

Updating an item without getting it first #473

kappa90 opened this issue Mar 28, 2018 · 4 comments
Labels

Comments

@kappa90
Copy link

kappa90 commented Mar 28, 2018

Would it be possible to update an item without getting it first?

As far as I understand this is possible with the DynamoDB API, as long as you know the hash/range keys.

Thanks

@alexanderfanz
Copy link

Maybe this can help you a little:
#446
take a look
good luck

@amirvaza
Copy link

@alexanderfanz
What about something like that:
user.update(actions=[User.Requests.set(User.Requests + 1)])
Obviously i get "The provided expression refers to an attribute that does not exist in the item"
Any solution?

@bpsoos
Copy link

bpsoos commented Jul 24, 2024

Hello, when trying to answer this question I ran into a bug, which is tracked in this issue now: #1247

@bpsoos
Copy link

bpsoos commented Jul 24, 2024

I also tried updating an item without getting it first by using the low level api's update_item but ran into a bug this way as well. That issue is tracked here: #1249

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

No branches or pull requests

5 participants