Skip to main content
Version: 3.x

ProductImage

Represents a product image.

type ProductImage {
id: ID!
alt: String
sortOrder: Int
url(size: Int, format: ThumbnailFormatEnum): String!
}

Fields

id (ID!)

The ID of the image.

alt (String)

The alt text of the image.

sortOrder (Int)

The new relative sorting position of the item (from -inf to +inf). 1 moves the item one position forward, -1 moves the item one position backward, 0 leaves the item unchanged.

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.