mongocxx::read_preference::tags(bsoncxx::document::view_or_value) should take a bsoncxx::array::view_or_value

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Unknown
    • 3.7.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When reading about the Read Preference Tag Sets, we would expect the following signature :
      read_preference& tags(bsoncxx::array::view_or_value tags);

      In the current form (with a bsoncxx::document::view_or_value), it's unclear what is the correct usage.
      Are we supposed to wrap the array in a document ?

            Assignee:
            Ezra Chung
            Reporter:
            Adrian B
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: