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

277
Views
Traté de obtener datos usando el filtro en nodejs y firestore cuando me muestra este error "No se pueden leer las propiedades de undefined (leyendo '_internalPath')"

Traté de obtener datos usando el filtro en nodejs y firestore cuando me muestra este error en cartero

"No se pueden leer las propiedades de undefined (leyendo '_internalPath')"

mi código

 const getAllWords = async (req, res, next) => {
 let categoryName = "fruits"
 
 try {
 const word = await firestore.collection('12words');
 const data = await word.where({categoryName}).get();
 const wordArray = []; 
 if(data.empty) {
 res.status(404).send('No words12 found');
 }else {
 data.forEach(doc => {
 const words = new Word12(
 doc.id,
 doc.data().name,
 doc.data().categoryName,
 
 );
 wordArray.push(words);
 });
 res.send(wordArray);
 }
 } catch (error) {
 res.status(400).send(error.message);
 }
}
almost 4 years ago · Santiago Trujillo
1 answers
Answer question

0

El .where() toma 3 parámetros (fieldPath, opStr, value) pero está pasando solo 1 objeto. Intente refactorizar el código como se muestra a continuación:

 // replace fieldName with the field name in document
const data = await word.where("fieldName", "==", categoryName).get();
almost 4 years ago · Santiago Trujillo 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!