📘
Magento 2 Megamenu
  • Overview
  • Installation
    • Setup via FTP or cPanel
  • Config and Usage
    • Install sample data
    • Module Configuration
    • Manage Megamenu
    • Create New Megamenu Profile
    • Configure menu item
    • Show menu on frontend Desktop
    • Show Menu On Frontend Mobile
    • How to use Magento 2 Pagebuilder
    • REST API
    • Graph Ql
  • FAQ
    • How to make desktop and mobile menu on same page?
    • How to use dynamic content tabs for sub menu items?
    • How to add a menu using Widget?
    • How to add products in submenu
    • How to show parent menu and sub menus in the same level
    • How to add label into menu items
    • How to add menu link to category and sub categories?
    • How to change default horizontal menu on header?
    • Problem when import larger categories into menu items?
    • How to show accordion menu on Desktop view?
  • Theme Compatible
    • Porto
    • Codazon Fastest Fashion
    • Ultimo
  • Video Tutorials
    • Video guides
Powered by GitBook
On this page

Was this helpful?

  1. Config and Usage

Graph Ql

Only support for Megamenu PRO, Megamenu PRO - EE

PreviousREST APINextHow to make desktop and mobile menu on same page?

Last updated 2 years ago

Was this helpful?

Please setup module graphql at here:

It support schema as this:

  1. Get menu profile by alias:

{
  megamenu (alias: "top-menu") {
    name
    alias
    disable_bellow
    event
    classes
    width
    disable_iblocks
    nodes {
        ...MegamenuItemNode
        child_nodes {
            ...MegamenuItemNode
            child_nodes {
                ...MegamenuItemNode
            }
        }
    }
  }
}

2. Get list available menu profiles

{
    megamenus (
        filters: {}
        pageSize: 10
        currentPage: 1
    ) {
        items {
            name
            alias
        }
    }
}

3. Get Store Config

storeConfig {
    megamenu_general_enabled
    megamenu_general_menu_alias
    megamenu_general_custom_css
}

LogoGitHub - landofcoder/module-megamenu-graph-ql: Magento 2 Megamenu Pro GraphQl extension - Use for Landofcoder Megamenu Pro ExtensionGitHub