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

时间:2019-04-17 14:16:20

标签: 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'"
    }
  ]
}

我之前从未见过此错误。我应该在哪里修复它?

1 个答案:

答案 0 :(得分:0)

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