Sorry, no results found for "".
Returns an array of resource objects of type item_type_filter
1import { buildClient } from "@datocms/cma-client-node";2 3async function run() {4 const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });5 6 const itemTypeFilters = await client.itemTypeFilters.list();7 8 for (const itemTypeFilter of itemTypeFilters) {9 // Check the 'Returned output' tab for the result ☝️10 console.log(itemTypeFilter);11 }12}13 14run();
1{2 id: "FF-P5of6Qp-DD2w0xoaa6Q",3 name: "Draft posts",4 filter: {5 query: "foo bar",6 fields: {7 _status: { eq: "draft" },8 title: {9 matches: { pattern: "qux", case_sensitive: "false", regexp: "false" },10 },11 },12 },13 columns: [14 { name: "_preview", width: 0.6 },15 { name: "slug", width: 0.1 },16 { name: "_status", width: 0.1 },17 { name: "_updated_at", width: 0.2 },18 ],19 order_by: "_updated_at_ASC",20 shared: true,21 item_type: { type: "item_type", id: "DxMaW10UQiCmZcuuA-IkkA" },22}