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

165
Views
Can't find specific single user email query in Mongodb database?

API response show all user data in database to website UI

const [product, setProduct] = useState([]);
const [user] = useAuthState (auth)
useEffect(() => {
    const email = user.email;
    const url = `https://boiling-fjord-43680.herokuapp.com/productapi?email=${email}`;
    fetch(url)
        .then(res => res.json())
        .then(data => setProduct(data));
}, [user]);
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

try to use params here , i have also faced the same problem and solved it in the following way:(note i have used id as identifier whereas u used email)

const { id } = useParams();

const [item, setItem] = useState({});

useEffect(() => { const url = https://floating-atoll-94813.herokuapp.com/item/${id}; fetch(url) .then((res) => res.json()) .then((data) => setItem(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!