Skip to content

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

Compare
Choose a tag to compare
@thisisnithin thisisnithin released this 24 Jun 14:51
· 257 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 <[email protected]>
Co-authored-by: thisisnithin <[email protected]>