Skip to content
Last update: March 19, 2024

Menu query

This query is used to retrieve a specific menu based on the provided criteria.

Arguments

Argument Description
storeId String! The Id of the store for which to retrieve the menu.
cultureName String A language to retrieve data in.
name String! The name of the menu to retrieve.

Possible returns

Possible return Description
MenuLinkListType A list of menu links.

Examples

{
  menu(
    storeId: "B2B-store"
    cultureName: "en-US"
    name: "Bolts"
  ) {
    items {
      url
      title
    }
  }
}
"data": {
    "menu": { 
        "items": [ 
            { 
              "url": "/bolts/freight-car-bolts", 
              "title": "Freight car bolts" 
            }, 
            { 
              "url": "/bolts/carriage-bolts", 
              "title": "Carriage bolts" 
            }, 
            { 
              "url": "/bolts/eyebolts", 
              "title": "Eyebolts" 
            }, 
            { 
              "url": "/bolts/flange-bolts", 
              "title": "Flange Bolts" 
            } 
        ] 
    } 
}