skip to Main Content

Mongodb – Pagination in node js with mongo db

function getDigitalMigrationJoin(req, res, next) { DigitalMigrationForm.aggregate([ // Join with user_info table { $lookup: { from: DigitalMigrationFormList.collection.name, // other table name localField: "_id", // name of users table field foreignField: "digitalFormId", // name of userinfo table field as: "forms" // alias…

VIEW QUESTION

Mongodb – mongoose how to update an user profile with id

I created an simple CRUD operation in nodejs and mongoose. Updating an user using RESTAPI. an error message in Insomnia Error: Server returned nothing (no headers, no data) URL http://localhost:1337/api/users/update/63ab9b716065482273e58b75 @PUT METHOD router.put("/update/:id",updateUser) const updateUser = async (req,res,next) => {…

VIEW QUESTION
Back To Top
Search