👀 Our most exciting product launch yet 🚀 Join us May 8th for Sanity Connect

How to Fetch Only Images for an Image Sitemap

3 replies
Last updated: Sep 14, 2021
Hey Everyone!Is there a way to get only images for a
image site map
?
Sep 14, 2021, 8:22 PM
Does
*[_type == 'sanity.imageAsset']
return what you’re after?
Sep 14, 2021, 8:27 PM
Aww yea! Thank you so much I think this is right!
Sep 14, 2021, 8:30 PM
Does
*[_type == 'sanity.imageAsset']
return what you’re after?
Sep 14, 2021, 8:27 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?