Amazon web services 与AWS Amplify API和DynamoDB一起使用空字符串

Amazon web services 与AWS Amplify API和DynamoDB一起使用空字符串,amazon-web-services,amazon-dynamodb,aws-amplify,Amazon Web Services,Amazon Dynamodb,Aws Amplify,我开始将AWS Amplify用于web应用程序 我使用DynamoDB数据源配置了AppSync GraphQL,正如 我的一个值是空字符串,在尝试执行插入操作时出现此错误 "One or more parameter values were invalid: An AttributeValue may not contain an empty string (Service: AmazonDynamoDBv2; Status Code: 400; Error Code: Validation

我开始将AWS Amplify用于web应用程序

我使用DynamoDB数据源配置了AppSync GraphQL,正如

我的一个值是空字符串,在尝试执行插入操作时出现此错误

"One or more parameter values were invalid: An AttributeValue may not contain an empty string (Service: AmazonDynamoDBv2; Status Code: 400; Error Code: ValidationException; Request ID: 0000000SOMETHING0000000)"

似乎可以通过将选项
convertEmptyValues:true
传递给DynamoDB客户端来解决这个问题。您知道如何使用AppSync传递这样的选项吗?

我在放大代码库中没有找到这样的选项。我希望它会被添加

同时,我通过以下方式传递我的空字符串:

{
  id: id,
  title: title,
  description: description || null
}