title: graphql-upload data does not work when I try to send it to the server
body: <p>When using graphql-upload and then I try to send the return data to a flask python server, the data always ends up in the body instead of the file. The header is automatically set successfully to <code>content-type: multipart/form-data boundary etc....</code> when I use the below graphql connector.</p>
  
  <p>I based a lot of the below on this example <a href="https://github.com/jaydenseric/apollo-upload-examples/blob/master/api/resolvers.mjs" rel="nofollow noreferrer">https://github.com/jaydenseric/apollo-upload-examples/blob/master/api/resolvers.mjs</a></p>
  
  <pre><code>async fileUpload(page, id, file) {
    const { filename, mimetype, createReadStream } = await file;
    const stream = await createReadStream();
  
    const form = new FormData();
    form.append('file', JSON.stringify({
      filename, mimetype, stream
    }));
  
    // form.append('file', stream)); // this attempt fails as well
  
    const url = `/${page}/${id}/file`;
  
    return this.post(
      url,
      null,
      {
        body: form
      }
    );
  }
  </code></pre>
  
  <p>My schema looks like so:</p>
  
  <pre><code>  type File {
      id: ID!
      page: String!
      name: String
      url: String!
    }
  
    input FileUploadInput {
      id: ID!
      page: String!
      files: [Upload!]!
    }
  
    extend type Mutation {
      fileUpload(data: FileUploadInput!): File
    }
  </code></pre>
  
  <p>Resolver</p>
  
  <pre><code>const { GraphQLUpload } = require('graphql-upload');
  
  const singleFileUpload  (
    root,
    { data: { id, page, files } },
    { dataSources }
  ) =&gt; dataSources.files.fileUpload(id, page, files[0]);
  
  module.exports = {
    Upload: GraphQLUpload,
    Mutation: {
      singleFileUpload
    }
  };
  </code></pre>