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

给你一囗甜甜゛ 提交于 2020-04-13 05:27:49

问题


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 ?


回答1:


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


来源:https://stackoverflow.com/questions/48625681/how-to-fix-disable-validation-in-dynamo-db-against-null-empty-string

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!