Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-1355

Document mongo.setReadPref() method

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • Affects Version/s: None
    • Component/s: manual
    • Labels:
      None

      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.

            Assignee:
            sam.kleinman Sam Kleinman (Inactive)
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              11 years, 6 days ago