What steps will reproduce the problem?
1. I have downloaded this json file from Http://media.mongodb.org/zips.json
2. execuded this command line : mongoimport --db scratch --collection zips
--file zips.json
3. and in the Tools->Command pasted :
{
group :
{
ns : 'zips',
key : {'state':1},
initial : {'pop' : 0 },
$reduce : function (curr,result)
{
//if(curr.pop>result.pop)
{result.pop += curr.pop;}
}
}
}
for DB:scratch and Format:JSON
4. press on execute button and i'll get this error message :
Response from server:
{
"errmsg": "exception: not code",
"code": NumberInt(10062),
"ok": 0
}
this works with mongo command line!
RockMongo Version (1.1.2)
Operation System (Windows 7 x64)
PHP Version (5.3.5)
php_mongo Version (1.1.3)
MongoDB version (2.4.2)
Original issue reported on code.google.com by ershadi....@gmail.com on 24 Apr 2013 at 7:22
Original issue reported on code.google.com by
ershadi....@gmail.com
on 24 Apr 2013 at 7:22Attachments: