Open
Description
openedon Jun 22, 2024
public virtual Task Project_owned_reference_navigation_which_owns_additional(bool async)
=> AssertQuery(
async,
ss => ss.Set<OwnedPerson>().OrderBy(o => o.Id).Select(p => p.PersonAddress));
Since PersonAddress owns further entity types (OwnedCountry), the expression inside the Select() contains IncludeExpression; this leads CosmosProjectionBindingExpressionVisitor into a specific path where we end up projecting the entire document. Compare how this works in relational - CosmosProjectionBindingExpressionVisitor is one place where Cosmos is still quite behind.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment