Firebase 颤振与振动;Cloud_Firestore:使用2时检索数据失败;其中;s状态

Firebase 颤振与振动;Cloud_Firestore:使用2时检索数据失败;其中;s状态,firebase,flutter,google-cloud-firestore,Firebase,Flutter,Google Cloud Firestore,我试图通过给出2个条件来检索一些数据。但我不断得到异常错误。为什么?请看一看 void _levelValue() async { QuerySnapshot result = await Firestore.instance .collection('levels') .where("min_point", isLessThanOrEqualTo: monthlyPoint) .where("

我试图通过给出2个条件来检索一些数据。但我不断得到异常错误。为什么?请看一看

void _levelValue() async {
      QuerySnapshot result = await Firestore.instance
          .collection('levels')
          .where("min_point", isLessThanOrEqualTo: monthlyPoint)
          .where("max_point", isGreaterThan: monthlyPoint)
          .getDocuments();
      result.documents.forEach((element) {
        print(element.data);
      });
      //return result;
    }
错误描述

发生异常。 PlatformException(PlatformException(错误,除whereEqualTo()之外的所有where筛选器必须位于同一字段上。但您的筛选器位于“min_point”和“max_point”,null))


请帮帮我。我期待着收到你的来信。提前谢谢。

错误信息相当清楚。它告诉您,不能在一个字段中同时使用
小于或等于
大于另一个字段中的
。Firestore不支持这一点,也没有简单的解决方法

引述:

查询只能执行范围筛选器(>,,