使用angularfirestore获取字符串值以外的记录

我需要构建一个查询,其中字段值不同于字符串值。

我查看了文档,但不明白如何在值不同的地方进行查询。

我无法通过angularfirestore进行以下约会:

    this.db.collection('schedules').doc(id)
        .collection('values',ref => 
        ref.where('status','!==','cancel');

我需要获取状态与取消不同的所有记录。

ccqhjjf 回答:使用angularfirestore获取字符串值以外的记录

在官方图书馆中查找文档; https://github.com/angular/angularfire/blob/master/docs/firestore/querying-collections.md

基本上,您必须遵循以下示例:

db.collection ('items',ref => ref.where ('size','==','large'))
本文链接:https://www.f2er.com/3156689.html

大家都在问