[DOCS-2417] Comment on: "ecosystem/use-cases/category-hierarchy.txt" Created: 16/Dec/13 Updated: 03/Nov/17 Resolved: 20/Dec/13 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 01112017-cleanup |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Docs Collector User (Inactive) | Assignee: | Sam Kleinman (Inactive) |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | collector-298ba4e7 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
n/a Location: http://docs.mongodb.org/ecosystem/use-cases/category-hierarchy/ |
||
| Issue Links: |
|
||||||||
| Participants: | |||||||||
| Days since reply: | 10 years, 9 weeks, 3 days ago | ||||||||
| Description |
|
Code example is incorrect at: for cat in db.categories.find( {'ancestors._id': bop_id}, {'parent_id': 1}): Should be: for cat in db.categories.find( {'ancestors._id': bop_id}, {'parent': 1}): parent_id is not used as a document key anywhere else in this code sample. |