问题描述
在我的代码中,我使用@argumentDeFinitions
和@arguments
将我的产品ID传递到片段容器中:
fragment CheckoutPrompt_me on Me
@argumentDeFinitions(
bundleID: { type: "String",defaultValue: null }
) {
bundle(id: $bundleID) {
...
}
}
...
父母:
me: graphql`
fragment FrontPageApp_me on Me
@argumentDeFinitions(
bundleID: { type: "String",defaultValue: null }
) {
...CheckoutPrompt_me
@arguments(
bundleID: $bundleID
)
}
`,
路线:
{
path: "/app",Component: FrontPageApp,query: graphql`
query routes_FrontPageQuery(
$bundleID: String
) {
me {
...FrontPageApp_me
@arguments(
bundleID: $bundleID
)
}
}
`,prepareVariables: (params,props) => {
return {
}
},cacheConfig: {
force: true,},
在我的客户模式中,我定义了变量
extend type Me {
bundleID: String
}
有没有一种方法可以将我在客户端上设置的值bundleID
传递到@arguments
?这样我每次提交本地更新时都会获取?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)