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

111
Vistas
Reading object returned from firestore in javascript

I'm trying to read a movie object that's being pulled from a firebase firestore. All the data seems to be entered correctly. Below is a code snippet where I pull the movies and am just trying to reference and log the values so I can see what they are.

const savedMovies = await getDocs(collection(db,"users/"+currentUserID+"/savedmovies"));
savedMovies.forEach((doc) => {
  console.log(doc.id, " => ", doc.data());
  console.log(doc.Title);
  console.log(doc.data().Title);
  console.log("movie is "+doc.movie.Title);
  console.log(movie.Title);
});

doc.id and doc.data() return what I'm expecting but I can't seem to reference the specific values in these entries. The bottom 4 console.log's either error or return undefined. Below is a photo of what doc.data() shows as in the console.

Image snip from the console for doc.data()

Can anyone explain to me what I'm doing wrong here? Apologies if this is a dumb question and thanks for reading!

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