In this video tutorial, I show you how GraphQL compares to REST. If you've done full-stack development already, you're likely familiar with RESTful services and how to implement an API using REST endpoints.
The more complex your data and the larger the number of sources from which you pull that data, the more complex your REST logic will become on the caller side. It is where GraphQL can help you reduce the amount of requests and the size of the data you request from your services.
I show this with an example of a user database. Using Apollo Server with its playground together with Postman for REST requests, I show different kinds of requests and how they compare between GraphQL and REST.
★☆★ Chapters ★☆★
00:00 Introduction
02:47 How REST Requests Work
07:45 How GraphQL Requests Work
10:44 GraphQL Subscriptions
12:23 Conclusion
★☆★ Apollo GraphQL Demo ★☆★
github.com/MichaelBreitung/ap...
★☆★ my Github ★☆★
github.com/MichaelBreitung/
★☆★ Links ★☆★
GraphQL: graphql.org/
Apollo Server: www.apollographql.com/docs/ap...
★☆★ my Landscape Photography Channel ★☆★
/ mibreit
★☆★ homepage★☆★
www.michael-breitung.com
#graphql #rest
Негізгі бет Introduction to GraphQL and REST - Which Is Better?
Пікірлер: 4