ProductLinksTypeResolver
Magento\CatalogGraphQl\Model\ProductLinksTypeResolver
What it does
This class resolves the GraphQL type for product links (related, upsell, and crosssell products) in Magento's GraphQL API.
It determines whether a given data array represents a valid ProductLinks type by checking if the link_type field contains one of the supported product relationship types.
Developers use this when implementing or extending GraphQL queries that involve product associations.
Public Methods
- resolveType()