Skip to content

A simple implementation of GraphQL in Ruby on Rails, to use like a boilerplate.

Notifications You must be signed in to change notification settings

fernandohenriques/graphql-on-rails

Repository files navigation

GraphQL on Rails

This is a implementation of the tutorial How to GraphQL with improvements in architecture.

Installation

Install dependencies:

bundle install

rails db:create
rails db:migrate
rails db:seed

Starting the server:

rails s

Opening the application:

open http://localhost:3000/

Opening GraphQL playground:

open http://localhost:3000/graphiql

Sample GraphQL Queries and mutation

List all links:

{
  allLinks {
    id
    url
    description
  }
}

Creates new link:

mutation {
  createLink(url:"http://example.com", description:"Example") {
    id
    url
    description
  }
}

About

A simple implementation of GraphQL in Ruby on Rails, to use like a boilerplate.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published