I know how to run a mongodb script from the command line and then enter the shell. E.g.,
mongo --shell dbname dbnameinit.js
But once I'm inside the shell, can I execute another script? Anything like db.dbname.load("anotherscript.js")???
Thanks! -- ge
Use: load("anotherscript.js")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With