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

Add strongly typed explain method

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

      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?

            Assignee:
            Unassigned Unassigned
            Reporter:
            mkennedy66996693 Michael Kennedy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: