-
Notifications
You must be signed in to change notification settings - Fork 89
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
After SOFA v0.12.0 upgrade, "Variable X of required type String! not provided" errors for multiple mutations #1174
Comments
Please share a minimal and clear reproduction on CodeSandbox or StackBlitz |
Yes, I am also facing this issue. made sure the |
I'm facing the same issue, too. I have tried it with version 0.15.1. |
Same issue here. |
I've run into this issue while integrating SOFA with Nest. Disabling |
After upgrading from Sofa v0.11.2 to v0.12.0, parameters provided in the body of my REST requests are no longer found/recognized by SOFA's auto-generated REST API. If I switch back to SOFA v0.11.2, my requests work again.
For example, my login request
http://localhost:2020/auto-rest/auth-login-by-phone
, made with the body:{ "phone": "+12676146833" }
yields the error:It doesn't matter whether I'm running on
localhost
on a MacBook (http) or ongcloud run
(https); it doesn't matter whether I make the request via Postman or via a Swagger REST UI - the error is consistently the same. The error occurs in response to multiple requests with body parameters (that correspond to mutations).When I examine the request (above), as received by the
context
function provided to myuseSofa()
function (below), the request DOES (at this point) contain the expectedstring
value forphone
;{ "phone": "+12676146833" }
Some additional context:
The relevant portion of my GraphQL Schema:
My
authLoginByEmail()
resolver, created usingtype-graphql
:I've looked through the release notes for v0.12.0, and don't yet see anything that would need to change in my code, between v0.11.2 and v.0.12.0 - but perhaps I'm wrong? If you have any recommendations - or know how I could debug further "downstream" than the body of the context function, (mentioned above) - I'd love to know about it. It does seem like this is a bug though, from what I can see so far.
The text was updated successfully, but these errors were encountered: