So I have this document where I have a title and a text and in the repeatable zone I have an image, a neighborhood id, and a text like this:
My question is if I can filter the repeatable zone to get the one that matches the neighborhood id, so, let's say this is my data:
{
title: "Neighborhood",
blog_link_text: "Visit Our Blog",
repeat: [
{
main_image: "www.example.com/Roma.jpg",
neighborhood_id: "Roma",
description: "really long text"
},
{
main_image: "www.example.com/Polanco.jpg",
neighborhood_id: "Polanco",
description: "really long text"
},
{
main_image: "www.example.com/condesa.jpg",
neighborhood_id: "condesa",
description: "really long text"
}
]
}
And from the front-end, I set the neighborhood_id
to Roma
, I would like to get the title, the blog_link_text, and only the repeatable zone that matches that Id, so the result would be something like this:
{
title: "Neighborhood",
blog_link_text: "Visit Our Blog",
repeat: [
{
main_image: "www.example.com/Roma.jpg",
neighborhood_id: "Roma",
description: "really long text"
},
]
}
Please let me know if this is even possible.
Thanks!