REST vs GraphQL: The killer API you're not using yet
This video is sponsored by StepZen which is a GraphQL server with a unique architecture that helps developers build APIs fast and with less code (using declarative configurations).
❇️ Get your free account here: bit.ly/44aHxVQ
In this video, we will explore GraphQL's benefits, compare it to REST APIs, discuss its coexistence with existing infrastructures and show you why you might consider the switch to the GraphQL API. After watching this video, you'll be able to make an informed decision about which API to use for your project.
🔥 Build a Books App with React Native and GraphQL API ➡️ kzhead.info-qAhg4EDIwQ
🔥 Build a StackOverflow Clone with React Native and GraphQL API ➡️ kzhead.infoiwgp777Mi54
📰 Stay ahead with our newsletter for the latest tech in development:
www.notjust.dev/links
❗Try our FREE 4-day Masterclass on notJust.Academy:
assets.notjust.dev/masterclass
📚 Enroll NOW in The Full-Stack Mobile Developer course and don’t miss out on your chance to become a 6-figure dev in 2023! Check out what our successful students are saying about their experience:
academy.notjust.dev
💬 Join the notJust Development gang and let's build together:
Twitter: / vadimnotjustdev
Instagram: / vadimnotjus. .
Facebook: / notjustdev
LinkedIn: / vadimsavin
Discord: / discord
Timecodes:
0:00 Intro
0:50 What is and how do REST APIs work
1:50 What is and how does GraphQL work
2:06 The main difference between GraphQL and REST APIs
2:35 Fetching Data with GraphQL
3:20 Communication in GraphQL
3:50 CRUD Operations in REST API
4:19 Operations in GraphQL: Queries, Mutations, and Subscriptions
5:22 What problems does GraphQL help us solve?
5:30 Overfetching and its Impact
7:05 Underfetching and its Consequences
9:54 Does GraphQL actually replace REST APIs?
10:44 Developers opinion on GraphQL vs REST APIs
11:25 Easily convert an existing REST API to GraphQL using StepZen
13:02 Final Thoughts and Recommendations
13:25 Outro
#notjustdev #graphql #restapi
clearly explained 💯 Waiting for a video on how to integrate GraphQL on top of existing REST API 👨🏫😍
Bon contenu, et beau travail de montage c'est agréable à regarder :)
I initially consider myself mostly as a frontend developer. But after learning GraphQL, I've managed to shorten the learning gap between frontend and backend, enabling me to become full-stack. I still do REST projects from time to time, but GraphQL is the API I always go back to when I am given free hand to choose.
best video i have seen on GraphQL !!
Nice edit, Vadim! Thanks for the video!
Thanks!
I want to ask you one question is React native still a good option to learn because Facebook itself is not using react native Just asking and what's the future hold for react native and Also for React. Yes next js expo etd etc stuff but i only want to know about the future holds for react native and react js Will there be react 19 in future?
Both have their pros and cons. GraphQL is good but that doesn't mean we should stop using rest.
Is possible to use graphql at the top of Rest api for query?
Yes, you can easily do that using StepZen. Check out this tutorial for more details: kzhead.infoiwgp777Mi54?feature=share
could you please do some tutorial using trpc and react-native? I would love to see that!
Cool new style of video montage 👍🏽 thank u for brief explanation
10:58 nao sabia que o Paul 'Cabanis' era web developer kkkk
does graphql removes the need for redux ? or should i use redux with graphql ?
If you have complex state management requirements beyond just data fetching, you may choose to use Redux alongside GraphQL. Redux can be used to manage local application state, handle UI-related state changes, or manage non-GraphQL-related data. You can use GraphQL to fetch and update data, and Redux to manage other parts of your application state.
Rest api with prisma can solve Many Problems
And what about the future of these technologies ?
Use JSON:API 1.1 with REST to make it Graph enabled Hyper media driven RESTful API which are great or even better in some case then graphql
do a tut on bluetooth thermal printer
nice one, can you give us a tutorial of GraphQL
Thanks. Check out this one: kzhead.infoiwgp777Mi54?feature=share
Nieko gero tas GraphQL daug ka su rest irgi galim padaryt, didziausia beda su G kai teko dirbti tai BE darbai daug reikejo jo
make tutorial on GraphQL and How we make app with graphQl
We have a few tutorials on GraphQL. Check them out on our channel. 🔥 Build a Books App with React Native and GraphQL API ➡ kzhead.info-qAhg4EDIwQ 🔥 Build a StackOverflow Clone with React Native and GraphQL API ➡ kzhead.infoiwgp777Mi54
136th...Thanks
8:56 😂😂😂😂😂😂😂😂
Oanda is rest api
As someone who used both extensively, my advise is DO NOT use graphql if you want caching. It's a mess.
What client library have you used?
@@notjustdev All of them bro urql, apollo-client and others. It's all clustered when it comes to caching due to the fact that rest api follows the http protocols and all graphql requests are all POST. So with graphql to achieve the same, you need to do some hacking/amendments which honestly is not worth the time investment. I ended up using fastly edge caching but is really expensive. Used stellate caching in the beginning but switched as it had even more limitations.
"31 API calls" for getting data about author, likes, comments.... ahhhh. If you will did it. I have really bad news for you. I think you don't know hot to work relation databases or maybe you don't know how to correct create data structure for DB.
Of course, you can adjust your REST api to return all of this data in the same query, and that would be a smart thing to do. You will do it for your main queries, but not for all the queries your app will make. So, in the end, you will either over fetch or under-fetch.
@@notjustdev And i'm sure you know thet we can setup REST and we can also set what data we want to get. Ofcourse GraphQL is intresting solution and sometime it is easy to use, but not all time. But in any case, thank you for your job. I like to watch your videos
tRPC
tmzluv- kukiana8