[SERVER-9281] Add setReadPref() JS method to database and collection objects Created: 08/Apr/13  Updated: 09/Jul/16  Resolved: 08/Apr/13

Status: Closed
Project: Core Server
Component/s: JavaScript, Shell
Affects Version/s: 2.4.1
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Jeremy Mikola Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-6983 The shell should support ReadPreferen... Closed
Related
related to DOCS-1355 Document mongo.setReadPref() method Closed
Participants:

 Description   

These would be alternatives to the older setSlaveOk() methods. Currently, one can only set read preferences at the connection and cursor level.



 Comments   
Comment by Scott Hernandez (Inactive) [ 08/Apr/13 ]

Dup of SERVER-6983

Comment by Jeremy Mikola [ 08/Apr/13 ]

Documentation for these methods should be similar to the connection method (once written).

Generated at Thu Feb 08 03:19:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.