Closed
Description
Describe the bug
I have a map that include keys that contain hyphens. DynamoDB throws error when I try to update the map values.
\"ExpressionAttributeNames contains invalid key: Syntax error; key: \"#Cwxpw5TMn06X1-kscvMxS\"
It seems that electrodb uses the map keys as the ExpressionAttribute keys without removing special characters or hashing the keys.
For example updating
attribute: {
type: "map",
properties: {
'example-key XXX _ 1 2 3 4': { type: "string" },
}
}
Outputs
"UpdateExpression": "SET #map.#example-key XXX _ 1 2 3 4 = :example-key XXX _ 1 2 3 4_u0, ...
ElectroDB Version
2.10.5
ElectroDB Playground Link
Use the ElectroDB Playground
Metadata
Metadata
Assignees
Labels
No labels