Create a React Application with Apollo
Create a React application that uses Apollo to query a GraphQL server.
We'll cover the following...
Exercise: Create an application
To practice our skills, let’s change the code files below to make our application display a list of books pulled from our GraphQL server.
import {ApolloClient, InMemoryCache } from "@apollo/client";
const client = new ApolloClient({
uri: "{{EDUCATIVE_LIVE_VM_URL}}:3000",
cache: new InMemoryCache(),
});
export default client;Make changes to this widget so its application displays a list of books pulled from our GraphQL server
Solution
The application below successfully queries our GraphQL server using Apollo. The output from the application above should ...
Ask