[CSHARP-2705] [Regression] Linq Translation of Nested Any throws NotSupportedException Created: 21/Aug/19 Updated: 28/Oct/23 Resolved: 08/Oct/19 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Builders, Linq, Serialization |
| Affects Version/s: | 2.8.0, 2.8.1, 2.9.0, 2.9.1, 2.10.0 |
| Fix Version/s: | 2.9.3 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Taylor Graham | Assignee: | Dmitry Lukyanov (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
Since 2.8.0, translation of LINQ query has broken for me - I now get a NotSupportedException, where before the query translated fine. The query I want is as below:
To achieve this I use the following link query:
The full exception I receive is:
|
| Comments |
| Comment by Robert Stam [ 15/Nov/22 ] | ||||||||||||
|
I was able to verify that the supplied LINQ query translates to the desired filter using LINQ3 but only if the dictionary properties were configured to be represented as an array of key/value pair documents:
`$elemMatch` only works with arrays. | ||||||||||||
| Comment by Githook User [ 08/Oct/19 ] | ||||||||||||
|
Author: {'name': 'Dmitry Lukyanov', 'username': 'DmitryLukyanov', 'email': 'dmitry.lukyanov@mongodb.com'}Message: | ||||||||||||
| Comment by Githook User [ 08/Oct/19 ] | ||||||||||||
|
Author: {'username': 'DmitryLukyanov', 'email': 'dmitry.lukyanov@mongodb.com', 'name': 'Dmitry Lukyanov'}Message: | ||||||||||||
| Comment by Taylor Graham [ 21/Aug/19 ] | ||||||||||||
|
This might be linked to |