【发布时间】:2017-11-07 04:31:22
【问题描述】:
This is my Tasks Collection where assignee field refers to users collection
This is the output i am getting when i fetch tasks collection
【问题讨论】:
标签: angularfire2 google-cloud-firestore
This is my Tasks Collection where assignee field refers to users collection
This is the output i am getting when i fetch tasks collection
【问题讨论】:
标签: angularfire2 google-cloud-firestore
//SAVING...
let ref = db.collection('nameOfCollection').doc('documentId').ref
//Focus ".ref" at the end
db.collection('otherCollection').doc('otherDocumentId').set({ nameRef:ref })
//READING...
db.collection('otherCollection').doc('otherDocumentId').ref.get().then(res=>{
//this "res.data().nameRef"
//it is the same as
//"db.collection('nameOfCollection').doc('documentId').ref"
})
我不知道我能不能帮忙,但不幸的是我做了我能做的。 我还是不会说英语,对不起。
【讨论】: