2

In Koa.js how can we upload a CSV file and read the uploaded file to import it into MongoDB collection?

What is the efficient way to do this?

Temp O'rary
  • 5,366
  • 13
  • 49
  • 109
  • 1
    There is no built-in functionality to import CSV files to mongodb. The mongoimport utility reads csv line by line and insert documents to the db. You can do the same. There is nothing specific to koa. – Alex Blex Oct 02 '18 at 08:50

0 Answers0