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
Hello,
My understanding is that {overwrite : false} prevents overwriting only based on the partition key.
When I create an object with a generated partition key (uuid), how can I prevent overwriting based on another attribute (for instance, an email address) ? Note that this attribute could be a global secondary index.
Thanks!
The text was updated successfully, but these errors were encountered:
Unfortunately this isn't realistic with DynamoDB. The best approach is to use the email address as the hashkey. This is the only way to guarantee uniqueness with dynamodb.
Hello,
My understanding is that
{overwrite : false}
prevents overwriting only based on the partition key.When I create an object with a generated partition key (uuid), how can I prevent overwriting based on another attribute (for instance, an email address) ? Note that this attribute could be a global secondary index.
Thanks!
The text was updated successfully, but these errors were encountered: