Skip to content

Workday/graphql-multipart-request-spec

This branch is 2 commits ahead of jaydenseric/graphql-multipart-request-spec:master.

Repository files navigation

GraphQL Multipart Request Spec

This specification describes how to attach additional files to a GraphQL request using multipart/form-data. The intent is to be the continuation of https://github.com/jaydenseric/graphql-multipart-request-spec starting at Version 3 and to support backwards compatibility with Version 2 for both clients and servers.

Example

POST https://example.com/graphql 
content-type: multipart/form-data; boundary=--boundary

--boundary
Content-Disposition: form-data; name="operations"

{ "query": "mutation { upload(file: \"fileA\") }" }

--boundary
Content-Disposition: form-data; name="fileA"; filename="a.txt"
Content-Type: text/plain

Alpha file content.

--boundary--

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 92.3%
  • Shell 7.7%