Media object

An auto-generated type for paginating through multiple Media.

On this page

Fields

  • edges ([[MediaEdge!]!](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/media))
    A list of edges.
  • pageInfo ([PageInfo!](https://shopify.dev/docs/admin-api/graphql/reference/pageinfo))
    Information to aid in pagination.

An auto-generated type which holds one Media and a cursor during pagination.

On this page

Fields

  • cursor ([String!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01))
    A cursor for use in pagination.
  • node ([Media!](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/media))
    The item at the end of MediaEdge.

Types that return MediaEdge

  • [MediaConnection.edges](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/media#edges-2021-01)

Represents a media interface.

Fields

  • alt ([String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01))
    A word or phrase to share the nature or contents of a media.
  • mediaContentType ([MediaContentType!](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/mediacontenttype))
    The media content type.
  • mediaErrors ([[MediaError!]!](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/mediaerror))
    Any errors which have occurred on the media.
  • preview ([MediaPreviewImage](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/mediapreviewimage))
    The preview image for the media.
  • status ([MediaStatus!](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/mediastatus))
    Current status of the media.

Types that implement Media

  • [ExternalVideo](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/externalvideo)
  • [MediaImage](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/mediaimage)
  • [Model3d](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/model3d)
  • [Video](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/video)