Skip to Content

Menu

Represents a navigational menu containing a list of links, typically used for site navigation structures such as main menus or footers.

Type Definition

type Menu { handle: String levels: Int links: [Link] title: String }

Fields

FieldTypeDescription
handleStringUnique identifier (token) for this menu, used to reference the menu programmatically.
levelsIntThe total number of nested levels in this menu, representing the depth of the menu hierarchy.
links[Link]The list of top-level links in this menu. Each link may have its own child links, forming a hierarchical structure.
titleStringThe display name of the menu, typically shown as the menu’s title in navigation components.

Relationships

The Menu type contains a list of Link objects through its links field. Each Link within the menu can have its own child links, creating a hierarchical navigation structure. This allows for the representation of multi-level menus with nested categories or sections.

Example

query { menu(handle: "main-menu") { handle levels title links { handle title url } } }

Implements

None