html tool

2022年2月22日星期二

mongo shell 中执行js脚本

 参考:https://docs.mongodb.com/manual/tutorial/write-scripts-for-the-mongo-shell/


You can specify a .js file to the mongo shell, and mongo will execute the JavaScript directly. Consider the following example:

mongo localhost:27017/test myjsfile.js

没有评论:

发表评论