-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Support for payload errors (MutationConventions, 6a) #77
Comments
#75 is kind of related to this, I guess. |
Thanks @FleloShe , are you able to put your code in a branch and submit a draft PR? Just want to see what's changed more clearly :) |
Sadly, my time is highly limited this month. However I will try to provide you a PR as soon as possible. |
any news on this? 😊 |
Sorry @wondering639 , I'm waiting on @FleloShe to do a PR so I can have a look at the changes |
Sorry for the delay, I just came back from a trip. I hope I can provide a PR within the next days :) |
See #80 |
Does this look like something that will require large changes? I'm just getting started with HC & FB, using mutation conventions, and this issue has just hit me. 🙂 |
Thanks @FleloShe ! I'll try take a look soon but am currently very busy (buying a property). @glen-84, awesome to have you, welcome! I think I need to digest the PR that FleloShe's done and see whetehr it's the way to go. #75 has my original thoughts on this one, but I think if there's a way to support both we can certainly give it a go :) |
Michael mentioned on Slack that v13 will have a way to raise errors without throwing an exception – is that required, or should there be a temporary (?) solution to allow exceptions to be thrown? I'd want to map the Fluent Validation errors/exceptions to my custom error interface in Hot Chocolate, so that everything ends up with the same shape. |
@benmccallum Sorry to be a pain, but do you think that you'll have time soon to look into this? It would be great if validation errors could be surfaced using the same interface as other user errors. |
FYI all that this is coming soon on HCv13.x. Just need to find some time 😅 |
Currently there seems to be no support for the Mutation Conventions as described here in 9.0.0-rc.1.
I think I identified the following issues:
I tried to adopt some of your code for PoC-tests for HotChocolate 12.7.0 and got it working so far. Maybe this helps a bit :)
Usage
Validator
ValidationErrorsHandler
Simply get all states and throw all exceptions as AggregationException
Injector and Middleware
The text was updated successfully, but these errors were encountered: