Image
Represents an image, including its metadata, file information, and variant associations.
Type Definition
type Image {
id: Int
alt: String
url: String
title: String
description: String
tags: [String]
aiProcessed: Boolean
width: Int
height: Int
aspectRatio: String
mimeType: String
fileExtension: String
fileSize: Int
fileName: String
orientation: String
sortOrder: Int
type: String
attachedToVariant: Boolean
variants: [ProductVariant]
}Fields
Relationships
The Image type is associated with product variants through the variants field, which contains a list of ProductVariant objects that this image is attached to. This relationship is only available when the image is accessed through product image or media methods. The image can be used across various product-related types including ProductBundleContent, ProductOptionValue, and Product.
Example
{
id
alt
url
title
description
tags
aiProcessed
width
height
aspectRatio
mimeType
fileExtension
fileSize
fileName
orientation
sortOrder
type
attachedToVariant
variants {
id
}
}Implements
None