Skip to content

sabir-nagarro/apollo-link-prismic

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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()
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%