ChilliCream / ChilliCream/graphql-platform
Get all where sub-item is null
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 5.8k
- Forks
- 810
- Avg merge
- 15h 39m
- Merged PRs (30d)
- 98
Description
Is your feature request related to a problem?
Sorry if this is basic! But I just can´t filter/select by null values. I have looked everywhere. I have tried all kinds of syntax without any luck. I gave this here a go https://chillicream.com/docs/hotchocolate/fetching-data/filtering.
So here I´m getting everything, and you see a Site == null. I would like to get all where Site == null
The solution you'd like
But I would like something like this this
{
devices(where: { site: { any: false} }) {
nodes{
id
machineCode
site {
id
customer {
id
}
address {
city
}
}
hardwareInformation {
systemVendor
}
}
}
Is this possible to day?
Product
Hot Chocolate
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
Start by reproducing the devices query from the issue and compare it with the Hot Chocolate filtering documentation linked there. Investigate how filtering represents a null related Site, then verify that an equivalent filter returns only devices whose Site is null.
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
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100