---
title: "ProductConnection"
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/product-connection'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/products/objects/product-connection.md'
---
# ProductConnection

商品列表的分页 connection 对象。

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

## Fields

* `edges`

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

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

* `pageInfo`

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

  分页信息。

* `nodes`

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

  节点的扁平化列表。 

* `filters`

  [[Filter]](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/filter.md)

  可用过滤器的列表。[Query products](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/products/queries/products/
  ) 查询不支持返回此字段。

* `totalCount`

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

  当前销售渠道下已发布且符合查询条件的商品总数。[Query products](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/products/queries/products/
  ) 查询不支持返回此字段。

## Field from

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

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

