From a707f50d900e5950ca6e1edd6e0be92d860fc9c0 Mon Sep 17 00:00:00 2001 From: Yura Date: Mon, 8 Oct 2012 08:27:49 +0300 Subject: [PATCH] printJson actually doesn't work in MongoDB shell version: 2.0.7-rc0 (winXP) "printJson" causes: ReferenceError: printJson is not defined (shell eval):1 "printjson" works fine --- source/reference/mongo.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/reference/mongo.txt b/source/reference/mongo.txt index 214c9ebaa85..c980d1f38af 100644 --- a/source/reference/mongo.txt +++ b/source/reference/mongo.txt @@ -255,7 +255,7 @@ the :option:`--eval ` option, use the following form: .. code-block:: sh - mongo --eval 'db.collection.find().forEach(printJson)' + mongo --eval 'db.collection.find().forEach(printjson)' Use single quotes (e.g. ``'``) to enclose the JavaScript, as well as the additional JavaScript required to generate this output.