---
title: "MediaConnection"
description: "Auto-generated type used for pagination of multiple Media."
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/objects/media-connection'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/objects/media-connection.md'
---
# MediaConnection

Auto-generated type used for pagination of multiple Media.

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

## Type Signature

`MediaConnection`

## Fields

* `edges`

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

  List of edge nodes.

* `nodes`

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

  List of nodes contained within a MediaEdge.

* `pageInfo`

  [PageInfo!](https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/objects/page-info.md)

  Pagination Assistance Information.

## Schema Definition

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

## Field from

* [Product](https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/objects/product.md).media

  The media linked to the product, including images and videos.

## Error Handling

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

