【发布时间】:2017-04-03 21:42:11
【问题描述】:
使用 MongoDB v3.0.3。运行 db.grades.explain().find() 时遇到问题 - 我不断收到消息“TypeError: db.grades.explain is not a function (shell):1”
但是,我可以使用 db.grades.find().explain() - 但使用此方法返回的信息不如 collection.explain() 有用
【问题讨论】:
-
Robomongo 在与 MongoDB shell 的兼容性方面落后。它仍然基于 MongoDB 2.4.x 系列的构建,并且仍然使用 SpiderMonkey JavaScript 引擎。在 MongoDB 2.6 和更高版本中,引擎是 V8,并且很多集成逻辑已经改变。与 RoboMongo 相比,有很多帖子提到了当前 MongoDB shell 版本的不兼容性。