In reply to Nirmal Kumar.

The same advantages you get from a GraphQL endpoint over REST. You FETCHing becomes succinct. In other words, you don’t over/under fetch data.

A made of example. Let’s say you’re rendering a Post with the WP REST API. You might need:

1) The menu
2) The post_content
3) Rich user meta (that doesn’t get returned in the post endpoint)

To do so with the WP REST API you’d likely make 3 REST requests. One for each of the above. Furthermore, those REST requests would return a bunch of data that you ver likely may not use.

Enter GraphQL. GQL let’s you define schemas and at the end of the day, through some pretty simple Query syntax, you could query for your menu, post_content and user meta in one request that contains exactly what you need. No more. No less.