I want to be able to get the document id of a document that I have just queried with a where clause in firestore. Here is an example that I have at the moment:
db.collection("Users").where('fullname', '==', 'foo bar').limit(5).get()
.then(function (doc)
{
querySnapshot.forEach(function (doc)
{
//find document id
}
}
From this, I want to be able to get the document id of what I have just queried. Is there any way I can do that?
Thanks in advance.