Skip to content

Commit

Permalink
Updating ReadMe for Clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackson Angerhofer committed Aug 19, 2016
1 parent 6c7df90 commit ddcb013
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ This demo uses [Apollo Server](http://docs.apollostack.com/apollo-server/) and [
## Usage
- After installing the dependencies, run `npm run build` to do a quick Babel compile.
- `npm start` will start the Express+GraphQL server.
- Post to `localhost:3000` with something along the lines of these fields:
- Post to `localhost:3000` with something along the lines of these post body key/value pairs:
- `query` : `mutation newFile($fileName : String) { uploadFile(fileSaveName : $fileName) { originalname, mimetype}}`
- `operationName` : `newFile`
- `variables` : `{"fileName": "SaveNameForNewFile"}`
- `file` : Attach a file to be uploaded.
This is most easily done using a "REST Client" like [Postman](https://www.getpostman.com/).
- The file will be saved in the project root directory under whatever filename is provided in the variable "fileName".

#### Example Postman request.
![An example request.](/exampleRequest.png)
Binary file added exampleRequest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ddcb013

Please sign in to comment.