Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AddMutationConventions throws exception if a mutation has an enum with a default value in its signature #7072

Open
SvdSinner opened this issue Apr 23, 2024 · 0 comments
Labels
🐛 bug Something isn't working 🌶️ hot chocolate

Comments

@SvdSinner
Copy link

Product

Hot Chocolate

Version

14.0.0-p.35

Link to minimal reproduction

https://github.com/SvdSinner/StrawberryShakeIssueReproduction/tree/NotCompatibleCurrentLocation

Steps to reproduce

  1. Build code and see that it works by using BannanaCakePop
  2. Uncomment line 10 of HotChocolatePOC\Program.cs to enable .AddMutationConventions()
  3. Build code and see through BannanaCakePop that the schema can no longer be downloaded due to 500 server errors.
  4. Remove the default value of the severity argument on line 37 of HotChocolatePOC\LoggingMutation.cs
  5. Rebuild code and see through BannanaCakePop that the schema can now be downloaded normally and 500 server errors are no longer happening.

What is expected?

Enum parameters should be able to have default values while using .AddMutationConventions()

What is actually happening?

Enum parameters with default parameters cause exceptions leading to 500 server errors when used with .AddMutationConventions()

Relevant log output

No response

Additional context

This is possibly related to issue 7040

@SvdSinner SvdSinner added the 🐛 bug Something isn't working label Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working 🌶️ hot chocolate
Projects
None yet
Development

No branches or pull requests

2 participants