Skip to main content

GraphQL




What is GraphQL 
  • API Standard invented & open-sourced by Facebook
  • Alternative to  REST API 
  • enables declarative data fetching 
  • exposes single endpoint & responds to queries

How it works? 


Why Graphql?
  • Improvises performance by reducing the data that is to be transferred over the internet
  • Variety of different frontend frameworks and platforms on client-side
  • Fast development speed & expectation for rapid feature development




Why Graphql is better than REST?

Flexibility & efficient 





No more over /under fetching of data
Over fetching :
Under fetching:
Insightful analytics 

Schema serves as contract between client and server

CORE CONCEPTS :
SDL :SCHEMA DEFINITION LANGUAGE











Writing Data with mutations

3 kinds of mutations
  • creating new data
  • updating existing data
  • deleting existing data


































Comments

Popular posts from this blog

Microservices Design patterns

What are microservices? Microservices - also known as the microservice architecture - is an architectural style that structures an application as a collection of services that are Highly maintainable and testable Loosely coupled Independently deployable Organized around business capabilities Owned by a small team The microservice architecture enables the rapid, frequent and reliable delivery of large, complex applications. It also enables an organization to evolve its technology stack. You are developing a server-side enterprise application. It must support a variety of different clients including desktop browsers, mobile browsers and native mobile applications. The application might also expose an API for 3rd parties to consume. It might also integrate with other applications via either web services or a message broker. The application handles requests (HTTP requests and messages) by executing business logic; accessing a database; exchanging messages with other systems; and returni...

The BattleGround

Last Sunday while zapping the channels of my idiot box I chanced upon to watch one of the greatest epic of our times –MAHABHARAT. It did’nt take me much time to recall the waves that it created across the nation- when it was telecasted for the first time.I was too young to comprehend it,yet I used to watch it with paramount interest,sitting next to dad & imitating his stimuli to what character speaks Later in my teens ,unlike most of my friends who used to enjoy watching top tens & horror shows , I was inundated to discover that zee was going to re telecast Mahabharat .This time, I was grown up enough to understand it,so I religiously watched all the episodes with same interest. Watching such an epic in formative years has great influence on one’s approach towards life .Today to me ,Mahabharat isn’t just another epic but it is a thinking process, where the mind is the battleground, THE KURUSHETRA ,where all kind of thoughts hover, the state of mind that we...