[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: DOCS-1204: standardizing the query critera/projection language in the reference pages
Branch: master
https://github.com/mongodb/docs/commit/13de9be01526ac5accdde94433a94bbd88737e21

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
projection : n

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.

Generated at Thu Feb 08 07:40:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.