You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+29-23Lines changed: 29 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -138,9 +138,9 @@ client.mutate({
138
138
139
139
Used to mark a [React Native `File` substitute](#type-reactnativefilesubstitute). It’s too risky to assume all objects with `uri`, `type` and `name` properties are files to extract. Re-exported from [`extract-files`](https://npm.im/extract-files) for convenience.
|`file`|[ReactNativeFileSubstitute](#type-reactnativefilesubstitute)| A React Native [`File`](https://developer.mozilla.org/docs/web/api/file) substitute. |
141
+
| Parameter | Type | Description |
142
+
| :-- | :-- | :-- |
143
+
|`file`|[ReactNativeFileSubstitute](#type-reactnativefilesubstitute)| A React Native [`File`](https://developer.mozilla.org/docs/web/api/file) substitute. |
144
144
145
145
#### Examples
146
146
@@ -156,19 +156,21 @@ _A React Native file that can be used in query or mutation variables._
156
156
> })
157
157
>```
158
158
159
+
---
160
+
159
161
### function createUploadLink
160
162
161
163
Creates a terminating [Apollo Link](https://apollographql.com/docs/link) capable of file uploads. Options match [`createHttpLink`](https://apollographql.com/docs/link/links/http#options).
| `options.fetch` | [function](https://mdn.io/function)? | [`fetch`](https://fetch.spec.whatwg.org) implementation to use, defaulting to the `fetch` global. |
| `type` | [String](https://mdn.io/string)? | File content type. Some environments (particularly Android) require a valid MIME type; Expo `ImageResult.type` is unreliable as it can be just `image`. |
224
+
| Property | Type | Description |
225
+
| :-- | :-- | :-- |
226
+
| `uri`| String| Filesystem path. |
227
+
| `name`| String? | File name. |
228
+
| `type`| String? | File content type. Some environments (particularly Android) require a valid MIME type; Expo `ImageResult.type` is unreliable as it can be just `image`. |
0 commit comments