Skip to content
Branch: master
Find file History

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
app
bin
config
db
public
.gitignore
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru

README.md

Introduction to GraphQL

Demo code for my "Graphql" tack at OpenFest

Slides

Speaker Deck

Installation

gem install bundler
bundle install
rake db:create
rake db:migrate
rake db:seed

Usage

rails server
open http://localhost:3000

Sample queries

query {
  users {
    id
    name
  }
}
query {
  user(id: 1) {
    id
    name
    posts {
      id
      title
    }
  }
}
query {
  post(id: 1) {
    id
    title
    tagline
    makers {
      id
      name
      posts {
        id
        title
      }
    }
  }
}
You can’t perform that action at this time.