0

We have

\Magento\CatalogGraphQl\Model\Resolver\Product\PriceRangeResolver

here PriceProviderPool (Magento\CatalogGraphQl\Model\Resolver\Product\Price\ProviderPool)

i have used in my custom module

but Error I'm getting :

Type Error occurred when creating object: Magento\CatalogGraphQl\Model\Resolver\Product\Price\ProviderPool, Argument 1 passed to Magento\CatalogGraphQl\Model\Resolver\Product\Price\ProviderPool::__construct() must be of the type array, null given, called in

i want create this price_range (Response in my custom module)

"price_range": {
            "maximum_price": {
              "discount": {
                "amount_off": 0,
                "percent_off": 0
              },
              "final_price": {
                "currency": "USD",
                "value": 34
              },
              "regular_price": {
                "currency": "USD",
                "value": 34
              }
            }
          }

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.