[SERVER-8025] shell supports "query" works as a meta-operator - only "$query" should be supported Created: 24/Dec/12 Updated: 06/Aug/15 Resolved: 06/Aug/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | 2.0.6, 2.2.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Jack Wang | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
linux |
||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||||||||||
| Steps To Reproduce: |
|
||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||
| Description |
|
query result all |
| Comments |
| Comment by David Storch [ 06/Aug/15 ] |
|
Per rassi@10gen.com's comment above, closing this ticket as a duplicate of SERVER-15176 ("New commands for find and getMore"). Please watch the find/getMore commands ticket for updates on the status of that project. |
| Comment by J Rassi [ 28/May/15 ] |
|
We expect this to be resolved by the introduction of the find command in SERVER-15176. Running db.collection.find({query: {}}) in the shell will correctly match documents where the field "query" is an empty document. |
| Comment by Ben Becker [ 26/Feb/14 ] |
|
Note that even with the workaround of specifying the $query operator, you still can't call .sort(). You have to specify $orderby in the find clause. |