Update differnt fields in different Documents in Mongodb using Nodejs/Express

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');


Skills: Node.js, MongoDB

About the Client:
( 1 review ) Kuwait, Kuwait

Project ID: #35362040

18 freelancers are bidding on average $20 for this job


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 More

$10 USD in 7 days
(5 Reviews)

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 !

$10 USD in 1 day
(0 Reviews)

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 More

$15 USD in 1 day
(0 Reviews)

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 More

$30 USD in 7 days
(0 Reviews)

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

$25 USD in 7 days
(0 Reviews)

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.

$20 USD in 3 days
(0 Reviews)

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

$15 USD in 2 days
(0 Reviews)

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 More

$15 USD in 7 days
(0 Reviews)