mongosh
mongo
Docs 主页 → 开发应用程序 → MongoDB Manual
此处列出的原生方法适用于旧版 mongo Shell。
要使用 mongosh中的原生方法,请参阅mongosh中的原生方法。
pwd()
返回活动 Shell 会话的当前工作目录,并且不会影响服务器。