```
dbo.collection('Gps').findOne({$skip: 50}, {  captureDateTime :a5},function (err, result) {
                        if (result) {
                            dbo.collection("OBD").insertOne({ sensortype: 'OBD', captureDateTime: result.captureDateTime, vehiculeData: b5 }, function (err, result) {
                                if (err) throw err;
                                else
                                    console.log('OBD matched with GPS');
                            })
                        }
                    });

```

Its not getting proper result. I want to skip the 50 records and then from remaining records I want matched records based on capturedatetime and push it in OBD collection.

I also tried for

```
  dbo.collection('Gps').aggregate([ 
                       {$skip : 50},
                        { $match : { captureDateTime : a5 } } 
                    ]).toArray( function (err, result) {
                        if (result) {
                            dbo.collection("OBD").insertOne({ sensortype: 'OBD', captureDateTime: result.captureDateTime, vehiculeData: b5 }, function (err, result) {
                                if (err) throw err;
                                else
                                    console.log('OBD matched with GPS');
                            })
                        }
                    });

```