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

Kay*_*Kay 5 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 allowed on leaf type String of field sendSignatureRequest @ 'sendSignatureRequest'"
    }
  ]
}
Run Code Online (Sandbox Code Playgroud)

我以前没有见过这个错误。我应该去哪里修复它?

Kay*_*Kay 2

弄清楚了。lambda 函数返回一个字符串,我在查询中编码了一个对象。