Blog Demo for GraphQL on Rails
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bin
config
db
lib
public
spec
test
vendor/assets
.gitignore
.ruby-version
Gemfile
Gemfile.lock
LICENSE
README.md
README.rdoc
Rakefile
config.ru

README.md

GraphQL on Rails Blog Demo

GraphQL与Rails结合的开发的例子

主要的Gem

gem 'graphql'
gem 'graphiql-rails'
gem 'graphql-libgraphqlparser', '~> 0.2'

模型

ER图

  • 查询: /queries/create
  • schema定义 app/graph/schemas/*
  • type app/graph/types/*
  • mutation app/graph/mutatinos/*

使用

访问 localhost:3000/graphql

GraphQL查询