File tree 1 file changed +17
-0
lines changed
spring-graphql-docs/src/docs/asciidoc/includes
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,23 @@ it contains, for the actual config.
32
32
The 1.0.x branch of this repository contains a Spring MVC
33
33
{github-10x-branch}/samples/webmvc-http[HTTP sample] application.
34
34
35
+ [[server.transports.http.fileupload]]
36
+ === File Upload
37
+
38
+ As a protocol GraphQL focuses on the exchange of textual data. This doesn't include binary
39
+ data such as images, but there is a separate, informal
40
+ https://github.com/jaydenseric/graphql-multipart-request-spec[graphql-multipart-request-spec]
41
+ that allows file uploads with GraphQL over HTTP.
42
+
43
+ Spring for GraphQL does not support the `graphql-multipart-request-spec` directly.
44
+ While the spec does provide the benefit of a unified GraphQL API, the actual experince has
45
+ led to a number of issues, and best practice recommendations have evolved, see
46
+ https://www.apollographql.com/blog/backend/file-uploads/file-upload-best-practices/[Apollo Server File Upload Best Practices]
47
+ for a more detailed discussion.
48
+
49
+ If you would like to use `graphql-multipart-request-spec` in your application, you can
50
+ do so through the library
51
+ https://github.com/nkonev/multipart-spring-graphql[multipart-spring-graphql].
35
52
36
53
37
54
[[server.transports.websocket]]
You can’t perform that action at this time.
0 commit comments