Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Exclude voucher set and sale set from Product type
fowczareka1136902fcc5
diff --git a/saleor/graphql/product/types.py b/saleor/graphql/product/types.pyindex 55a5c5efc7..2153eed7c4 100644--- a/saleor/graphql/product/types.py+++ b/saleor/graphql/product/types.py@@ -284,6 +284,7 @@ class Product(CountableDjangoObjectType):storefront.""")interfaces = [relay.Node]model = models.Product+ exclude_fields = ['voucher_set', 'sale_set']@gql_optimizer.resolver_hints(prefetch_related='images')def resolve_thumbnail_url(self, info, *, size=None):