---
title: "ProductVariantConnection"
description: "自动生成的用于对多个 ProductVariants 进行分页的类型"
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-variant-connection'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/products/objects/product-variant-connection.md'
---
# ProductVariantConnection

自动生成的用于对多个 ProductVariants 进行分页的类型

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

## Type Signature

`ProductVariantConnection`

## Fields

* `edges`

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

  一个带有变体节点的列表

* `nodes`

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

  ProductVariantEdge 中包含的节点列表

* `pageInfo`

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

  帮助分页的信息

## Schema Definition

```graphql
type ProductVariantConnection { 
	edges: [ProductVariantEdge!]
	nodes: [ProductVariant!]
	pageInfo: PageInfo! 
}
```

## Field from

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

  商品变体列表

## Error Handling

关于更多通用错误码说明，参考：[状态码和错误码](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/storefront-api/overview.md#status-and-error-codes)。

