I have a document with two arrays, one is a collection of string tags and the other is a collection of sub documents. I have created a mongo update that removes a sub document if any of the tags for the documents array are not in the provided list. When I execute the update I'm getting an IndexOutOfRangeException.
I've created a sample project to reproduce the bug which can be found here.
https://github.com/nickmkk/UpdateWhereItemsArentInProvidedList
Run the tests in RemoveSubEntityServiceTests.cs to reproduce the issue.
Note that the problem seems to be with the filter in RemoveSubEntityService.cs on line 25
- is related to
-
CSHARP-2012 != operator works incorrect for internal collection
- Closed
- related to
-
CSHARP-2744 Consider to restore(or modify) the previously removed logic or be sure that it doesn't cause a reason of wrong nested `Any`s
- Closed
1.
|
LINQ - command ANY | CSHARP-2591 | Closed | Unassigned |