Showing posts with label except for aggregate with the explain argument. Show all posts
Showing posts with label except for aggregate with the explain argument. Show all posts

Wednesday, February 5, 2020

Mongo DB Error

MongoDB Exception – yii\mongodb\Exception
127.0.0.1:27017: The 'cursor' option is required, except for aggregate with the explain argument


Solution :

Check the version of mongo db. I got this error while importing a database into mongodb 4.0 and database was exported from older version of mongo db 2.6 or 3.2.

I installed mongodb 2.6 in docker and imported the database. Now application was connected from docker mongodb.

It fixed the issue.