ChilliCream / ChilliCream/graphql-platform
Filter on count of objects in List filters
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?
Multiple times I've wanted to be able to filter on number of items in a list. Like return posts with more than 5 comments.
There are other ways to solve this, but it would simplify things if List filters had a count property that works like a comparable filter.
The solution you'd like
For a typical posts with comments example, something like this:
query {
posts(where: { comments: { count: { gte: 5 } } }) {
...
}
}
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 names Hot Chocolate list filters and the proposed GraphQL query, but no files or tests. Start by locating the list-filter implementation and existing comparable filter handling. Done means supporting the shown count comparison syntax and covering the behavior with tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, graphql
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100