dynamodb-toolbox
dynamodb-toolbox copied to clipboard
[v0.4] Remove nested data in map when null or undefined is set as value
When trying to delete nested values in a map, I ran into issues, that it would crash when providing null as value. So I added it to have the same semantics as when providing undefined
There is a possibility to differentiate between the two. One could Remove the property and the other could set its value to null, but I think its better to handle them the same way: Removing the nested property.
Can you refactor this to merge to main? v0.4 was merged in.
@KeKs0r can't you use the $remove property here?
Hey @KeKs0r, thanks for your contribution!