reactjs - 如何将数据从 graphql 传递到另一个页面?
问题描述
嗨,我想使用 graphql 将数据从另一个页面传递,这是我的代码示例
const getListQuery=gql`
{
storelist{
id
storeName
storeLogoUrl
deliveryType
storeDescription
}
}`
我想将 storelist 的 id 作为 store id 传递给以下查询。
const getListQuery = gql`
{
salesdepartments(storeid:"5ef5cd9114a4659138eb8e11")
{
name
id
departmentProducts{
productname
images
id
price
}
}
}
解决方案
推荐阅读
- android - 如何在最新的 Android SDK 更新中使用 notificationBuilder.setSmallIcon(icon)?
- python - 在实际 pyFFTW 中计算拉普拉斯算子
- c - 这个函数可以兼容两个版本的 POSIX 吗?
- ruby - 如何在Ruby中将浮点值转换为整数
- java - 如何修复“邮件服务器连接失败;嵌套异常是 javax.mail.MessagingException:无法将套接字转换为 TLS;”使用 Spring-mvc?
- sql - SQL JOIN:在 JOIN 子句中添加自定义约束
- excel - 使 B 列中的单元格显示 A 列中的最大值
- twilio - 如何将正在进行的 Twilio 电话呼叫切换到
连接器 - sql - 在 BigQuery SQL 中获取以前的工作周日期
- java - 为什么实现接口的类必须静态调用其默认的超级方法?