<?xml version="1.0"?>
<!--
/**
 * Hyvä Themes - https://hyva.io
 * Copyright © Hyvä Themes. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Magento\QuoteGraphQl\Model\Resolver\CartItems">
        <!--
        /**
         * Make sure it runs before Magento\GraphQlCache\Model\Plugin\Query\Resolver
         * This plugin:
         * - adds quoteItem errors per quoteItem
         * - adds the right parent-url of grouped products to quoteItems
         */
        -->
        <plugin name="cart-items-resolver"
                type="Hyva\Theme\Plugin\QuoteGraphQL\CartItemsResolverPlugin" sortOrder="-1"/>
    </type>

    <type name="Magento\QuoteGraphQl\Model\CartItem\DataProvider\CustomizableOption">
        <plugin name="graphQlQueries"
                type="Hyva\Theme\Plugin\QuoteGraphQL\CustomizableOptionPlugin" sortOrder="-1"/>
    </type>

    <type name="\Magento\QuoteGraphQl\Model\Resolver\CartPrices">
        <plugin name="fix-tax-labels" type="Hyva\Theme\Plugin\QuoteGraphQL\FixCartPricesTaxRateLabelsPlugin"/>
    </type>
</config>
