| Para string file: | |
|---|---|
| Specify a path and file name containing JavaScript. | |
This native function loads and runs a JavaScript file into the current shell environment. To run JavaScript with the mongo shell, you can either:
Specify files loaded with the load() function in relative terms to the current directory of the mongo shell session. Check the current directory using the “pwd()” function.