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

156
Views
How do i do complex queries in firestore?

I am trying to apply filters in query before i make the request, so i do this :

ref.where("status", "==", "online").onSnapshot ...

This is a very simple filter, but i want to do something more complicated than this, for example:

I want to read documents from collection "users", I want to get the users that have a position that is 3 km away from point A (using longitude and latitude of the users), and the status of that user is "online", and the ID of that user is different of the current user ID.

How can I do something like this

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!