Details
-
Bug
-
Status: Closed
-
Major - P3
-
Resolution: Works as Designed
-
6.1.0
-
None
-
None
-
None
-
ALL
-
-
QE 2022-12-26
Description
$documents is returning no documents when connected to a 6.1.0 mongos
anna.henningsen@mongodb.com discovered that this only happens if the database is empty.
Enterprise [direct: mongos] test> db.aggregate([{ $documents : [{ X : 10 }, { X : 2 }, { X : 5 }] }]) |
[ { X: 10 }, { X: 2 }, { X: 5 } ] |
Enterprise [direct: mongos] test> db.dropDatabase()
|
{ ok: 1, dropped: 'test' } |
Enterprise [direct: mongos] test> db.aggregate([{ $documents : [{ X : 10 }, { X : 2 }, { X : 5 }] }]) |
Enterprise [direct: mongos] test>
|