0

How can multiple equalTo() be used in Flutter API to filter the data? What is alternative solution ?

Adding multiple .equalTo(date).orderByChild('IsRecurrence').equalTo(false) throws below error - An order has already been set, you cannot combine multiple order by calls

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
  • Firebase Database queries can only order/filter on a single property. In many cases it is possible to combine the values you want to filter on into a single (synthetic) property. For example, you could have a property `"IsRecurrence_Date": "false_20230329"` and order/filter on that. For another example of this and other approaches, see my answer here: https://stackoverflow.com/questions/26700924/query-based-on-multiple-where-clauses-in-firebase – Frank van Puffelen Mar 29 '23 at 13:30

0 Answers0