Skip to main content
Version: 3.x

Menu

Represents a single menu - an object that is used to help navigate through the store.

type Menu 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!
slug: String!
items: [MenuItem!]
}

Fields

The ID of the menu.

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

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

Tip: Use GraphQL aliases to fetch multiple keys.

Added in Saleor 3.3

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

Added in Saleor 3.3

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

A single key from public metadata.

Tip: Use GraphQL aliases to fetch multiple keys.

Added in Saleor 3.3

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

Added in Saleor 3.3

The name of the menu.

Slug of the menu.

Menu items associated with this menu.

Interfaces

Node interface

An object with an ID

ObjectWithMetadata interface

Returned by

menu query

Member of

MenuCountableEdge object ● MenuItem object


Was this page helpful?