An Apollo Link that allow you query the Prismic GraphQL API with apollo-client.
npm install apollo-link-prismic --save
import { PrismicLink } from 'apollo-link-prismic';
const apolloClient = new ApolloClient({
link: PrismicLink({
uri: "YOUR_GRAPHQL_ENDPOINT",
accessToken: "YOUR_ACCESS_TOKEN",
}),
cache: new InMemoryCache()
});