这是关于 appsync 函数解析器模板的。检查链接以获取更多详细信息。 https://github.com/aws/aws-appsync-community/issues/191这是我的问题。
query hh{
getPostApp(title: "hh")
{
id
title
content
author
}
}
============错误=======================
{
"data": {
"getPostApp": null
},
"errors": [
{
"path": [
"getPostApp",
"id"
],
"locations": null,
"message": "Cannot return null for non-nullable type: 'ID' within parent 'PostApp'
(/getPostApp/id)"
},
}
]
}