[CSHARP-3415] LINQ3: Translate F[n] where F is a List<T> to filter field Created: 09/Feb/21  Updated: 28/Oct/23  Resolved: 04/Oct/21

Status: Closed
Project: C# Driver
Component/s: LINQ3
Affects Version/s: None
Fix Version/s: 2.14.0

Type: Task Priority: Major - P3
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by CSHARP-3404 LINQ3: Get LegacyPredicateTranslatorT... Closed
Epic Link: CSHARP-2608

 Description   

Translate:

collection.Where(x => x.F[n] == c)

to:

{ $match : { "F.n" : c } }

where `x.F` is of type `List<T>` and `x.F[n]` is represented as a MethodCallExpression using the special method name `get_Item` and `n` is a constant integer and `c` is a constant of type `T`.



 Comments   
Comment by Robert Stam [ 09/Feb/21 ]

Done but not reviewed

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