If I want to get a firebase document reference to use it in a filter for another query:
.where('project', '==', projectDocRef)
to get the project reference is equivalent to do:
projectDocRef = snapshot.ref;
and
proyectDocRef = firestore.collection('projectcolection').doc(snapshot.id);
?
Does any of the alternatives have any advantages?