问题描述
在我的类型政策中
typepolicies:{
Query:{
fields:{
getCartItems:{
//This is a local field
//I want to reference "allProducts" field here
},allProducts:{
//Products are ferched from network and cached
}
}
}
}
在我的getCartItems中,我有一个反应式产品ID数组,我想遍历并过滤掉所有产品字段中具有匹配ID的匹配产品。有什么方法可以引用查询字段的同级对象。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)