- We can client and server for fetching the data how differentiate between REST and GraphQL .
- Compare to REST GraphQL is best with fetching the data and manipulating exact result.
- Faster than REST.
- Below sample example will provide easy understanding points between REST & GraphQL.
Task :
Need to display Username , List of twits by User & Followers as like below format (expected output )
Using REST API:
Using GraphQL Service: