You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an example of a simple aggregation that is no longer working after upgrading mongodb from version 3.4 to 3.6.2. Here is the error:
00:00 +0: mongo 3.6.2 bug check data
00:00 +1: mongo 3.6.2 bug find max date
00:00 +1 -1: mongo 3.6.2 bug find max date [E]
{ok: 0.0, errmsg: The 'cursor' option is required, except for aggregate with the explain argument, code: 9, codeName: FailedToParse}
dart:async/future_impl.dart 22 _Completer.completeError
package:mongo_dart/src/database/db.dart 281:14 Db.executeDbCommand
===== asynchronous gap ===========================
I add a test file. Thank you for taking a look. The query runs fine in the mongo shell.
Hi,
I have an example of a simple aggregation that is no longer working after upgrading mongodb from version 3.4 to 3.6.2. Here is the error:
00:00 +0: mongo 3.6.2 bug check data
00:00 +1: mongo 3.6.2 bug find max date
00:00 +1 -1: mongo 3.6.2 bug find max date [E]
{ok: 0.0, errmsg: The 'cursor' option is required, except for aggregate with the explain argument, code: 9, codeName: FailedToParse}
dart:async/future_impl.dart 22 _Completer.completeError
package:mongo_dart/src/database/db.dart 281:14 Db.executeDbCommand
===== asynchronous gap ===========================
I add a test file. Thank you for taking a look. The query runs fine in the mongo shell.
Best regards
import 'package:mongo_dart/mongo_dart.dart';
import 'package:test/test.dart';
aggTest() async {
group('mongo 3.6.2 bug', (){
List data = [
{'type': 'A', 'date': '2017-01-01'},
{'type': 'AA', 'date': '2017-01-01'},
{'type': 'B', 'date': '2017-01-02'},
{'type': 'D', 'date': '2017-01-04'},
{'type': 'C', 'date': '2017-01-03'},
];
});
}
main() async {
await aggTest();
}
The text was updated successfully, but these errors were encountered: