Hello,
Do jongo supports mongodb 3.6 features? I have an issue. I installed ubuntu 18.04 and mongodb 3.6. First I tried to install mongodb 3.4 but not succeeded.
Now the following code throws error:
Iterable<Script> output = script().aggregate("{$match:{_id:#}}", id).and("{$project:{" +
" \"params\": {$filter: {" +
" input: '$params'," +
" as: 'params'," +
" cond: {$eq: ['$$params.id', #]}" +
" }}" +
" }}", paramId).and().as(Script.class);
return output;
The error is the following:
Execution exception[[MongoCommandException: Command failed with error 9: 'The 'cursor' option is required, except for aggregate with the explain argument' on server localhost:27017. The full response is { "ok" : 0.0, "errmsg" : "The 'cursor' option is required, except for aggregate with the explain argument", "code" : 9, "codeName" : "FailedToParse" }]]
How to add "explain" or "cursor" in the above code? or how to downgrade mongodb to 3.4 in ubuntu 18? Or any suggestion is welcome.
Thank you.
Raees