Frontend API
Methods to retrieve your store's navigation menus.
Fetches your store's navigation menus and saves them to an internal cache for accessing synchronously. Pass a menu ID to retrieve a single menu — calling menus() with no ID does not return the full list.
Retrieve all nav menus
await swell.get('/settings/menus')Returns a single navigation menu object.
Get nav menu by ID
await swell.settings.menus('header')Methods to retrieve your store's navigation menus.
Get nav menus
Returns an array containing store navigation menus, and saves it to an internal cache for accessing synchronously. The parameters for this query are _locale and _currency.
Get store menus
query getMenus {
menuSettings {
sections {
id
name
items
}
}
}