我需要构建一个查询,其中字段值不同于字符串值。
我查看了文档,但不明白如何在值不同的地方进行查询。
我无法通过angularfirestore
进行以下约会:
this.db.collection('schedules').doc(id)
.collection('values',ref =>
ref.where('status','!==','cancel');
我需要获取状态与取消不同的所有记录。
我需要构建一个查询,其中字段值不同于字符串值。
我查看了文档,但不明白如何在值不同的地方进行查询。
我无法通过angularfirestore
进行以下约会:
this.db.collection('schedules').doc(id)
.collection('values',ref =>
ref.where('status','!==','cancel');
我需要获取状态与取消不同的所有记录。
在官方图书馆中查找文档; https://github.com/angular/angularfire/blob/master/docs/firestore/querying-collections.md
基本上,您必须遵循以下示例:
db.collection ('items',ref => ref.where ('size','==','large'))