GraphQL vs REST: What's The Difference And When To Use Which?

ArjanCodes February 11, 2022
Video Thumbnail

About

No channel description available.

Video Description

💡 Learn how to design great software in 7 steps: https://arjan.codes/designguide. GraphQL vs REST: they're both popular approaches to developing backend services. In this video I show you what the difference is between REST and GraphQL, how to build a basic API using either of these approaches and when to choose one over the other. The code I worked on in this video is available here: https://github.com/ArjanCodes/2022-rest-graphql. 🎓 ArjanCodes Courses: https://www.arjancodes.com/courses. 💬 Join my Discord server: https://discord.arjan.codes. ⌨️ Keyboard I’m using: https://amzn.to/49YM97v. 🔖 Chapters: 0:00 Intro 1:37 What is REST? 2:35 Creating a REST service in Python 8:12 Issues with REST services 9:45 What is GraphQL? 11:01 Creating a GraphQL service in Python: scaffolding 14:19 GraphQL: defining types and queries 20:14 GraphQL: mutations 21:40 GraphQL: field resolvers 24:35 Limitations of GraphQL 25:56 GraphQL vs REST: when to use which? #arjancodes #softwaredesign #python