Returns all the model fields, plus all the fields of the blocks its fields reference
import { buildClient } from '@datocms/cma-client-node';async function run() {const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });const modelIdOrApiKey = 'blog_post';const fields = await client.fields.related(modelIdOrApiKey);fields.forEach((field) => {console.log(field);});}run();