You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attribute Values
An attribute value cannot be an empty String or empty Set (String Set, Number Set, or Binary Set). However, empty Lists and Maps are allowed.
Doing some tests, dynamodb allow empty List and Maps, but I cant create using Dynogels.
When you try to save a model using create method, it saves but without the empty values.
When you try to save a model using update method, it saves but with the empty values.
The text was updated successfully, but these errors were encountered:
You are correct, dynomodb supports empty Lists and Maps.
But in the create method in dynogels they omit empty String Set, Number Set, or Binary Set but they also omits empty Lists and Maps(don't know if it's a big change to allow empty Lists and Maps)
What i did was to skip the create method and instead do an update call which have Conditional Expression that the key cannot exist.
An ugly workaround but it works.
PS: You dont get the auto generated createdAt if you use a update call instead
As by Docs:
https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html
Doing some tests, dynamodb allow empty List and Maps, but I cant create using Dynogels.
When you try to save a model using
create
method, it saves but without the empty values.When you try to save a model using
update
method, it saves but with the empty values.The text was updated successfully, but these errors were encountered: