Getting started with GraphQL in Rails

Learn how to set up a GraphQL server using Rails and the graphql-ruby gem. We’ll create mutations for login and register and a query to fetch the currently authenticated user account. Chapters: 0:00 Intro 0:27 Installing GraphQL 2:19 Generate GraphQL Types 3:29 Login mutation 6:13 Register mutation 8:18 Creating the auth token 11:42 Current logged in account query 13:25 Wrapping up You'll find the docs for the graphql-ruby gem here: All of the code for this tutorial is available on GitHub: - If you want to follow along you’ll find the project at the beginning of the video on this branch: - And the completed graphql example is here: --- Has this video helped you out? Consider buying me a coffee to say thanks and support future content like this, thanks! You can also find more content like this, including premium courses and exclusive community and mentorship to help you level-up! Head over to and use the code RRYOUTUBE for a discount!

Published: Apr 22, 2022

View my video on YouTube