可以根据主查询过滤子查询吗? (Graphql)

时间:2019-10-29 05:10:47

标签: graphql prisma

我想根据主查询的结果过滤子查询,我的查询是

{
  users(where: { id:"server1"  }) {
    id
    name
    lastMonthPaid  <-----------I want to used this variable in sub query
    offers{
      books (where:{date: lastMonthPaid}){<----------this is the sub query
        dealprice
      }
    }
  }
}

通过我使用棱镜的方式 那么,Graphql是否提供执行这种查询的机制?

0 个答案:

没有答案