0

example :

"USA": {
  "-N0QVhkDUxgrHQhS15B7": {
    "State" : 0,
    "Date" : 20220427
  "-N0Vut4beTbYTXihw0KM": {
    "State" : 1,
    "Date" : 20220429
  },
  "-N0W4oWNsgnKYmjPAfhl": {
    "State" : 1,
    "Date" : 20220427
  },
},

above is database for example.

var ordersRef = query(
  ref(db, "StoreOrders/" + "USA"),
  orderByChild("State"),
  equalTo(1),
  orderByChild("Date")
);

I had run this above query. but, below error was occured

Uncaught (in promise) Error: orderByChild: You can't combine multiple orderBy calls. Reference impl.ts:164

how can i solve this problem?

hi-ing
  • 1
  • 1
  • On Stack Overflow, please don't show pictures of text and code. Copy the text into the question itself and format it so that it's [easy to read, copy, and search](https://meta.stackoverflow.com/q/285551/807126). You can edit the question to correct this using the edit link at the bottom. – Doug Stevenson Apr 30 '22 at 03:18

0 Answers0