Skip to content

Commit b881631

Browse files
committed
Update Prettier formatting.
1 parent 9322085 commit b881631

File tree

3 files changed

+14
-16
lines changed

3 files changed

+14
-16
lines changed

.prettierrc

Lines changed: 0 additions & 5 deletions
This file was deleted.

.prettierrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"proseWrap": "never"
3+
}

readme.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ An “operations object” is an [Apollo GraphQL POST request](https://www.apoll
2020

2121
So operations can be resolved while the files are still uploading, the fields are ordered:
2222

23-
1. `operations`: A JSON encoded operations object with files replaced with `null`.
24-
2. `map`: A JSON encoded map of where files occurred in the operations. For each file, the key is the file multipart form field name and the value is an array of operations paths.
25-
3. File fields: Each file extracted from the operations object with a unique, arbitrary field name.
23+
1. `operations`: A JSON encoded operations object with files replaced with `null`.
24+
2. `map`: A JSON encoded map of where files occurred in the operations. For each file, the key is the file multipart form field name and the value is an array of operations paths.
25+
3. File fields: Each file extracted from the operations object with a unique, arbitrary field name.
2626

2727
## Examples
2828

@@ -137,7 +137,7 @@ Charlie file content.
137137
#### Operations
138138

139139
```js
140-
;[
140+
[
141141
{
142142
query: `
143143
mutation($file: Upload!) {
@@ -147,8 +147,8 @@ Charlie file content.
147147
}
148148
`,
149149
variables: {
150-
file: File // a.txt
151-
}
150+
file: File, // a.txt
151+
},
152152
},
153153
{
154154
query: `
@@ -161,11 +161,11 @@ Charlie file content.
161161
variables: {
162162
files: [
163163
File, // b.txt
164-
File // c.txt
165-
]
166-
}
167-
}
168-
]
164+
File, // c.txt
165+
],
166+
},
167+
},
168+
];
169169
```
170170

171171
#### cURL request

0 commit comments

Comments
 (0)