For executing a single query script (query.js) from the command line the following code was enough.
mongo db-name < query.js
I would like to execute (or match) multiple query files, such as query1.js, query2.js and so on. I tried the following code with no success.
mongo db-name < query*
Please help me out here.