Viewing 1 replies (of 1 total)
  • Plugin Contributor blakewpe

    (@blakewpe)

    hi @amit648,

    You can use the following query to get all menu items for a specific menu, in this case “My Menu”. Notice the query requests the parentId field. This will enable you to put together a hierarchical menu by identifying which menu items have a parent or not.

    
    {
      menu(id: "My Menu", idType: NAME) {
        menuItems(first: 9999) {
          nodes {
            id
            label
            parentId
          }
        }
      }
    }
    
Viewing 1 replies (of 1 total)
  • The topic ‘Submenu object not created’ is closed to new replies.