Closed ATaiIsHere closed 6 months ago
Did a quick add, and all the tests fail. So that isn't quite right.
The existing code says you cannot set a property explicitly to null (i.e. you want to remove it) if it is required. This is the case for both partial and non-partial settings.
To remove you should be setting name.first to null. Setting to undefined will remove if partial is false, because you are saying you want to set "name" to {}. This is removing first correctly.
version: 2.7.1 schema:
I can remove name.first field by following command.
https://github.com/sensedeep/dynamodb-onetable/blob/v2.7.1/src/Model.js#L1721C16-L1721C16 I think that should be edited to following condition:
we need to make different judgments based on the
partial
parameter.