Skip to content

Commit eba391c

Browse files
authored
Update file_uploads.md
1 parent 9f8da88 commit eba391c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/file_uploads.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ class MyController
4343
}
4444
```
4545

46-
Of course, you need to use a GraphQL client that is compatible with multipart requests.
46+
Of course, you need to use a GraphQL client that is compatible with multipart requests. The GraphQL client must send the file using the Upload type.
47+
48+
```
49+
mutation upload($file: Upload!) {
50+
upload(file: $file)
51+
}
52+
```
4753

4854
See [jaydenseric/graphql-multipart-request-spec](https://github.com/jaydenseric/graphql-multipart-request-spec#client) for a list of compatible clients.

0 commit comments

Comments
 (0)