Log in
Model

DownloadableProductTypeResolver

Magento\DownloadableGraphQl\Model\DownloadableProductTypeResolver

What it does

This class resolves the GraphQL type for downloadable products in Magento 2's GraphQL API.

It checks if a product's type_id matches the downloadable product type and returns 'DownloadableProduct' as the GraphQL type name.

Developers use this when implementing GraphQL queries that need to differentiate downloadable products from other product types in API responses.

Public Methods

  • resolveType()