Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/mongodb/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
jaspersoft mongodb聚合';光标';选项是必需的_Mongodb_Jasper Reports - Fatal编程技术网

jaspersoft mongodb聚合';光标';选项是必需的

jaspersoft mongodb聚合';光标';选项是必需的,mongodb,jasper-reports,Mongodb,Jasper Reports,我使用的是mongodb 3.4,最近我将其更改为4.0。这是我在jaspersoft studio中用于获取数据的脚本: { runCommand: { aggregate : 'Unite_ORG', pipeline : [ { $project : { Miss_Attr.categorie:1, Miss_At

我使用的是mongodb 3.4,最近我将其更改为4.0。这是我在jaspersoft studio中用于获取数据的脚本:

{
    runCommand: {
        aggregate : 'Unite_ORG',
        pipeline : [
            {
                $project : {

                    Miss_Attr.categorie:1,
                    Miss_Attr.texte:1
                }
            },
            { $unwind : '$Miss_Attr'}
       ]
}}
问题是我遇到了这个错误,我不知道如何修复它:

net.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.jr异常:“游标”选项为 必需,但带有explain参数的聚合除外


也许这个链接可以帮助你,它指的是从3.4到3.6的变化。请看[这个]问题。这是这个问题的重复。[这]: