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

164
Vistas
Create Firestore query dependend on collection inside document

I have a firestore db that looks like this:

dummy_collection:{
                  id: {
                       data: {...},
                       metaData: {
                                  date: "2020-06-15",
                                   ...
                                 },
                      },
                 },

I want to make a query based on the date-field.

I tried with:

db.collection("dummy_collection").where("metaData/date", "==", "2020-06-15")

but received:

ValueError: Path metaData/date not consumed, residue: /date

Is a query like this possible with firestore?

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

0

Nested fields are addressed with a ., not with a /. So:

db.collection("dummy_collection").where("metaData.date", "==", "2020-06-15")

Also see the documentation on updating fields in nested objects, which is the only in the documentation that I know mentioned the . notation

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