This is a implementation of the tutorial How to GraphQL with improvements in architecture.
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
List all links:
{
allLinks {
id
url
description
}
}
Creates new link:
mutation {
createLink(url:"http://example.com", description:"Example") {
id
url
description
}
}