This is only used to get a list of articles for the press releases page.
This code is quite complex and fiddly, and it seems like a lot for a single component of a single page – it theoretically exposes a mechanism for client-side code to make arbitrary queries of the Prismic API.
We should investigate whether there's a way to simplify some of this code.
Currently we have a fairly complicated multi-content API in the front-end, e.g.
https://github.com/wellcomecollection/wellcomecollection.org/blob/10c0ef7011e6d1b1ce94723cbb7a66f9f1a95a70/content/webapp/services/prismic/fetch/multi-content.ts#L31
https://github.com/wellcomecollection/wellcomecollection.org/blob/10c0ef7011e6d1b1ce94723cbb7a66f9f1a95a70/content/webapp/services/prismic/transformers/multi-content.ts
This is only used to get a list of articles for the press releases page.
This code is quite complex and fiddly, and it seems like a lot for a single component of a single page – it theoretically exposes a mechanism for client-side code to make arbitrary queries of the Prismic API.
We should investigate whether there's a way to simplify some of this code.
This comes from https://github.com/wellcomecollection/platform/issues/5734