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

Update with PullFilter fails against array of scalars

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.2
    • Component/s: Linq, LINQ3
    • Environment:
      Windows 10, MongoDb server 3.0
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      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 } }
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            nikolay Nikolay Stoychev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: