I’m migrating a GraphQL monolith into separate subgraphs using Apollo Federation alpha 2.
Some of my subgraphs use the
graphql-upload npm module to support mutations that require upload of binary content, implemented as per the instructions here.
I’ve checked by accessing those subgraphs individually that my Upload-based mutations still work in the subgraph.
I’ve extended my API gateway so that the server can use the
graphqlUploadExpress() middleware in the same way as the subgraphs; it accepts the mutation multipart POST and forwards the request to the expected subgraph, but the request forwarded seems to have lost its “multipartness” and now has Content-Type set to application/json. This causes the subgraph to fail because it cant access the upload stream.
Am I missing something in my
willSendRequest() implementation of