[DOCS-9863] Incorrect $elemMatch query Created: 06/Feb/17 Updated: 24/Apr/17 Resolved: 24/Apr/17 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Sagar | Assignee: | Kay Kim (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: | |
| Days since reply: | 7 years, 1 week, 2 days ago |
| Description |
|
The second query should be db.inventory.find( { "instock": { qty: 60, warehouse: "A" }} ) instead of db.inventory.find( { "instock": { $elemMatch: { qty: 60, warehouse: "A" }} } ) |
| Comments |
| Comment by Githook User [ 06/Feb/17 ] |
|
Author: {u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}Message: |