Media
Requires access scope.
Represents a media interface.
Anchor to FieldsFields
- alt (String)
- id (ID!)
- mediaContentType (MediaContentType!)
- presentation (MediaPresentation)
- previewImage (Image)
- •String
A word or phrase to share the nature or contents of a media.
- •ID!non-null
A globally-unique ID.
- Anchor to mediaContentTypemedia•Media
Content Type Content Type! non-null The media content type.
- Anchor to presentationpresentation•Media
Presentation The presentation for a media.
- Anchor to previewImagepreview•Image
Image The preview image for the media.
Anchor to Types implemented inTypes implemented in
- ExternalVideo (ExternalVideo)
- MediaImage (MediaImage)
- Model3d (Model3d)
- Video (Video)
- •OBJECT
Represents a video hosted outside of Shopify.
- •String
A word or phrase to share the nature or contents of a media.
- Anchor to embedUrlembed•URL!
Url non-null The embed URL of the video for the respective host.
- Anchor to hosthost•Media
Host! non-null The host of the external video.
- •ID!non-null
A globally-unique ID.
- Anchor to mediaContentTypemedia•Media
Content Type Content Type! non-null The media content type.
- Anchor to originUrlorigin•URL!
Url non-null The origin URL of the video on the respective host.
- Anchor to presentationpresentation•Media
Presentation The presentation for a media.
- Anchor to previewImagepreview•Image
Image The preview image for the media.
- Anchor to embeddedUrlembedded•URL!
Url non-nullDeprecated
- •OBJECT
An image hosted on Shopify's content delivery network (CDN). Used for product images, brand logos, and other visual content across the storefront.
The
imagefield provides the actual image data with transformation options. Implements theMediainterface alongside other media types likeVideoandModel3d.- •String
A word or phrase to share the nature or contents of a media.
- •ID!non-null
A globally-unique ID.
- Anchor to imageimage•Image
The image for the media.
- Anchor to mediaContentTypemedia•Media
Content Type Content Type! non-null The media content type.
- Anchor to presentationpresentation•Media
Presentation The presentation for a media.
- Anchor to previewImagepreview•Image
Image The preview image for the media.
- •OBJECT
Represents a Shopify hosted 3D model.
- •String
A word or phrase to share the nature or contents of a media.
- •ID!non-null
A globally-unique ID.
- Anchor to mediaContentTypemedia•Media
Content Type Content Type! non-null The media content type.
- Anchor to presentationpresentation•Media
Presentation The presentation for a media.
- Anchor to previewImagepreview•Image
Image The preview image for the media.
- Anchor to sourcessources•[Model3d
Source!]! non-null The sources for a 3d model.
- •OBJECT
A video hosted on Shopify's servers. Implements the
Mediainterface and provides multiple video sources through thesourcesfield, each with format, dimensions, and URL information for adaptive playback.For videos hosted on external platforms like YouTube or Vimeo, use
instead.- •String
A word or phrase to share the nature or contents of a media.
- •ID!non-null
A globally-unique ID.
- Anchor to mediaContentTypemedia•Media
Content Type Content Type! non-null The media content type.
- Anchor to presentationpresentation•Media
Presentation The presentation for a media.
- Anchor to previewImagepreview•Image
Image The preview image for the media.
- Anchor to sourcessources•[Video
Source!]! non-null The sources for a video.