mongo
ShellOn this page本页内容
The MongoDB v5.0中已弃用mongo
shell has been deprecated in MongoDB v5.0. mongo
shell。The replacement is 替代者是mongosh
.mongosh
。
Older 较早的mongo
shell documentation is included with the corresponding documentation for that MongoDB
release.mongo
shell文档包含在MongoDB版本的相应文档中。
Quick Links to prior versions到早期版本的快速链接
mongo
Shell and mongosh
mongo
-Shell和mongosh
的比较The new MongoDB Shell (新的MongoDB Shell(mongosh
) offers numerous advantages over the legacy mongo
shell, such as:mongosh
)与传统的mongo
shell相比具有许多优势,例如:
mongosh
currently supports a subset of the legacy mongo
shell methods. mongosh
目前支持遗留mongo
shell方法的一个子集。To maintain backwards compatibility, the methods that the new 为了保持向后兼容性,新mongosh
supports use the same syntax as the corresponding methods in the legacy mongo
shell.mongosh
支持的方法使用与传统mongo
shell中相应方法相同的语法。
The list of methods supported by mongosh
is here: MongoDB Shell Methods.mongosh
支持的方法列表如下:MongoDB Shell方法。
mongo
Reference Pagemongo
参考页