*[_type == "blogPost" && slug.current == "${blogPostSlug}"]{
_id,
title,
author->{
name,
slug{ current },
bio,
authorImage{ asset->{path, url} }
},
body[]{
_type == 'blogImageRef' => @->{
caption,
image{
asset->
},
imageTags
},
_type == 'imageCollectionRef' => @->{
_id,
collectionName,
collectionImages[]->,
},
_type != 'reference' => @,
},
categories[]->{ title, description, slug{ current } },
excerpt,
location->{ locationName, mapLocation },
mainImage->{_createdAt, caption, image{ asset->{ path, url } }, author->{ name, slug } },
publishedAt,
slug{ current },