Menu
menu
Retrieves a Menu by its handle. Menus are hierarchical navigation structures that merchants configure for their storefront, such as header and footer navigation.
Use it in a workflow
- Add a step and choose the Shopify Storefront connector.
- Pick the menu action (under Menu).
- Fill in the fields below, then reference the result from later steps as
{{menu.response.data}}.
Query
This is the query the action sends by default. Edit it in the step's Query field to change which fields come back.
query Menu($handle: String!) {
menu(handle: $handle) {
handle
id
items {
id
items
resource
resourceId
tags
title
type
url
}
itemsCount
title
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"handle": "string"
}
Response
Read the result with {{menu.response.data.data.menu}}. If the API returns errors, the step fails and they are at {{menu.response.data.errors}}.
Need more? See the Shopify Storefront guide for connection setup and behaviour shared by every action.
Was this page helpful?