Posts

Showing posts from May, 2018

MacOS Downgrade or Upgrade MongoDB Versions

Image
By Source, https://en.wikipedia.org/w/index.php?curid=48498452 As we are working on different projects, it may happen that we require the two different mongodb versions to run on same machine or you may get following type of error which I get today only: name: 'MongoError',   message: 'The \'cursor\' option is required, except for aggregate with the explain argument',   operationTime: Timestamp { _bsontype: 'Timestamp', low_: 24, high_: 1527143887 },   ok: 0,   errmsg: 'The \'cursor\' option is required, except for aggregate with the explain argument',   code: 9,   codeName: 'FailedToParse',   '$clusterTime':    { clusterTime: Timestamp { _bsontype: 'Timestamp', low_: 24, high_: 1527143887 },      signature: { hash: [Object], keyId: [Object] } } } (node:65062) UnhandledPromiseRejectionWarning: MongoError: The 'cursor' option is required, except for aggregate with the explain argument     ...