Log in
Interface

CreateBuyRequestDataProviderInterface

Magento\QuoteGraphQl\Model\Cart\CreateBuyRequestDataProviderInterface

What it does

This interface defines a contract for converting GraphQL cart item data into a buy request format that Magento's catalog product system can understand.

Developers implement this interface when adding custom product types to GraphQL or when they need to transform cart item data from the GraphQL API into the standard Magento buy request array format used for adding products to cart.

Public Methods

  • execute()