Is there a way to execute multiple .js files in a directory by directly providing the directory path to latest mongo shell? Legacy mongo shells used to support this.
mongosh -u user -p pass <host> random/dir/path/
Using MongoDB: 5.0.0
Using Mongosh: 2.5.1
For mongosh info see: https://www.mongodb.com/docs/mongodb-shell/
Loading file: random/dir/path/
Error: EISDIR: illegal operation on a directory, read
The above operation was supported by legacy shells like mongo40 or mongo50 shells.