dynobase-icon
Dynobase

Question: How to handle empty strings in DynamoDB?

Rafal Wilinski

Answered by Rafal Wilinski

Answer

Since 2020, DynamoDB has supported empty string values for non-key attributes.

Before passing an empty string as a field value, you can set the configuration file IsEmptyStringValueEnabled = true in DynamoDBContextConfig class. Or, you can edit the AWS configuration as shown below.

const documentClient = new AWS.DynamoDB.DocumentClient({ convertEmptyValues: true });

You can refer to this documentation for more details.

Spend less time in the AWS console, use Dynobase.

Start your 7-day free trial today

Product Features

Download
/
Changelog
/
Pricing
/
Member Portal
/
Privacy
/
EULA
/
Twitter
© 2024 Dynobase
+
Better DynamoDB Experience.
Try Dynobase to accelerate your DynamoDB workflow. Start your 7-day free trial today.