A functioning introduction to GraphQL for Node.js Houston – http://www.meetup.com/NodejsHouston/events/229815892/
This presentation & demo covers the following concepts:
- Benefits of GraphQL over REST.
- GraphQL structure vs. JSON.
- Adding
express-graphql
toexpress
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.
First, ensure you have the following dependencies installed:
- MySQL (
brew install mysql
) - Node
$ nvm use
$ npm install
$ npm start
Open http://localhost:3000/.