Abhijith Nagarjuna
Abhijith Nagarjuna

Reputation: 25

Is it possible to Change the NullType for Null values in Dynamo DB?

I have few attributes in an item which are not PK/SK/GSI but null. So when I store then in Dynamo DB it shows them as Null with Type as Null. Is there any way where I can change the type from Null to String/Boolean ?

Upvotes: 0

Views: 935

Answers (1)

Leeroy Hannigan
Leeroy Hannigan

Reputation: 19683

You can't change a data type without updating each item you want to change one-by-one.

DynamoDB has a Null data type, but it's best to drop null values and not store them at all.

In short, to overcome your issue you'll have to make a change on how you write items.

Upvotes: 1

Related Questions