Set read concern/read preference for individual operations

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
            Reporter:
            Georgy Savva
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: