In this section, you'll connect the React web application to the GraphQL server. Apollo Server is used to create a single GraphQL endpoint that uses dynamic mock data as a source. Apollo Client is used by React to consume this endpoint and handle state management for your application.
Building a full stack e-commerce application with React, Apollo, and GraphQL
Adding GraphQL to a React application
With the GraphQL server in place, let's move on to the part where you make requests to this server from a React application. For this, you'll use Apollo packages that help you add an abstraction layer between your application and the server. That way, you don't have to worry about sending documents to the GraphQL...