-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Input variable validiations for object values are throwing InternalServerError #1410
Comments
Thanks for reporting this issue originally! If this is still a problem, could someone who's experiencing this problem (or anyone who comes across this issue and is able to assist) mind building a reproduction of the problem into a runnable CodeSandbox reproduction using the latest version of Apollo Server and sharing the link to that CodeSandbox in this issue? Building reproductions takes a large portion of core contributor's and issue triager's time, particularly when trying to determine if an issue has been resolved in a newer version of Apollo Server, so this would be tremendously helpful. If this problem is resolved, please feel free to close this issue, otherwise, we will close it if we don't hear back with a reproduction. Thanks! |
Duplicate of #3498 |
I've released a prerelease with this fix, version |
This is released in Apollo Server 2.23.0. |
When passing a object as a input variable, validation on the input type throws internal server error rather than a validation or graphql error.
message:
Variable "$review" got invalid value {"communication":0,"quality":0,"value":0,"creativity":0,"title":"","partnerId":"sldkj"}; Field value.details of required type String! was not provided.
error code:
INTERNAL_SERVER_ERROR
The text was updated successfully, but these errors were encountered: