You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use put() with ReturnValuesOnConditionCheckFailure: 'ALL_OLD' to return the existing record if it already exists; while debugging I can see that error.Item is available and contains the existing record but for some reason I can't access that at runtime:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm trying to use
put()
withReturnValuesOnConditionCheckFailure: 'ALL_OLD'
to return the existing record if it already exists; while debugging I can see thaterror.Item
is available and contains the existing record but for some reason I can't access that at runtime:What's the proper way of accessing an existing item when catching the
ConditionalCheckFailedException
exception?Beta Was this translation helpful? Give feedback.
All reactions