ChilliCream / ChilliCream/graphql-platform

StrawberryShake throws ArgumentNullException when @include directive is false.

Open
#6,616 1 comment 1 reaction 0 assignees View on GitHub

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
  1. Write a query for strawberry shake that has @include(if: false) against one or more fields,
  2. Try to execute query from generated client.
Relevant log output

No response

Additional Context?

No response

Version

13.5.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.