Cloud Training (Online)




GraphQL.NET 101 – What is GraphQL?

Problem

You are new to GraphQL and would like to know more about GraphQL.

Solution

GraphQL is an open source data query language for API’s and a runtime for fulfilling queries with the existing data. This is what the GraphQL Foundation says about GraphQL

“GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. GraphQL provides a complete and understandable description of the data in your API, gives clients the power to ask for exactly what they need and nothing more, makes it easier to evolve APIs over time, and enables powerful developer tools.”

GraphQL was initially developed by Facebook in 2012 to solve many issues with their mobile app and was later moved to the GraphQL Foundation in 2018. GraphQL changes the way how the client communicates with the API to get only the data what it needs. Apart from Facebook, there are plenty of other companies that use GraphQL. These includes Yelp, GitHub, Twitter, Coursera, Shopify etc. You can know more about the GraphQL customers by visiting GraphQL Landscape page. https://landscape.graphql.org/

You can use GraphQL with any front-end or back-end technologies. GraphQL joins the list of some of the other popular technologies used for API’s like REST, SOAP etc. JSON is one of the most popular language for the communication between the client and the server and GraphQL too uses JSON to solve the communication challenges.

In simple terms, GraphQL is a specification that optimizes the communication of data between the front-end and the back-end. GraphQL lets the clients to ask for only what the front-end needs and retrieve only the necessary data saving the bandwidth.

See Also

– GraphQL Specification http://spec.graphql.org/

– GraphQL Landscape page. https://landscape.graphql.org/

Senthil Kumar B
Senthil Kumar is a former Microsoft MVP (Most Valuable Professional). He is a Co-Author of the book "Windows 10 Development Recipes using JavaScript and CSS" for Apress Publication. He is a technical presenter, blogger, mentor and a Geek.  Senthil is a regular speaker is various local user groups. He has presented at conferences like Great Indian Developer Summit (GIDS) & Microsoft DevCamps. You can reach out to him via his Twitter handle @isenthil.