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: https://graphql-ruby.org 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: https://github.com/phawk/coinfusion/tree/graphql_ruby_1 - And the completed graphql example is here: https://github.com/phawk/coinfusion/tree/graphql_ruby_2 --- Has this video helped you out? Consider buying me a coffee to say thanks and support future content like this, thanks! https://app.payhere.co/rapid-ruby/buy-me-a-coffee-aa4618e4-45d1-4727-81b9-2d081449d61d You can also find more content like this, including premium courses and exclusive community and mentorship to help you level-up! Head over to https://rapidruby.com and use the code RRYOUTUBE for a discount!


Published: Apr 22, 2022

View my video on YouTube