Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-249

GetIndexes should return instance of GetIndexesResult

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 1.3
    • 1.0
    • None
    • None
    • Major Change

    Description

      GetIndexes is currently returning a value of type IEnumerable<BsonDocument>, requiring the caller to know the structure of the returned BsonDocuments and to write code to decode them. Most commands return type safe result types that have methods and properties that safely decode the results for the caller. GetIndexes should return a value of type GetIndexesResult, which would allow users to access the results of GetIndexes in a type safe manner and with assistance from Intellisense.

      This is a backward breaking change. Maybe it could be made non-breaking in some way (for example by having GetIndexesResult derive from IEnumerable<BsonDocument>, which we normally wouldn't do).

      Attachments

        Activity

          People

            robert@mongodb.com Robert Stam
            robert@mongodb.com Robert Stam
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: