So I want to test my methods using data from a MongoDB in scala.I need to create a db,fill it , fetch the data and delete it in the end. I have a big json file, who's data I want to add to the data base.
So I don't know how can I add all this information from the file to the test db.
Is there a way to copy the file directly into the db ? Or do I need to parse it and transform it to BSON format ? Any ideas?
Thanks.
Aucun commentaire:
Enregistrer un commentaire