---
title: "CollectionConnection"
description: "分类列表的分页 connection 对象。"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/products/objects/collection-connection'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/products/objects/collection-connection.md'
---
# CollectionConnection

分类列表的分页 connection 对象。

- **API Version:** v20270301
- **API Type:** Storefront
- **API Protocol:** GraphQL
- **Operation Type:** Object

## Fields

* `edges`

  [[CollectionEdge!]](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/products/objects/collection-edge.md)

  边对象列表，包含节点及其对应的游标。

* `pageInfo`

  [PageInfo!](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/online-store/objects/page-info.md)

  当前页的分页信息。

* `totalCount`

  [Int](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/int.md)

  当前销售渠道下已发布且符合查询条件的分类总数。

* `nodes`

  [[Collection]](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/products/objects/collection.md)

  节点的扁平化列表。

## Field from

* [Product](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/products/objects/product.md).collections

* [Query](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/products/queries/collections.md).collections

