clarkie / dynogels

DynamoDB data mapper for node.js. Originally forked from https://github.com/ryanfitz/vogels
Other
490 stars 110 forks source link

Support for new aws-sd dynamodb driver feature: convert empty values to null #64

Closed endymion00 closed 6 years ago

endymion00 commented 7 years ago

"Converting empty values to null is now an opt-in feature of the document client; you can pass a boolean convertEmptyValues option to the document client constructor to have it do so."

See https://github.com/aws/aws-sdk-js/issues/833

igorhmm commented 7 years ago

+1

jkav77 commented 6 years ago

Dynogels does not support null values, as setting an attribute to null is used to delete the attribute from the model.

kernwig commented 6 years ago

Note that this fails if the attribute is part of a secondary index. undefined would have been a better choice.