CommandResult.getResponse should be typed

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 3.0.0
    • Affects Version/s: None
    • Component/s: API
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently it returns a BsonDocument which may not be appropriate and should be generic and convertible to an expected type via a Decoder<T>.

       class CommandResult<T> {
            T getResponse()
       }
      
      class CommandReadOperation<T> {
             CommandResult<T> execute()
             ....
      

              Assignee:
              Jeffrey Yemin
              Reporter:
              Ross Lawley
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: