Skip to content

Shouldn't properties without the @Attributes decorator be left out? #205

Answered by whimzyLive
rudieros asked this question in Q&A
Discussion options

You must be logged in to vote

This is expected behavior, as @Attribute is just a decorator to allow us to configure TypeDORM-specific metadata for that property.
It does not and will not stop an attribute from going into DynamoDB if it was passed in as part of the model value.

So at the time of instantiating a model, if the model does not contain a value for a property it will not be added to the dynamo.

In addition to this, there is also a hidden option that the @Attribute decorator supports, which might also be something that can help you.
Please look at the api.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by whimzyLive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants