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

LINQ3: Refactor AstAndFilter Render method to render as the implicit and form when possible

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.14.0
    • Affects Version/s: None
    • Component/s: LINQ3
    • None

      Instead of translating:

      { document.F >= 1 && document.F <= 3 } 

      to:

      { $and : [{ F : { $gte : 1 } }, { F : { $lte : 3 } }] } 

      render it as the smaller implicit and form:

      { F : { $gte : 1, $lte : 3 } } 

       

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

              Created:
              Updated:
              Resolved: