For Modular Content, Structured Text and Single Block fields. If set, returns full payload for nested blocks instead of IDs
Attributes to manage results pagination
import { buildClient } from '@datocms/cma-client-node';async function run() {const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });const itemId = '59JSonvYTCOUDz_b7_6hvA';// this only returns the first page of results:const itemVersions = await client.itemVersions.list(itemId);itemVersions.forEach((itemVersion) => {console.log(itemVersion);});// this iterates over every page of results:for await (const itemVersion of client.itemVersions.listPagedIterator(itemId)) {console.log(itemVersion);}}run();