dynamodb-toolbox icon indicating copy to clipboard operation
dynamodb-toolbox copied to clipboard

[v0.4] Remove nested data in map when null or undefined is set as value

Open KeKs0r opened this issue 3 years ago • 2 comments

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.

KeKs0r avatar May 10 '22 10:05 KeKs0r

Can you refactor this to merge to main? v0.4 was merged in.

jeremydaly avatar Jul 02 '22 14:07 jeremydaly

@KeKs0r can't you use the $remove property here?

rbdmorgan avatar Jul 20 '22 15:07 rbdmorgan

Hey @KeKs0r, thanks for your contribution!

naorpeled avatar Nov 07 '22 20:11 naorpeled