我有这样的架构
type District @model {
id: ID!
name: String!
workers: [Worker] @connection(name: "DistrictWorker")
}
type Service @model{
id: ID!
name: String!
workers: [Worker] @connection(name: "ServiceWorker")
}
type Worker @model {
id: ID!
name: String!
service: Service @connection(name: "ServiceWorker")
district: District @connection(name: "DistrictWorker")
}
我想在通过连接应用服务和/或区域过滤器的Worker处进行查询。我想我必须编写一些自定义解析器,也许是流水线解析器,我想要一些关于如何实现它的指导。
是否有任何不同的方法来实现相同的目标。