Adding the required dependencies

First of all, you need to install a few dependencies:

  1. Go to the frontend folder.
  2. Execute this command: yarn add apollo apollo-client apollo-boost react-apollo graphql.

Here is why we need each of these:

Here, we're using Apollo Boost only to quickly get started. As soon as you develop serious applications with Apollo, you'll rapidly feel the need to let go of apollo-boost and switch to the raw Apollo library. If you reach that conclusion at some point, then follow this guide: https://www.apollographql.com/docs/react/advanced/boost-migration.

Let's define some queries now!