I am running a bash script to set up a new database on my mongo server. To do this, I am using a Java script file to execute the mongo command.
I am currently attempting to run the following query on my local host but it is failing:
mongo localhost:27017 C:\Database\newDataBase\createDB.js
What is the proper mongo query syntax for this task?