在Collection中定义了group表,
在shell中对group操作是出现错误:
> db.group.find()
2016-04-08T14:13:51.048+0800 E QUERY TypeError: Object function ( parmsObj ){
var ret = this.runCommand( { "group" : this._groupFixParms( parmsObj ) } );
if ( ! ret.ok ){
throw Error( "group command failed: " + tojson( ret ) );
}
return ret.retval;
} has no method 'find'
at (shell):1:10
解决方法:
db.getCollection("group").find()