ericclemmons / graphql-demo

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GraphQL Demo

A functioning introduction to GraphQL for Node.js Houstonhttp://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 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

Running the Demo

First, ensure you have the following dependencies installed:

  • MySQL (brew install mysql)
  • Node
$ nvm use
$ npm install
$ npm start

Open http://localhost:3000/.

Special Thanks

About

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

License:MIT License


Languages

Language:JavaScript 99.4%Language:CSS 0.6%