Skip to content

v2.0.0-rc.50: feat: support file upload in router (#758)

Latest
Compare
Choose a tag to compare
@thisisnithin thisisnithin released this 24 Jun 14:51
· 105 commits to master since this release
627a7ce
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:

https://github.com/wundergraph/cosmo/pull/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.

---------

Co-authored-by: pedraumcosta <costa@hcx.us>
Co-authored-by: thisisnithin <nithinkumar5353@gmail.com>