skip to Main Content

Javascript – Why doesn't my formidable code work with node js (upload an image and have the code respond according to the user's action)?

How are you? [Hola. ¿Cómo están?] I'm watching bluuweb's node course and in it they do a practical exercise ((I mean exactly this one: https://www.youtube.com/watch?v=iU3mnrw48I0&list=PLCB86r2r1iKKmz21UIlZjQieBF7ljb6Qu&index=80). [Estoy viendo el curso de node de bluuweb y en él realizan un ejercicio practico…

VIEW QUESTION

Mongodb – When i parse by req.query boolean and number to json it becomes string. Mongo .find() finds nothing

Back end (nodejs) async getAllEvents(req, res, database, collection) { try { const { filter, sort } = req.query; const events = await mongo .getClient() .db(database) .collection(collection) .find(filter) .sort(sort) .toArray(); res.json(events); res.end(); } catch (error) { return res.status(400).json({ message: "err_get_events" });…

VIEW QUESTION
Back To Top
Search