Aws lambda 如何修复SubSelectionNotAllowed类型的验证错误

Aws lambda 如何修复SubSelectionNotAllowed类型的验证错误,aws-lambda,graphql,aws-appsync,aws-amplify,Aws Lambda,Graphql,Aws Appsync,Aws Amplify,通过AppSync GraphQL调用lambda函数时出现以下错误: { "data": null, "errors": [ { "path": null, "locations": [{ "line": 2, "column": 3, "sourceName": null }], "message": "Validation error of type SubSelectionNotAllowed: Sub selection not al

通过AppSync GraphQL调用lambda函数时出现以下错误:

{
  "data": null,
  "errors": [
    {
      "path": null,
      "locations": [{ "line": 2, "column": 3, "sourceName": null }],
      "message": "Validation error of type SubSelectionNotAllowed: Sub selection not allowed on leaf type String of field sendSignatureRequest @ 'sendSignatureRequest'"
    }
  ]
}

我以前从未见过这个错误。我应该在哪里修理它

找到了答案。lambda函数返回一个字符串,我在查询中编码了一个对象

找到了答案。lambda函数返回一个字符串,我在查询中编码了一个对象