Skip to content

graphql

Auto Added by WPeMatico

How to change GraphQL sorting and filtering to use the highest price of product variants instead of the lowest?

I’m working with GraphQL in my application, specifically with product filtering and sorting. Currently, the system is configured to use the lowest price of the product variants for filtering and sorting purposes. However, I need to modify this behavior to… Read More »How to change GraphQL sorting and filtering to use the highest price of product variants instead of the lowest?

Magento 2 : Graphql setShippingAddressesOnCart default query duplicates the addresses in quote_address table

I’m using Magento version 2.4.5-p1 And I’m trying to setShippingAddressesOnCart using graphql for logged-in customers. This is the default Magento query I’m using but it’s duplicating the data for the shipping address in quote_address, For Example, If I setShippingAddressesOnCart query… Read More »Magento 2 : Graphql setShippingAddressesOnCart default query duplicates the addresses in quote_address table

Magento 2 : How to create a graphql api for fetch the best seller product collection with arguments search and filter like in the product graphql?

I am trying to fetch Best seller product collections using graphql like the one below. bestSellers ( pageSize: Int = 20 @doc(description: “The maximum number of results to return at once. The default value is 20.”), currentPage: Int = 1… Read More »Magento 2 : How to create a graphql api for fetch the best seller product collection with arguments search and filter like in the product graphql?

Magento 2 get categories graphql fails with “There is no attribute class assigned to field categoryList”

Request: query { categories { items { name } } } Error Response: { “errors”: [ { “debugMessage”: “There is no attribute class assigned to field categoryList”, “message”: “Internal server error”, “extensions”: { “category”: “internal” }, “locations”: [ { “line”:… Read More »Magento 2 get categories graphql fails with “There is no attribute class assigned to field categoryList”