Skip to content

Commit

Permalink
Merge pull request #1374 from rudylee/docs-file-upload-small-typo
Browse files Browse the repository at this point in the history
Fix small typo in file upload docs
  • Loading branch information
vektah committed Nov 8, 2020
2 parents 3a31a75 + 94252e0 commit 651eda4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docs/content/reference/file-upload.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ type Query {

"The `Mutation` type, represents all updates we can make to our data."
type Mutation {
singleUpload(file: Upload!): Bool!
singleUpload(file: Upload!): Boolean!
}
```

cURL can be used the make a query as follows:

```
curl localhost:4000/graphql \
-F operations='{ "query": "mutation ($file: Upload!) { singleUpload(file: $file) { id } }", "variables": { "file": null } }' \
-F operations='{ "query": "mutation ($file: Upload!) { singleUpload(file: $file) }", "variables": { "file": null } }' \
-F map='{ "0": ["variables.file"] }' \
-F 0=@a.txt
```
Expand All @@ -59,9 +59,7 @@ That invokes the following operation:
{
query: `
mutation($file: Upload!) {
singleUpload(file: $file) {
id
}
singleUpload(file: $file)
}
`,
variables: {
Expand Down

0 comments on commit 651eda4

Please sign in to comment.