I need to import everything that exists in a particular database in mongoDB to arangoDB. I can dump the mongoDB data as:
mongodump -d "database_name" -u "user_name" -p "password"
Which will then dump the database to a dump folder.
Now I need to import this dump to my arangoDB database. How do I do this ?
A method you can try is to first export your Mongo database into a JSON file as:
mongoexport --db databaseName --collection collectionName --out dump.json
Once you've obtained the JSON file you can try to import it into Arango using arangoimp
arangoimp --file dump.json --collection collectionName --create-collection true
References:
Let me know if you encounter problems.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With