Skip to content
To get familiar with pros and cons of GraphQL and try out some new tech
Ruby HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
config
db
lib/tasks
log
public
storage
vendor
.gitignore
.ruby-version
Gemfile
Gemfile.lock
LICENSE
README.md
Rakefile
config.ru

README.md

graphql-rails

To get familiar with pros and cons of GraphQL and try out some new tech

  • Uses rails 6 and ruby 2.6.4
  • Uses SQLLite
  • Seed the datbase rake db:seed . It creates 10 users with random email address using Faker gem and for the first user it creates couple of survey responses and declines. Each survey has a quantitative and qualitative data
  • Start the server rails s
  • Hit graphiql playground to try out the api at http://localhost:3000/graphiql

Samples queries:

{
  endUsers
}
{
  endUsers {
    email
    responses {
      score
      text
      createdAt
    }
  }
}
{
  endUser(id: 1) {
    email
    responses {
      score
      text
      createdAt
    }
  }
}
You can’t perform that action at this time.