An open API service indexing awesome lists of open source software.

https://github.com/ericclemmons/graphql-demo

Introduction to GraphQL (http://www.meetup.com/NodejsHouston/events/229815892/)
https://github.com/ericclemmons/graphql-demo

Last synced: about 1 year ago
JSON representation

Introduction to GraphQL (http://www.meetup.com/NodejsHouston/events/229815892/)

Awesome Lists containing this project

README

          

# GraphQL Demo

> A functioning introduction to GraphQL for [Node.js Houston][0]
> –

This [presentation][1] & [demo](#demo) covers the following concepts:

- Benefits of GraphQL over REST.
- GraphQL structure vs. JSON.
- Adding `express-graphql` to `express` as a middleware.
- Using GraphiQL's interface.
- Querying a DB via GraphQL (i.e. queries).
- Writing to a DB via GraphQL (i.e. mutations).
- Loading & caching data with `dataloader`.
- Resources for diving deeper with GraphQL.

- - -

## Demo

> ![Demo](graphql-demo.gif)

### Running the Demo

First, ensure you have the following dependencies installed:

- MySQL (`brew install mysql`)
- Node

```shell
$ nvm use
$ npm install
$ npm start
```

Open .

### Special Thanks

- [Spectacle](https://github.com/FormidableLabs/spectacle)
by
[@kenwheeler](https://github.com/kenwheeler).
- [spectacle-code-slide](https://github.com/thejameskyle/spectacle-code-slide)
by
[@thejameskyle](https://github.com/thejameskyle).

[0]: http://www.meetup.com/NodejsHouston/
[1]: presentation.pdf