Update with PullFilter fails against array of scalars

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Minor - P4
    • None
    • Affects Version/s: 2.2
    • Component/s: LINQ, LINQ3
    • Environment:
      Windows 10, MongoDb server 3.0
    • None
    • 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?
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Nikolay Stoychev
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: