我想问一件事是否有可能获得满足条件的文档ID,就像我在特定集合上应用了条件并且查询是有效的并返回了文档,我想获得查询之后的文档ID
const reports = async() => {
const officeCollection = db.collection('XYZ');
const officeQuerySnapshot = await officeCollection.where('office','==' ,office).get();
const officeData = []
var firstContact= ''
officeQuerySnapshot.forEach(doc => {
// var firstContact = doc.data().attachment['First Contact']
// console.log(firstContact)
officeData.push(doc.data())
})
}
