-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
in: aggregation-frameworkAggregation framework supportAggregation framework supportin: repositoryRepositories abstractionRepositories abstractiontype: enhancementA general enhancementA general enhancement
Description
Yaakov Chaikin opened DATAMONGO-2274 and commented
Currently, this is what's required:
and("props")
.filter("prop", context ->
new Document("$setIsSubset", Arrays.asList("$$prop.valueSet", myList)))
.as("props")
There is no way to use SetIsSubset in this scenario because while SetIsSubset.arraySetSet(String arrayReference)
works to point to the sub-property off of the filter (i.e., prop.valueSet), there is no way to do this:
SetIsSubset
.arraySetSet(String arrayReference)
// This is not possible. Expects AggregationExpression or document property reference as array
.isSubsetOf(List<String> arrayToCompareTo)
No further details from DATAMONGO-2274
Metadata
Metadata
Assignees
Labels
in: aggregation-frameworkAggregation framework supportAggregation framework supportin: repositoryRepositories abstractionRepositories abstractiontype: enhancementA general enhancementA general enhancement