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

GetIndexes should return instance of GetIndexesResult

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.3
    • Affects Version/s: 1.0
    • Component/s: None
    • None
    • Major Change

      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).

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

              Created:
              Updated:
              Resolved: