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/

GraphQL.NET 101 – What is GraphQL?
GraphQL.NET 101 – What is GraphQL?

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/

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

C# Compiler Error CS0442 – ‘Property’: abstract properties cannot have private accessors Reason for the Error You’ll get this error...
This is a really simple one . Below is a simple example of an enum called “Designation” defined with the...
This blog post explain the usage of the Checked Block in .NET and how you can use them in Visual...