Skip to content

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

Ensure shop is always returned

dominik-zeglen00fd18ad83fc
diff --git a/saleor/graphql/shop/schema.py b/saleor/graphql/shop/schema.py
index 790cf9adae..4bfa9b96e9 100644
--- a/saleor/graphql/shop/schema.py
+++ b/saleor/graphql/shop/schema.py
@@ -17,7 +17,9 @@ from .types import Shop
class ShopQueries(graphene.ObjectType):
- shop = graphene.Field(Shop, description="Return information about the shop.")
+ shop = graphene.Field(
+ Shop, description="Return information about the shop.", required=True
+ )
def resolve_shop(self, _info):
return Shop()