Skip to content
Saleor
Esc
↑↓navigate↵open⌘Jpreview

Schema: Saleor 3.23.43Download SDLUpgrade guides

On this page

MenuItem Object

Represents a single item of the related menu. Can store categories, collection or pages.

type MenuItem implements Node & ObjectWithMetadata {
  id: ID!
  privateMetadata: [MetadataItem!]!
  privateMetafield(key: String!): String
  privateMetafields(keys: [String!]): Metadata
  metadata: [MetadataItem!]!
  metafield(key: String!): String
  metafields(keys: [String!]): Metadata
  name: String!
  menu: Menu!
  parent: MenuItem
  category: Category
  collection: Collection
  page: Page
  level: Int!
  children: [MenuItem!]
  url: String
  translation(languageCode: LanguageCodeEnum!): MenuItemTranslation
}

Interfaces

Node, ObjectWithMetadata

Fields

id

id · ID!

The ID of the menu item.

privateMetadata

privateMetadata · [MetadataItem!]!

List of private metadata items. Requires staff permissions to access.

privateMetafield

privateMetafield · String

A single key from private metadata. Requires staff permissions to access.

Tip: Use GraphQL aliases to fetch multiple keys.

key · String!

privateMetafields

privateMetafields · Metadata

Private metadata. Requires staff permissions to access. Use keys to control which fields you want to include. The default is to include everything.

keys · [String!]

metadata

metadata · [MetadataItem!]!

List of public metadata items. Can be accessed without permissions.

metafield

metafield · String

A single key from public metadata.

Tip: Use GraphQL aliases to fetch multiple keys.

key · String!

metafields

metafields · Metadata

Public metadata. Use keys to control which fields you want to include. The default is to include everything.

keys · [String!]

name

name · String!

The name of the menu item.

menu · Menu!

Represents the menu to which the menu item belongs.

parent

parent · MenuItem

ID of parent menu item. If empty, menu will be top level menu.

category

category · Category

Category associated with the menu item.

collection

collection · Collection

A collection associated with this menu item.

Requires one of the following permissions to include the unpublished items:MANAGE_ORDERSMANAGE_DISCOUNTSMANAGE_PRODUCTS

page

page · Page

A page associated with this menu item.

Requires one of the following permissions to include unpublished items:MANAGE_PAGES

level

level · Int!

Indicates the position of the menu item within the menu structure.

children

children · [MenuItem!]

Represents the child items of the current menu item.

url

url · String

URL to the menu item.

translation

translation · MenuItemTranslation

Returns translated menu item fields for the given language code.

languageCode · LanguageCodeEnum!

A language code to return the translation for menu item.

Used by


Schema: Saleor 3.23.43. Download SDL.

Last updated on April 13, 2026

Was this page helpful?