I have an app where I want to check if there is a contact with a certain uid.
The problem:
The uid I want to check is nested in a map that is in an array.
The Firestore document looks like this:
I thought so far something like this:
var data = await FirebaseFirestore.instance
.collection("user_contacts")
.doc(FirebaseAuth.instance.currentUser.uid)
.get();
if(data.data()["contacts"].contains({"uid": myUid, "date": myDate})){
...
}
But I don't have the date. Is there any other way?
Thanks for help!
