Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix disable validation in Dynamo-db against null / empty string?

I am trying to push the data to Dynamodb from node JS code.

I am getting the issue like

DynamoDB.DocumentClient should support empty string properties

does anyone knows how to disable validation in DynamoDB ?

like image 649
Vishnu Ranganathan Avatar asked Feb 05 '18 15:02

Vishnu Ranganathan


1 Answers

By adding this we will be able to insert empty values to Dynamodb.

var dynamoDocClient = new AWS.DynamoDB.DocumentClient({ region : 'us-west-2', convertEmptyValues : true });
like image 154
Vishnu Ranganathan Avatar answered Oct 19 '22 15:10

Vishnu Ranganathan