Log in
Model

ProductResolver

Magento\SalesGraphQl\Model\Resolver\ProductResolver

What it does

This resolver fetches product data for associated products in GraphQL queries, specifically for products linked to sales orders or quotes.

It retrieves complete product information using the product ID from an associated product context, throwing an error if the product is unavailable.

Developers use this when building GraphQL schemas that need to display product details within sales-related queries.

Public Methods

  • resolve()