我尝试将我的收藏品的钥匙放在最后一个收藏品中
invoices -uid - invoice -uid -data
如何使用Firestore和angularfire2 v5访问我的收藏集中的键?
好的,这对我有用
getSnapshot(uid) { this.collection = this.fb.collection('invoices').doc(uid).collection('invoice'); return this.collection.snapshotChanges().map(actions => { return actions.map(item => { return { id: item.payload.doc.id, ...item.payload.doc.data() } }); }); }
1 回答
好的,这对我有用