Sorry, no results found for "".
Returns an array of resource objects of type fieldset
import { buildClient } from "@datocms/cma-client-node";
async function run() { const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
const modelIdOrApiKey = "blog_post";
const fieldsets = await client.fieldsets.list(modelIdOrApiKey);
for (const fieldset of fieldsets) { // Check the 'Returned output' tab for the result ☝️ console.log(fieldset); }}
run();