mysql to mongodb migration I have table, with around 125 million records in MySql. I want to move it to mongodb.

What would be the best approach to migrate this huge table to mongodb?

I was thinking to fetch one by one row using a nodejs application and create an array for bulk insert in mongodb. But I think it will take too much memory (Haven't check it though).
Export that table to JSON format (f.ex. MySQL Workbench) and use mongoimport to import it.