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

551
Views
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
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!