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

216
Views
Access nested value in Firebase Realtime Database

I'm a Firebase newbie and I would like to figure out how to access deep nested data in Realtime Database. Let's suppose I have the following structure:

enter image description here

I would like to get the block of data in which location -> Id value corresponds to 3154380, (in this case is the second one)

How could achieve this ?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Just put the sub-path in .orderByChild and use .equalTo:

database().ref('reports').orderByChild('location/id').equalTo('3174380');

However, I will say, you should really look at flattening your data structure for best performance and usability in this environment.

about 4 years ago · Juan Pablo Isaza Report
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!