Skip to content

Commit 8286290

Browse files
authored
Merge pull request #222 from ThibBal/patch-1
Update file_uploads.md to specify the matching GraphQL type
2 parents 7643a75 + 006c1a9 commit 8286290

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

docs/file_uploads.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ 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. See [jaydenseric/graphql-multipart-request-spec](https://github.com/jaydenseric/graphql-multipart-request-spec#client) for a list of compatible clients.
47+
48+
The GraphQL client must send the file using the Upload type.
49+
50+
```
51+
mutation upload($file: Upload!) {
52+
upload(file: $file)
53+
}
54+
```
4755

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