I am trying to upload an Excel file to MongoDB database.
I used below NPM package manager to convert Excel data to MongoDB
mongoXlsx.xlsx2MongoData(path, model, function(err, data){
console.log(data); // (This variable data has an array of objects, each object is a row in Excel.)
});
The image attached has the data.
Now, I want to upload this 'data' (That has an array of objects) into MongoDB. How can I do that? Please suggest.