wundergraph / cosmo

The open-source solution to building, maintaining, and collaborating on GraphQL Federation at Scale. An alternative to Apollo Studio and GraphOS.
https://cosmo-docs.wundergraph.com/
Apache License 2.0
573 stars 66 forks source link

feat: support file upload in router #772

Open pedraumcosta opened 3 weeks ago

pedraumcosta commented 3 weeks ago

Motivation and Context

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

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

This PR depends on this PR from graphql-go-tools:

https://github.com/wundergraph/graphql-go-tools/pull/758

This PR parse multiform part http requests with files, saves in the file system and passed the file information along the graphql tools library to be forwarded to a subgraph that supports files uploads. In order to make tests possible, I added file uploads operations to the demo employee subgraph and some enhanced methods to test infrastructure.

TODO

github-actions[bot] commented 1 week ago

This PR was marked stale due to lack of activity. It will be closed in 14 days.