Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在Strapi';使用GraphQL的一对多关系是什么?_Graphql_Strapi - Fatal编程技术网

如何在Strapi';使用GraphQL的一对多关系是什么?

如何在Strapi';使用GraphQL的一对多关系是什么?,graphql,strapi,Graphql,Strapi,假设我有以下GraphQL查询: query { shops(id: 1) { id name products { id } } } 如何获得产品的计数?(用于分页)我忽略了github上的问题。显然是

假设我有以下GraphQL查询:

query {
  shops(id: 1) {
    id
    name
    products {
      id
    }
  }
}

如何获得
产品的计数?(用于分页)

我忽略了github上的问题。显然是