Skip to content

Commit

Permalink
Document changes to the set_fields method of cursor objects.
Browse files Browse the repository at this point in the history
  • Loading branch information
lehenbauer committed Feb 15, 2014
1 parent 061a8c7 commit c1900d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,9 @@ Streem in multiple 'more' packages... (?)

Allow reads even if a shard is down.

* $cursor set_fields bson
* $cursor set_fields fieldList

Set what fields are returned. bson is a bson object containing the fields. Expect this to change to take a list of fields and make the bson object behind your back.
Set what fields are returned. fieldList is a list of field names with 1 or 0. 1 says to include the field, 0 says to exclude it. The fieldList is sticky for future queries. This may change. See http://docs.mongodb.org/manual/tutorial/project-fields-from-query-results/ for how the 1/0 thing works.



Expand Down

0 comments on commit c1900d0

Please sign in to comment.