I’m trying to retrieve records via a GraphQL query, but my queries take too long because I’m querying records with a Gallery field that include dozens of images (even sometimes hundreds), when in fact I only want to retrieve the first image in this gallery. The amount of images retrieved is so large that it crashes Gatsby builds.
It seems that there is no option to limit the number of images returned by this Gallery field.
One of my ideas was to retrieve the first image by querying the SEO field, but it doesn’t contain any images.
Is it something easy to implement? Or can you think of a workaround for my specific issue?