Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

221
Views
how to run a query with "multiple orderbychild" in realtime database on firebase v9 not v8

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? this verion is 9. Please let me know correct answer.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!