---
title: "MediaConnection"
description: "用于对多个媒体进行分页的自动生成类型"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/media-connection'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/media-connection.md'
---
# MediaConnection

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

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

## Type Signature

`MediaConnection`

## Fields

* `edges`

  [[MediaEdge!]](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/media-edge.md)

  边缘列表

* `nodes`

  [[Media!]](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/interfaces/media.md)

  MediaEdge 中包含的节点列表

* `pageInfo`

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

  帮助分页的信息

## Schema Definition

```graphql
type MediaConnection { 
	edges: [MediaEdge!]
	nodes: [Media!]
	pageInfo: PageInfo! 
}
```

## Field from

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

  与商品相关的媒体

## Error Handling

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

