GitHub

ShopifyMenuItem

Type

import { ShopifyMenuItem } from '@daffodil/driver/shopify'

A navigation link within a Menu. Each item has a title, URL, and can link to store resources like products, collections, pages, blogs, or external URLs.

Menu items support nested hierarchies through the items field, enabling dropdown or multi-level navigation structures. The tags field filters results when the item links to a collection specifically.

interface ShopifyMenuItem {
  __typename: "MenuItem"
  id: string
  items: ShopifyMenuItem[]
  resource: ShopifyMenuItemResource
  resourceId: string
  tags: string[]
  title: string
  type: ShopifyMenuItemType
  url: Maybe<Scalars['URL']['output']>
}

Properties

__typename
"MenuItem"
id
string

A globally-unique ID.

items
ShopifyMenuItem[]

The menu item's child items.

resource
ShopifyMenuItemResource

The linked resource.

resourceId
string

The ID of the linked resource.

tags
string[]

The menu item's tags to filter a collection.

title
string

The menu item's title.

type
ShopifyMenuItemType

The menu item's type.

url
Maybe<Scalars['URL']['output']>

The menu item's URL.