Skip to main content
Version: 3.x

ProductMedia

Represents a product media.

type ProductMedia implements Node {
id: ID!
sortOrder: Int
alt: String!
type: ProductMediaType!
oembedData: JSONString!
url(size: Int, format: ThumbnailFormatEnum): String!
}

Fields

id (ID!)

sortOrder (Int)

alt (String!)

type (ProductMediaType!)

oembedData (JSONString!)

url (String!)

Size of the image. If not provided, the original image will be returned.

The format of the image. When not provided, format of the original image will be used. Must be provided together with the size value, otherwise original image will be returned.

Added in Saleor 3.6.

Note: this API is currently in Feature Preview and can be subject to changes at later point.

Interfaces

Node

An object with an ID