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

LINQ3: Translate filter expressions that compare using == or != to true or false

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

      There are many scenarios.

      field == true => { <field> : true }
      field == false => { <field> : false }
      field != true => { <field> : { $ne : true } }
      field != false => { <field> : { $ne : false } }
      
      predicate == true => { <predicate> }
      predicate == false => { $not : { <predicate> } }
      predicate != true => { $not : { <predicate> } }
      predicate != false => { <predicate> } 

            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: