ChilliCream / ChilliCream/graphql-platform
Add support for readonly projectable properties for EF core query
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 5.8k
- Forks
- 810
- Avg merge
- 15h 39m
- Merged PRs (30d)
- 98
Description
Product
Hot Chocolate
Is your feature request related to a problem?
HotChoclate is not fetching the readonly child collections as navigation property. ex:
public class List
{
private readonly List<ListLocation> _locations;
public IReadOnlyCollection<ListLocation> Locations => _locations;
}
While generating the SQL query, it is only fetching the parent class properties.
The solution you'd like
While HotChoclate generates the GraphQL schema correctly for these properties, I am expecting it to also query the readonly projectable properties as well (generate SQL).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue provides no file or test names. Start by tracing Hot Chocolate's EF Core query projection entry point and how readonly child collections are handled; compare the generated SQL for the shown IReadOnlyCollection navigation property. Done means readonly projectable properties are included in the generated query while the GraphQL schema remains correct.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, graphql
- Domain
- api, backend, database
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100