I need to update my MongoDB database each time from given JSON files. Is there any way to import a JSON file into MongoDB with Scala? or is it possible to execute a raw mongo command like this in Scala environment?
mongoimport --db issue --collection customer --type json --file /home/lastvalue/part-00000.json
In Java we can do like this but I need to implement it in Scala. Where I will get to import the libraries of this classes?