1.0.3 • Published 5 years ago

apollo-link-prismic-fork v1.0.3

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
5 years ago

apollo-link-prismic

Purpose

An Apollo Link that allow you query the Prismic GraphQL API with apollo-client.

Installation

npm install apollo-link-prismic --save

Usage

import { PrismicLink } from 'apollo-link-prismic';

const apolloClient = new ApolloClient({
  link: PrismicLink({
    uri: "YOUR_GRAPHQL_ENDPOINT",
    accessToken: "YOUR_ACCESS_TOKEN",
  }),
  cache: new InMemoryCache()
});