Details
-
Improvement
-
Resolution: Won't Fix
-
Major - P3
-
None
-
None
-
None
Description
It would be nice if the $size operator supported objects!
This would specifically be handy for implementing the update-if-current idom; e.g. one could match the following subdocument exactly and order-indipentantly:
Document:
{
|
_id: 1,
|
my_doc: {
|
name: "Ford Prefect",
|
occupation: "Writer"
|
}
|
}
|
Query:
{
|
_id: 1,
|
"my_doc.name": "Ford Prefect",
|
"my_doc.occupation": "Writer",
|
my_doc: {$size: 2}
|
}
|
Attachments
Issue Links
- related to
-
SERVER-12199 Add an operator that matches an entire document
-
- Backlog
-