---
title: "MediaConnection"
description: "An auto-generated type for paginating through multiple Media."
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/storefront-api/common-objects/objects/media-connection'
  md: 'https://developer.shopline.com/docs/storefront-api/common-objects/objects/media-connection.md'
---
# MediaConnection

An auto-generated type for paginating through multiple Media.

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

## Type Signature

`MediaConnection`

## Fields

* `edges`

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

  A list of edges.

* `nodes`

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

  A list of the nodes contained in MediaEdge.

* `pageInfo`

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

  Information to aid in pagination.

## Schema Definition

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

## Field from

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

  The media associated with the product.

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/storefront-api/overview.md#status-and-error-codes).

