I just cant figure out how to stop child items in my menu rendering as top line menu items. Essentially the graphQL gets all the menuItems and returns them so childItems are treated the same as parentItems so I cant create a hierarchy. Has anyone had any joy with creating a multi-level menu? Below is the GRAPHQL call.
query Menu {
menuItems(where: {location: MENU_EN}) {
node {
label
uri
parentId
childItems {
nodes {
label
uri
}
}
}
}
Firstly, this isn's an issue per se.
I just cant figure out how to stop child items in my menu rendering as top line menu items. Essentially the graphQL gets all the menuItems and returns them so childItems are treated the same as parentItems so I cant create a hierarchy. Has anyone had any joy with creating a multi-level menu? Below is the GRAPHQL call.
query Menu { menuItems(where: {location: MENU_EN}) { node { label uri parentId childItems { nodes { label uri } } } }