So überprüfen Sie, ob E -Mails bereits in der Datenbank mit JavaScript vorhanden sind
const userEmail = {emailAddress: email}
const { email } = req.body;
const foundUser = await User.find({ emailAddress: email });
foundUser.length > 0 ? "email already exists" : "email does not exist"
Runtime Terror