Skip to content
Generated from the production schema (commit fbf0d6e).

ProductMedia

Kind: Object

Field Type Description
id ID!
alt String!
sortOrder Int!
mediaType MediaType! IMAGE or VIDEO.
variantId ID Variant this media is scoped to (null = shared across all variants).
videoProvider VideoProvider! For VIDEO: FILE (self-hosted) or YOUTUBE/VIMEO (embed).
url String! Asset URL: the external embed URL for YouTube/Vimeo videos, else the storage URL. size: 0 = original, otherwise nearest image thumbnail (256/512/1024). Mixed by design — branch on videoProvider; an embed link is absolute and used as-is, the storage branch follows the rule below. Served from our storage: absolute when object storage is configured, otherwise a path relative to the API origin — resolve it before use.
Arguments: size: Int! = 0