shiftcode / dynamo-easy

DynamoDB client for NodeJS and browser with a fluent api to build requests. We take care of the type mapping between JS and DynamoDB, customizable trough typescript decorators.
https://shiftcode.github.io/dynamo-easy/
MIT License
206 stars 27 forks source link

Babel babel -> Reflect meta #334

Closed hookercookerman closed 3 years ago

hookercookerman commented 3 years ago

Problem

Area

Update Expressions -> ObjectMapper -> toDb

It is beyond a challenge to single down where this is going wrong. But in a nut shell undefined its getting parsed around for this mapper. I assume the metadata is not being handled correctly in the babel-plugin-transform-typescript-metadata and some meta data is not being picked up,

So this is more of a question; have you ever come across this issue ? as its kind of epic, hoping you might have some insights into this. Thanks

.babelrc config just in case

{
    "plugins": [
                ["babel-plugin-transform-typescript-metadata"],
        ["@babel/plugin-proposal-decorators", { "legacy": true }],
        ["@babel/plugin-proposal-class-properties", { "loose": true }]
    ],
    "presets": ["@parcel/babel-preset-env", "@babel/preset-typescript"]
}