I am currently trying to insert ***10 new data every 5 minute***, out of the *1000 data* that i currently have on my csv file. 

How can i do so? Help would be appreciated

The following is my code for `appendMongo.js`

```js
var fs= require('fs');
var csv = require('fast-csv');

var mongodb = require('mongodb');
var url = 'mongodb://localhost:27017/insertDB';
var MongoClient = mongodb.MongoClient;

var data;

MongoClient.connect(url, function (err, db) {
    if (err) {
      console.log('Unable to connect to the mongoDB server. Error:', err);
    } else {
      console.log('Connection established to', url);
      var collection = db.collection('airports');
      readData=fs.createReadStream('1000data.csv').pipe(csv())
                   .on('data',function(data){
                      collection.insert({'data': data});
                   })
                   .on('end',function(data){
                      console.log('Read finished');
                   })

    }
  }); //End of Mongo connect
```

Everything for the csv file is similar, as i just copy and paste the documents as i am required to do 1000 data that i am asked to do so.

This is part of the data out of 1000 data for `1000data.csv`

```html
Machine Unit,Air Temperature °C,Water Temperature °C,Heat Temperature °C,Room Temperature °C,Date,Time
1,61,54,87,20,12/3/2016,8:39AM
2,41,57,92,21,29/9/2016,3:51PM
3,39,53,89,22,22/12/2016,5:30PM
4,56,27,87,23,9/7/2016,6:54AM
5,71,85,76,24,21/10/2016,7:29PM
6,82,64,85,25,22/3/2016,9:38PM
7,91,73,94,26,21/10/2016,1:30PM
8,35,79,89,27,30/4/2016,2:17PM
9,29,59,83,28,18/7/2016,7:49AM
10,19,61,80,29,27/9/2016,8:21PM
```