Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

322
Vistas
Firestore query using multiple where, orderBy and startAt, endAt

So I have a query like this.

firestore()
    .collection('posts')
    .where('category', '==', category)
    .orderBy('price', 'asc')
    .startAt(minPrice)
    .endAt(maxPrice)
    .orderBy('title', 'asc')
    .startAt(searchString)
    .endAt(`${searchString}\uf8ff`)
    .limit(10)
    .get()
    .then(res => {
      console.log(res.docs);
      setPosts(res.docs);
    })

Where I filter first by category and than I want filter for price in and between min and max price

After that I also want to run this filter

.orderBy('title', 'asc')
.startAt(searchString)
.endAt(`${searchString}\uf8ff`)

To get the partial string match on title

The query is running without any error but it always return an emply array. Can anyone help me with this problem.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda