Skip to content

floscom/gatsby-source-prismic

Repository files navigation

THIS IS A FORK of gatsby-source-prismic

With some additional functions.

gatsby-source-prismic

Source plugin for pulling documents into Gatsby from prismic.io repositories.

Install

npm install --save gatsby-source-prismic

How to use

// In your gatsby-config.js
plugins: [
  {
    resolve: `gatsby-source-prismic`,
    options: {
      repositoryName: `your_repository_name`,
      accessToken: `your_acces_token`,
    },
  },
]

How to query

You can query Document nodes created from prismic.io like the following:

{
  allPrismicDocument {
    edges {
      node {
        id
        data {
          title {
            type
            text
          }
        }
      }
    }
  }
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published