Skip to content

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

Make menu required in MenuItemCreateInput

oldPadavan33bafd414e7b
diff --git a/saleor/graphql/menu/mutations.py b/saleor/graphql/menu/mutations.py
index 7f58e2d4d8..8d6a9d0467 100644
--- a/saleor/graphql/menu/mutations.py
+++ b/saleor/graphql/menu/mutations.py
@@ -21,7 +21,8 @@ class MenuItemInput(graphene.InputObjectType):
class MenuItemCreateInput(MenuItemInput):
menu = graphene.ID(
- description='Menu to which item belongs to.', name='menu')
+ description='Menu to which item belongs to.', name='menu',
+ required=True)
parent = graphene.ID(
description='''
ID of the parent menu. If empty, menu will be top level