ChilliCream / ChilliCream/graphql-platform
StrawberryShake throws ArgumentNullException when @include directive is false.
Open
Nobody has claimed this yet.
🌶️ strawberry shake
- Dominant language
- C#
- Stars
- 5.8k
- Forks
- 810
- Avg merge
- 15h 39m
- Merged PRs (30d)
- 98
Description
Is there an existing issue for this?
- I have searched the existing issues
Product
Hot Chocolate
Describe the bug
When an operation contains an @include(if: false) directive to return a reduced payload StrawberryShake throws an ArgumentNullException at runtime.
Steps to reproduce
- Write a query for strawberry shake that has
@include(if: false)against one or more fields, - Try to execute query from generated client.
Relevant log output
No response
Additional Context?
No response
Version
13.5.1
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 issue with a StrawberryShake generated client and a query containing @include(if: false) on one or more fields, using the reported 13.5.1 version if available. Trace the resulting ArgumentNullException during execution and verify that the client returns the reduced payload without throwing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100