-
Type: New Feature
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Querying
-
None
-
Query
Example collection:
{ test: [1,2,3] } { test: [1,3] } { test: [2] } { test: [3,4] }
There's no way to get element that match a subset of an array.
It would be useful to write something like:
db.coll.find({ test: {$subset: [1,2,3] }})
to extract all object except the last one (that contains '4'). It's something similar to a reversed $all operator...
- depends on
-
SERVER-6399 Refactor update() code
- Closed
-
SERVER-9366 Expose projection (aggregation) operators in regular find queries
- Closed
- is duplicated by
-
SERVER-16896 Provide "is subset" array functionality in query predicate language
- Closed
- is related to
-
SERVER-737 $allOrdered / $contains query operations for arrays
- Closed