graphql-platform icon indicating copy to clipboard operation
graphql-platform copied to clipboard

StrawberryShake throws ArgumentNullException when @include directive is false.

Open grounzero opened this issue 1 year ago • 1 comments

Is there an existing issue for this?

  • [X] 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

grounzero avatar Oct 23 '23 12:10 grounzero