I am implementing single page application and using Angular JS, MongoDB Database. So I am calling aggregation two ways:
- With Arguments.
- Without Arguments.
When I was using 3.4 version of mongoDb. Then both way was working. But I upgraded mongoDb version from 3.4 to 3.6 then without arguments it is not working. Only with argument aggregation is calling.
when I implemented aggregation without arguments.
Then It is giving me Below error message.
The full response is { 'ok' : 0.0, 'errmsg' : 'The 'cursor' option is required, except for aggregate with the explain argument', 'code' : 9, 'codeName' : 'FailedToParse'
I checked some link in stackoverflow;
Spring data mongodb - The 'cursor' option is required
The 'cursor' option is required error coming from every aggregate
GIT URL
https://github.com/metabase/metabase/issues/6599
https://github.com/Automattic/mongoose/issues/4101
But I am not getting solution. Is it defect with updated version? Or we have to change some code? Thanks In Advance