filmov
tv
What is GraphQL and How is it Different from Rest API ?

Показать описание
**
Recently, during an interview, I noticed that many people struggle to explain the difference between REST and GraphQL in practical terms.
I'm working on explaining it in the simplest way possible and will soon upload a video on YouTube to cover this topic.
🔺 REST API (Buffet):
Buffet Style:
When you go to a buffet, you get a variety of dishes served in bulk. You might end up with more food than you want or not exactly what you need.
Fixed Endpoints: REST APIs have multiple endpoints, each serving a predefined set of data. You might need to make multiple requests to get all the data you need, potentially getting extra data you don’t want.
🔺 GraphQL (À la Carte)
À la Carte Style:
At an à la carte restaurant, you order exactly what you want from the menu. You get precisely the dishes you like, with no extra items.
Single Endpoint: GraphQL uses a single endpoint where you can specify exactly what data you need in a single request. You get just the information you asked for, tailored to your needs.
*****
***
It also included 1:1 Guidance from me until you get your desired job
***
🔺 I have also created interview Q&A package which has topic covered: Selenium, API, Rest Assured, Java, Coding, Linux, Jenkins,Docker, GIT,Maven, QA Manager Interview Q&A, Test AUtomation Framework Interview Q&A. This will help to crack interviews with proper scenarios and examples:
***
***
Recently, during an interview, I noticed that many people struggle to explain the difference between REST and GraphQL in practical terms.
I'm working on explaining it in the simplest way possible and will soon upload a video on YouTube to cover this topic.
🔺 REST API (Buffet):
Buffet Style:
When you go to a buffet, you get a variety of dishes served in bulk. You might end up with more food than you want or not exactly what you need.
Fixed Endpoints: REST APIs have multiple endpoints, each serving a predefined set of data. You might need to make multiple requests to get all the data you need, potentially getting extra data you don’t want.
🔺 GraphQL (À la Carte)
À la Carte Style:
At an à la carte restaurant, you order exactly what you want from the menu. You get precisely the dishes you like, with no extra items.
Single Endpoint: GraphQL uses a single endpoint where you can specify exactly what data you need in a single request. You get just the information you asked for, tailored to your needs.
*****
***
It also included 1:1 Guidance from me until you get your desired job
***
🔺 I have also created interview Q&A package which has topic covered: Selenium, API, Rest Assured, Java, Coding, Linux, Jenkins,Docker, GIT,Maven, QA Manager Interview Q&A, Test AUtomation Framework Interview Q&A. This will help to crack interviews with proper scenarios and examples:
***
***