You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am quite new to .Net and HotChocolate, I currently try to implement a validation for user input like sign up, I use the attribute approach and register fluentValidation and add the appany one at where the graphQL server got registered, and implement a UserValidator which used at the attribute of my mutation file. Everything is default, and when client make a bad request that does not pass the validation, whether is normal of receiving a 500 error code or there is a additional configuration needed.
And if i want to change the http status code or want the error being return as a graphql result, how can i achieve that, much appreciated for any input!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I am quite new to .Net and HotChocolate, I currently try to implement a validation for user input like sign up, I use the attribute approach and register fluentValidation and add the appany one at where the graphQL server got registered, and implement a UserValidator which used at the attribute of my mutation file. Everything is default, and when client make a bad request that does not pass the validation, whether is normal of receiving a 500 error code or there is a additional configuration needed.
And if i want to change the http status code or want the error being return as a graphql result, how can i achieve that, much appreciated for any input!
Beta Was this translation helpful? Give feedback.
All reactions