# Graph Ql

Please setup module graphql at here:

{% embed url="<https://github.com/landofcoder/module-megamenu-graph-ql>" %}

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
}
```

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://landofcoder.gitbook.io/magento-2-megamenu/config-and-usage/graph-ql.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
