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/t...
And the completed graphql example is here:
https://github.com/phawk/coinfusion/t...
---
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...
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!