Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-1537

Set read concern/read preference for individual operations

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      I need to run a find query with read preference and read concern different from the defaults for the collection/database/client. How can I set it using the go library. 

      In a shell it looks like that:

      ```
      db.restaurants.find(

      { _id: 5 }

      ).readConcern("majority").readPref("secondary")
      ```
       

            Assignee:
            Unassigned Unassigned
            Reporter:
            georgy.savva@gmail.com Georgy Savva
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: