[CSHARP-1500] Update with PullFilter fails against array of scalars Created: 10/Dec/15  Updated: 17/Nov/22

Status: Backlog
Project: C# Driver
Component/s: Linq, LINQ3
Affects Version/s: 2.2
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Nikolay Stoychev Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: triaged
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 10, MongoDb server 3.0


Issue Links:
Problem/Incident
Case:

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


Generated at Wed Feb 07 21:39:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.