I'm facing some issues while trying to populate my MongoDB using a script. Every time I run the script, I encounter errors even though the Docker container is up and running.
For reference, I'm on Windows 10 using WSL shell.
https://i.stack.imgur.com/sFyXh.png
Could someone please help me figure out what I am doing wrong? Thank you!
Here is the import_script.js that I am attempting to execute:
use ulaval
db.professeurs.insert(
[{
"prenom":"Etienne",
"nom":"Marceau",
"cours":"ACT-3000",
"faculte":"fsg",
"ecole":"ulaval",
"cours_derniere_session":["ACT-7002","ACT-2001"]
},
{
"prenom":"Jean-Thomas",
"nom":"Baillargeon",
"cours":"GLO-4035",
"faculte":"fsg",
"ecole":"ulaval",
"age":32
},
{
"prenom":"Julie",
"nom":"Langevin",
"faculte":"fmd",
"ecole":"ulaval"
},
{
"prenom":"Richard",
"nom":"Khoury",
"faculte":"fsg",
"ecole":"ulaval",
"cours_derniere_session":["GLO-7027"]
},
{
"prenom":"Luc",
"nom":"Lamontagne",
"cours":"IFT-7022",
"faculte":"fsg",
"ecole":"ulaval"
},
{
"prenom":"Philippe",
"nom":"Gregoire",
"cours":"GSF-2103",
"faculte":"fsa",
"ecole":"ulaval"
},
{
"prenom":"Philippe",
"nom":"Gregoire",
"cours":"GSF-2103",
"faculte":"fsa",
"ecole":"ulaval"
}]
)