Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
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 (ver 0.8.5) を使用していたためでした。シェルでできることはすべて Robomongo でもできると思っていましたが、明らかにそうではありませんでした。コマンドラインの使用に切り替えたとき、db.collection.explain() は問題なく動作しました。