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

116
Views
Firestore - ¿Me cobran por documentos obtenidos sin terminar de leer sus datos?

Imagine que realiza una consulta y recupera 1000 documentos de la base de datos.

const querySnapshot = await query.get();

Si no ejecuto el método .data() de cada documento para leer sus datos , ¿aún se trataría como 1000 lecturas?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Sí, get() recupera documentos de Firestore y se le cobrarán N lecturas, donde N es la cantidad de documentos devueltos por su consulta. El .data() solo devuelve los datos del documento en formato JSON de las instantáneas.

Tenga en cuenta que, con solo crear la query , no se recuperan los datos ni se le cobra nada.

 // This is just a Query const query = db.collection('').where(...); // QuerySnapshot - contains the documents matching your query. // fetches from Firestore (unless you have any offline persistence) const querySnapshot = await query.get(); // Array of objects - parsed from the querySnapshot const data = querySnapshot.docs.map((d) => d.data())
about 4 years ago · Juan Pablo Isaza Report
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!