Anchor to Menu
objectMenu
Requires access scope.
A menu for display on the storefront.
Anchor to FieldsFields
- Anchor to handlehandle•String!non-null
The menu's handle.
- •ID!non-null
A globally-unique ID.
- Anchor to isDefaultis•Boolean!non-null
Default Whether the menu is a default. The handle for default menus can't be updated and default menus can't be deleted.
- Anchor to itemsitems•[Menu
Item!]!non-null A list of items on the menu sorted by position.
- Anchor to titletitle•String!non-null
The menu's title.
- Anchor to translationstranslations•[Translation!]!non-null
The published translations associated with the resource.
Was this section helpful?
Anchor to QueriesQueries
- •query
Returns a Menu resource by ID.
- •query
The shop's menus.
Was this section helpful?
Anchor to MutationsMutations
- •mutation
Creates a menu.
- •String!required
The menu's handle.
- •[Menu
Item Create Input!]!required List of the menu's items.
- •String!required
The menu's title.
Arguments
- •Menu
The created menu.
- •[Menu
Create User Error!]!non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Updates a menu.
- •String
The menu's handle.
- •ID!required
ID of the menu to be updated.
- •[Menu
Item Update Input!]!required List of the menu's items.
- •String!required
The menu's title.
Arguments
- •Menu
The updated menu.
- •[Menu
Update User Error!]!non-null The list of errors that occurred from executing the mutation.
Fields
Was this section helpful?