无法删除Firestore查询:AngularFirestoreCollection类型的get不存在

时间:2018-06-29 23:21:03

标签: angular firebase google-cloud-firestore angularfire2

按照以下示例: How to delete document from firestore using where clause

我正在尝试删除Firestore查询,但出现以下错误:

“类型'AngularFirestoreCollection'中不存在属性'get'

var delete_query = this.afs.collection('members', ref => ref.where('name','==','john'));
delete_query.get().then(function(querySnapshot) {
querySnapshot.forEach(function(doc) {
doc.ref.delete();
});});

0 个答案:

没有答案