Amazon web services AWS Amplify-定制AppSync解析器,以参考其他DynamoDb表格

Amazon web services AWS Amplify-定制AppSync解析器,以参考其他DynamoDb表格,amazon-web-services,aws-amplify,aws-appsync,aws-amplify-cli,Amazon Web Services,Aws Amplify,Aws Appsync,Aws Amplify Cli,我正在使用Amplify CLI配置后端。以下是我的模式: type Post { id:id! 名字:字符串! comments:[Comment]@connection(关键字:“byPost”,字段:[“id”]) 所有者:字符串 } 类型DemoConversationItem @键(名称:“byPost”,字段:[“postID”]) { id:id! 身份证! post:post@connection(字段:[“postID”]) 文本:字符串! } 正如预期的那样,amplify

我正在使用Amplify CLI配置后端。以下是我的模式:

type Post
{
id:id!
名字:字符串!
comments:[Comment]@connection(关键字:“byPost”,字段:[“id”])
所有者:字符串
}
类型DemoConversationItem
@键(名称:“byPost”,字段:[“postID”])
{
id:id!
身份证!
post:post@connection(字段:[“postID”])
文本:字符串!
}
正如预期的那样,amplify cli根据上述模式生成所有解析器。我想做的是,在
Query.listComments.res.vtl
解析器中,我想访问
Post
对象进行一些处理。在
Comment
级别,我确实拥有
postId
,但不知何故我想要访问完整的
Post
对象

有人能帮我指点一下吗