[JAVA-1092] $all not working Created: 23/Jan/14 Updated: 07/Mar/14 Resolved: 07/Mar/14 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Query Operations |
| Affects Version/s: | 2.4 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Mihaela Hetea | Assignee: | Trisha Gee |
| Resolution: | Done | Votes: | 0 |
| Labels: | $all, java, | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows 7, MongoDB Java Driver v2.10.1, MongoDB v2.4.9 |
||
| Attachments: |
|
| Description |
|
The following code
returns exception com.mongodb.MongoException: Unsupported projection option: $all Steps to reproduce:
|
| Comments |
| Comment by Jeffrey Yemin [ 07/Mar/14 ] | |
|
Apologies for taking so long to get back to you. The problem is that your passing the query as the wrong argument to findOne(). Try this instead:
|