GraphQL Query Fetching

Learn about how to fetch GraphQL queries using the frontend.

Fetching data from GraphQL using query

Let’s shut down our fancy “Hi!” web server and work on our web application a little more. We start by modifying our index.html document to do the following two things:

  • Load a polyfill for the browser fetch API.
  • Load our application code.

This will involve two script tags. We can also remove our greeting:

Get hands-on with 1400+ tech skills courses.