{"id":23864540,"url":"https://github.com/ibebbs/cosmosselectmanyrepro","last_synced_at":"2026-06-17T18:05:44.003Z","repository":{"id":148899504,"uuid":"155196973","full_name":"ibebbs/CosmosSelectManyRepro","owner":"ibebbs","description":"Reproduction of \"SelectMany doesn't work after Select\" issue (#91)","archived":false,"fork":false,"pushed_at":"2018-10-29T11:14:07.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-25T08:41:34.059Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ibebbs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-29T11:00:19.000Z","updated_at":"2018-10-29T11:14:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"9df02bdb-cf3f-4fc7-a6f3-99889cf19b36","html_url":"https://github.com/ibebbs/CosmosSelectManyRepro","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ibebbs/CosmosSelectManyRepro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibebbs%2FCosmosSelectManyRepro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibebbs%2FCosmosSelectManyRepro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibebbs%2FCosmosSelectManyRepro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibebbs%2FCosmosSelectManyRepro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ibebbs","download_url":"https://codeload.github.com/ibebbs/CosmosSelectManyRepro/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibebbs%2FCosmosSelectManyRepro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34459706,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-03T08:26:36.479Z","updated_at":"2026-06-17T18:05:43.985Z","avatar_url":"https://github.com/ibebbs.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CosmosSelectManyRepro\nReproduction of [SelectMany doesn't work after Select](https://github.com/Azure/azure-cosmosdb-dotnet/issues/91#issuecomment-432037836) issue.\n\n# Environment\nNunit test (with VS Test adapter) which uses the [CosmosDB local emulator](https://docs.microsoft.com/en-us/azure/cosmos-db/local-emulator)\n\n# Issue\nThe query:\n\n```\nvar query = _client\n  .CreateDocumentQuery\u003cContainer\u003e(_collection.SelfLink)\n  .Select(container =\u003e container.Pupil)\n  .SelectMany(pupil =\u003e pupil.Classes\n    .Where(@class =\u003e @class.Id == CosmosDB101.Id)\n    .Select(@class =\u003e pupil));\n```\n\nGenerates: `SELECT VALUE root[\"Pupil\"] FROM root JOIN class IN root[\"Classes\"] WHERE (class[\"Id\"] = \"501ffc8e-272d-4f26-bebb-f5ce8ce1c095\")`\n\nBut should generate: `SELECT VALUE root[\"Pupil\"] FROM root JOIN class IN root[\"Pupil\"][\"Classes\"] WHERE (class[\"Id\"] = \"501ffc8e-272d-4f26-bebb-f5ce8ce1c095\")`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibebbs%2Fcosmosselectmanyrepro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fibebbs%2Fcosmosselectmanyrepro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibebbs%2Fcosmosselectmanyrepro/lists"}