Mongodb – Mongo Query to Insert and update only an specific array element in a document
Need mongodb query : if I get a order , vendorID in input params that already exists with specific orderNumber I need to update it in orders array by replacing the whole existing order element with that orderNumber with newly…