Skip to content

Commit 3be216a

Browse files
committed
Fixes and tweaks.
- Fixed broken Github deep links in the readme. - Readme rewording. - Simplified package.json description.
1 parent 0822001 commit 3be216a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "apollo-upload-server",
3-
"version": "1.0.1",
4-
"description": "In combination with Apollo upload client, enhances Apollo for intuitive file uploads via GraphQL mutations or queries.",
3+
"version": "1.0.2",
4+
"description": "Enhances Apollo for intuitive file uploads via GraphQL mutations.",
55
"license": "MIT",
66
"author": {
77
"name": "Jayden Seric",

readme.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# ![Apollo upload server](https://cdn.rawgit.com/jaydenseric/apollo-upload-server/v1.0.1/apollo-upload-logo.svg)
1+
# ![Apollo upload server](https://cdn.rawgit.com/jaydenseric/apollo-upload-server/v1.0.2/apollo-upload-logo.svg)
22

33
![NPM version](https://img.shields.io/npm/v/apollo-upload-server.svg?style=flat-square) ![Github issues](https://img.shields.io/github/issues/jaydenseric/apollo-upload-server.svg?style=flat-square) ![Github stars](https://img.shields.io/github/stars/jaydenseric/apollo-upload-server.svg?style=flat-square)
44

5-
In combination with [Apollo upload client](https://github.com/jaydenseric/apollo-upload-client), enhances [Apollo](http://apollodata.com) for intuitive file uploads via GraphQL mutations or queries.
5+
Enhances [Apollo](http://apollodata.com) for intuitive file uploads via GraphQL mutations or queries. Use with [Apollo upload client](https://github.com/jaydenseric/apollo-upload-client).
66

77
- Node >= 6.4 supported.
88
- [MIT license](https://en.wikipedia.org/wiki/MIT_License).
@@ -48,7 +48,7 @@ Also setup [Apollo upload client](https://github.com/jaydenseric/apollo-upload-c
4848

4949
## Usage
5050

51-
Once setup, you will be able to use [`File`](https://developer.mozilla.org/en/docs/Web/API/File) objects, [`FileList`](https://developer.mozilla.org/en/docs/Web/API/FileList) objects, or `File` arrays within query or mutation input variables. See the [client usage](https://github.com/jaydenseric/apollo-upload-client#Usage).
51+
Once setup, you will be able to use [`File`](https://developer.mozilla.org/en/docs/Web/API/File) objects, [`FileList`](https://developer.mozilla.org/en/docs/Web/API/FileList) objects, or `File` arrays within query or mutation input variables. See the [client usage](https://github.com/jaydenseric/apollo-upload-client#usage).
5252

5353
The files upload to a temp directory. The file path and metadata will be avalable under the variable name in the resolver in the shape of the input `File` type in the GraphQL schema.
5454

@@ -75,7 +75,7 @@ updateUserAvatar (root, {userId, avatar}) {
7575
}
7676
```
7777

78-
See [client usage for this example](https://github.com/jaydenseric/apollo-upload-client#Single-file).
78+
See [client usage for this example](https://github.com/jaydenseric/apollo-upload-client#single-file).
7979

8080
### Multiple files
8181

@@ -99,14 +99,14 @@ updateGallery (root, {galleryId, images}) {
9999
}
100100
```
101101

102-
See [client usage for this example](https://github.com/jaydenseric/apollo-upload-client#Multiple-files).
102+
See [client usage for this example](https://github.com/jaydenseric/apollo-upload-client#multiple-files).
103103

104104
## Caveats
105105

106106
- No max upload file size option yet.
107107

108108
## Inspiration
109109

110-
- [@HriBB](https://github.com/HriBB)’s [apollo-upload-network-interface](https://github.com/HriBB/apollo-upload-network-interface) and [graphql-server-express-upload](https://github.com/HriBB/graphql-server-express-upload) projects.
110+
- [@HriBB](https://github.com/HriBB)’s [graphql-server-express-upload](https://github.com/HriBB/graphql-server-express-upload) and [apollo-upload-network-interface](https://github.com/HriBB/apollo-upload-network-interface) projects.
111111
- [@danielbuechele](https://github.com/danielbuechele)’s [Medium article](https://medium.com/@danielbuechele/file-uploads-with-graphql-and-apollo-5502bbf3941e).
112112
- [@jessedvrs](https://github.com/jessedvrs)’s [example code](https://github.com/HriBB/apollo-upload-network-interface/issues/5#issuecomment-280018715).

0 commit comments

Comments
 (0)