Endpoints working but views are not loading why?
This is a file sharing system made with mainly nodejs,express,bootstrap and mongodb. i tried creating th eregister page and it was working but i changed the logic now it’s just not working and i don’t know what to do. The post endpoint for the register page is meant to add a user to the database if no user is found but it only shows the error popup even when its a new user, what should i do?
Mongodb could not connect with nodejs
Then mongodb coudln’t connenct with my nodejs .But it doesn’t show any errors. but not connecting
Getting Error: 11000 in user registration form
so i was just making a normal user registration form using react + express js + mongodb , and i am running into an issue where if i try to register the user for the first time it works properly but if i try to add another user it gives me error 11000The structure for the frontend code is something like this :there are three component files: Signup form, Basic Info, Part1Signup Form.js
Why is req.body undefined in Multer’s diskStorage destination function?
I’m using Multer to handle file uploads in my Express.js application. I’m trying to access the req.body
values in the destination
function of Multer’s diskStorage
option, but it’s returning undefined
.how do i pass name from /registerartist to req.body of multer desination
JSON object uploaded successfully to MONGODB using express however console logging an error
I am recently creating a server which handles CRUD operation in expressJS , I have constructed 2 schemas namely user and note , user controllers are working as intended whereas although note controller working as intended the console is logging error which I am unable to identify , any help on why the this error is being raised would be appreciated .
retrieve data from mongodb with express Js
i have to run the npm command npm install express mongoose cors
Delete event in mongoDB not return full document
i have like this change event in which i have created one handleDelete method but after delete on mongoDB it only gives that document Id but when i trying to fetch that document using this
it is return null all time
Moongose findOneAndDelete() not working with certain parameters
I am making contact CRUD application with node.js, express and monogo. In my delete function, with the help of Postman I am able to delete contacts by ID, but if I try to delete by name or number I get an error saying:
path: ‘_id’,
“BSONError: input must be a 24 character hex string, 12 byte Uint8Array, or an integer at new ObjectId”
How to break sessions into mini-functions in mongodb?
I need to use these ‘updateOne’ commands in multiple functions with session.
Connect with mongodb
Connecting NodeJs with Mongo