[DOCS-1204] projection should be 'project' as find parameter Created: 07/Mar/13 Updated: 02/Aug/13 Resolved: 31/Jul/13 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual |
| Affects Version/s: | None |
| Fix Version/s: | v1.2 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Steve Francia | Assignee: | Sam Kleinman (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: | |
| Days since reply: | 10 years, 29 weeks ago |
| Description |
|
For consistency with aggregation & text search, the term project should be used in place of projection. Projection may be used throughout the site, especially to help explain the concept, but the parameter should be consistent. |
| Comments |
| Comment by auto [ 31/Jul/13 ] |
|
Author: {u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}Message: |
| Comment by Steve Francia [ 31/Jul/13 ] |
|
It should be used as following: find( {criteria}).project( {projection}) |
| Comment by Steve Francia [ 07/Mar/13 ] |
|
Thinking about this more, perhaps the current naming is perfectly accurate. project : v methods should be verbs and parameters should be nouns. The confusion comes from BSON commands like text search and aggregation where a key is provided.. Is the key for an object or an action. We mix it up and this can lead to inconsistencies. |