graphql

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 is used by teams of all sizes in many different environments and languages to power mobile apps, websites, and APIs. After a GraphQL service is running (typically at a URL on a web service), it can receive GraphQL queries to validate and execute. The service first checks a query to ensure it only refers to the types and fields defined and then runs the provided functions to produce a result. GraphQL is neither the frontend nor backend but rather the language spoken between the two to exchange information. GraphQL is certainly the future, but as a developer, we are expecting more features and supports like error handling, tooling, web cashing, etc.

Post Date

2021-09-26

Post Updated

2021-10-01

graphql Version

15.5

Tags :APIReactJSGatsbyApollo

Why Graphql for your business?

Point 1

Ask for what you need, get exactly that.

Point 2

Get many resources in a single request.

Point 3

This reduces the workload in-process and efficiency and hides the complexity

Point 4

GraphQL also enables developers to retrieve multiple entities in one request

Point 5

Graphql does not replace REST API in all use cases. In small applications, REST API is recommended whereas in mid and large size applications GraphQL is recommended. Overkill for small applications.

Point 6

Graphql server has a single endpoint.

Point 7

Validation and type checking is out-of-the-box.

Point 8

Instead of CRUD, it has brought Query, Mutation and Subscription to the table.

What Skills and Tools can be used?

Apollo

GraphQL Playground

Altair GraphQL Client

Who is supporting and using?

Shopify, Coursera, Atlassian

Airbnb, Facebook, One Medical

PayPal, Twitter, commercetools

The New York Times

©2022 Maato Collection Used:

Gatsby and its plugins, Contentful, Graphql, FrontEnd Web Tech, ReactJS, Helmet, Gits, Netlify