Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Update query cost for attribute values (#11411)

Tomasz Szymański8748148b0f32
diff --git a/saleor/graphql/query_cost_map.py b/saleor/graphql/query_cost_map.py
index 096f5d50cc..5cefe04f66 100644
--- a/saleor/graphql/query_cost_map.py
+++ b/saleor/graphql/query_cost_map.py
@@ -294,6 +294,7 @@ COST_MAP = {
},
"SelectedAttribute": {
"attribute": {"complexity": 1},
+ "values": {"complexity": 1, "multipliers": ["first", "last"]},
},
"ShippingMethodChannelListing": {
"channel": {"complexity": 1},