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
Rename AggregationPipeline.requiresRelaxedChecking() to containsUnionWith() to avoid the concept of field validation leaking into AggregationPipeline.
Refactor AggregationOperation to consistently check their type and fallback to the operator check to allow for consistent checks when using custo AggregationOperations.
Original pull request: #886.
Copy file name to clipboardExpand all lines: spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/AggregationPipeline.java
+35-19Lines changed: 35 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@
18
18
importjava.util.ArrayList;
19
19
importjava.util.Collections;
20
20
importjava.util.List;
21
+
importjava.util.function.Predicate;
21
22
22
23
importorg.bson.Document;
23
24
importorg.springframework.util.Assert;
@@ -26,6 +27,7 @@
26
27
* The {@link AggregationPipeline} holds the collection of {@link AggregationOperation aggregation stages}.
Copy file name to clipboardExpand all lines: spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/UnionWithOperation.java
+5-7Lines changed: 5 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -45,14 +45,14 @@ public class UnionWithOperation implements AggregationOperation {
Copy file name to clipboardExpand all lines: spring-data-mongodb/src/test/java/org/springframework/data/mongodb/core/aggregation/UnionWithOperationUnitTests.java
0 commit comments