Show examples in:
List all schema menu items

Query parameters

filter  Optional  object

Returns

Returns an array of schema_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 schemaMenuItems = await client.schemaMenuItems.list();
schemaMenuItems.forEach((schemaMenuItem) => {
console.log(schemaMenuItem);
});
}
run();