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

Document mongo.setReadPref() method

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • None
    • manual
    • None

    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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              10 years, 42 weeks, 5 days ago