Update differnt fields in different Documents in Mongodb using Nodejs/Express
Budget $10-30 USD
Job Description:
in the database we have following document called "Product"
[
{
_id: new ObjectId("638513a4ab6217c642c0cdc7"),
name: 'car',
quantity: 30,
},
{
_id: new ObjectId("6385142fab6217c642c0cdcc"),
name: 'door',
quantity: 5,
}
]
----------------------------------------------------------------------------------------------------------------------------------------------------------
incrementArray = [ 2 , 3]
>>> I need to increase the quantity of the "window" and the "door" dynamically by using the incrementArray , Please find below my code where you can introduce your solution when we call the router at "/".
----------------------------------------------------------------------------------------------------------------------------------------------------------
var express = require('express');
var router = [login to view URL]();
var Product = require('../models/product');
[login to view URL]('/', function(req, res, next) {
const IDs = ["638513a4ab6217c642c0cdc7","638513a4ab6217c642c0cdc7"]
const incrementArray = [ 2 , 3]
// Example to query in Database
// [login to view URL]({})....
return [login to view URL]('index');
});
18 freelances font une offre moyenne de 20 $ pour ce travail
Hi, How are you today? Thank you for posting this project, and I'm very happy to bid your project. I've read carefully your project details. I have rich experiences related with your project. Your satisfaction with th Plus
Hi, how are you ! I am an experianced programmer, can I help you with this project. I will do this less than a day. I will wait your positive answer ! Thanks for reading me !
Hello, I can start work now, I have already done according to this script so I will share soon, I am a web developer having more than 6+ years of experience in database management like SQL, PostgreSQL, Couch-base, and Plus
Greetings! I saw your recent post regarding full-stack development services. I'd like to let you know that I'm the perfect match you've been looking for. I'm an experienced full-stack developer with practical design an Plus
Greetings, I am a highly experienced MERN stack developer. I have read your requirement. I can do your job. Please send me message if you are interested. Thanks
Hi, I am a Full Stack Developer. I work with nodejs. I can complete the task as soon as possible. Feel free to contact me anytime.
hello. I am a javascript developer and I use express for web servers all the time, so I believe I can help you with your problem
Hi Mr Abdulrahman! I read your post thoroughly and I have to say that I will satisfy you. I am a regular consumer for this type of issue and I can do this job right now for you. I am very proficient with Node.js and Plus