Sitemap - I need empty data

I have to generate a sitemap for the dynamic pages of the site (a few hundred).

The question is: with client.getAllByType is it possible to fetch empty data? I am only interested in metadata such as: url, alternate_languages, last_publication_date. Everything inside data makes the request enormously heavy and useless.

If I use graphQuery = {}` it returns error.
I think a function that only returns metadata is necessary and essential. How can I manage this?

I do not build a static site

Thank you !

Thanks for reaching out! While it's currently not possible to query for empty data with REST, have you considered utilizing the GraphQL endpoint of your repository? It allows you to retrieve only the fields you need from a certain type, which could help streamline your request and avoid unnecessary data retrieval.