Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix incorrect multipler for limit field (#17947)
Maciej Korycinski8750f909b505
diff --git a/saleor/graphql/query_cost_map.py b/saleor/graphql/query_cost_map.pyindex d7ad2fd114..ba6a416a65 100644--- a/saleor/graphql/query_cost_map.py+++ b/saleor/graphql/query_cost_map.py@@ -143,7 +143,12 @@ COST_MAP = {},"Attribute": {"choices": {"complexity": 1, "multipliers": ["first", "last"]},- "values": {"complexity": 1, "multipliers": ["first", "last"]},+ "values": {+ "complexity": 1,+ "multipliers": [+ "limit",+ ],+ },"productTypes": {"complexity": 1, "multipliers": ["first", "last"]},"productVariantTypes": {"complexity": 1, "multipliers": ["first", "last"]},},@@ -305,7 +310,7 @@ COST_MAP = {},"SelectedAttribute": {"attribute": {"complexity": 1},- "values": {"complexity": 1, "multipliers": ["limit"]},+ "values": {"complexity": 1},},"ShippingMethodChannelListing": {"channel": {"complexity": 1},