This repo is a quick demo for Riaz Virani's Atlanta Ruby Meetup Talk on GraphQL.
This is a barebones Rails project that has two models:
There is an owner
with a name who owns lemurs. The lemur
belongs to the owners
-
Add the
graphql
gem to the project -
Run it's generator
$ rails g graphql:install
-
Add an
owners
query that lists the owners -
Add a
lemurs
field to let you see lemurs for a particular owner -
Add a
createLemur
mutation that can create a lemur
This project is licensed under the MIT License