Replicates on both replicaset and sharded clusters in 7.2.
Works as expected in 7.0.
On 7.0 sharded cluster there's another error "$documents must run on mongoS, but cannot :: caused by :: $merge must run on a shard".
The scope of this ticket is replicaset since there's a regression
- is caused by
-
SERVER-65534 $documents doesn't work if a later stage needs to run on a shard (not mongos)
- Closed