Skip to content

Workday/graphql-multipart-request-spec

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

102 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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--

About

A spec for GraphQL multipart form requests (file uploads).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 92.3%
  • Shell 7.7%