From c9d346f549ca75ab19097ea8bf90f0d3666cc117 Mon Sep 17 00:00:00 2001 From: Rudy Lee Date: Sat, 24 Oct 2020 15:19:12 +1100 Subject: [PATCH 1/2] Fix small typo in file upload docs --- docs/content/reference/file-upload.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/content/reference/file-upload.md b/docs/content/reference/file-upload.md index 3d4d4ea1067..9b8ba199d51 100644 --- a/docs/content/reference/file-upload.md +++ b/docs/content/reference/file-upload.md @@ -40,7 +40,7 @@ type Query { "The `Mutation` type, represents all updates we can make to our data." type Mutation { - singleUpload(file: Upload!): Bool! + singleUpload(file: Upload!): Boolean! } ``` @@ -48,7 +48,7 @@ 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 ``` From 94252e047b6ab16532c003003511762e6bf4f655 Mon Sep 17 00:00:00 2001 From: Adam Scarr Date: Sun, 8 Nov 2020 15:27:44 +1100 Subject: [PATCH 2/2] singleUpload consistency --- docs/content/reference/file-upload.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/content/reference/file-upload.md b/docs/content/reference/file-upload.md index 9b8ba199d51..c30af005e33 100644 --- a/docs/content/reference/file-upload.md +++ b/docs/content/reference/file-upload.md @@ -59,9 +59,7 @@ That invokes the following operation: { query: ` mutation($file: Upload!) { - singleUpload(file: $file) { - id - } + singleUpload(file: $file) } `, variables: {