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

Add strongly typed explain method

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Won't Fix
    • Affects Version/s: 1.8.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      .NET
    • Backwards Compatibility:
      Fully Compatible

      Description

      To explain a query presently we pass in a type but we receive a BsonDocument. That works, but it would be so much better to return a strongly typed object that matches the data returned from explain.

      Today:
      public static BsonDocument Explain<T>(this IQueryable<T> source)

      Tomorrow:
      public static QueryPlan Explain<T>(this IQueryable<T> source)

      QueryPlan is a class that (AFAIK) is yet to be defined. I have a working version which returns a static type (which has properties you might expect like CursorType, etc).

      I would like to submit this back to the driver. What GitHub branch would be best to start from and to issue a pull request back to?

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: