-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues on update sub property and updating iso dates with set #539
Comments
A couple of comments: Regarding issue 1.
Regarding issue 2
|
Hi @mobsense, To use For issue 2 that's what we implemented after running into it. I didn't realize that |
In OneTable, undefined and null mean 2 very different things. Null is used to indicate a property that must be deleted. Undefined is exactly the same as completely omitting the property. Yes, you could argue that "set" should apply the onetable data mapping routines. If you feel strongly about this, I'll change this to an enhancement issue. |
Ok, got it. Sorry for responding so late. Yes, applying the mapping routines on set, would be something I really wishes onetable would handle. |
Describe the bug
We use onetable a lot and had some issues with some more advanced update use-cases. We ran into two issues:
set
it throws when isoDates is set to trueTo Reproduce
Demo repo with debug.ts: https://github.com/WolfWalter/dynamodb-onetable
Cut/Paste
Expected behavior
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: