0 votes
in GraphQL by
What are the reasons behind using GraphQL while we already had an API named REST?

1 Answer

0 votes
by

This question often comes in mind that what are the reasons behind using GraphQL while we already had an API named REST. Yes, we already had an API called REST for data communication, which follows a clear and well-structured resource-oriented approach. It also provides some great ideas such as stateless servers, structured access to resources, etc. But, REST is not so flexible to cope up with the rapidly changing requirements of the clients. In that case, when the data gets more complex, the routes get longer. Sometimes, it is challenging to fetch the data with a single request. That's why Facebook takes a step to develop a new API technology named GraphQL to cope up with the REST's limitations.

Related questions

0 votes
asked Apr 10, 2023 in GraphQL by Robindeniel
0 votes
asked Apr 9, 2023 in GraphQL by rahuljain1
...