What are the basics of MongoDB Scripts?
I think the script will end with .js, and we run it using mongo try.js
.js
mongo try.js
But if I put
<
linux or mac shell:
user@comp:$ mongo < script.js