ChilliCream / graphql-platform

Welcome to the home of the Hot Chocolate GraphQL server for .NET, the Strawberry Shake GraphQL client for .NET and Banana Cake Pop the awesome Monaco based GraphQL IDE.
https://chillicream.com
MIT License
5.25k stars 745 forks source link

StrawberryShake throws ArgumentNullException when @include directive is false. #6616

Open grounzero opened 1 year ago

grounzero commented 1 year ago

Is there an existing issue for this?

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

eduardocp commented 3 months ago

Hi guys, any news?