Log in
Model

ProductImage

Magento\CatalogGraphQl\Model\Resolver\Product\ProductImage

What it does

This GraphQL resolver retrieves product image data (URL, label, type) for product queries in Magento's GraphQL API.

Developers use this class when extending or customizing product image fields in GraphQL responses, such as adding new image types or modifying how image labels are resolved.

It handles standard Magento image types like 'image', 'small_image', and 'thumbnail' and returns structured data for GraphQL consumption.

Public Methods

  • resolve()