| event_time | event_type | category_code |
|---|---|---|
| 2019-10-01 00:00:00 UTC | view | appliances.environment.water_heater |
| 2019-10-01 00:00:00 UTC | cart | furniture.living_room.sofa |
Above is the CSV file I have imported into the MongoDb. Now I want to extract certain columns(event time and event type) from the existing collection into a new collection, without reimporting them again using CSV file. Is there any query to do it? All I have found on Google is just the copy method, which cannot be used as I only need some of the columns.