QuestionQ15
APIs and ServicesAn Adobe Commerce developer is building a new module to extend cart functionality. The module is installed in app/code/CompanyName/ModuleName/.
How can the developer extend the existing CartItemPrices GraphQL schema to add a custom base_price field?
- A Create and configure a <preference> for Magento\QuoteGraphQl\Model\Resolver\CartitemPrices that adds the base_price field in the resolve() function.
- B

- C

Community Discussion