-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cosmos: Translate SelectMany #17312
Comments
For at least most scenarios of SelectMany, |
@roji Can you please provide an example of an equivalent query translated to LINQ? I'm trying to filter a list of documents based on values located in nested collections. For example: {
"Id": "<id>",
"collection1": [
{
"collection2": [
"propToFilterOn": "<value>"
]
}
]
} I can retrieve the values using LINQ on the client-side: entity.AsEnumerable().Where(e => e.collection1
.SelectMany(e => e.collection2).Any(d => d.propToFilterOn == "lookUpValue"))) But, if I try to run this directly against EF, I get a query translation exception. |
@gamontal translating SelectMany on Cosmos isn't yet supported - that's why this issue is still open. |
Also introduces substantial infrastructure for general joins Closes dotnet#17312
Also introduces substantial infrastructure for general joins Closes dotnet#17312
Also introduces substantial infrastructure for general joins Closes dotnet#17312
Also introduces substantial infrastructure for general joins Closes dotnet#17312
Also introduces substantial infrastructure for general joins Closes dotnet#17312
Also introduces substantial infrastructure for general joins Closes dotnet#17312
No description provided.
The text was updated successfully, but these errors were encountered: