PynamoDB icon indicating copy to clipboard operation
PynamoDB copied to clipboard

Updating an item without getting it first

Open kappa90 opened this issue 7 years ago • 4 comments

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

kappa90 avatar Mar 28 '18 15:03 kappa90

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

alexanderfanz avatar Mar 28 '18 19:03 alexanderfanz

@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?

amirvaza avatar Aug 17 '19 22:08 amirvaza