3.0.5 • Published 2 years ago

gatsby-source-yotpo v3.0.5

Weekly downloads
181
License
MIT
Repository
github
Last release
2 years ago

gatsby-source-yotpo

This plugin allows you to access your Yotpo reviews and ratings through Gatsby's GraphQL queries.

Usage

yarn add gatsby-source-yotpo

Add the plugin to your gatsby-config.js using the "App Key" and "Secret Key" credentials from your store settings in Yotpo:

plugins: [
  {
    resolve: "gatsby-source-yotpo",
    options: {
      appKey: "YOTPO_APP_KEY",
      appSecret: "YOTPO_SECRET_KEY",
    },
  }
]

Querying for Data

In your page queries, you can query for data like so:

{
  reviews: allYotpoProductReview {
    nodes {
      productIdentifier
      score
      sentiment
      votesUp
      votesDown
      title
      name
      email
      reviewerType
      content
    }
  }
  
  ratings: allYotpoProductBottomline {
    nodes {
      productIdentifier
      totalReviews
      score
    }
  }
}

For a full list of fields and descriptions of each, see the Yotpo documentation.

3.0.4

2 years ago

3.0.3

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.5

2 years ago

3.0.0

3 years ago

0.8.12

3 years ago

0.8.9

3 years ago

0.8.11

3 years ago

0.8.8

3 years ago

0.8.14

3 years ago

0.8.13

3 years ago

0.8.10

3 years ago

0.8.5

4 years ago

0.8.4

4 years ago

0.8.7

4 years ago

0.8.6

4 years ago

0.8.3

6 years ago

0.8.2

6 years ago

0.8.1

6 years ago

0.8.0

6 years ago