The results are sorted by name and paginated by default.
Attributes to filter tags
Attributes to manage results pagination
import { buildClient } from '@datocms/cma-client-node';async function run() {const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });// this only returns the first page of results:const uploadTags = await client.uploadTags.list({filter: {query: 'foobar'},page: {offset: 200,limit: 20}});uploadTags.forEach((uploadTag) => {console.log(uploadTag);});// this iterates over every page of results:for await (const uploadTag of client.uploadTags.listPagedIterator({filter: {query: 'foobar'}})) {console.log(uploadTag);}}run();
{id: '42',name: 'Pictures of me'}