For types like `IGrouping` we sometimes want to treat the type as a document with fields and sometimes as an `IEnumerable`. If we want to treat it as an `IEnumerable` we need to unwrap the embedded array.
Only the caller knows whether the type should be treated as a document with fields or an `IEnumerable`, and it indicates that by calling either `Translate` or `TranslateEnumerable`.
There are a few places we are calling the wrong method. This ticket is to find all the calls and verify that the correct method is being called.
- is related to
-
CSHARP-5463 Investigate whether calls to EnsureQueryableMethodHasNestedAsQueryableSource are actually needed
- Backlog