Hi
user J
Thanks for your response, another thing i want to ask is that i have an array of object and i want to order by
dateOfPublication
which is a value in objects. I am unable to write query for it.
Here's the structure,
{
"_createdAt":"2021-12-08T09:17:40Z"
"_id":"73957312-c282-4cb3-be44-1069277610dd"
"_rev":"XXZQtLc37Lz6XK4fvqH5Wt"
"_type":"newsArticleBlock"
"_updatedAt":"2021-12-09T12:51:56Z"
"newsBlockTitle":"News Cards for Home Page"
"newsCardBlock":*[*
{
"_key":"85b48badc2c2"
"_type":"newsArticle"
"articleDescription":*[*...*]*_1 item_
"articleImage":*{*...*}*
"ctaLink":*{*...*}*
"dateOfPublication":"2021-12-09T08:02:00.000Z"
"headline":"The NRP Group Breaks Ground on a Record 21 Multifamily Apartment Communities in 2020"
"isFeatured":true
"selectedCategory":*{*...*}*_2 items_
"slug":*{*...*}*_2 items_
"subHeadline":"The NRP Group subheading"
}
*{*...*}*
*{*...*}*
*{*...*}*
]
}