Open maumar opened 1 month ago
~Note: we already have OwnedQueryCosmosTest.SelectMany_on_owned_collection which tests exactly this query - except for the AsNoTracking... We also have PrimitiveCollectionsQueryCosmosTest.Column_collection_SelectMany for the scalar (non-entity) version.~ The projected collection isn't actually owned in that test (otherwise we don't support projecting out owned things in a tracking query).
Test: JsonQueryTestBase.Json_collection_SelectMany
@ajcvickers I took a brief look, and this looks to me to be a Cosmos shaper issue, related to our switch to VALUE projections - I think the shaper generation erroneously still thinks that the collection of projected owned types is inside an object, but it isn't (any more).
Query:
exception
SelectMany should be supported (https://github.com/dotnet/efcore/pull/34013)