问题描述
我正在使用 AWS Amplify 来构建我的后端。我的架构的片段如下:
type SampleRoom @model
{
id: ID!
name: String!
description: String
members: [String]
}
type SampleMessage @model
@key(name: "byRoom",fields: ["roomID"])
{
id: ID!
roomID: ID!
room: SampleRoom @connection(fields: ["roomID"])
text: String
members: [String]
}
由于我使用了 amplify cli,因此该过程会为所有操作生成所有速度模板解析器。
话虽如此,我想为 syncSampleMessages
查询解析器实现自定义逻辑,我想在其中访问 SampleRoom
表中的数据以进行内部操作。目前,解析器只能访问 SampleMessage
表中的数据。
我觉得有一种方法可以利用管道解析器来实现这一点,但是,我不确定如何构建堆栈。
有人可以帮忙吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)