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
When updating an item with a map attribute, if you attempt to set multiple keys that are identical after removing non-word characters (\w), Electro will generate the same expression attribute name for both keys. This occurs even though the original keys are different, leading to conflicts in the update operation.
Describe the bug
When updating an item with a map attribute, if you attempt to set multiple keys that are identical after removing non-word characters (\w), Electro will generate the same expression attribute name for both keys. This occurs even though the original keys are different, leading to conflicts in the update operation.
The following
will generate the following dynamo params:
this also throws an error in dynamo because you are not allowed to update the same field multiple times in the same operation.
ElectroDB Version
Specify the version of ElectroDB you are using
(e.g.
3.0.1
)ElectroDB Playground Link
https://electrodb.fun/?#code/PQKgBAsg9gJgpgGzARwK5wE4Es4GcA0YuccYGeqCALgUQBYCG5YA7llXWAGbZwB2MXGBDAAUKKwBbAA5QMVMAG8wAUT5V2AT0IBlTADcsAY1IBfbhiiSwAIkRwjVSzABGNgNzijUPrgVUGFwRSAF5bTShUDAB9AKC4aL4GSTgPcVAwABUGXABrITUNKk1hMW9ffxz8sDC+OBZVdS0AClEwJTb2sElYRAAuDq6u-iLNAZsAvNwbfE6h-UxcLB9xgEYZua7iDEMTccnchmlpG03TWaGGKicsF1QqPAHFTfasGCeXruLpOHG-bD4AHMNkMhuQ0FhyO8wE50J9zp9JEcPqCvpofgMAOQMPiaTHwi5dBFDLACOAAD0eg1B0ksACsHDQUaiwNJcsyWdwcAhoTY2SDOWBvDIoEsHgMANo2N42AC6n3axJZeQ5LK43N5eQFnOAwCF5CupGFsjFpFycE0Qi4clZTA0DCQuDkCnNJTQmBwuAVXWNovYvzAEvlnNMBLOnSVyjiwTAoYAlJ5RAdcAA6aRXIx0ZrKN5Y1aY2NxlMwK4MZrNK5OWhQaS4OM1AB81JrqeIVAr1wwqaR0glmLoiAQUFYch5mNlhFWcc6LZTbY7VZTPb7A4QQ6GLFHMHHk+npiLgKgzTjQA
Entity/Service Definitions
Include your entity model (or a model that sufficiently recreates your issue) to help troubleshoot.
Expected behavior
Separate expression attribute names should be generated for each unique key.
Errors
The text was updated successfully, but these errors were encountered: