You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/pages/learn/file-uploads.mdx
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ This guide explains why file uploads via GraphQL are problematic and presents sa
7
7
8
8
## Why uploads are challenging
9
9
10
-
The [GraphQL specification](https://spec.graphql.org/draft/) is transport-agnostic and assumes requests are encoded as JSON.
10
+
The [GraphQL specification](https://spec.graphql.org/draft/) is transport-agnostic and serialization-agnostic (though HTTP and JSON are the most prevalent combination seen in the community).
11
11
File uploads, by contrast, require `multipart/form-data` encoding to transfer binary data—something JSON can’t handle.
12
12
13
13
Supporting uploads over GraphQL usually involves adopting community conventions, like the
0 commit comments