Skip to content

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

Add description to translations query

Michał Jelonekfa094e2fb5bf
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index 6f3b94eea1..cd78df319e 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -2177,7 +2177,7 @@ enum TransactionKind {
VOID
}
-union TranslatableItem = Product | Category | Collection | Attribute | AttributeValue | ProductVariant | Page | ShippingMethod | Voucher | MenuItem | Shop
+union TranslatableItem = Product | Category | Collection | Attribute | AttributeValue | ProductVariant | Page | ShippingMethod | Voucher | MenuItem
type TranslatableItemConnection {
pageInfo: PageInfo!
@@ -2201,7 +2201,6 @@ enum TranslatableKinds {
ATTRIBUTE_VALUE
VARIANT
MENU_ITEM
- SHOP
}
input TranslationInput {
diff --git a/saleor/graphql/translations/schema.py b/saleor/graphql/translations/schema.py
index 20c29183a6..d7c8547d3f 100644
--- a/saleor/graphql/translations/schema.py
+++ b/saleor/graphql/translations/schema.py
@@ -51,6 +51,7 @@ class TranslatableKinds(graphene.Enum):
class TranslationQueries(graphene.ObjectType):
translations = graphene.ConnectionField(
TranslatableItemConnection,
+ description='Returns list of all translatable items of a given kind.',
kind=graphene.Argument(
TranslatableKinds,
required=True, description='Kind of objects to retrieve.'))