问题
Is there a way to add a document with a reference type field to a collection?
回答1:
Oh ... I made a mistake ... it's simple - we get a reference DocumentReference type (like this.firestoreService.doc(ref).ref) and store it in our object.
来源:https://stackoverflow.com/questions/49935811/firestore-angular-angularfire2-adding-document-with-a-reference-type-field