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

feat: Needs to improve file upload, add tests to demo the failure with complex input #861

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pedraumcosta
Copy link
Contributor

I added 2 tests. The first one is the regular scenario where one have a variable for normal uploads. The second is a failing test which show a validation problem when you have a complex input in GQL, an input which the Upload scalar is an internal field from the input.

I am debugging the internal to solve this. I'm afraid my past solution was not ideal. I introduced a fix that solved the problem earlier, but it feels like a hack:

https://github.com/wundergraph/graphql-go-tools/pull/758/files#diff-8a6f211adbdd8b7c97282d713fa1eb60e673f77b26464efd67bc27e7ddde5460L133

Any guidance here is much appreciated.

@StarpTech StarpTech added the internally-reviewed Internally reviewed label Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internally-reviewed Internally reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants