I have a structure of Firestore
in which one of the fields is an array of maps. I want to filter the search by one of the keys of these maps. The structure is as follows:
uid: "g9x08Ozdu"
title: "some title"
timestamp: 1670743255138535
urls:
[
{type: "photo", name: "john"},
{type: "video", name: "smith"},
{type: "photo", name: "tom"},
]
.
.
.
I want to filter all the collection
and only get the documents
in which any of the elements of urls
has the type
"photo"
? Is something like this possible? Thanks in advance!