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

543
Vistas
How to get document specific value in firestore and the document id that automaticaly created?

i have problem to get the document's id that automatically created and its specific value from in firestore database. here the firestore database that i have also the code that i tried to: firestoredb

app.post("/Register", (req, res) => {
  const {
    name,
    email,
    password,
    phone,
  } = req.body;
  const balance = 0;
  const lowEmail = email.toLowerCase();
  const valAcc = db.collection("Users");
  const valueEmail = valAcc.getString(lowEmail);
  if (valueEmail === lowEmail) {
    res.status(400).send("Email already exists");
  }
  db.collection("Users").add({
    Name: name,
    Email: lowEmail,
    Password: password,
    Phone: phone,
    Balance: balance,
  });
  res.status(201).send();
});

And i am using it for making api with node.js. any solution for this? i tried to search for it but i didnt get it. Any help will be very valuable. Thank you.

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