浏览代码

Refs #2061. mungedb-aggregate cannot group on _id:null .

Charles Ezell 12 年之前
父节点
当前提交
cf9e54e10d
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      lib/pipeline/documentSources/GroupDocumentSource.js

+ 1 - 0
lib/pipeline/documentSources/GroupDocumentSource.js

@@ -78,6 +78,7 @@ var GroupDocumentSource = module.exports = (function(){
 
                         idSet = true;
 					}else{
+						//! @todo: _getTypeStr() breaks when trying to group on _id:null.
 						var typeStr = group._getTypeStr(groupField);
 						switch(typeStr){
 							case "number":