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

Suggestion: A function that transforms the output from DDB for an attribute

Open austevick opened this issue 4 years ago • 2 comments

Similar to the transform function in EntityAttributeConfig, it would be super helpful for transforming data from DDB. Would be super helpful for cases like dates where they are stored as a string/number but you would like the Entity to return it as a Date object.

austevick avatar Feb 28 '22 16:02 austevick

This PR has been there for ages: https://github.com/jeremydaly/dynamodb-toolbox/pull/90

BabyDino avatar May 23 '22 07:05 BabyDino

This PR has been there for ages: https://github.com/jeremydaly/dynamodb-toolbox/pull/90

Haven't they all... 😕

darbio avatar May 23 '22 08:05 darbio

#332 was merged and added the format property to entity schemas and does exactly what you've mentioned above 😎

naorpeled avatar Nov 03 '22 15:11 naorpeled