1. 16
    Build a GraphQL Query with Exactly the Data you need for a Posts Page
    1m 26s

Build a GraphQL Query with Exactly the Data you need for a Posts Page

Share this video with your friends

Send Tweet

The benefit of GraphQL is to have all the data you need in one request, with nothing more or less.

If you had a REST API, you would typically receive the entire object back in your response. This leads to over fetching and can result in performance issues. With GraphQL, you only receive the data you explicitly request.

In this lesson, we will build a GraphQL query that queries only the essential data needed on the front end to display a post.