3.0.5 • Published 3 years ago
gatsby-source-yotpo v3.0.5
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
3 years ago
3.0.3
3 years ago
3.0.2
3 years ago
3.0.1
3 years ago
3.0.5
3 years ago
3.0.0
4 years ago
0.8.12
4 years ago
0.8.9
4 years ago
0.8.11
4 years ago
0.8.8
4 years ago
0.8.14
4 years ago
0.8.13
4 years ago
0.8.10
4 years ago
0.8.5
5 years ago
0.8.4
5 years ago
0.8.7
5 years ago
0.8.6
5 years ago
0.8.3
7 years ago
0.8.2
7 years ago
0.8.1
7 years ago
0.8.0
7 years ago