Menu Object
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!]
}
Interfaces
Fields
id
id · ID!
The ID of the menu.
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
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
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
key · String!
metafields
metafields · Metadata
Public metadata. Use keys to control which fields you want to include. The default is to include everything.
keys
keys · [String!]
name
name · String!
The name of the menu.
slug
slug · String!
Slug of the menu.
items
items · [MenuItem!]
Menu items associated with this menu.
Used by
- AssignNavigation (objects)
- MenuCountableEdge (objects)
- MenuCreate (objects)
- MenuCreated (objects)
- MenuDelete (objects)
- MenuDeleted (objects)
- MenuItem (objects)
- MenuItemMove (objects)
- MenuUpdate (objects)
- MenuUpdated (objects)
- menu (queries)
Schema: Saleor 3.23.43. Download SDL.