Avoid using the Aggregation.DEFAULT_CONTEXT which does not map contained values to the according MongoDB representation. We now use a relaxed aggregation context, preserving given field names, where possible.
Original pull request: #890.
pull/893/head
Christoph Strobl5 years agocommitted byMark Paluch
@ -2112,7 +2113,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@@ -2112,7 +2113,7 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
@ -46,6 +48,7 @@ public class TypeBasedAggregationOperationContext implements AggregationOperatio
@@ -46,6 +48,7 @@ public class TypeBasedAggregationOperationContext implements AggregationOperatio
@ -65,6 +68,7 @@ public class TypeBasedAggregationOperationContext implements AggregationOperatio
@@ -65,6 +68,7 @@ public class TypeBasedAggregationOperationContext implements AggregationOperatio
@ -151,6 +155,10 @@ public class TypeBasedAggregationOperationContext implements AggregationOperatio
@@ -151,6 +155,10 @@ public class TypeBasedAggregationOperationContext implements AggregationOperatio
@ -142,12 +142,8 @@ public class UnionWithOperation implements AggregationOperation {
@@ -142,12 +142,8 @@ public class UnionWithOperation implements AggregationOperation {