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

274
Views
Mongodb returning an empty object in postman after a post request but the collection is created in robo 3T

What might be the problem? Here is my post request

  router.post("/users", async (req, res) => {
  const user = new User(req.body);
  try {
    await user.save()
    //sendWelcomeEmail(user.email,user.name)
    const token = await user.generateAuthToken()
    res.status(201).send({user:user,token:token});
  } catch (e) {
    res.status(400).send(e);
  }
});

The following is my client postman view for the post request

postman client view

The collection is created and i can view it in robo3t.The issue is that my post request is returning an empty object as seen in the above image

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!