ドキュメントId取得
//testfieldが該当の値のtestcollのドキュメントID取得
const documentId;
await firebase.firestore()
.collection('testcolloya')
.doc('testdocoya')
.collection("testcoll")
.where('testfield', '==', '1234xxxxxxxxxxxxx5678')
.get()
.then(snapshot => {
snapshot.docs.forEach(doc => {
documentId = doc.id;
});
});