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

BrandMedia

Kind: Object

A lifestyle image/video in a brand’s carousel.

Field Type Description
id ID!
alt String!
caption String!
sortOrder Int!
mediaType MediaType! IMAGE or VIDEO.
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, else nearest image thumbnail 256/512/1024). Mixed by design, so this one field can be either — branch on videoProvider rather than guessing; an embed link is absolute and must be used as-is, while the storage branch follows the rule below. Note CategoryMedia.url, which looks like a sibling, has no embed branch and is always storage. 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