Firestore, Angular, AngularFire2 - Adding document with a reference type field

谁都会走 提交于 2020-01-06 08:44:33

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!