Missing meta data for linked documents

Hi,

While fetching linked documents, the "first_publication_date" and "last_publication_date" fields are missing from the response. How do I configure my query to have them included?

My current query looks like this:

const fetchLinks = ['location.name'];
const doc = await client.getByID(id, { fetchLinks });
console.log(doc.data.location.first_publication_date); // undefined

Thanks,
David.

Hey @dk.spywood92 ,

You are completely correct. With fetchLinks and GraphQuery, it is currently impossible to fetch first_publication_date and last_publication_date. This is a feature that the dev team is planning to implement, though I don't have a timeline for you at the moment.

As a workaround, you can run additional queries to get that data.

I hope that helps :slight_smile:

Best,
Sam