[DOCS-1355] Document mongo.setReadPref() method Created: 08/Apr/13  Updated: 30/Oct/23  Resolved: 26/Apr/13

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Task Priority: Major - P3
Reporter: Jeremy Mikola Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-9281 Add setReadPref() JS method to databa... Closed
Participants:
Days since reply: 10 years, 42 weeks, 5 days ago

 Description   

The cursor.readPref() method is documented, but I found no reference in the manual to the connection-level read preference method. Since no helper methods exist on the database and collection objects (akin to setSlaveOk()), the connection-level method is essential to easily configure read preferences for multiple queries and commands.



 Comments   
Comment by auto [ 26/Apr/13 ]

Author:

{u'date': u'2013-04-23T16:09:31Z', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-1355 adding docs for more connection-level objects in the shell.
Branch: master
https://github.com/mongodb/docs/commit/8dd0a5880cf067316565e50726fc73d670274726

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