On this page
run on the server. For more information, see
.js files via a
mongosh Instance on the Server
.js) file to
to execute the file on the server. This is a good technique
for performing batch administrative work. When you run
mongosh on the server, connecting via the localhost
interface, the connection is fast with low latency.
Refer to the individual method or operator documentation for any concurrency information. See also the concurrency table.