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

Update with PullFilter fails against array of scalars

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor - P4 Minor - P4
    • None
    • 2.2
    • Linq, LINQ3
    • Windows 10, MongoDb server 3.0

    Description

      When create update like with this update definition

      PullFilter(it => it.ArrayInt, Builders<int>.Filter.Gte("ArrayInt", 1));
      

      the cshapr driver generate towards server a request seems like this:

      $pull: { ArrayInt: { ArrayInt: { $gte: 4 } } }
      

      but the right it should be :

      $pull: { ArrayInt: { $gte: 4 } }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            nikolay Nikolay Stoychev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: