Show examples in:
List all menu items

Query parameters

filter  Optional  object

Returns

Returns an array of menu_item resource objects.

Examples

Example Basic example
import { buildClient } from '@datocms/cma-client-node';
async function run() {
const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });
const menuItems = await client.menuItems.list();
menuItems.forEach((menuItem) => {
console.log(menuItem);
});
}
run();