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

324
Vistas
core.js:4352 ERROR FirebaseError: The query requires an index. You can create it here

I have an index for category and id, but I still get this error. What can be wrong?

this.database
    .collection<any>('videos', (ref) => ref.orderBy('id', "asc").where('category', '==', category).limit(limit).startAt(doc["id"]))
    .valueChanges({ idField: 'docId' });

enter image description here

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

What you're showing in the screenshot is an index on a collection group, while your code merely queries one collection. You will also need to define an index on the individual collection to allow this query.

Note that the link in the error message should take you exactly to the right page in the Firebase console with all fields prepopulated to generate the necessary index for that query.

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