Search code examples
amazon-dynamodbaws-sdk-nodejs

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 ?


Solution

  • 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 });