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: support file upload in router #758

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

Conversation

pedraumcosta
Copy link

@pedraumcosta pedraumcosta commented Mar 20, 2024

This PR makes possible to support a file upload according to spec:

https://github.com/jaydenseric/graphql-multipart-request-spec

With this PR merged to main and released we can discuss and work on PR to support the feature in cosmo router:

wundergraph/cosmo#652

Basically, this PR makes possible to pass a temporary file information stored in file system to structures responsible for graphql resolve operation. Additionally, introduces a method in nethttpclient.go to actually perform the multipart http request.

@pedraumcosta pedraumcosta force-pushed the file-upload branch 2 times, most recently from 11cd5f0 to ce32b11 Compare March 21, 2024 20:19
@jensneuse jensneuse self-requested a review March 26, 2024 10:08
@pedraumcosta pedraumcosta changed the title [WIP] Support file upload feat: file upload Mar 26, 2024
@pedraumcosta pedraumcosta changed the title feat: file upload feat: support file upload in router Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant