Graphql in laravel

I worked many years with Rest API, and because of a special situation, I had to work with Garphql in my projects.

After working with Graphql, I shared my experience and some valuable tips here.

  • what is Graphql?
  • where need to use Graphql?
  • Graphql or Rest ?

What is Graphql?

It was always a problem in projects to communicate between back-end and front-end using Rest APIs.

By using Rest API, you need to create an endpoint for every request or format data that the frontend needs.

But, by using Graphql, you prepare an endpoint, and the frontend will get the data with every format it wants.

After this explanation, like as other resources, we can say that: Graphql is a query language for the frontend which backend is organized.

Leave a Reply

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