Entities

MenuItem

MenuItem entity - components, queries, links, and related actions

Your storefront encounters the MenuItem entity when building site navigation: header menus, footer links, sidebar navigation, or any structured link tree managed through your commerce backend. Each MenuItem represents a single entry in a navigation menu and can be either a link pointing to a URL or a folder that groups child items.

Components

Base

base
Label, optional URL link, and parent/child references for nesting menu items into a tree structure. Each item is typed as either link (navigable URL) or folder (grouping container for children).

Accepts one of the following:

Queries

  • MenuByAliasQuery - Retrieve all menu items belonging to a menu identified by its alias.
  • Product - Products that menu items may link to.
  • Category - Categories that menu items may link to.