OBJECT

ProductMedia

link GraphQL Schema definition

1type ProductMedia implements ObjectWithAttributes, ObjectWithTranslations, Localizable {
2id: Int!
3
4# This media will be returned in one selected size. See Query.mediaSizes for the list of available sizes.
5#
6# Required permission: ProductMedia:read
7#
8# Arguments
9# sizeName: (self-explanatory)
10source(sizeName: String = "standard"): MediaSource!
11
12# May contain any key:value pairs, but some helpful meta-data may also be automatically added here:
13# * `originalHeight`, `originalWidth` – original dimensions of the uploaded image
14# * `originalSha1` – SHA-1 checksum of the original image to enable automated checks, whether the image content is what
15# you suspect it is
16# * `originalUrl` – when the media were added using the `createMediaBatch` mutation, and so the original URL was known
17metaDataJSON: String
18
19# Required permission: ProductMedia.attributes:read
20#
21# All elements are always returned
22attributes: [Attribute!]!
23
24# Required permission: Translation:read
25#
26# All elements are always returned
27#
28# Arguments
29# where: (self-explanatory)
30translations(where: TranslationFilter): [LanguageTranslation!]!
31
32# Required permission: Product:read
33product: Product!
34
35# Required permission: ProductVariant:read
36productVariant: ProductVariant
37
38}